[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]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]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:27]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]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:35]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:35]recv_with_timeout no data received [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:49]recv_with_timeout no data received [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:06]recv_with_timeout no data received [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:17]recv_with_timeout no data received [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:35]recv_with_timeout no data received [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]recv_with_timeout no data received [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:36]accept exits with 7 [05:11:36]New connection [05:11:36]New thread 3067489636 created [05:11:36]Thread 3067346276 joined [05:11:36]Waiting for new connection... [05:11:36] Sock 7.Parse request [05:11:36]Sock 7.Check first char [05:11:36]Sock 7.First char is OK [05:11:36]request: POST /json_proto HTTP/1.0 [05:11:36]Method: POST [05:11:36]URL: /json_proto [05:11:36]Method is POST - this is cgi request [05:11:36]url: /json_proto [05:11:36]query_string will be loaded in cgi processing [05:11:36]execute_cgi json_proto POST (null) [05:11:36]execute_cgi path=json_proto method=POST [05:11:36]POST find Content-Length [05:11:36]Host: 172.17.51.3:8080 [05:11:36]Content-Length: 677 [05:11:36]Content-Type: application/json [05:11:36] [05:11:36]POST finish read [05:11:36]Found Content-Length = 677 [05:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:11:36]execute_script... [05:11: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)343191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:11:36]POST & json_proto [05:11:36]process_json_proto [05:11:36]json parsed OK: [05:11:36]protocol is kg_v1.0 [05:11:36]action value=close_receipt [05:11:36]process_action close_receipt [05:11:36]cmd_close_receipt [05:11:36]MH_GetDate [05:11:36]Write to MH i2c: F0 00 00 AD 6E 0A [05:11:36]Write i2c OK [05:11:36]MH_I2C_Read... [05:11:36]Read from MH i2c: F0 [05:11:36]MH_I2C_Read... [05:11:36]Read from MH i2c: F0 09 00 [05:11:36]MH_I2C_Read... [05:11:36]Read from MH i2c: F0 09 00 AD 6E 00 11 34 17 67 04 C1 95 66 96 [05:11:36]GetLastDocTimeStamp 1729564520 [05:11:36]current date 1729573905 [05:11:36]FM_GetShiftState [05:11:36]SAM_PROTO_GetShiftState [05:11:36]wFMCommunicate request_size=4 [05:11:36]MH_SAM_APDU [05:11:36]CAPDU: 80 13 01 00 [05:11:36]Write to MH i2c: E2 08 00 AE 6E 80 13 01 00 00 00 00 00 99 [05:11:36]Write i2c OK [05:11:36]MH_I2C_Read... [05:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:36]Read from MH i2c: E2 [05:11:36]MH_I2C_Read... [05:11:36]Read from MH i2c: E2 0E 00 [05:11:36]MH_I2C_Read... [05:11:36]Read from MH i2c: E2 0E 00 AE 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 73 [05:11:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:11:36]wFMCommunicate OK [05:11:36]SAM_PROTO_GetShiftState done [05:11:36]FM_GetShiftState done [05:11:36]opened in 1729557342 [05:11:36]opened+sec_in_day 1729643742 [05:11:36]quantity*price = 40006 [05:11:36]sum+1 = 40007 [05:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 7 22.10.2024 05:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30774 ФПД: 176222549023165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051145&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30774&fm=176222549023165&tin=02508201610067®Number=0000000000186857&sum=40000 [05:11:37]StoreToDocumentArchive [05:11:37]shift 116 fd 30774 [05:11:37]save to /storage/0116/doc_00030774 [05:11:37]save last doc name /storage/0116/doc_00030774 to /storage/kkm_last_doc_name [05:11:37]save OK [05:11:37]Clear old archive folders... [05:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:11:37]tlvbuf is 01E063F0 [05:11:37]SAM_PROTO_ClearQueue [05:11:37]wFMCommunicate request_size=4 [05:11:37]MH_SAM_APDU [05:11:37]CAPDU: 80 09 00 00 [05:11:37]Write to MH i2c: E2 08 00 BB 6E 80 09 00 00 00 00 00 00 9B [05:11:37]Write i2c OK [05:11:37]MH_I2C_Read... [05:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:11:37]Read from MH i2c: E2 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 BB 6E 00 90 00 9D [05:11:37]RAPDU: 90 00 [05:11:37]wFMCommunicate OK [05:11:37]SAM_PROTO_ClearQueue done [05:11:37]KKMCreateOFDPacket [05:11:37]OFDProtocolAddRootSTLVToBuf [05:11:37]FM_MakeSignedData [05:11:37]FM_MakeSignedData [05:11:37]SAM_PROTO_SignData [05:11:37]wFMCommunicate request_size=4 [05:11:37]MH_SAM_APDU [05:11:37]CAPDU: 80 0D 01 02 [05:11:37]Write to MH i2c: E2 08 00 BC 6E 80 0D 01 02 00 00 00 00 A3 [05:11:37]Write i2c OK [05:11:37]MH_I2C_Read... [05:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:11:37]Read from MH i2c: E2 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 BC 6E 00 90 00 9E [05:11:37]RAPDU: 90 00 [05:11:37]wFMCommunicate OK [05:11:37]wFMCommunicate request_size=255 [05:11:37]MH_SAM_APDU [05:11: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 11 34 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 78 00 00 35 04 06 00 A0 [05:11:37]Write to MH i2c: E2 02 01 BD 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 11 34 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 78 00 00 35 04 06 00 A0 00 00 8F [05:11:37]Write i2c OK [05:11:37]MH_I2C_Read... [05:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:37]Read from MH i2c: E2 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 [05:11:37]MH_I2C_Read... [05:11:37]Read from MH i2c: E2 03 00 BD 6E 00 90 00 9F [05:11:37]RAPDU: 90 00 [05:11:37]wFMCommunicate OK [05:11:37]wFMCommunicate request_size=10 [05:11:37]MH_SAM_APDU [05:11:37]CAPDU: 80 0D 02 02 05 46 02 6F 99 BD [05:11:37]Write to MH i2c: E2 0D 00 BE 6E 80 0D 02 02 05 00 46 02 6F 99 BD 00 00 BD [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:38]Read from MH i2c: E2 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 03 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 03 00 BE 6E 00 90 00 A0 [05:11:38]RAPDU: 90 00 [05:11:38]wFMCommunicate OK [05:11:38]wFMCommunicate request_size=4 [05:11:38]MH_SAM_APDU [05:11:38]CAPDU: 80 0D 03 02 [05:11:38]Write to MH i2c: E2 08 00 BF 6E 80 0D 03 02 00 00 00 00 A8 [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:11:38]Read from MH i2c: E2 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 0B 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 0B 00 BF 6E 00 15 D7 81 F9 48 81 63 AA 90 00 E5 [05:11:38]RAPDU: 15 D7 81 F9 48 81 63 AA 90 00 [05:11:38]wFMCommunicate OK [05:11:38]SAM_PROTO_SignData done [05:11:38]FM_MakeSignedData done [05:11:38]CreateOFDProtocolMessage [05:11:38]wFMCommunicate request_size=4 [05:11:38]MH_SAM_APDU [05:11:38]CAPDU: 80 11 00 00 [05:11:38]Write to MH i2c: E2 08 00 C0 6E 80 11 00 00 00 00 00 00 A8 [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:38]Read from MH i2c: E2 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 17 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: E2 17 00 C0 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [05:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:11:38]wFMCommunicate OK [05:11:38]CreateOFDProtocolMessage done [05:11:38]OFDSenderStorePacket 30774 [05:11:38]StoreOFDPacket docnum=30774 [05:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D A3 07 01 56 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 11 34 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 78 00 00 35 04 06 00 A0 46 02 6F 99 BD 15 D7 81 F9 48 81 63 AA [05:11:38]CheckFolder [05:11:38]dirname=/storage/ofd_packets [05:11:38]CheckFolder done [05:11:38]ProducePacketName [05:11:38]name=ofd_packets/00030774 [05:11:38]NVStorageSaveData ofd_packets/00030774 [05:11:38]File name is /storage/ofd_packets/00030774 [05:11:38]Write 301 bytes [05:11:38]NVStorageSaveData done [05:11:38]OFDSenderStorePacket done [05:11:38]KKMCreateOFDPacket done [05:11:38]NVStorageSaveData kkm_last_timestamp [05:11:38]File name is /storage/kkm_last_timestamp [05:11:38]Write 4 bytes [05:11:38]NVStorageSaveData done [05:11:38]ExternCall_PrintAddStr [05:11:38]wPrintStart [05:11:38]Write to MH i2c: 01 00 00 C1 6E 2F [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 07 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 07 00 C1 6E 00 00 00 00 00 FF 0F 44 [05:11:38]RasterBufferAndPrint [05:11:38]line Счет N : (1)343191 [05:11:38]line ИНН: 02508201610067 [05:11:38]line Контрольно-Кассовый Чек [05:11:38]line ПРОДАЖА [05:11:38]line ТРК (МРК, ГНК) : 63 [05:11:38]line Товар: 2710124130 [05:11:38]line Аи-92-К-2 [05:11:38]line 5.980 * 66.90 [05:11:38]line = 400.06 [05:11:38]line НДС 12% НСП 1% [05:11:38]line > о реализуемом товаре [05:11:38]line ОКРУГЛЕНИЕ: -0.06 [05:11:38]line ИТОГО: 400.00 [05:11:38]line Внесено: 400.00 [05:11:38]line СДАЧА: 0.00 [05:11:38]line НСП 1% : 3.54 [05:11:38]line НДС 12% : 42.48 [05:11:38]line Наличными: 400.00 [05:11:38]line Безнал.: 0.00 [05:11:38]line Место: АЗС № 78 "Партнер Нефть" [05:11:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:11:38]line СНО: Общий режим [05:11:38]line Чек 7 22.10.2024 05:11 [05:11:38]line Смена: 116 ФФД: 1.0 [05:11:38]line ЗНМ: 0300000137 [05:11:38]line РНМ: 0000000000186857 [05:11:38]line Версия ККМ: v1.0 [05:11:38]line ФМ: 0000000002094219 [05:11:38]line ФД: 30774 [05:11:38]line ФПД: 176222549023165 [05:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051145&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30774&fm=176222549023165&tin=02508201610067®Number=0000000000186857&sum=40000 [05:11:38]OFD Sender: Processing packet 30774 [packets to send 10, broken 9] [05:11:38]ProducePacketName [05:11:38]name=ofd_packets/00030774 [05:11:38]OFD Sender: To server: pG, [05:11:38]CommunicateWithHost lk.salyk.kg:30040 [05:11:38]ConnectInit lk.salyk.kg [05:11:38]written 0, free lines is 4095 [05:11:38]Connected sock=11 [05:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D A3 07 01 56 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 11 34 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 78 00 00 35 04 06 00 A0 46 02 6F 99 BD 15 D7 81 F9 48 81 63 AA [05:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 34 B3 47 00 9D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 78 00 00 F4 03 04 00 8F DE 16 67 B6 04 01 00 00 CD 92 B3 7E C4 F6 54 E8 [05:11:38]CommunicateWithHost err = 0 [05:11:38]CheckOFDResponse [05:11:38]1017 (14) - 77093643461234 [05:11:38]1041 (16) - 0000000002094219 [05:11:38]1040 (4) - 30774 [05:11:38]1012 (4) - 21.10.2024 23:06 [05:11:38]1206 (1) - 0 [05:11:38]OFD Sender: Remove packet 30774 [05:11:38]ProducePacketName [05:11:38]name=ofd_packets/00030774 [05:11:38]NVStorageDeleteData [05:11:38]Write to MH i2c: 01 00 00 EC 6E 5A [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 07 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: 01 07 00 EC 6E 00 00 00 00 00 E8 0C 55 [05:11:38]RasterBufferAndPrint [05:11:38]line [05:11:38]line [05:11:38]line [05:11:38]line [05:11:38]line [05:11:38]written 0, free lines is 3311 [05:11:38]MH_Cut [05:11:38]Write to MH i2c: D1 01 00 F3 6E 01 33 [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: D1 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: D1 01 00 [05:11:38]MH_I2C_Read... [05:11:38]Read from MH i2c: D1 01 00 F3 6E 00 32 [05:11:38]Write to MH i2c: 01 00 00 F4 6E 62 [05:11:38]Write i2c OK [05:11:38]MH_I2C_Read... [05:11:39]OFD Sender: No OFD packet to send [05:11:39]*** Cut start [05:11:39]*** Partial cut [05:11:39]*** CUTSNS_PIN = 1 [05:11:39]*** CUTSNS_PIN = 0 [05:11:39]*** Brake cut motor [05:11:40]Read from MH i2c: 01 [05:11:40]MH_I2C_Read... [05:11:40]*** Stop cut motor [05:11:40]*** Cut end [05:11:40]Read from MH i2c: 01 07 00 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: 01 07 00 F4 6E 00 00 00 00 00 FF 0F 77 [05:11:40]process_action close_receipt done [05:11:40]requested_data is exist [05:11:40]produce_requested_data [05:11:40]requested_item fm.sn is exist - process it [05:11:40]wFMCommunicate request_size=4 [05:11:40]MH_SAM_APDU [05:11:40]CAPDU: 80 11 00 00 [05:11:40]Write to MH i2c: E2 08 00 F5 6E 80 11 00 00 00 00 00 00 DD [05:11:40]Write i2c OK [05:11:40]MH_I2C_Read... [05:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:40]Read from MH i2c: E2 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 17 00 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 17 00 F5 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [05:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:11:40]wFMCommunicate OK [05:11:40]requested_item fd.num is exist - process it [05:11:40]SAM_PROTO_GetFieldsCounters [05:11:40]wFMCommunicate request_size=4 [05:11:40]MH_SAM_APDU [05:11:40]CAPDU: 80 13 00 00 [05:11:40]Write to MH i2c: E2 08 00 F6 6E 80 13 00 00 00 00 00 00 E0 [05:11:40]Write i2c OK [05:11:40]MH_I2C_Read... [05:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:11:40]Read from MH i2c: E2 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 62 00 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 62 00 F6 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 78 00 00 0E 04 04 00 74 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 3D [05:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 78 00 00 0E 04 04 00 74 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 [05:11:40]wFMCommunicate OK [05:11:40]SAM_PROTO_GetFieldsCounters done [05:11:40]requested_item shift.num is exist - process it [05:11:40]requested_item shift.opened is exist - process it [05:11:40]req_shift_opened [05:11:40]FM_GetShiftState [05:11:40]SAM_PROTO_GetShiftState [05:11:40]wFMCommunicate request_size=4 [05:11:40]MH_SAM_APDU [05:11:40]CAPDU: 80 13 01 00 [05:11:40]Write to MH i2c: E2 08 00 F7 6E 80 13 01 00 00 00 00 00 E2 [05:11:40]Write i2c OK [05:11:40]MH_I2C_Read... [05:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:40]Read from MH i2c: E2 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 0E 00 [05:11:40]MH_I2C_Read... [05:11:40]Read from MH i2c: E2 0E 00 F7 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BC [05:11:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:11:40]wFMCommunicate OK [05:11:40]SAM_PROTO_GetShiftState done [05:11:40]FM_GetShiftState done [05:11:40]req_shift_opened done [05:11:40]requested_item shift.open_date is exist - process it [05:11:40]req_shift_open_date [05:11:40]req_shift_open_date done [05:11:40]produce_requested_data done [05:11:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30774,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [05:11:40]process_action_free close_receipt [05:11:40]json_value_free [05:11:40]json_value_free done [05:11:40]process_json_proto returns [05:11:40]Send response to host [05:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30774,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [05:11:40]free response buf [05:11:40]execute_script done [05:11:40]execute_script returns [05:11:40]free content buf [05:11:40]Sock 7.Close socket [05:11:40]Sock 7.Thread stoped [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:27:59]recv_with_timeout no data received [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:20]recv_with_timeout no data received [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:27]recv_with_timeout no data received [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:47]recv_with_timeout no data received [05:36:50]OFD Sender: No OFD packet to send [05:36:51]accept exits with 9 [05:36:51]New connection [05:36:51]New thread 3067346276 created [05:36:51]Thread 3067489636 joined [05:36:51]Waiting for new connection... [05:36:51] Sock 9.Parse request [05:36:51]Sock 9.Check first char [05:36:51]Sock 9.First char is OK [05:36:51]request: POST /json_proto HTTP/1.0 [05:36:51]Method: POST [05:36:51]URL: /json_proto [05:36:51]Method is POST - this is cgi request [05:36:51]url: /json_proto [05:36:51]query_string will be loaded in cgi processing [05:36:51]execute_cgi json_proto POST (null) [05:36:51]execute_cgi path=json_proto method=POST [05:36:51]POST find Content-Length [05:36:51]Host: 172.17.51.3:8080 [05:36:51]Content-Length: 688 [05:36:51]Content-Type: application/json [05:36:51] [05:36:51]POST finish read [05:36:51]Found Content-Length = 688 [05:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:51]execute_script... [05:36: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)343192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:51]POST & json_proto [05:36:51]process_json_proto [05:36:51]json parsed OK: [05:36:51]protocol is kg_v1.0 [05:36:51]action value=close_receipt [05:36:51]process_action close_receipt [05:36:51]cmd_close_receipt [05:36:51]MH_GetDate [05:36:51]Write to MH i2c: F0 00 00 F8 6E 55 [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: F0 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: F0 09 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: F0 09 00 F8 6E 00 FC 39 17 67 04 C1 95 66 D1 [05:36:51]GetLastDocTimeStamp 1729573905 [05:36:51]current date 1729575420 [05:36:51]FM_GetShiftState [05:36:51]SAM_PROTO_GetShiftState [05:36:51]wFMCommunicate request_size=4 [05:36:51]MH_SAM_APDU [05:36:51]CAPDU: 80 13 01 00 [05:36:51]Write to MH i2c: E2 08 00 F9 6E 80 13 01 00 00 00 00 00 E4 [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:51]Read from MH i2c: E2 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 0E 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 0E 00 F9 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BE [05:36:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:36:51]wFMCommunicate OK [05:36:51]SAM_PROTO_GetShiftState done [05:36:51]FM_GetShiftState done [05:36:51]opened in 1729557342 [05:36:51]opened+sec_in_day 1729643742 [05:36:51]quantity*price = 200025 [05:36:51]sum+1 = 200026 [05:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 8 22.10.2024 05:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30775 ФПД: 2520062821911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30775&fm=2520062821911&tin=02508201610067®Number=0000000000186857&sum=200000 [05:36:52]StoreToDocumentArchive [05:36:52]shift 116 fd 30775 [05:36:52]save to /storage/0116/doc_00030775 [05:36:52]save last doc name /storage/0116/doc_00030775 to /storage/kkm_last_doc_name [05:36:52]save OK [05:36:52]Clear old archive folders... [05:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:36:52]tlvbuf is 01DDDD60 [05:36:52]SAM_PROTO_ClearQueue [05:36:52]wFMCommunicate request_size=4 [05:36:52]MH_SAM_APDU [05:36:52]CAPDU: 80 09 00 00 [05:36:52]Write to MH i2c: E2 08 00 06 6F 80 09 00 00 00 00 00 00 E7 [05:36:52]Write i2c OK [05:36:52]MH_I2C_Read... [05:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:52]Read from MH i2c: E2 [05:36:52]MH_I2C_Read... [05:36:52]Read from MH i2c: E2 03 00 [05:36:52]MH_I2C_Read... [05:36:52]Read from MH i2c: E2 03 00 06 6F 00 90 00 E9 [05:36:52]RAPDU: 90 00 [05:36:52]wFMCommunicate OK [05:36:52]SAM_PROTO_ClearQueue done [05:36:52]KKMCreateOFDPacket [05:36:52]OFDProtocolAddRootSTLVToBuf [05:36:52]FM_MakeSignedData [05:36:52]FM_MakeSignedData [05:36:52]SAM_PROTO_SignData [05:36:52]wFMCommunicate request_size=4 [05:36:52]MH_SAM_APDU [05:36:52]CAPDU: 80 0D 01 02 [05:36:52]Write to MH i2c: E2 08 00 07 6F 80 0D 01 02 00 00 00 00 EF [05:36:52]Write i2c OK [05:36:52]MH_I2C_Read... [05:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 07 6F 00 90 00 EA [05:36:53]RAPDU: 90 00 [05:36:53]wFMCommunicate OK [05:36:53]wFMCommunicate request_size=255 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FC 39 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 78 00 [05:36:53]Write to MH i2c: E2 02 01 08 6F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FC 39 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 78 00 00 00 6B [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 08 6F 00 90 00 EB [05:36:53]RAPDU: 90 00 [05:36:53]wFMCommunicate OK [05:36:53]wFMCommunicate request_size=16 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 02 4A BF 73 06 17 [05:36:53]Write to MH i2c: E2 13 00 09 6F 80 0D 02 02 0B 00 00 35 04 06 00 02 4A BF 73 06 17 00 00 E2 [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 03 00 09 6F 00 90 00 EC [05:36:53]RAPDU: 90 00 [05:36:53]wFMCommunicate OK [05:36:53]wFMCommunicate request_size=4 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 0D 03 02 [05:36:53]Write to MH i2c: E2 08 00 0A 6F 80 0D 03 02 00 00 00 00 F4 [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 0B 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 0B 00 0A 6F 00 5B 22 ED FF E9 4A 3C DE 90 00 AB [05:36:53]RAPDU: 5B 22 ED FF E9 4A 3C DE 90 00 [05:36:53]wFMCommunicate OK [05:36:53]SAM_PROTO_SignData done [05:36:53]FM_MakeSignedData done [05:36:53]CreateOFDProtocolMessage [05:36:53]wFMCommunicate request_size=4 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 11 00 00 [05:36:53]Write to MH i2c: E2 08 00 0B 6F 80 11 00 00 00 00 00 00 F4 [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 17 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 17 00 0B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [05:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:36:53]wFMCommunicate OK [05:36:53]CreateOFDProtocolMessage done [05:36:53]OFDSenderStorePacket 30775 [05:36:53]StoreOFDPacket docnum=30775 [05:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A9 4C 0D 01 8D 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FC 39 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 78 00 00 35 04 06 00 02 4A BF 73 06 17 5B 22 ED FF E9 4A 3C DE [05:36:53]CheckFolder [05:36:53]dirname=/storage/ofd_packets [05:36:53]CheckFolder done [05:36:53]ProducePacketName [05:36:53]name=ofd_packets/00030775 [05:36:53]NVStorageSaveData ofd_packets/00030775 [05:36:53]File name is /storage/ofd_packets/00030775 [05:36:53]Write 307 bytes [05:36:53]NVStorageSaveData done [05:36:53]OFDSenderStorePacket done [05:36:53]KKMCreateOFDPacket done [05:36:53]NVStorageSaveData kkm_last_timestamp [05:36:53]File name is /storage/kkm_last_timestamp [05:36:53]Write 4 bytes [05:36:53]NVStorageSaveData done [05:36:53]ExternCall_PrintAddStr [05:36:53]wPrintStart [05:36:53]Write to MH i2c: 01 00 00 0C 6F 7B [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: 01 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: 01 07 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: 01 07 00 0C 6F 00 00 00 00 00 FF 0F 90 [05:36:53]RasterBufferAndPrint [05:36:53]line Счет N : (1)343192 [05:36:53]line ИНН: 02508201610067 [05:36:53]line Контрольно-Кассовый Чек [05:36:53]line ПРОДАЖА [05:36:53]line ТРК (МРК, ГНК) : 61 [05:36:53]line Товар: 2710194210 [05:36:53]line D-ENERGY Дт-К-2 [05:36:53]line 25.910 * 77.20 [05:36:53]line = 2000.25 [05:36:53]line НДС 12% НСП 1% [05:36:53]line > о реализуемом товаре [05:36:53]line ОКРУГЛЕНИЕ: -0.25 [05:36:53]line ИТОГО: 2000.00 [05:36:53]line Внесено: 2000.00 [05:36:53]line СДАЧА: 0.00 [05:36:53]line НСП 1% : 17.70 [05:36:53]line НДС 12% : 212.42 [05:36:53]line Наличными: 2000.00 [05:36:53]line Безнал.: 0.00 [05:36:53]line Место: АЗС № 78 "Партнер Нефть" [05:36:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:36:53]line СНО: Общий режим [05:36:53]line Чек 8 22.10.2024 05:37 [05:36:53]line Смена: 116 ФФД: 1.0 [05:36:53]line ЗНМ: 0300000137 [05:36:53]line РНМ: 0000000000186857 [05:36:53]line Версия ККМ: v1.0 [05:36:53]line ФМ: 0000000002094219 [05:36:53]line ФД: 30775 [05:36:53]line ФПД: 2520062821911 [05:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30775&fm=2520062821911&tin=02508201610067®Number=0000000000186857&sum=200000 [05:36:53]OFD Sender: Processing packet 30775 [packets to send 10, broken 9] [05:36:53]ProducePacketName [05:36:53]name=ofd_packets/00030775 [05:36:53]OFD Sender: To server: pG, [05:36:53]CommunicateWithHost lk.salyk.kg:30040 [05:36:53]ConnectInit lk.salyk.kg [05:36:53]written 0, free lines is 4095 [05:36:54]Write to MH i2c: 01 00 00 37 6F A6 [05:36:54]Write i2c OK [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: 01 [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: 01 07 00 [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: 01 07 00 37 6F 00 00 00 00 00 EC 0C A5 [05:36:54]RasterBufferAndPrint [05:36:54]line [05:36:54]line [05:36:54]line [05:36:54]line [05:36:54]line [05:36:54]written 0, free lines is 3314 [05:36:54]MH_Cut [05:36:54]Write to MH i2c: D1 01 00 3E 6F 01 7F [05:36:54]Write i2c OK [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: D1 [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: D1 01 00 [05:36:54]MH_I2C_Read... [05:36:54]Read from MH i2c: D1 01 00 3E 6F 00 7E [05:36:54]Write to MH i2c: 01 00 00 3F 6F AE [05:36:54]Write i2c OK [05:36:54]MH_I2C_Read... [05:36:54]*** Cut start [05:36:54]*** Partial cut [05:36:54]*** CUTSNS_PIN = 1 [05:36:54]*** CUTSNS_PIN = 0 [05:36:55]*** Brake cut motor [05:36:55]Read from MH i2c: 01 [05:36:55]MH_I2C_Read... [05:36:55]*** Stop cut motor [05:36:55]*** Cut end [05:36:55]Read from MH i2c: 01 07 00 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: 01 07 00 3F 6F 00 00 00 00 00 FF 0F C3 [05:36:55]process_action close_receipt done [05:36:55]requested_data is exist [05:36:55]produce_requested_data [05:36:55]requested_item fm.sn is exist - process it [05:36:55]wFMCommunicate request_size=4 [05:36:55]MH_SAM_APDU [05:36:55]CAPDU: 80 11 00 00 [05:36:55]Write to MH i2c: E2 08 00 40 6F 80 11 00 00 00 00 00 00 29 [05:36:55]Write i2c OK [05:36:55]MH_I2C_Read... [05:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:55]Read from MH i2c: E2 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 17 00 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 17 00 40 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [05:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:36:55]wFMCommunicate OK [05:36:55]requested_item fd.num is exist - process it [05:36:55]SAM_PROTO_GetFieldsCounters [05:36:55]wFMCommunicate request_size=4 [05:36:55]MH_SAM_APDU [05:36:55]CAPDU: 80 13 00 00 [05:36:55]Write to MH i2c: E2 08 00 41 6F 80 13 00 00 00 00 00 00 2C [05:36:55]Write i2c OK [05:36:55]MH_I2C_Read... [05:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:55]Read from MH i2c: E2 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 62 00 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 62 00 41 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 78 00 00 0E 04 04 00 74 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 8D [05:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 78 00 00 0E 04 04 00 74 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 [05:36:55]wFMCommunicate OK [05:36:55]SAM_PROTO_GetFieldsCounters done [05:36:55]requested_item shift.num is exist - process it [05:36:55]requested_item shift.opened is exist - process it [05:36:55]req_shift_opened [05:36:55]FM_GetShiftState [05:36:55]SAM_PROTO_GetShiftState [05:36:55]wFMCommunicate request_size=4 [05:36:55]MH_SAM_APDU [05:36:55]CAPDU: 80 13 01 00 [05:36:55]Write to MH i2c: E2 08 00 42 6F 80 13 01 00 00 00 00 00 2E [05:36:55]Write i2c OK [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 [05:36:55]MH_I2C_Read... [05:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:55]Read from MH i2c: E2 0E 00 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: E2 0E 00 42 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 08 [05:36:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:36:55]wFMCommunicate OK [05:36:55]SAM_PROTO_GetShiftState done [05:36:55]FM_GetShiftState done [05:36:55]req_shift_opened done [05:36:55]requested_item shift.open_date is exist - process it [05:36:55]req_shift_open_date [05:36:55]req_shift_open_date done [05:36:55]produce_requested_data done [05:36:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30775,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [05:36:55]process_action_free close_receipt [05:36:55]json_value_free [05:36:55]json_value_free done [05:36:55]process_json_proto returns [05:36:55]Send response to host [05:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30775,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [05:36:55]free response buf [05:36:55]execute_script done [05:36:55]execute_script returns [05:36:55]free content buf [05:36:55]Sock 9.Close socket [05:36:55]Sock 9.Thread stoped [05:36:58]ConnectInit Can't take IP for lk.salyk.kg [05:36:58]CommunicateWithHost connect error [05:36:58]CommunicateWithHost err = -1 [05:36:58]OFD Sender: Server communicate error [05:37:03]OFD Sender: Processing packet 30775 [packets to send 10, broken 9] [05:37:03]ProducePacketName [05:37:03]name=ofd_packets/00030775 [05:37:03]OFD Sender: To server: pG, [05:37:03]CommunicateWithHost lk.salyk.kg:30040 [05:37:03]ConnectInit lk.salyk.kg [05:37:06]recv_with_timeout no data received [05:37:08]ConnectInit Can't take IP for lk.salyk.kg [05:37:08]CommunicateWithHost connect error [05:37:08]CommunicateWithHost err = -1 [05:37:08]OFD Sender: Server communicate error [05:37:13]OFD Sender: Processing packet 30775 [packets to send 10, broken 9] [05:37:13]ProducePacketName [05:37:13]name=ofd_packets/00030775 [05:37:13]OFD Sender: To server: pG, [05:37:13]CommunicateWithHost lk.salyk.kg:30040 [05:37:13]ConnectInit lk.salyk.kg [05:37:18]ConnectInit Can't take IP for lk.salyk.kg [05:37:18]CommunicateWithHost connect error [05:37:18]CommunicateWithHost err = -1 [05:37:18]OFD Sender: Server communicate error [05:37:23]OFD Sender: Processing packet 30775 [packets to send 10, broken 9] [05:37:23]ProducePacketName [05:37:23]name=ofd_packets/00030775 [05:37:23]OFD Sender: To server: pG, [05:37:23]CommunicateWithHost lk.salyk.kg:30040 [05:37:23]ConnectInit lk.salyk.kg [05:37:23]Connected sock=9 [05:37:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A9 4C 0D 01 8D 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FC 39 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 78 00 00 35 04 06 00 02 4A BF 73 06 17 5B 22 ED FF E9 4A 3C DE [05:37:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3F D1 47 00 58 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 78 00 00 F4 03 04 00 99 E4 16 67 B6 04 01 00 00 AC 91 69 31 A5 CD 01 97 [05:37:24]CommunicateWithHost err = 0 [05:37:24]CheckOFDResponse [05:37:24]1017 (14) - 77093643461234 [05:37:24]1041 (16) - 0000000002094219 [05:37:24]1040 (4) - 30775 [05:37:24]1012 (4) - 21.10.2024 23:32 [05:37:24]1206 (1) - 0 [05:37:24]OFD Sender: Remove packet 30775 [05:37:24]ProducePacketName [05:37:24]name=ofd_packets/00030775 [05:37:24]NVStorageDeleteData [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]accept exits with 7 [05:45:19]New connection [05:45:19]New thread 3067489636 created [05:45:19]Thread 3067346276 joined [05:45:19]Waiting for new connection... [05:45:19] Sock 7.Parse request [05:45:19]Sock 7.Check first char [05:45:19]Sock 7.First char is OK [05:45:19]request: POST /json_proto HTTP/1.0 [05:45:19]Method: POST [05:45:19]URL: /json_proto [05:45:19]Method is POST - this is cgi request [05:45:19]url: /json_proto [05:45:19]query_string will be loaded in cgi processing [05:45:19]execute_cgi json_proto POST (null) [05:45:19]execute_cgi path=json_proto method=POST [05:45:19]POST find Content-Length [05:45:19]Host: 172.17.51.3:8080 [05:45:19]Content-Length: 679 [05:45:19]Content-Type: application/json [05:45:19] [05:45:19]POST finish read [05:45:19]Found Content-Length = 679 [05:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:19]execute_script... [05:45: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)343193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:19]POST & json_proto [05:45:19]process_json_proto [05:45:19]json parsed OK: [05:45:19]protocol is kg_v1.0 [05:45:19]action value=close_receipt [05:45:19]process_action close_receipt [05:45:19]cmd_close_receipt [05:45:19]MH_GetDate [05:45:19]Write to MH i2c: F0 00 00 43 6F A1 [05:45:19]Write i2c OK [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 09 00 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 09 00 43 6F 00 F8 3B 17 67 04 C1 95 66 1B [05:45:19]GetLastDocTimeStamp 1729575420 [05:45:19]current date 1729575928 [05:45:19]FM_GetShiftState [05:45:19]SAM_PROTO_GetShiftState [05:45:19]wFMCommunicate request_size=4 [05:45:19]MH_SAM_APDU [05:45:19]CAPDU: 80 13 01 00 [05:45:19]Write to MH i2c: E2 08 00 44 6F 80 13 01 00 00 00 00 00 30 [05:45:19]Write i2c OK [05:45:19]MH_I2C_Read... [05:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:19]Read from MH i2c: E2 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: E2 0E 00 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: E2 0E 00 44 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0A [05:45:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:45:19]wFMCommunicate OK [05:45:19]SAM_PROTO_GetShiftState done [05:45:19]FM_GetShiftState done [05:45:19]opened in 1729557342 [05:45:19]opened+sec_in_day 1729643742 [05:45:19]quantity*price = 100050 [05:45:19]sum+1 = 100052 [05:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 9 22.10.2024 05:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30776 ФПД: 4449361753092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30776&fm=4449361753092&tin=02508201610067®Number=0000000000186857&sum=100000 [05:45:21]StoreToDocumentArchive [05:45:21]shift 116 fd 30776 [05:45:21]save to /storage/0116/doc_00030776 [05:45:21]save last doc name /storage/0116/doc_00030776 to /storage/kkm_last_doc_name [05:45:21]save OK [05:45:21]Clear old archive folders... [05:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:45:21]tlvbuf is 01EEA860 [05:45:21]SAM_PROTO_ClearQueue [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 09 00 00 [05:45:21]Write to MH i2c: E2 08 00 51 6F 80 09 00 00 00 00 00 00 32 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 51 6F 00 90 00 34 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]SAM_PROTO_ClearQueue done [05:45:21]KKMCreateOFDPacket [05:45:21]OFDProtocolAddRootSTLVToBuf [05:45:21]FM_MakeSignedData [05:45:21]FM_MakeSignedData [05:45:21]SAM_PROTO_SignData [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 0D 01 02 [05:45:21]Write to MH i2c: E2 08 00 52 6F 80 0D 01 02 00 00 00 00 3A [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 52 6F 00 90 00 35 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]wFMCommunicate request_size=255 [05:45:21]MH_SAM_APDU [05:45: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 3B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 78 00 00 35 04 06 00 04 0B F2 A0 [05:45:21]Write to MH i2c: E2 02 01 53 6F 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 3B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 78 00 00 35 04 06 00 04 0B F2 A0 00 00 40 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 53 6F 00 90 00 36 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]wFMCommunicate request_size=7 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 0D 02 02 02 74 04 [05:45:21]Write to MH i2c: E2 0A 00 54 6F 80 0D 02 02 02 00 74 04 00 00 B9 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 54 6F 00 90 00 37 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 0D 03 02 [05:45:21]Write to MH i2c: E2 08 00 55 6F 80 0D 03 02 00 00 00 00 3F [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 0B 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 0B 00 55 6F 00 91 EE 3F 49 AF D7 6E 27 90 00 62 [05:45:21]RAPDU: 91 EE 3F 49 AF D7 6E 27 90 00 [05:45:21]wFMCommunicate OK [05:45:21]SAM_PROTO_SignData done [05:45:21]FM_MakeSignedData done [05:45:21]CreateOFDProtocolMessage [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 11 00 00 [05:45:21]Write to MH i2c: E2 08 00 56 6F 80 11 00 00 00 00 00 00 3F [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 17 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 17 00 56 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [05:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:45:21]wFMCommunicate OK [05:45:21]CreateOFDProtocolMessage done [05:45:21]OFDSenderStorePacket 30776 [05:45:21]StoreOFDPacket docnum=30776 [05:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 DB 9C 04 01 8B 76 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 3B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 78 00 00 35 04 06 00 04 0B F2 A0 74 04 91 EE 3F 49 AF D7 6E 27 [05:45:21]CheckFolder [05:45:21]dirname=/storage/ofd_packets [05:45:21]CheckFolder done [05:45:21]ProducePacketName [05:45:21]name=ofd_packets/00030776 [05:45:21]NVStorageSaveData ofd_packets/00030776 [05:45:21]File name is /storage/ofd_packets/00030776 [05:45:21]Write 298 bytes [05:45:21]NVStorageSaveData done [05:45:21]OFDSenderStorePacket done [05:45:21]KKMCreateOFDPacket done [05:45:21]NVStorageSaveData kkm_last_timestamp [05:45:21]File name is /storage/kkm_last_timestamp [05:45:21]Write 4 bytes [05:45:21]NVStorageSaveData done [05:45:21]ExternCall_PrintAddStr [05:45:21]wPrintStart [05:45:21]Write to MH i2c: 01 00 00 57 6F C6 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 07 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 07 00 57 6F 00 00 00 00 00 FF 0F DB [05:45:21]RasterBufferAndPrint [05:45:21]line Счет N : (1)343193 [05:45:21]line ИНН: 02508201610067 [05:45:21]line Контрольно-Кассовый Чек [05:45:21]line ПРОДАЖА [05:45:21]line ТРК (МРК, ГНК) : 34 [05:45:21]line Товар: 2710194210 [05:45:21]line ДТ-К-2 [05:45:21]line 13.130 * 76.20 [05:45:21]line = 1000.51 [05:45:21]line НДС 12% НСП 1% [05:45:21]line > о реализуемом товаре [05:45:21]line ОКРУГЛЕНИЕ: -0.51 [05:45:21]line ИТОГО: 1000.00 [05:45:21]line Внесено: 1000.00 [05:45:21]line СДАЧА: 0.00 [05:45:21]line НСП 1% : 8.85 [05:45:21]line НДС 12% : 106.25 [05:45:21]line Наличными: 1000.00 [05:45:21]line Безнал.: 0.00 [05:45:21]line Место: АЗС № 78 "Партнер Нефть" [05:45:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:45:21]line СНО: Общий режим [05:45:21]line Чек 9 22.10.2024 05:45 [05:45:21]line Смена: 116 ФФД: 1.0 [05:45:21]line ЗНМ: 0300000137 [05:45:21]line РНМ: 0000000000186857 [05:45:21]line Версия ККМ: v1.0 [05:45:21]line ФМ: 0000000002094219 [05:45:21]line ФД: 30776 [05:45:21]line ФПД: 4449361753092 [05:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30776&fm=4449361753092&tin=02508201610067®Number=0000000000186857&sum=100000 [05:45:21]OFD Sender: Processing packet 30776 [packets to send 10, broken 9] [05:45:21]ProducePacketName [05:45:21]name=ofd_packets/00030776 [05:45:21]OFD Sender: To server: pG, [05:45:21]CommunicateWithHost lk.salyk.kg:30040 [05:45:21]ConnectInit lk.salyk.kg [05:45:21]written 0, free lines is 4095 [05:45:22]Connected sock=10 [05:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 DB 9C 04 01 8B 76 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 3B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 78 00 00 35 04 06 00 04 0B F2 A0 74 04 91 EE 3F 49 AF D7 6E 27 [05:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DF D5 47 00 C5 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 32 30 39 34 32 31 39 10 04 04 00 38 78 00 00 F4 03 04 00 77 E6 16 67 B6 04 01 00 00 2C 0A 5A B7 95 47 9D 17 [05:45:22]CommunicateWithHost err = 0 [05:45:22]CheckOFDResponse [05:45:22]1017 (14) - 77093643461234 [05:45:22]1041 (16) - 0000000002094219 [05:45:22]1040 (4) - 30776 [05:45:22]1012 (4) - 21.10.2024 23:40 [05:45:22]1206 (1) - 0 [05:45:22]OFD Sender: Remove packet 30776 [05:45:22]ProducePacketName [05:45:22]name=ofd_packets/00030776 [05:45:22]NVStorageDeleteData [05:45:22]Write to MH i2c: 01 00 00 82 6F F1 [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 07 00 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 07 00 82 6F 00 00 00 00 00 E4 0C E8 [05:45:22]RasterBufferAndPrint [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]written 0, free lines is 3306 [05:45:22]MH_Cut [05:45:22]Write to MH i2c: D1 01 00 89 6F 01 CA [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 01 00 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 01 00 89 6F 00 C9 [05:45:22]Write to MH i2c: 01 00 00 8A 6F F9 [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]OFD Sender: No OFD packet to send [05:45:23]*** Cut start [05:45:23]*** Partial cut [05:45:23]*** CUTSNS_PIN = 1 [05:45:23]*** CUTSNS_PIN = 0 [05:45:23]*** Brake cut motor [05:45:23]Read from MH i2c: 01 [05:45:23]MH_I2C_Read... [05:45:23]*** Stop cut motor [05:45:23]*** Cut end [05:45:23]Read from MH i2c: 01 07 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: 01 07 00 8A 6F 00 00 00 00 00 FF 0F 0E [05:45:23]process_action close_receipt done [05:45:23]requested_data is exist [05:45:23]produce_requested_data [05:45:23]requested_item fm.sn is exist - process it [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 11 00 00 [05:45:23]Write to MH i2c: E2 08 00 8B 6F 80 11 00 00 00 00 00 00 74 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 17 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 17 00 8B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [05:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:45:23]wFMCommunicate OK [05:45:23]requested_item fd.num is exist - process it [05:45:23]SAM_PROTO_GetFieldsCounters [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 13 00 00 [05:45:23]Write to MH i2c: E2 08 00 8C 6F 80 13 00 00 00 00 00 00 77 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 62 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 62 00 8C 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 78 00 00 0E 04 04 00 74 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 DC [05:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 78 00 00 0E 04 04 00 74 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 [05:45:23]wFMCommunicate OK [05:45:23]SAM_PROTO_GetFieldsCounters done [05:45:23]requested_item shift.num is exist - process it [05:45:23]requested_item shift.opened is exist - process it [05:45:23]req_shift_opened [05:45:23]FM_GetShiftState [05:45:23]SAM_PROTO_GetShiftState [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 13 01 00 [05:45:23]Write to MH i2c: E2 08 00 8D 6F 80 13 01 00 00 00 00 00 79 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 8D 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 53 [05:45:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [05:45:23]wFMCommunicate OK [05:45:23]SAM_PROTO_GetShiftState done [05:45:23]FM_GetShiftState done [05:45:23]req_shift_opened done [05:45:23]requested_item shift.open_date is exist - process it [05:45:23]req_shift_open_date [05:45:23]req_shift_open_date done [05:45:23]produce_requested_data done [05:45:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30776,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [05:45:23]process_action_free close_receipt [05:45:23]json_value_free [05:45:23]json_value_free done [05:45:23]process_json_proto returns [05:45:23]Send response to host [05:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30776,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [05:45:23]free response buf [05:45:23]execute_script done [05:45:23]execute_script returns [05:45:23]free content buf [05:45:23]Sock 7.Close socket [05:45:23]Sock 7.Thread stoped [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50: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:10]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:57:59]recv_with_timeout no data received [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:59:25]ConnectInit Can't connect to host [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:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:00]recv_with_timeout no data received [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:17]recv_with_timeout no data received [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]recv_with_timeout no data received [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11: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:54]recv_with_timeout no data received [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:14]recv_with_timeout no data received [06:17:19]OFD Sender: No OFD packet to send [06:17:20]accept exits with 9 [06:17:20]New connection [06:17:20]New thread 3067346276 created [06:17:20]Thread 3067489636 joined [06:17:20]Waiting for new connection... [06:17:20] Sock 9.Parse request [06:17:20]Sock 9.Check first char [06:17:20]Sock 9.First char is OK [06:17:20]request: POST /json_proto HTTP/1.0 [06:17:20]Method: POST [06:17:20]URL: /json_proto [06:17:20]Method is POST - this is cgi request [06:17:20]url: /json_proto [06:17:20]query_string will be loaded in cgi processing [06:17:20]execute_cgi json_proto POST (null) [06:17:20]execute_cgi path=json_proto method=POST [06:17:20]POST find Content-Length [06:17:20]Host: 172.17.51.3:8080 [06:17:20]Content-Length: 679 [06:17:20]Content-Type: application/json [06:17:20] [06:17:20]POST finish read [06:17:20]Found Content-Length = 679 [06:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 34.940, "sum" : 2662.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2662.00, "payments": [ { "type": 0, "sum" : 2662.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:20]execute_script... [06:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 34.940, "sum" : 2662.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2662.00, "payments": [ { "type": 0, "sum" : 2662.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:20]POST & json_proto [06:17:20]process_json_proto [06:17:20]json parsed OK: [06:17:20]protocol is kg_v1.0 [06:17:20]action value=close_receipt [06:17:20]process_action close_receipt [06:17:20]cmd_close_receipt [06:17:20]MH_GetDate [06:17:20]Write to MH i2c: F0 00 00 8E 6F EC [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 09 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 09 00 8E 6F 00 79 43 17 67 04 C1 95 66 EF [06:17:20]GetLastDocTimeStamp 1729575928 [06:17:20]current date 1729577849 [06:17:20]FM_GetShiftState [06:17:20]SAM_PROTO_GetShiftState [06:17:20]wFMCommunicate request_size=4 [06:17:20]MH_SAM_APDU [06:17:20]CAPDU: 80 13 01 00 [06:17:20]Write to MH i2c: E2 08 00 8F 6F 80 13 01 00 00 00 00 00 7B [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:20]Read from MH i2c: E2 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 8F 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 55 [06:17:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:17:20]wFMCommunicate OK [06:17:20]SAM_PROTO_GetShiftState done [06:17:20]FM_GetShiftState done [06:17:20]opened in 1729557342 [06:17:20]opened+sec_in_day 1729643742 [06:17:20]quantity*price = 266242 [06:17:20]sum+1 = 266244 [06:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2662.00 Внесено: 3000.00 СДАЧА: 338.00 НСП 1% : 23.56 НДС 12% : 282.74 Наличными: 2662.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 10 22.10.2024 06:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30777 ФПД: 72820948827641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061729&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30777&fm=72820948827641&tin=02508201610067®Number=0000000000186857&sum=266200 [06:17:21]StoreToDocumentArchive [06:17:21]shift 116 fd 30777 [06:17:21]save to /storage/0116/doc_00030777 [06:17:21]save last doc name /storage/0116/doc_00030777 to /storage/kkm_last_doc_name [06:17:21]save OK [06:17:21]Clear old archive folders... [06:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:17:21]tlvbuf is 0201E870 [06:17:21]SAM_PROTO_ClearQueue [06:17:21]wFMCommunicate request_size=4 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 09 00 00 [06:17:21]Write to MH i2c: E2 08 00 9C 6F 80 09 00 00 00 00 00 00 7D [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 9C 6F 00 90 00 7F [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]SAM_PROTO_ClearQueue done [06:17:21]KKMCreateOFDPacket [06:17:21]OFDProtocolAddRootSTLVToBuf [06:17:21]FM_MakeSignedData [06:17:21]FM_MakeSignedData [06:17:21]SAM_PROTO_SignData [06:17:21]wFMCommunicate request_size=4 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 0D 01 02 [06:17:21]Write to MH i2c: E2 08 00 9D 6F 80 0D 01 02 00 00 00 00 85 [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 9D 6F 00 90 00 80 [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]wFMCommunicate request_size=255 [06:17:21]MH_SAM_APDU [06:17: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 32 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 10 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 6E 00 00 00 00 07 04 06 00 D8 0F 04 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 79 43 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 78 00 00 35 04 06 00 42 3A F2 C9 [06:17:21]Write to MH i2c: E2 02 01 9E 6F 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 32 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 10 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 6E 00 00 00 00 07 04 06 00 D8 0F 04 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 79 43 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 78 00 00 35 04 06 00 42 3A F2 C9 00 00 73 [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 03 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 03 00 9E 6F 00 90 00 81 [06:17:22]RAPDU: 90 00 [06:17:22]wFMCommunicate OK [06:17:22]wFMCommunicate request_size=7 [06:17:22]MH_SAM_APDU [06:17:22]CAPDU: 80 0D 02 02 02 7D F9 [06:17:22]Write to MH i2c: E2 0A 00 9F 6F 80 0D 02 02 02 00 7D F9 00 00 02 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 03 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 03 00 9F 6F 00 90 00 82 [06:17:22]RAPDU: 90 00 [06:17:22]wFMCommunicate OK [06:17:22]wFMCommunicate request_size=4 [06:17:22]MH_SAM_APDU [06:17:22]CAPDU: 80 0D 03 02 [06:17:22]Write to MH i2c: E2 08 00 A0 6F 80 0D 03 02 00 00 00 00 8A [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0B 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0B 00 A0 6F 00 83 BA DA CA EE 39 C8 79 90 00 D4 [06:17:22]RAPDU: 83 BA DA CA EE 39 C8 79 90 00 [06:17:22]wFMCommunicate OK [06:17:22]SAM_PROTO_SignData done [06:17:22]FM_MakeSignedData done [06:17:22]CreateOFDProtocolMessage [06:17:22]wFMCommunicate request_size=4 [06:17:22]MH_SAM_APDU [06:17:22]CAPDU: 80 11 00 00 [06:17:22]Write to MH i2c: E2 08 00 A1 6F 80 11 00 00 00 00 00 00 8A [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 17 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 17 00 A1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D8 [06:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:17:22]wFMCommunicate OK [06:17:22]CreateOFDProtocolMessage done [06:17:22]OFDSenderStorePacket 30777 [06:17:22]StoreOFDPacket docnum=30777 [06:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 93 04 01 52 73 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 32 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 10 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 6E 00 00 00 00 07 04 06 00 D8 0F 04 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 79 43 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 78 00 00 35 04 06 00 42 3A F2 C9 7D F9 83 BA DA CA EE 39 C8 79 [06:17:22]CheckFolder [06:17:22]dirname=/storage/ofd_packets [06:17:22]CheckFolder done [06:17:22]ProducePacketName [06:17:22]name=ofd_packets/00030777 [06:17:22]NVStorageSaveData ofd_packets/00030777 [06:17:22]File name is /storage/ofd_packets/00030777 [06:17:22]Write 298 bytes [06:17:22]NVStorageSaveData done [06:17:22]OFDSenderStorePacket done [06:17:22]KKMCreateOFDPacket done [06:17:22]NVStorageSaveData kkm_last_timestamp [06:17:22]File name is /storage/kkm_last_timestamp [06:17:22]Write 4 bytes [06:17:22]NVStorageSaveData done [06:17:22]ExternCall_PrintAddStr [06:17:22]wPrintStart [06:17:22]Write to MH i2c: 01 00 00 A2 6F 11 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 A2 6F 00 00 00 00 00 FF 0F 26 [06:17:22]RasterBufferAndPrint [06:17:22]line Счет N : (1)343194 [06:17:22]line ИНН: 02508201610067 [06:17:22]line Контрольно-Кассовый Чек [06:17:22]line ПРОДАЖА [06:17:22]line ТРК (МРК, ГНК) : 44 [06:17:22]line Товар: 2710194210 [06:17:22]line ДТ-К-2 [06:17:22]line 34.940 * 76.20 [06:17:22]line = 2662.43 [06:17:22]line НДС 12% НСП 1% [06:17:22]line > о реализуемом товаре [06:17:22]line ОКРУГЛЕНИЕ: -0.43 [06:17:22]line ИТОГО: 2662.00 [06:17:22]line Внесено: 3000.00 [06:17:22]line СДАЧА: 338.00 [06:17:22]line НСП 1% : 23.56 [06:17:22]line НДС 12% : 282.74 [06:17:22]line Наличными: 2662.00 [06:17:22]line Безнал.: 0.00 [06:17:22]line Место: АЗС № 78 "Партнер Нефть" [06:17:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:17:22]line СНО: Общий режим [06:17:22]line Чек 10 22.10.2024 06:17 [06:17:22]line Смена: 116 ФФД: 1.0 [06:17:22]line ЗНМ: 0300000137 [06:17:22]line РНМ: 0000000000186857 [06:17:22]line Версия ККМ: v1.0 [06:17:22]line ФМ: 0000000002094219 [06:17:22]line ФД: 30777 [06:17:22]line ФПД: 72820948827641 [06:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061729&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30777&fm=72820948827641&tin=02508201610067®Number=0000000000186857&sum=266200 [06:17:22]OFD Sender: Processing packet 30777 [packets to send 10, broken 9] [06:17:22]ProducePacketName [06:17:22]name=ofd_packets/00030777 [06:17:22]OFD Sender: To server: pG, [06:17:22]CommunicateWithHost lk.salyk.kg:30040 [06:17:22]ConnectInit lk.salyk.kg [06:17:22]written 0, free lines is 4095 [06:17:22]Write to MH i2c: 01 00 00 CD 6F 3C [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 CD 6F 00 00 00 00 00 F2 0C 41 [06:17:22]RasterBufferAndPrint [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]written 0, free lines is 3320 [06:17:22]MH_Cut [06:17:22]Write to MH i2c: D1 01 00 D4 6F 01 15 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 01 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 01 00 D4 6F 00 14 [06:17:22]Write to MH i2c: 01 00 00 D5 6F 44 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:23]*** Cut start [06:17:23]*** Partial cut [06:17:23]*** CUTSNS_PIN = 1 [06:17:23]*** CUTSNS_PIN = 0 [06:17:23]*** Brake cut motor [06:17:24]Read from MH i2c: 01 [06:17:24]MH_I2C_Read... [06:17:24]*** Stop cut motor [06:17:24]*** Cut end [06:17:24]Read from MH i2c: 01 07 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: 01 07 00 D5 6F 00 00 00 00 00 FF 0F 59 [06:17:24]process_action close_receipt done [06:17:24]requested_data is exist [06:17:24]produce_requested_data [06:17:24]requested_item fm.sn is exist - process it [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 11 00 00 [06:17:24]Write to MH i2c: E2 08 00 D6 6F 80 11 00 00 00 00 00 00 BF [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 D6 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [06:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:17:24]wFMCommunicate OK [06:17:24]requested_item fd.num is exist - process it [06:17:24]SAM_PROTO_GetFieldsCounters [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 13 00 00 [06:17:24]Write to MH i2c: E2 08 00 D7 6F 80 13 00 00 00 00 00 00 C2 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 62 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 62 00 D7 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 78 00 00 0E 04 04 00 74 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 2B [06:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 78 00 00 0E 04 04 00 74 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 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_GetFieldsCounters done [06:17:24]requested_item shift.num is exist - process it [06:17:24]requested_item shift.opened is exist - process it [06:17:24]req_shift_opened [06:17:24]FM_GetShiftState [06:17:24]SAM_PROTO_GetShiftState [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 13 01 00 [06:17:24]Write to MH i2c: E2 08 00 D8 6F 80 13 01 00 00 00 00 00 C4 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0E 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0E 00 D8 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9E [06:17:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_GetShiftState done [06:17:24]FM_GetShiftState done [06:17:24]req_shift_opened done [06:17:24]requested_item shift.open_date is exist - process it [06:17:24]req_shift_open_date [06:17:24]req_shift_open_date done [06:17:24]produce_requested_data done [06:17:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30777,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [06:17:24]process_action_free close_receipt [06:17:24]json_value_free [06:17:24]json_value_free done [06:17:24]process_json_proto returns [06:17:24]Send response to host [06:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30777,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [06:17:24]free response buf [06:17:24]execute_script done [06:17:24]execute_script returns [06:17:24]free content buf [06:17:24]Sock 9.Close socket [06:17:24]Sock 9.Thread stoped [06:17:27]ConnectInit Can't take IP for lk.salyk.kg [06:17:27]CommunicateWithHost connect error [06:17:27]CommunicateWithHost err = -1 [06:17:27]OFD Sender: Server communicate error [06:17:32]OFD Sender: Processing packet 30777 [packets to send 10, broken 9] [06:17:32]ProducePacketName [06:17:32]name=ofd_packets/00030777 [06:17:32]OFD Sender: To server: pG, [06:17:32]CommunicateWithHost lk.salyk.kg:30040 [06:17:32]ConnectInit lk.salyk.kg [06:17:34]recv_with_timeout no data received [06:17:51]Connected sock=9 [06:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 93 04 01 52 73 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 32 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 10 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 6E 00 00 00 00 07 04 06 00 D8 0F 04 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 79 43 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 78 00 00 35 04 06 00 42 3A F2 C9 7D F9 83 BA DA CA EE 39 C8 79 [06:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D A0 47 00 FC 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 78 00 00 F4 03 04 00 14 EE 16 67 B6 04 01 00 00 E1 C5 34 A7 9A AC F4 0A [06:17:51]CommunicateWithHost err = 0 [06:17:51]CheckOFDResponse [06:17:51]1017 (14) - 77093643461234 [06:17:51]1041 (16) - 0000000002094219 [06:17:51]1040 (4) - 30777 [06:17:51]1012 (4) - 22.10.2024 00:13 [06:17:51]1206 (1) - 0 [06:17:51]OFD Sender: Remove packet 30777 [06:17:51]ProducePacketName [06:17:51]name=ofd_packets/00030777 [06:17:51]NVStorageDeleteData [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:16]recv_with_timeout no data received [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:33]recv_with_timeout no data received [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:52]recv_with_timeout no data received [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:26:58]accept exits with 10 [06:26:58]New connection [06:26:58]New thread 3067489636 created [06:26:58]Thread 3067346276 joined [06:26:58]Waiting for new connection... [06:26:58] Sock 10.Parse request [06:26:58]Sock 10.Check first char [06:26:58]Sock 10.First char is OK [06:26:58]request: POST /json_proto HTTP/1.0 [06:26:58]Method: POST [06:26:58]URL: /json_proto [06:26:58]Method is POST - this is cgi request [06:26:58]url: /json_proto [06:26:58]query_string will be loaded in cgi processing [06:26:58]execute_cgi json_proto POST (null) [06:26:58]execute_cgi path=json_proto method=POST [06:26:58]POST find Content-Length [06:26:58]Host: 172.17.51.3:8080 [06:26:58]Content-Length: 677 [06:26:58]Content-Type: application/json [06:26:58] [06:26:58]POST finish read [06:26:58]Found Content-Length = 677 [06:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:58]execute_script... [06:26: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)343195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:58]POST & json_proto [06:26:58]process_json_proto [06:26:58]json parsed OK: [06:26:58]protocol is kg_v1.0 [06:26:58]action value=close_receipt [06:26:58]process_action close_receipt [06:26:58]cmd_close_receipt [06:26:58]MH_GetDate [06:26:58]Write to MH i2c: F0 00 00 D9 6F 37 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: F0 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: F0 09 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: F0 09 00 D9 6F 00 BB 45 17 67 04 C1 95 66 7E [06:26:58]GetLastDocTimeStamp 1729577849 [06:26:58]current date 1729578427 [06:26:58]FM_GetShiftState [06:26:58]SAM_PROTO_GetShiftState [06:26:58]wFMCommunicate request_size=4 [06:26:58]MH_SAM_APDU [06:26:58]CAPDU: 80 13 01 00 [06:26:58]Write to MH i2c: E2 08 00 DA 6F 80 13 01 00 00 00 00 00 C6 [06:26:58]Write i2c OK [06:26:58]MH_I2C_Read... [06:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:58]Read from MH i2c: E2 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 0E 00 [06:26:58]MH_I2C_Read... [06:26:58]Read from MH i2c: E2 0E 00 DA 6F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A0 [06:26:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:26:58]wFMCommunicate OK [06:26:58]SAM_PROTO_GetShiftState done [06:26:58]FM_GetShiftState done [06:26:58]opened in 1729557342 [06:26:58]opened+sec_in_day 1729643742 [06:26:58]quantity*price = 40006 [06:26:58]sum+1 = 40007 [06:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 11 22.10.2024 06:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30778 ФПД: 195473332361542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30778&fm=195473332361542&tin=02508201610067®Number=0000000000186857&sum=40000 [06:26:59]StoreToDocumentArchive [06:26:59]shift 116 fd 30778 [06:26:59]save to /storage/0116/doc_00030778 [06:26:59]save last doc name /storage/0116/doc_00030778 to /storage/kkm_last_doc_name [06:26:59]save OK [06:26:59]Clear old archive folders... [06:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:59]tlvbuf is 01E2B1E0 [06:26:59]SAM_PROTO_ClearQueue [06:26:59]wFMCommunicate request_size=4 [06:26:59]MH_SAM_APDU [06:26:59]CAPDU: 80 09 00 00 [06:26:59]Write to MH i2c: E2 08 00 E7 6F 80 09 00 00 00 00 00 00 C8 [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:59]Read from MH i2c: E2 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 03 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 03 00 E7 6F 00 90 00 CA [06:26:59]RAPDU: 90 00 [06:26:59]wFMCommunicate OK [06:26:59]SAM_PROTO_ClearQueue done [06:26:59]KKMCreateOFDPacket [06:26:59]OFDProtocolAddRootSTLVToBuf [06:26:59]FM_MakeSignedData [06:26:59]FM_MakeSignedData [06:26:59]SAM_PROTO_SignData [06:26:59]wFMCommunicate request_size=4 [06:26:59]MH_SAM_APDU [06:26:59]CAPDU: 80 0D 01 02 [06:26:59]Write to MH i2c: E2 08 00 E8 6F 80 0D 01 02 00 00 00 00 D0 [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:59]Read from MH i2c: E2 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 03 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 03 00 E8 6F 00 90 00 CB [06:26:59]RAPDU: 90 00 [06:26:59]wFMCommunicate OK [06:26:59]wFMCommunicate request_size=255 [06:26:59]MH_SAM_APDU [06:26: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 45 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 78 00 00 35 04 06 00 B1 [06:26:59]Write to MH i2c: E2 02 01 E9 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 45 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 78 00 00 35 04 06 00 B1 00 00 90 [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 E9 6F 00 90 00 CC [06:27:00]RAPDU: 90 00 [06:27:00]wFMCommunicate OK [06:27:00]wFMCommunicate request_size=10 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 0D 02 02 05 C8 2E 89 D9 46 [06:27:00]Write to MH i2c: E2 0D 00 EA 6F 80 0D 02 02 05 00 C8 2E 89 D9 46 00 00 7B [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 EA 6F 00 90 00 CD [06:27:00]RAPDU: 90 00 [06:27:00]wFMCommunicate OK [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 0D 03 02 [06:27:00]Write to MH i2c: E2 08 00 EB 6F 80 0D 03 02 00 00 00 00 D5 [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 0B 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 0B 00 EB 6F 00 FB 26 D5 FD 48 28 8C 0C 90 00 D1 [06:27:00]RAPDU: FB 26 D5 FD 48 28 8C 0C 90 00 [06:27:00]wFMCommunicate OK [06:27:00]SAM_PROTO_SignData done [06:27:00]FM_MakeSignedData done [06:27:00]CreateOFDProtocolMessage [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 11 00 00 [06:27:00]Write to MH i2c: E2 08 00 EC 6F 80 11 00 00 00 00 00 00 D5 [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 17 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 17 00 EC 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [06:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:27:00]wFMCommunicate OK [06:27:00]CreateOFDProtocolMessage done [06:27:00]OFDSenderStorePacket 30778 [06:27:00]StoreOFDPacket docnum=30778 [06:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA F1 07 01 A4 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 45 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 78 00 00 35 04 06 00 B1 C8 2E 89 D9 46 FB 26 D5 FD 48 28 8C 0C [06:27:00]CheckFolder [06:27:00]dirname=/storage/ofd_packets [06:27:00]CheckFolder done [06:27:00]ProducePacketName [06:27:00]name=ofd_packets/00030778 [06:27:00]NVStorageSaveData ofd_packets/00030778 [06:27:00]File name is /storage/ofd_packets/00030778 [06:27:00]Write 301 bytes [06:27:00]NVStorageSaveData done [06:27:00]OFDSenderStorePacket done [06:27:00]KKMCreateOFDPacket done [06:27:00]NVStorageSaveData kkm_last_timestamp [06:27:00]File name is /storage/kkm_last_timestamp [06:27:00]Write 4 bytes [06:27:00]NVStorageSaveData done [06:27:00]ExternCall_PrintAddStr [06:27:00]wPrintStart [06:27:00]Write to MH i2c: 01 00 00 ED 6F 5C [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: 01 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: 01 07 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: 01 07 00 ED 6F 00 00 00 00 00 FF 0F 71 [06:27:00]RasterBufferAndPrint [06:27:00]line Счет N : (1)343195 [06:27:00]line ИНН: 02508201610067 [06:27:00]line Контрольно-Кассовый Чек [06:27:00]line ПРОДАЖА [06:27:00]line ТРК (МРК, ГНК) : 53 [06:27:00]line Товар: 2710124130 [06:27:00]line Аи-92-К-2 [06:27:00]line 5.980 * 66.90 [06:27:00]line = 400.06 [06:27:00]line НДС 12% НСП 1% [06:27:00]line > о реализуемом товаре [06:27:00]line ОКРУГЛЕНИЕ: -0.06 [06:27:00]line ИТОГО: 400.00 [06:27:00]line Внесено: 400.00 [06:27:00]line СДАЧА: 0.00 [06:27:00]line НСП 1% : 3.54 [06:27:00]line НДС 12% : 42.48 [06:27:00]line Наличными: 400.00 [06:27:00]line Безнал.: 0.00 [06:27:00]line Место: АЗС № 78 "Партнер Нефть" [06:27:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:27:00]line СНО: Общий режим [06:27:00]line Чек 11 22.10.2024 06:27 [06:27:00]line Смена: 116 ФФД: 1.0 [06:27:00]line ЗНМ: 0300000137 [06:27:00]line РНМ: 0000000000186857 [06:27:00]line Версия ККМ: v1.0 [06:27:00]line ФМ: 0000000002094219 [06:27:00]line ФД: 30778 [06:27:00]line ФПД: 195473332361542 [06:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30778&fm=195473332361542&tin=02508201610067®Number=0000000000186857&sum=40000 [06:27:00]OFD Sender: Processing packet 30778 [packets to send 10, broken 9] [06:27:00]ProducePacketName [06:27:00]name=ofd_packets/00030778 [06:27:00]OFD Sender: To server: pG, [06:27:00]CommunicateWithHost lk.salyk.kg:30040 [06:27:00]ConnectInit lk.salyk.kg [06:27:00]written 0, free lines is 4095 [06:27:00]Connected sock=9 [06:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA F1 07 01 A4 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 45 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 78 00 00 35 04 06 00 B1 C8 2E 89 D9 46 FB 26 D5 FD 48 28 8C 0C [06:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 94 67 47 00 80 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 78 00 00 F4 03 04 00 3A F0 16 67 B6 04 01 00 00 8D 3B 48 1B 95 F1 0F 5A [06:27:00]CommunicateWithHost err = 0 [06:27:00]CheckOFDResponse [06:27:00]1017 (14) - 77093643461234 [06:27:00]1041 (16) - 0000000002094219 [06:27:00]1040 (4) - 30778 [06:27:00]1012 (4) - 22.10.2024 00:22 [06:27:00]1206 (1) - 0 [06:27:00]OFD Sender: Remove packet 30778 [06:27:00]ProducePacketName [06:27:00]name=ofd_packets/00030778 [06:27:00]NVStorageDeleteData [06:27:01]Write to MH i2c: 01 00 00 18 70 88 [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 07 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 07 00 18 70 00 00 00 00 00 F0 0C 8B [06:27:01]RasterBufferAndPrint [06:27:01]line [06:27:01]line [06:27:01]line [06:27:01]line [06:27:01]line [06:27:01]written 0, free lines is 3322 [06:27:01]MH_Cut [06:27:01]Write to MH i2c: D1 01 00 1F 70 01 61 [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: D1 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: D1 01 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: D1 01 00 1F 70 00 60 [06:27:01]Write to MH i2c: 01 00 00 20 70 90 [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]OFD Sender: No OFD packet to send [06:27:01]*** Cut start [06:27:01]*** Partial cut [06:27:01]*** CUTSNS_PIN = 1 [06:27:01]*** CUTSNS_PIN = 0 [06:27:01]*** Brake cut motor [06:27:02]Read from MH i2c: 01 [06:27:02]MH_I2C_Read... [06:27:02]*** Stop cut motor [06:27:02]*** Cut end [06:27:02]Read from MH i2c: 01 07 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: 01 07 00 20 70 00 00 00 00 00 FF 0F A5 [06:27:02]process_action close_receipt done [06:27:02]requested_data is exist [06:27:02]produce_requested_data [06:27:02]requested_item fm.sn is exist - process it [06:27:02]wFMCommunicate request_size=4 [06:27:02]MH_SAM_APDU [06:27:02]CAPDU: 80 11 00 00 [06:27:02]Write to MH i2c: E2 08 00 21 70 80 11 00 00 00 00 00 00 0B [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:02]Read from MH i2c: E2 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 17 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 17 00 21 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [06:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:27:02]wFMCommunicate OK [06:27:02]requested_item fd.num is exist - process it [06:27:02]SAM_PROTO_GetFieldsCounters [06:27:02]wFMCommunicate request_size=4 [06:27:02]MH_SAM_APDU [06:27:02]CAPDU: 80 13 00 00 [06:27:02]Write to MH i2c: E2 08 00 22 70 80 13 00 00 00 00 00 00 0E [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:02]Read from MH i2c: E2 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 62 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 62 00 22 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 78 00 00 0E 04 04 00 74 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 7B [06:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 78 00 00 0E 04 04 00 74 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 [06:27:02]wFMCommunicate OK [06:27:02]SAM_PROTO_GetFieldsCounters done [06:27:02]requested_item shift.num is exist - process it [06:27:02]requested_item shift.opened is exist - process it [06:27:02]req_shift_opened [06:27:02]FM_GetShiftState [06:27:02]SAM_PROTO_GetShiftState [06:27:02]wFMCommunicate request_size=4 [06:27:02]MH_SAM_APDU [06:27:02]CAPDU: 80 13 01 00 [06:27:02]Write to MH i2c: E2 08 00 23 70 80 13 01 00 00 00 00 00 10 [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:02]Read from MH i2c: E2 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 0E 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: E2 0E 00 23 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EA [06:27:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:27:02]wFMCommunicate OK [06:27:02]SAM_PROTO_GetShiftState done [06:27:02]FM_GetShiftState done [06:27:02]req_shift_opened done [06:27:02]requested_item shift.open_date is exist - process it [06:27:02]req_shift_open_date [06:27:02]req_shift_open_date done [06:27:02]produce_requested_data done [06:27:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30778,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [06:27:02]process_action_free close_receipt [06:27:02]json_value_free [06:27:02]json_value_free done [06:27:02]process_json_proto returns [06:27:02]Send response to host [06:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30778,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [06:27:02]free response buf [06:27:02]execute_script done [06:27:02]execute_script returns [06:27:02]free content buf [06:27:02]Sock 10.Close socket [06:27:02]Sock 10.Thread stoped [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:10]recv_with_timeout no data received [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]recv_with_timeout no data received [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:49]recv_with_timeout no data received [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:21]accept exits with 7 [06:33:21]New connection [06:33:21]New thread 3067346276 created [06:33:21]Thread 3067489636 joined [06:33:21]Waiting for new connection... [06:33:21] Sock 7.Parse request [06:33:21]Sock 7.Check first char [06:33:21]Sock 7.First char is OK [06:33:21]request: POST /json_proto HTTP/1.0 [06:33:21]Method: POST [06:33:21]URL: /json_proto [06:33:21]Method is POST - this is cgi request [06:33:21]url: /json_proto [06:33:21]query_string will be loaded in cgi processing [06:33:21]execute_cgi json_proto POST (null) [06:33:21]execute_cgi path=json_proto method=POST [06:33:21]POST find Content-Length [06:33:21]Host: 172.17.51.3:8080 [06:33:21]Content-Length: 678 [06:33:21]Content-Type: application/json [06:33:21] [06:33:21]POST finish read [06:33:21]Found Content-Length = 678 [06:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:21]execute_script... [06:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:21]POST & json_proto [06:33:21]process_json_proto [06:33:21]json parsed OK: [06:33:21]protocol is kg_v1.0 [06:33:21]action value=close_receipt [06:33:21]process_action close_receipt [06:33:21]cmd_close_receipt [06:33:21]MH_GetDate [06:33:21]Write to MH i2c: F0 00 00 24 70 83 [06:33:21]Write i2c OK [06:33:21]MH_I2C_Read... [06:33:21]Read from MH i2c: F0 [06:33:21]MH_I2C_Read... [06:33:21]Read from MH i2c: F0 09 00 [06:33:21]MH_I2C_Read... [06:33:21]Read from MH i2c: F0 09 00 24 70 00 3B 47 17 67 04 C1 95 66 4C [06:33:21]GetLastDocTimeStamp 1729578427 [06:33:21]current date 1729578811 [06:33:21]FM_GetShiftState [06:33:21]SAM_PROTO_GetShiftState [06:33:21]wFMCommunicate request_size=4 [06:33:21]MH_SAM_APDU [06:33:21]CAPDU: 80 13 01 00 [06:33:21]Write to MH i2c: E2 08 00 25 70 80 13 01 00 00 00 00 00 12 [06:33:21]Write i2c OK [06:33:21]MH_I2C_Read... [06:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:22]Read from MH i2c: E2 [06:33:22]MH_I2C_Read... [06:33:22]Read from MH i2c: E2 0E 00 [06:33:22]MH_I2C_Read... [06:33:22]Read from MH i2c: E2 0E 00 25 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EC [06:33:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:33:22]wFMCommunicate OK [06:33:22]SAM_PROTO_GetShiftState done [06:33:22]FM_GetShiftState done [06:33:22]opened in 1729557342 [06:33:22]opened+sec_in_day 1729643742 [06:33:22]quantity*price = 80012 [06:33:22]sum+1 = 80013 [06:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 12 22.10.2024 06:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30779 ФПД: 164395107335841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30779&fm=164395107335841&tin=02508201610067®Number=0000000000186857&sum=80000 [06:33:23]StoreToDocumentArchive [06:33:23]shift 116 fd 30779 [06:33:23]save to /storage/0116/doc_00030779 [06:33:23]save last doc name /storage/0116/doc_00030779 to /storage/kkm_last_doc_name [06:33:23]save OK [06:33:23]Clear old archive folders... [06:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:33:23]tlvbuf is 01DFF730 [06:33:23]SAM_PROTO_ClearQueue [06:33:23]wFMCommunicate request_size=4 [06:33:23]MH_SAM_APDU [06:33:23]CAPDU: 80 09 00 00 [06:33:23]Write to MH i2c: E2 08 00 32 70 80 09 00 00 00 00 00 00 14 [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 32 70 00 90 00 16 [06:33:23]RAPDU: 90 00 [06:33:23]wFMCommunicate OK [06:33:23]SAM_PROTO_ClearQueue done [06:33:23]KKMCreateOFDPacket [06:33:23]OFDProtocolAddRootSTLVToBuf [06:33:23]FM_MakeSignedData [06:33:23]FM_MakeSignedData [06:33:23]SAM_PROTO_SignData [06:33:23]wFMCommunicate request_size=4 [06:33:23]MH_SAM_APDU [06:33:23]CAPDU: 80 0D 01 02 [06:33:23]Write to MH i2c: E2 08 00 33 70 80 0D 01 02 00 00 00 00 1C [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 33 70 00 90 00 17 [06:33:23]RAPDU: 90 00 [06:33:23]wFMCommunicate OK [06:33:23]wFMCommunicate request_size=255 [06:33:23]MH_SAM_APDU [06:33: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3B 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 78 00 00 35 04 06 00 95 [06:33:23]Write to MH i2c: E2 02 01 34 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3B 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 78 00 00 35 04 06 00 95 00 00 61 [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 34 70 00 90 00 18 [06:33:23]RAPDU: 90 00 [06:33:23]wFMCommunicate OK [06:33:23]wFMCommunicate request_size=10 [06:33:23]MH_SAM_APDU [06:33:23]CAPDU: 80 0D 02 02 05 84 37 F9 BE A1 [06:33:23]Write to MH i2c: E2 0D 00 35 70 80 0D 02 02 05 00 84 37 F9 BE A1 00 00 3C [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 03 00 35 70 00 90 00 19 [06:33:23]RAPDU: 90 00 [06:33:23]wFMCommunicate OK [06:33:23]wFMCommunicate request_size=4 [06:33:23]MH_SAM_APDU [06:33:23]CAPDU: 80 0D 03 02 [06:33:23]Write to MH i2c: E2 08 00 36 70 80 0D 03 02 00 00 00 00 21 [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 0B 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 0B 00 36 70 00 CB A0 FB A5 44 29 51 D6 90 00 C1 [06:33:23]RAPDU: CB A0 FB A5 44 29 51 D6 90 00 [06:33:23]wFMCommunicate OK [06:33:23]SAM_PROTO_SignData done [06:33:23]FM_MakeSignedData done [06:33:23]CreateOFDProtocolMessage [06:33:23]wFMCommunicate request_size=4 [06:33:23]MH_SAM_APDU [06:33:23]CAPDU: 80 11 00 00 [06:33:23]Write to MH i2c: E2 08 00 37 70 80 11 00 00 00 00 00 00 21 [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:23]Read from MH i2c: E2 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 17 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: E2 17 00 37 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [06:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:33:23]wFMCommunicate OK [06:33:23]CreateOFDProtocolMessage done [06:33:23]OFDSenderStorePacket 30779 [06:33:23]StoreOFDPacket docnum=30779 [06:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA A3 07 01 1C 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3B 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 78 00 00 35 04 06 00 95 84 37 F9 BE A1 CB A0 FB A5 44 29 51 D6 [06:33:23]CheckFolder [06:33:23]dirname=/storage/ofd_packets [06:33:23]CheckFolder done [06:33:23]ProducePacketName [06:33:23]name=ofd_packets/00030779 [06:33:23]NVStorageSaveData ofd_packets/00030779 [06:33:23]File name is /storage/ofd_packets/00030779 [06:33:23]Write 301 bytes [06:33:23]NVStorageSaveData done [06:33:23]OFDSenderStorePacket done [06:33:23]KKMCreateOFDPacket done [06:33:23]NVStorageSaveData kkm_last_timestamp [06:33:23]File name is /storage/kkm_last_timestamp [06:33:23]Write 4 bytes [06:33:23]NVStorageSaveData done [06:33:23]ExternCall_PrintAddStr [06:33:23]wPrintStart [06:33:23]Write to MH i2c: 01 00 00 38 70 A8 [06:33:23]Write i2c OK [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: 01 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: 01 07 00 [06:33:23]MH_I2C_Read... [06:33:23]Read from MH i2c: 01 07 00 38 70 00 00 00 00 00 FF 0F BD [06:33:23]RasterBufferAndPrint [06:33:23]line Счет N : (1)343196 [06:33:23]line ИНН: 02508201610067 [06:33:23]line Контрольно-Кассовый Чек [06:33:23]line ПРОДАЖА [06:33:23]line ТРК (МРК, ГНК) : 63 [06:33:23]line Товар: 2710124130 [06:33:23]line Аи-92-К-2 [06:33:23]line 11.960 * 66.90 [06:33:23]line = 800.12 [06:33:23]line НДС 12% НСП 1% [06:33:23]line > о реализуемом товаре [06:33:23]line ОКРУГЛЕНИЕ: -0.12 [06:33:23]line ИТОГО: 800.00 [06:33:23]line Внесено: 800.00 [06:33:23]line СДАЧА: 0.00 [06:33:23]line НСП 1% : 7.08 [06:33:23]line НДС 12% : 84.97 [06:33:23]line Наличными: 800.00 [06:33:23]line Безнал.: 0.00 [06:33:23]line Место: АЗС № 78 "Партнер Нефть" [06:33:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:33:23]line СНО: Общий режим [06:33:23]line Чек 12 22.10.2024 06:33 [06:33:23]line Смена: 116 ФФД: 1.0 [06:33:23]line ЗНМ: 0300000137 [06:33:23]line РНМ: 0000000000186857 [06:33:23]line Версия ККМ: v1.0 [06:33:23]line ФМ: 0000000002094219 [06:33:23]line ФД: 30779 [06:33:23]line ФПД: 164395107335841 [06:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30779&fm=164395107335841&tin=02508201610067®Number=0000000000186857&sum=80000 [06:33:24]OFD Sender: Processing packet 30779 [packets to send 10, broken 9] [06:33:24]ProducePacketName [06:33:24]name=ofd_packets/00030779 [06:33:24]OFD Sender: To server: pG, [06:33:24]CommunicateWithHost lk.salyk.kg:30040 [06:33:24]ConnectInit lk.salyk.kg [06:33:24]written 0, free lines is 4095 [06:33:24]Connected sock=10 [06:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA A3 07 01 1C 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3B 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 78 00 00 35 04 06 00 95 84 37 F9 BE A1 CB A0 FB A5 44 29 51 D6 [06:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 65 BE 47 00 13 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 32 30 39 34 32 31 39 10 04 04 00 3B 78 00 00 F4 03 04 00 B9 F1 16 67 B6 04 01 00 00 44 3A 08 68 6D 62 DB 83 [06:33:24]CommunicateWithHost err = 0 [06:33:24]CheckOFDResponse [06:33:24]1017 (14) - 77093643461234 [06:33:24]1041 (16) - 0000000002094219 [06:33:24]1040 (4) - 30779 [06:33:24]1012 (4) - 22.10.2024 00:28 [06:33:24]1206 (1) - 0 [06:33:24]OFD Sender: Remove packet 30779 [06:33:24]ProducePacketName [06:33:24]name=ofd_packets/00030779 [06:33:24]NVStorageDeleteData [06:33:24]Write to MH i2c: 01 00 00 63 70 D3 [06:33:24]Write i2c OK [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: 01 [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: 01 07 00 [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: 01 07 00 63 70 00 00 00 00 00 F1 0C D7 [06:33:24]RasterBufferAndPrint [06:33:24]line [06:33:24]line [06:33:24]line [06:33:24]line [06:33:24]line [06:33:24]written 0, free lines is 3319 [06:33:24]MH_Cut [06:33:24]Write to MH i2c: D1 01 00 6A 70 01 AC [06:33:24]Write i2c OK [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: D1 [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: D1 01 00 [06:33:24]MH_I2C_Read... [06:33:24]Read from MH i2c: D1 01 00 6A 70 00 AB [06:33:24]Write to MH i2c: 01 00 00 6B 70 DB [06:33:24]Write i2c OK [06:33:24]MH_I2C_Read... [06:33:24]OFD Sender: No OFD packet to send [06:33:25]*** Cut start [06:33:25]*** Partial cut [06:33:25]*** CUTSNS_PIN = 1 [06:33:25]*** CUTSNS_PIN = 0 [06:33:25]*** Brake cut motor [06:33:25]Read from MH i2c: 01 [06:33:25]MH_I2C_Read... [06:33:25]*** Stop cut motor [06:33:25]Read from MH i2c: 01 07 00 [06:33:25]MH_I2C_Read... [06:33:25]*** Cut end [06:33:25]Read from MH i2c: 01 07 00 6B 70 00 00 00 00 00 FF 0F F0 [06:33:25]process_action close_receipt done [06:33:25]requested_data is exist [06:33:25]produce_requested_data [06:33:25]requested_item fm.sn is exist - process it [06:33:25]wFMCommunicate request_size=4 [06:33:25]MH_SAM_APDU [06:33:25]CAPDU: 80 11 00 00 [06:33:25]Write to MH i2c: E2 08 00 6C 70 80 11 00 00 00 00 00 00 56 [06:33:25]Write i2c OK [06:33:25]MH_I2C_Read... [06:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:25]Read from MH i2c: E2 [06:33:25]MH_I2C_Read... [06:33:25]Read from MH i2c: E2 17 00 [06:33:25]MH_I2C_Read... [06:33:25]Read from MH i2c: E2 17 00 6C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [06:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:33:25]wFMCommunicate OK [06:33:25]requested_item fd.num is exist - process it [06:33:25]SAM_PROTO_GetFieldsCounters [06:33:25]wFMCommunicate request_size=4 [06:33:25]MH_SAM_APDU [06:33:25]CAPDU: 80 13 00 00 [06:33:25]Write to MH i2c: E2 08 00 6D 70 80 13 00 00 00 00 00 00 59 [06:33:25]Write i2c OK [06:33:25]MH_I2C_Read... [06:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:25]Read from MH i2c: E2 [06:33:25]MH_I2C_Read... [06:33:25]Read from MH i2c: E2 62 00 [06:33:25]MH_I2C_Read... [06:33:25]Read from MH i2c: E2 62 00 6D 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 78 00 00 0E 04 04 00 74 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 CA [06:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 78 00 00 0E 04 04 00 74 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 [06:33:25]wFMCommunicate OK [06:33:25]SAM_PROTO_GetFieldsCounters done [06:33:25]requested_item shift.num is exist - process it [06:33:25]requested_item shift.opened is exist - process it [06:33:25]req_shift_opened [06:33:25]FM_GetShiftState [06:33:25]SAM_PROTO_GetShiftState [06:33:25]wFMCommunicate request_size=4 [06:33:25]MH_SAM_APDU [06:33:25]CAPDU: 80 13 01 00 [06:33:25]Write to MH i2c: E2 08 00 6E 70 80 13 01 00 00 00 00 00 5B [06:33:25]Write i2c OK [06:33:25]MH_I2C_Read... [06:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:26]Read from MH i2c: E2 [06:33:26]MH_I2C_Read... [06:33:26]Read from MH i2c: E2 0E 00 [06:33:26]MH_I2C_Read... [06:33:26]Read from MH i2c: E2 0E 00 6E 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 35 [06:33:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:33:26]wFMCommunicate OK [06:33:26]SAM_PROTO_GetShiftState done [06:33:26]FM_GetShiftState done [06:33:26]req_shift_opened done [06:33:26]requested_item shift.open_date is exist - process it [06:33:26]req_shift_open_date [06:33:26]req_shift_open_date done [06:33:26]produce_requested_data done [06:33:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30779,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [06:33:26]process_action_free close_receipt [06:33:26]json_value_free [06:33:26]json_value_free done [06:33:26]process_json_proto returns [06:33:26]Send response to host [06:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30779,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [06:33:26]free response buf [06:33:26]execute_script done [06:33:26]execute_script returns [06:33:26]free content buf [06:33:26]Sock 7.Close socket [06:33:26]Sock 7.Thread stoped [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]accept exits with 9 [06:35:54]New connection [06:35:54]New thread 3067489636 created [06:35:54]Thread 3067346276 joined [06:35:54]Waiting for new connection... [06:35:54] Sock 9.Parse request [06:35:54]Sock 9.Check first char [06:35:54]Sock 9.First char is OK [06:35:54]request: POST /json_proto HTTP/1.0 [06:35:54]Method: POST [06:35:54]URL: /json_proto [06:35:54]Method is POST - this is cgi request [06:35:54]url: /json_proto [06:35:54]query_string will be loaded in cgi processing [06:35:54]execute_cgi json_proto POST (null) [06:35:54]execute_cgi path=json_proto method=POST [06:35:54]POST find Content-Length [06:35:54]Host: 172.17.51.3:8080 [06:35:54]Content-Length: 688 [06:35:54]Content-Type: application/json [06:35:54] [06:35:54]POST finish read [06:35:54]Found Content-Length = 688 [06:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 13.610, "sum" : 1050.69, "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" ] } } [06:35:54]execute_script... [06:35: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)343197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 13.610, "sum" : 1050.69, "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" ] } } [06:35:54]POST & json_proto [06:35:54]process_json_proto [06:35:54]json parsed OK: [06:35:54]protocol is kg_v1.0 [06:35:54]action value=close_receipt [06:35:54]process_action close_receipt [06:35:54]cmd_close_receipt [06:35:54]MH_GetDate [06:35:54]Write to MH i2c: F0 00 00 6F 70 CE [06:35:54]Write i2c OK [06:35:54]MH_I2C_Read... [06:35:54]Read from MH i2c: F0 [06:35:54]MH_I2C_Read... [06:35:54]Read from MH i2c: F0 09 00 [06:35:54]MH_I2C_Read... [06:35:54]Read from MH i2c: F0 09 00 6F 70 00 D3 47 17 67 04 C1 95 66 2F [06:35:54]GetLastDocTimeStamp 1729578811 [06:35:54]current date 1729578963 [06:35:54]FM_GetShiftState [06:35:54]SAM_PROTO_GetShiftState [06:35:54]wFMCommunicate request_size=4 [06:35:54]MH_SAM_APDU [06:35:54]CAPDU: 80 13 01 00 [06:35:54]Write to MH i2c: E2 08 00 70 70 80 13 01 00 00 00 00 00 5D [06:35:54]Write i2c OK [06:35:54]MH_I2C_Read... [06:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:54]Read from MH i2c: E2 [06:35:54]MH_I2C_Read... [06:35:54]Read from MH i2c: E2 0E 00 [06:35:54]MH_I2C_Read... [06:35:54]Read from MH i2c: E2 0E 00 70 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 37 [06:35:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:35:54]wFMCommunicate OK [06:35:54]SAM_PROTO_GetShiftState done [06:35:54]FM_GetShiftState done [06:35:54]opened in 1729557342 [06:35:54]opened+sec_in_day 1729643742 [06:35:54]quantity*price = 105069 [06:35:54]sum+1 = 105070 [06:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.58 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 13 22.10.2024 06:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30780 ФПД: 139839562141019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063603&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30780&fm=139839562141019&tin=02508201610067®Number=0000000000186857&sum=105000 [06:35:55]StoreToDocumentArchive [06:35:55]shift 116 fd 30780 [06:35:55]save to /storage/0116/doc_00030780 [06:35:55]save last doc name /storage/0116/doc_00030780 to /storage/kkm_last_doc_name [06:35:55]save OK [06:35:55]Clear old archive folders... [06:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:35:55]tlvbuf is 01E0C3B0 [06:35:55]SAM_PROTO_ClearQueue [06:35:55]wFMCommunicate request_size=4 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 09 00 00 [06:35:55]Write to MH i2c: E2 08 00 7D 70 80 09 00 00 00 00 00 00 5F [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 7D 70 00 90 00 61 [06:35:55]RAPDU: 90 00 [06:35:55]wFMCommunicate OK [06:35:55]SAM_PROTO_ClearQueue done [06:35:55]KKMCreateOFDPacket [06:35:55]OFDProtocolAddRootSTLVToBuf [06:35:55]FM_MakeSignedData [06:35:55]FM_MakeSignedData [06:35:55]SAM_PROTO_SignData [06:35:55]wFMCommunicate request_size=4 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 0D 01 02 [06:35:55]Write to MH i2c: E2 08 00 7E 70 80 0D 01 02 00 00 00 00 67 [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 7E 70 00 90 00 62 [06:35:55]RAPDU: 90 00 [06:35:55]wFMCommunicate OK [06:35:55]wFMCommunicate request_size=255 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6D 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 96 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 0D 00 00 00 F4 03 04 00 D3 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 78 00 [06:35:55]Write to MH i2c: E2 02 01 7F 70 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6D 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 96 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 0D 00 00 00 F4 03 04 00 D3 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 78 00 00 00 45 [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 7F 70 00 90 00 63 [06:35:55]RAPDU: 90 00 [06:35:55]wFMCommunicate OK [06:35:55]wFMCommunicate request_size=16 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7F 2E EF 6D 4D 5B [06:35:55]Write to MH i2c: E2 13 00 80 70 80 0D 02 02 0B 00 00 35 04 06 00 7F 2E EF 6D 4D 5B 00 00 70 [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 03 00 80 70 00 90 00 64 [06:35:55]RAPDU: 90 00 [06:35:55]wFMCommunicate OK [06:35:55]wFMCommunicate request_size=4 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 0D 03 02 [06:35:55]Write to MH i2c: E2 08 00 81 70 80 0D 03 02 00 00 00 00 6C [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 0B 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 0B 00 81 70 00 3A 82 0D 1E 79 53 AD A8 90 00 75 [06:35:55]RAPDU: 3A 82 0D 1E 79 53 AD A8 90 00 [06:35:55]wFMCommunicate OK [06:35:55]SAM_PROTO_SignData done [06:35:55]FM_MakeSignedData done [06:35:55]CreateOFDProtocolMessage [06:35:55]wFMCommunicate request_size=4 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 11 00 00 [06:35:55]Write to MH i2c: E2 08 00 82 70 80 11 00 00 00 00 00 00 6C [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 17 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 17 00 82 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [06:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:35:55]wFMCommunicate OK [06:35:55]CreateOFDProtocolMessage done [06:35:55]OFDSenderStorePacket 30780 [06:35:55]StoreOFDPacket docnum=30780 [06:35:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 7E 1C 0D 01 D6 D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6D 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 96 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 0D 00 00 00 F4 03 04 00 D3 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 78 00 00 35 04 06 00 7F 2E EF 6D 4D 5B 3A 82 0D 1E 79 53 AD A8 [06:35:55]CheckFolder [06:35:55]dirname=/storage/ofd_packets [06:35:55]CheckFolder done [06:35:55]ProducePacketName [06:35:55]name=ofd_packets/00030780 [06:35:55]NVStorageSaveData ofd_packets/00030780 [06:35:55]File name is /storage/ofd_packets/00030780 [06:35:55]Write 307 bytes [06:35:55]NVStorageSaveData done [06:35:55]OFDSenderStorePacket done [06:35:55]KKMCreateOFDPacket done [06:35:55]NVStorageSaveData kkm_last_timestamp [06:35:55]File name is /storage/kkm_last_timestamp [06:35:55]Write 4 bytes [06:35:55]NVStorageSaveData done [06:35:55]ExternCall_PrintAddStr [06:35:55]wPrintStart [06:35:55]Write to MH i2c: 01 00 00 83 70 F3 [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: 01 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: 01 07 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: 01 07 00 83 70 00 00 00 00 00 FF 0F 08 [06:35:55]RasterBufferAndPrint [06:35:55]line Счет N : (1)343197 [06:35:55]line ИНН: 02508201610067 [06:35:55]line Контрольно-Кассовый Чек [06:35:55]line ПРОДАЖА [06:35:55]line ТРК (МРК, ГНК) : 61 [06:35:55]line Товар: 2710194210 [06:35:55]line D-ENERGY Дт-К-2 [06:35:55]line 13.610 * 77.20 [06:35:55]line = 1050.69 [06:35:55]line НДС 12% НСП 1% [06:35:55]line > о реализуемом товаре [06:35:55]line ОКРУГЛЕНИЕ: -0.69 [06:35:55]line ИТОГО: 1050.00 [06:35:55]line Внесено: 1050.00 [06:35:55]line СДАЧА: 0.00 [06:35:55]line НСП 1% : 9.30 [06:35:55]line НДС 12% : 111.58 [06:35:55]line Наличными: 1050.00 [06:35:55]line Безнал.: 0.00 [06:35:55]line Место: АЗС № 78 "Партнер Нефть" [06:35:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:35:55]line СНО: Общий режим [06:35:55]line Чек 13 22.10.2024 06:36 [06:35:55]line Смена: 116 ФФД: 1.0 [06:35:55]line ЗНМ: 0300000137 [06:35:55]line РНМ: 0000000000186857 [06:35:55]line Версия ККМ: v1.0 [06:35:55]line ФМ: 0000000002094219 [06:35:55]line ФД: 30780 [06:35:55]line ФПД: 139839562141019 [06:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063603&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30780&fm=139839562141019&tin=02508201610067®Number=0000000000186857&sum=105000 [06:35:56]OFD Sender: Processing packet 30780 [packets to send 10, broken 9] [06:35:56]ProducePacketName [06:35:56]name=ofd_packets/00030780 [06:35:56]OFD Sender: To server: pG, [06:35:56]CommunicateWithHost lk.salyk.kg:30040 [06:35:56]ConnectInit lk.salyk.kg [06:35:56]written 0, free lines is 4095 [06:35:56]Connected sock=10 [06:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 7E 1C 0D 01 D6 D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6D 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 96 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 0D 00 00 00 F4 03 04 00 D3 47 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 78 00 00 35 04 06 00 7F 2E EF 6D 4D 5B 3A 82 0D 1E 79 53 AD A8 [06:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 48 C5 47 00 37 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 78 00 00 F4 03 04 00 51 F2 16 67 B6 04 01 00 00 CD 66 D7 F1 78 A5 C9 11 [06:35:56]CommunicateWithHost err = 0 [06:35:56]CheckOFDResponse [06:35:56]1017 (14) - 77093643461234 [06:35:56]1041 (16) - 0000000002094219 [06:35:56]1040 (4) - 30780 [06:35:56]1012 (4) - 22.10.2024 00:31 [06:35:56]1206 (1) - 0 [06:35:56]OFD Sender: Remove packet 30780 [06:35:56]ProducePacketName [06:35:56]name=ofd_packets/00030780 [06:35:56]NVStorageDeleteData [06:35:56]Write to MH i2c: 01 00 00 AE 70 1E [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: 01 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: 01 07 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: 01 07 00 AE 70 00 00 00 00 00 ED 0C 1E [06:35:56]RasterBufferAndPrint [06:35:56]line [06:35:56]line [06:35:56]line [06:35:56]line [06:35:56]line [06:35:56]written 0, free lines is 3315 [06:35:56]MH_Cut [06:35:56]Write to MH i2c: D1 01 00 B5 70 01 F7 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: D1 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: D1 01 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: D1 01 00 B5 70 00 F6 [06:35:56]Write to MH i2c: 01 00 00 B6 70 26 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]OFD Sender: No OFD packet to send [06:35:57]*** Cut start [06:35:57]*** Partial cut [06:35:57]*** CUTSNS_PIN = 1 [06:35:57]*** CUTSNS_PIN = 0 [06:35:57]*** Brake cut motor [06:35:57]Read from MH i2c: 01 [06:35:57]MH_I2C_Read... [06:35:57]*** Stop cut motor [06:35:57]*** Cut end [06:35:57]Read from MH i2c: 01 07 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 07 00 B6 70 00 00 00 00 00 FF 0F 3B [06:35:57]process_action close_receipt done [06:35:57]requested_data is exist [06:35:57]produce_requested_data [06:35:57]requested_item fm.sn is exist - process it [06:35:57]wFMCommunicate request_size=4 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 11 00 00 [06:35:57]Write to MH i2c: E2 08 00 B7 70 80 11 00 00 00 00 00 00 A1 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:57]Read from MH i2c: E2 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 17 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 17 00 B7 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [06:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:35:57]wFMCommunicate OK [06:35:57]requested_item fd.num is exist - process it [06:35:57]SAM_PROTO_GetFieldsCounters [06:35:57]wFMCommunicate request_size=4 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 13 00 00 [06:35:57]Write to MH i2c: E2 08 00 B8 70 80 13 00 00 00 00 00 00 A4 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:57]Read from MH i2c: E2 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 62 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 62 00 B8 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 78 00 00 0E 04 04 00 74 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 19 [06:35:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 78 00 00 0E 04 04 00 74 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 [06:35:57]wFMCommunicate OK [06:35:57]SAM_PROTO_GetFieldsCounters done [06:35:57]requested_item shift.num is exist - process it [06:35:57]requested_item shift.opened is exist - process it [06:35:57]req_shift_opened [06:35:57]FM_GetShiftState [06:35:57]SAM_PROTO_GetShiftState [06:35:57]wFMCommunicate request_size=4 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 13 01 00 [06:35:57]Write to MH i2c: E2 08 00 B9 70 80 13 01 00 00 00 00 00 A6 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:58]Read from MH i2c: E2 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 0E 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 0E 00 B9 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 80 [06:35:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [06:35:58]wFMCommunicate OK [06:35:58]SAM_PROTO_GetShiftState done [06:35:58]FM_GetShiftState done [06:35:58]req_shift_opened done [06:35:58]requested_item shift.open_date is exist - process it [06:35:58]req_shift_open_date [06:35:58]req_shift_open_date done [06:35:58]produce_requested_data done [06:35:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30780,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [06:35:58]process_action_free close_receipt [06:35:58]json_value_free [06:35:58]json_value_free done [06:35:58]process_json_proto returns [06:35:58]Send response to host [06:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30780,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [06:35:58]free response buf [06:35:58]execute_script done [06:35:58]execute_script returns [06:35:58]free content buf [06:35:58]Sock 9.Close socket [06:35:58]Sock 9.Thread stoped [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:27]recv_with_timeout no data received [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:45]recv_with_timeout no data received [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:03]recv_with_timeout no data received [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:06]recv_with_timeout no data received [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:28]recv_with_timeout no data received [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:49]recv_with_timeout no data received [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:06]accept exits with 7 [07:00:06]New connection [07:00:06]New thread 3067346276 created [07:00:06]Thread 3067489636 joined [07:00:06]Waiting for new connection... [07:00:06] Sock 7.Parse request [07:00:06]Sock 7.Check first char [07:00:06]Sock 7.First char is OK [07:00:06]request: POST /json_proto HTTP/1.0 [07:00:06]Method: POST [07:00:06]URL: /json_proto [07:00:06]Method is POST - this is cgi request [07:00:06]url: /json_proto [07:00:06]query_string will be loaded in cgi processing [07:00:06]execute_cgi json_proto POST (null) [07:00:06]execute_cgi path=json_proto method=POST [07:00:06]POST find Content-Length [07:00:06]Host: 172.17.51.3:8080 [07:00:06]Content-Length: 678 [07:00:06]Content-Type: application/json [07:00:06] [07:00:06]POST finish read [07:00:06]Found Content-Length = 678 [07:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:06]execute_script... [07:00: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)343198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:06]POST & json_proto [07:00:06]process_json_proto [07:00:06]json parsed OK: [07:00:06]protocol is kg_v1.0 [07:00:06]action value=close_receipt [07:00:06]process_action close_receipt [07:00:06]cmd_close_receipt [07:00:06]MH_GetDate [07:00:06]Write to MH i2c: F0 00 00 BA 70 19 [07:00:06]Write i2c OK [07:00:06]MH_I2C_Read... [07:00:06]Read from MH i2c: F0 [07:00:06]MH_I2C_Read... [07:00:06]Read from MH i2c: F0 09 00 [07:00:06]MH_I2C_Read... [07:00:06]Read from MH i2c: F0 09 00 BA 70 00 7F 4D 17 67 04 C1 95 66 2C [07:00:06]GetLastDocTimeStamp 1729578963 [07:00:06]current date 1729580415 [07:00:06]FM_GetShiftState [07:00:06]SAM_PROTO_GetShiftState [07:00:06]wFMCommunicate request_size=4 [07:00:06]MH_SAM_APDU [07:00:06]CAPDU: 80 13 01 00 [07:00:06]Write to MH i2c: E2 08 00 BB 70 80 13 01 00 00 00 00 00 A8 [07:00:06]Write i2c OK [07:00:06]MH_I2C_Read... [07:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:06]Read from MH i2c: E2 [07:00:06]MH_I2C_Read... [07:00:06]Read from MH i2c: E2 0E 00 [07:00:06]MH_I2C_Read... [07:00:06]Read from MH i2c: E2 0E 00 BB 70 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 82 [07:00:06]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:00:06]wFMCommunicate OK [07:00:06]SAM_PROTO_GetShiftState done [07:00:06]FM_GetShiftState done [07:00:06]opened in 1729557342 [07:00:06]opened+sec_in_day 1729643742 [07:00:06]quantity*price = 70044 [07:00:06]sum+1 = 70045 [07:00:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 14 22.10.2024 07:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30781 ФПД: 11735532879333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070015&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30781&fm=11735532879333&tin=02508201610067®Number=0000000000186857&sum=70000 [07:00:07]StoreToDocumentArchive [07:00:07]shift 116 fd 30781 [07:00:07]save to /storage/0116/doc_00030781 [07:00:07]save last doc name /storage/0116/doc_00030781 to /storage/kkm_last_doc_name [07:00:07]save OK [07:00:07]Clear old archive folders... [07:00:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:00:07]tlvbuf is 01FB67A0 [07:00:07]SAM_PROTO_ClearQueue [07:00:07]wFMCommunicate request_size=4 [07:00:07]MH_SAM_APDU [07:00:07]CAPDU: 80 09 00 00 [07:00:07]Write to MH i2c: E2 08 00 C8 70 80 09 00 00 00 00 00 00 AA [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:07]Read from MH i2c: E2 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: E2 03 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: E2 03 00 C8 70 00 90 00 AC [07:00:07]RAPDU: 90 00 [07:00:07]wFMCommunicate OK [07:00:07]SAM_PROTO_ClearQueue done [07:00:07]KKMCreateOFDPacket [07:00:07]OFDProtocolAddRootSTLVToBuf [07:00:07]FM_MakeSignedData [07:00:07]FM_MakeSignedData [07:00:07]SAM_PROTO_SignData [07:00:07]wFMCommunicate request_size=4 [07:00:07]MH_SAM_APDU [07:00:07]CAPDU: 80 0D 01 02 [07:00:07]Write to MH i2c: E2 08 00 C9 70 80 0D 01 02 00 00 00 00 B2 [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:07]Read from MH i2c: E2 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: E2 03 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: E2 03 00 C9 70 00 90 00 AD [07:00:07]RAPDU: 90 00 [07:00:07]wFMCommunicate OK [07:00:07]wFMCommunicate request_size=255 [07:00:07]MH_SAM_APDU [07:00: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7F 4D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 78 00 00 35 04 06 00 0A [07:00:07]Write to MH i2c: E2 02 01 CA 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7F 4D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 78 00 00 35 04 06 00 0A 00 00 DE [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:08]OFD Sender: No OFD packet to send [07:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:08]Read from MH i2c: E2 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 03 00 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 03 00 CA 70 00 90 00 AE [07:00:08]RAPDU: 90 00 [07:00:08]wFMCommunicate OK [07:00:08]wFMCommunicate request_size=10 [07:00:08]MH_SAM_APDU [07:00:08]CAPDU: 80 0D 02 02 05 AC 64 44 BD E5 [07:00:08]Write to MH i2c: E2 0D 00 CB 70 80 0D 02 02 05 00 AC 64 44 BD E5 00 00 B5 [07:00:08]Write i2c OK [07:00:08]MH_I2C_Read... [07:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:08]Read from MH i2c: E2 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 03 00 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 03 00 CB 70 00 90 00 AF [07:00:08]RAPDU: 90 00 [07:00:08]wFMCommunicate OK [07:00:08]wFMCommunicate request_size=4 [07:00:08]MH_SAM_APDU [07:00:08]CAPDU: 80 0D 03 02 [07:00:08]Write to MH i2c: E2 08 00 CC 70 80 0D 03 02 00 00 00 00 B7 [07:00:08]Write i2c OK [07:00:08]MH_I2C_Read... [07:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:08]Read from MH i2c: E2 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 0B 00 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 0B 00 CC 70 00 56 6F 59 61 8E 2E C4 67 90 00 1E [07:00:08]RAPDU: 56 6F 59 61 8E 2E C4 67 90 00 [07:00:08]wFMCommunicate OK [07:00:08]SAM_PROTO_SignData done [07:00:08]FM_MakeSignedData done [07:00:08]CreateOFDProtocolMessage [07:00:08]wFMCommunicate request_size=4 [07:00:08]MH_SAM_APDU [07:00:08]CAPDU: 80 11 00 00 [07:00:08]Write to MH i2c: E2 08 00 CD 70 80 11 00 00 00 00 00 00 B7 [07:00:08]Write i2c OK [07:00:08]MH_I2C_Read... [07:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:08]Read from MH i2c: E2 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 17 00 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: E2 17 00 CD 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [07:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:00:08]wFMCommunicate OK [07:00:08]CreateOFDProtocolMessage done [07:00:08]OFDSenderStorePacket 30781 [07:00:08]StoreOFDPacket docnum=30781 [07:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 47 6C 07 01 A8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7F 4D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 78 00 00 35 04 06 00 0A AC 64 44 BD E5 56 6F 59 61 8E 2E C4 67 [07:00:08]CheckFolder [07:00:08]dirname=/storage/ofd_packets [07:00:08]CheckFolder done [07:00:08]ProducePacketName [07:00:08]name=ofd_packets/00030781 [07:00:08]NVStorageSaveData ofd_packets/00030781 [07:00:08]File name is /storage/ofd_packets/00030781 [07:00:08]Write 301 bytes [07:00:08]NVStorageSaveData done [07:00:08]OFDSenderStorePacket done [07:00:08]KKMCreateOFDPacket done [07:00:08]NVStorageSaveData kkm_last_timestamp [07:00:08]File name is /storage/kkm_last_timestamp [07:00:08]Write 4 bytes [07:00:08]NVStorageSaveData done [07:00:08]ExternCall_PrintAddStr [07:00:08]wPrintStart [07:00:08]Write to MH i2c: 01 00 00 CE 70 3E [07:00:08]Write i2c OK [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: 01 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: 01 07 00 [07:00:08]MH_I2C_Read... [07:00:08]Read from MH i2c: 01 07 00 CE 70 00 00 00 00 00 FF 0F 53 [07:00:08]RasterBufferAndPrint [07:00:08]line Счет N : (1)343198 [07:00:08]line ИНН: 02508201610067 [07:00:08]line Контрольно-Кассовый Чек [07:00:08]line ПРОДАЖА [07:00:08]line ТРК (МРК, ГНК) : 63 [07:00:08]line Товар: 2710124130 [07:00:08]line Аи-92-К-2 [07:00:08]line 10.470 * 66.90 [07:00:08]line = 700.44 [07:00:08]line НДС 12% НСП 1% [07:00:08]line > о реализуемом товаре [07:00:08]line ОКРУГЛЕНИЕ: -0.44 [07:00:08]line ИТОГО: 700.00 [07:00:08]line Внесено: 700.00 [07:00:08]line СДАЧА: 0.00 [07:00:08]line НСП 1% : 6.20 [07:00:08]line НДС 12% : 74.38 [07:00:08]line Наличными: 700.00 [07:00:08]line Безнал.: 0.00 [07:00:08]line Место: АЗС № 78 "Партнер Нефть" [07:00:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:00:08]line СНО: Общий режим [07:00:08]line Чек 14 22.10.2024 07:00 [07:00:08]line Смена: 116 ФФД: 1.0 [07:00:08]line ЗНМ: 0300000137 [07:00:08]line РНМ: 0000000000186857 [07:00:08]line Версия ККМ: v1.0 [07:00:08]line ФМ: 0000000002094219 [07:00:08]line ФД: 30781 [07:00:08]line ФПД: 11735532879333 [07:00:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070015&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30781&fm=11735532879333&tin=02508201610067®Number=0000000000186857&sum=70000 [07:00:08]OFD Sender: Processing packet 30781 [packets to send 10, broken 9] [07:00:08]ProducePacketName [07:00:08]name=ofd_packets/00030781 [07:00:08]OFD Sender: To server: pG, [07:00:08]CommunicateWithHost lk.salyk.kg:30040 [07:00:08]ConnectInit lk.salyk.kg [07:00:08]written 0, free lines is 4095 [07:00:08]Connected sock=10 [07:00:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 47 6C 07 01 A8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7F 4D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 78 00 00 35 04 06 00 0A AC 64 44 BD E5 56 6F 59 61 8E 2E C4 67 [07:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 47 47 00 36 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 78 00 00 F4 03 04 00 FD F7 16 67 B6 04 01 00 00 FF 3B 96 1D 3E FB 1D 91 [07:00:08]CommunicateWithHost err = 0 [07:00:08]CheckOFDResponse [07:00:08]1017 (14) - 77093643461234 [07:00:08]1041 (16) - 0000000002094219 [07:00:08]1040 (4) - 30781 [07:00:08]1012 (4) - 22.10.2024 00:55 [07:00:08]1206 (1) - 0 [07:00:08]OFD Sender: Remove packet 30781 [07:00:08]ProducePacketName [07:00:08]name=ofd_packets/00030781 [07:00:08]NVStorageDeleteData [07:00:09]Write to MH i2c: 01 00 00 F9 70 69 [07:00:09]Write i2c OK [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: 01 [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: 01 07 00 [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: 01 07 00 F9 70 00 00 00 00 00 F6 0C 72 [07:00:09]RasterBufferAndPrint [07:00:09]line [07:00:09]line [07:00:09]line [07:00:09]line [07:00:09]line [07:00:09]written 0, free lines is 3328 [07:00:09]MH_Cut [07:00:09]Write to MH i2c: D1 01 00 00 71 01 43 [07:00:09]Write i2c OK [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: D1 [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: D1 01 00 [07:00:09]MH_I2C_Read... [07:00:09]Read from MH i2c: D1 01 00 00 71 00 42 [07:00:09]Write to MH i2c: 01 00 00 01 71 72 [07:00:09]Write i2c OK [07:00:09]MH_I2C_Read... [07:00:09]OFD Sender: No OFD packet to send [07:00:09]*** Cut start [07:00:09]*** Partial cut [07:00:09]*** CUTSNS_PIN = 1 [07:00:09]*** CUTSNS_PIN = 0 [07:00:09]*** Brake cut motor [07:00:10]Read from MH i2c: 01 [07:00:10]MH_I2C_Read... [07:00:10]*** Stop cut motor [07:00:10]*** Cut end [07:00:10]Read from MH i2c: 01 07 00 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: 01 07 00 01 71 00 00 00 00 00 FF 0F 87 [07:00:10]process_action close_receipt done [07:00:10]requested_data is exist [07:00:10]produce_requested_data [07:00:10]requested_item fm.sn is exist - process it [07:00:10]wFMCommunicate request_size=4 [07:00:10]MH_SAM_APDU [07:00:10]CAPDU: 80 11 00 00 [07:00:10]Write to MH i2c: E2 08 00 02 71 80 11 00 00 00 00 00 00 ED [07:00:10]Write i2c OK [07:00:10]MH_I2C_Read... [07:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:10]Read from MH i2c: E2 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 17 00 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 17 00 02 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [07:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:00:10]wFMCommunicate OK [07:00:10]requested_item fd.num is exist - process it [07:00:10]SAM_PROTO_GetFieldsCounters [07:00:10]wFMCommunicate request_size=4 [07:00:10]MH_SAM_APDU [07:00:10]CAPDU: 80 13 00 00 [07:00:10]Write to MH i2c: E2 08 00 03 71 80 13 00 00 00 00 00 00 F0 [07:00:10]Write i2c OK [07:00:10]MH_I2C_Read... [07:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:10]Read from MH i2c: E2 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 62 00 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 62 00 03 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 78 00 00 0E 04 04 00 74 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 69 [07:00:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:10]wFMCommunicate OK [07:00:10]SAM_PROTO_GetFieldsCounters done [07:00:10]requested_item shift.num is exist - process it [07:00:10]requested_item shift.opened is exist - process it [07:00:10]req_shift_opened [07:00:10]FM_GetShiftState [07:00:10]SAM_PROTO_GetShiftState [07:00:10]wFMCommunicate request_size=4 [07:00:10]MH_SAM_APDU [07:00:10]CAPDU: 80 13 01 00 [07:00:10]Write to MH i2c: E2 08 00 04 71 80 13 01 00 00 00 00 00 F2 [07:00:10]Write i2c OK [07:00:10]MH_I2C_Read... [07:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:10]Read from MH i2c: E2 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 0E 00 [07:00:10]MH_I2C_Read... [07:00:10]Read from MH i2c: E2 0E 00 04 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CC [07:00:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:00:10]wFMCommunicate OK [07:00:10]SAM_PROTO_GetShiftState done [07:00:10]FM_GetShiftState done [07:00:10]req_shift_opened done [07:00:10]requested_item shift.open_date is exist - process it [07:00:10]req_shift_open_date [07:00:10]req_shift_open_date done [07:00:10]produce_requested_data done [07:00:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30781,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:00:10]process_action_free close_receipt [07:00:10]json_value_free [07:00:10]json_value_free done [07:00:10]process_json_proto returns [07:00:10]Send response to host [07:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30781,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:00:10]free response buf [07:00:10]execute_script done [07:00:10]execute_script returns [07:00:10]free content buf [07:00:10]Sock 7.Close socket [07:00:10]Sock 7.Thread stoped [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]recv_with_timeout no data received [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]recv_with_timeout no data received [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:35]accept exits with 9 [07:13:35]New connection [07:13:35]New thread 3067489636 created [07:13:35]Thread 3067346276 joined [07:13:35]Waiting for new connection... [07:13:35] Sock 9.Parse request [07:13:35]Sock 9.Check first char [07:13:35]Sock 9.First char is OK [07:13:35]request: POST /json_proto HTTP/1.0 [07:13:35]Method: POST [07:13:35]URL: /json_proto [07:13:35]Method is POST - this is cgi request [07:13:35]url: /json_proto [07:13:35]query_string will be loaded in cgi processing [07:13:35]execute_cgi json_proto POST (null) [07:13:35]execute_cgi path=json_proto method=POST [07:13:35]POST find Content-Length [07:13:35]Host: 172.17.51.3:8080 [07:13:35]Content-Length: 677 [07:13:35]Content-Type: application/json [07:13:35] [07:13:35]POST finish read [07:13:35]Found Content-Length = 677 [07:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:35]execute_script... [07:13: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)343200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:35]POST & json_proto [07:13:35]process_json_proto [07:13:35]json parsed OK: [07:13:35]protocol is kg_v1.0 [07:13:35]action value=close_receipt [07:13:35]process_action close_receipt [07:13:35]cmd_close_receipt [07:13:35]MH_GetDate [07:13:35]Write to MH i2c: F0 00 00 05 71 65 [07:13:35]Write i2c OK [07:13:35]MH_I2C_Read... [07:13:35]Read from MH i2c: F0 [07:13:35]MH_I2C_Read... [07:13:35]Read from MH i2c: F0 09 00 [07:13:35]MH_I2C_Read... [07:13:35]Read from MH i2c: F0 09 00 05 71 00 A9 50 17 67 04 C1 95 66 A5 [07:13:35]GetLastDocTimeStamp 1729580415 [07:13:35]current date 1729581225 [07:13:35]FM_GetShiftState [07:13:35]SAM_PROTO_GetShiftState [07:13:35]wFMCommunicate request_size=4 [07:13:35]MH_SAM_APDU [07:13:35]CAPDU: 80 13 01 00 [07:13:35]Write to MH i2c: E2 08 00 06 71 80 13 01 00 00 00 00 00 F4 [07:13:35]Write i2c OK [07:13:35]MH_I2C_Read... [07:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:36]Read from MH i2c: E2 [07:13:36]MH_I2C_Read... [07:13:36]Read from MH i2c: E2 0E 00 [07:13:36]MH_I2C_Read... [07:13:36]Read from MH i2c: E2 0E 00 06 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CE [07:13:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:13:36]wFMCommunicate OK [07:13:36]SAM_PROTO_GetShiftState done [07:13:36]FM_GetShiftState done [07:13:36]opened in 1729557342 [07:13:36]opened+sec_in_day 1729643742 [07:13:36]quantity*price = 50041 [07:13:36]sum+1 = 50042 [07:13:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 15 22.10.2024 07:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30782 ФПД: 176715634196083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071345&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30782&fm=176715634196083&tin=02508201610067®Number=0000000000186857&sum=50000 [07:13:37]StoreToDocumentArchive [07:13:37]shift 116 fd 30782 [07:13:37]save to /storage/0116/doc_00030782 [07:13:37]save last doc name /storage/0116/doc_00030782 to /storage/kkm_last_doc_name [07:13:37]save OK [07:13:37]Clear old archive folders... [07:13:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:37]tlvbuf is B6FDBDA0 [07:13:37]SAM_PROTO_ClearQueue [07:13:37]wFMCommunicate request_size=4 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 09 00 00 [07:13:37]Write to MH i2c: E2 08 00 13 71 80 09 00 00 00 00 00 00 F6 [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 13 71 00 90 00 F8 [07:13:37]RAPDU: 90 00 [07:13:37]wFMCommunicate OK [07:13:37]SAM_PROTO_ClearQueue done [07:13:37]KKMCreateOFDPacket [07:13:37]OFDProtocolAddRootSTLVToBuf [07:13:37]FM_MakeSignedData [07:13:37]FM_MakeSignedData [07:13:37]SAM_PROTO_SignData [07:13:37]wFMCommunicate request_size=4 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 0D 01 02 [07:13:37]Write to MH i2c: E2 08 00 14 71 80 0D 01 02 00 00 00 00 FE [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 14 71 00 90 00 F9 [07:13:37]RAPDU: 90 00 [07:13:37]wFMCommunicate OK [07:13:37]wFMCommunicate request_size=255 [07:13:37]MH_SAM_APDU [07:13: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A9 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 78 00 00 35 04 06 00 A0 [07:13:37]Write to MH i2c: E2 02 01 15 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A9 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 78 00 00 35 04 06 00 A0 00 00 DF [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 15 71 00 90 00 FA [07:13:37]RAPDU: 90 00 [07:13:37]wFMCommunicate OK [07:13:37]wFMCommunicate request_size=10 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 0D 02 02 05 B8 D0 9A 3E 73 [07:13:37]Write to MH i2c: E2 0D 00 16 71 80 0D 02 02 05 00 B8 D0 9A 3E 73 00 00 DE [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 03 00 16 71 00 90 00 FB [07:13:37]RAPDU: 90 00 [07:13:37]wFMCommunicate OK [07:13:37]wFMCommunicate request_size=4 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 0D 03 02 [07:13:37]Write to MH i2c: E2 08 00 17 71 80 0D 03 02 00 00 00 00 03 [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 0B 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 0B 00 17 71 00 8F 22 27 C7 69 04 4E 53 90 00 B1 [07:13:37]RAPDU: 8F 22 27 C7 69 04 4E 53 90 00 [07:13:37]wFMCommunicate OK [07:13:37]SAM_PROTO_SignData done [07:13:37]FM_MakeSignedData done [07:13:37]CreateOFDProtocolMessage [07:13:37]wFMCommunicate request_size=4 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 11 00 00 [07:13:37]Write to MH i2c: E2 08 00 18 71 80 11 00 00 00 00 00 00 03 [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 17 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 17 00 18 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [07:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:13:37]wFMCommunicate OK [07:13:37]CreateOFDProtocolMessage done [07:13:37]OFDSenderStorePacket 30782 [07:13:37]StoreOFDPacket docnum=30782 [07:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DD 77 07 01 A5 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A9 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 78 00 00 35 04 06 00 A0 B8 D0 9A 3E 73 8F 22 27 C7 69 04 4E 53 [07:13:37]CheckFolder [07:13:37]dirname=/storage/ofd_packets [07:13:37]CheckFolder done [07:13:37]ProducePacketName [07:13:37]name=ofd_packets/00030782 [07:13:37]NVStorageSaveData ofd_packets/00030782 [07:13:37]File name is /storage/ofd_packets/00030782 [07:13:37]Write 301 bytes [07:13:37]NVStorageSaveData done [07:13:37]OFDSenderStorePacket done [07:13:37]KKMCreateOFDPacket done [07:13:37]NVStorageSaveData kkm_last_timestamp [07:13:37]File name is /storage/kkm_last_timestamp [07:13:37]Write 4 bytes [07:13:37]NVStorageSaveData done [07:13:37]ExternCall_PrintAddStr [07:13:37]wPrintStart [07:13:37]Write to MH i2c: 01 00 00 19 71 8A [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: 01 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: 01 07 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: 01 07 00 19 71 00 00 00 00 00 FF 0F 9F [07:13:37]RasterBufferAndPrint [07:13:37]line Счет N : (1)343200 [07:13:37]line ИНН: 02508201610067 [07:13:37]line Контрольно-Кассовый Чек [07:13:37]line ПРОДАЖА [07:13:37]line ТРК (МРК, ГНК) : 43 [07:13:37]line Товар: 2710124130 [07:13:37]line Аи-92-К-2 [07:13:37]line 7.480 * 66.90 [07:13:37]line = 500.41 [07:13:37]line НДС 12% НСП 1% [07:13:37]line > о реализуемом товаре [07:13:37]line ОКРУГЛЕНИЕ: -0.41 [07:13:37]line ИТОГО: 500.00 [07:13:37]line Внесено: 500.00 [07:13:37]line СДАЧА: 0.00 [07:13:37]line НСП 1% : 4.43 [07:13:37]line НДС 12% : 53.14 [07:13:37]line Наличными: 500.00 [07:13:37]line Безнал.: 0.00 [07:13:37]line Место: АЗС № 78 "Партнер Нефть" [07:13:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:13:37]line СНО: Общий режим [07:13:37]line Чек 15 22.10.2024 07:13 [07:13:37]line Смена: 116 ФФД: 1.0 [07:13:37]line ЗНМ: 0300000137 [07:13:37]line РНМ: 0000000000186857 [07:13:37]line Версия ККМ: v1.0 [07:13:37]line ФМ: 0000000002094219 [07:13:37]line ФД: 30782 [07:13:37]line ФПД: 176715634196083 [07:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071345&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30782&fm=176715634196083&tin=02508201610067®Number=0000000000186857&sum=50000 [07:13:38]OFD Sender: Processing packet 30782 [packets to send 10, broken 9] [07:13:38]ProducePacketName [07:13:38]name=ofd_packets/00030782 [07:13:38]OFD Sender: To server: pG, [07:13:38]CommunicateWithHost lk.salyk.kg:30040 [07:13:38]ConnectInit lk.salyk.kg [07:13:38]written 0, free lines is 4095 [07:13:38]Connected sock=10 [07:13:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DD 77 07 01 A5 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A9 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 78 00 00 35 04 06 00 A0 B8 D0 9A 3E 73 8F 22 27 C7 69 04 4E 53 [07:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 36 63 47 00 88 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 32 30 39 34 32 31 39 10 04 04 00 3E 78 00 00 F4 03 04 00 27 FB 16 67 B6 04 01 00 00 DD 78 F9 01 34 A5 FB 0E [07:13:38]CommunicateWithHost err = 0 [07:13:38]CheckOFDResponse [07:13:38]1017 (14) - 77093643461234 [07:13:38]1041 (16) - 0000000002094219 [07:13:38]1040 (4) - 30782 [07:13:38]1012 (4) - 22.10.2024 01:08 [07:13:38]1206 (1) - 0 [07:13:38]OFD Sender: Remove packet 30782 [07:13:38]ProducePacketName [07:13:38]name=ofd_packets/00030782 [07:13:38]NVStorageDeleteData [07:13:38]Write to MH i2c: 01 00 00 44 71 B5 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: 01 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: 01 07 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: 01 07 00 44 71 00 00 00 00 00 E4 0C AC [07:13:38]RasterBufferAndPrint [07:13:38]line [07:13:38]line [07:13:38]line [07:13:38]line [07:13:38]line [07:13:38]written 0, free lines is 3306 [07:13:38]MH_Cut [07:13:38]Write to MH i2c: D1 01 00 4B 71 01 8E [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: D1 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: D1 01 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: D1 01 00 4B 71 00 8D [07:13:38]Write to MH i2c: 01 00 00 4C 71 BD [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]OFD Sender: No OFD packet to send [07:13:39]*** Cut start [07:13:39]*** Partial cut [07:13:39]*** CUTSNS_PIN = 1 [07:13:39]*** CUTSNS_PIN = 0 [07:13:39]*** Brake cut motor [07:13:39]Read from MH i2c: 01 [07:13:39]MH_I2C_Read... [07:13:39]*** Stop cut motor [07:13:39]*** Cut end [07:13:39]Read from MH i2c: 01 07 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 07 00 4C 71 00 00 00 00 00 FF 0F D2 [07:13:39]process_action close_receipt done [07:13:39]requested_data is exist [07:13:39]produce_requested_data [07:13:39]requested_item fm.sn is exist - process it [07:13:39]wFMCommunicate request_size=4 [07:13:39]MH_SAM_APDU [07:13:39]CAPDU: 80 11 00 00 [07:13:39]Write to MH i2c: E2 08 00 4D 71 80 11 00 00 00 00 00 00 38 [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:39]Read from MH i2c: E2 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 17 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 17 00 4D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [07:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:13:39]wFMCommunicate OK [07:13:39]requested_item fd.num is exist - process it [07:13:39]SAM_PROTO_GetFieldsCounters [07:13:39]wFMCommunicate request_size=4 [07:13:39]MH_SAM_APDU [07:13:39]CAPDU: 80 13 00 00 [07:13:39]Write to MH i2c: E2 08 00 4E 71 80 13 00 00 00 00 00 00 3B [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:39]Read from MH i2c: E2 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 62 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 62 00 4E 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 78 00 00 0E 04 04 00 74 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 B8 [07:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:39]wFMCommunicate OK [07:13:39]SAM_PROTO_GetFieldsCounters done [07:13:39]requested_item shift.num is exist - process it [07:13:39]requested_item shift.opened is exist - process it [07:13:39]req_shift_opened [07:13:39]FM_GetShiftState [07:13:39]SAM_PROTO_GetShiftState [07:13:39]wFMCommunicate request_size=4 [07:13:39]MH_SAM_APDU [07:13:39]CAPDU: 80 13 01 00 [07:13:39]Write to MH i2c: E2 08 00 4F 71 80 13 01 00 00 00 00 00 3D [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:39]Read from MH i2c: E2 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 0E 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 0E 00 4F 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 17 [07:13:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:13:39]wFMCommunicate OK [07:13:39]SAM_PROTO_GetShiftState done [07:13:39]FM_GetShiftState done [07:13:39]req_shift_opened done [07:13:39]requested_item shift.open_date is exist - process it [07:13:39]req_shift_open_date [07:13:39]req_shift_open_date done [07:13:39]produce_requested_data done [07:13:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30782,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:13:39]process_action_free close_receipt [07:13:39]json_value_free [07:13:39]json_value_free done [07:13:39]process_json_proto returns [07:13:39]Send response to host [07:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30782,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:13:39]free response buf [07:13:39]execute_script done [07:13:39]execute_script returns [07:13:39]free content buf [07:13:39]Sock 9.Close socket [07:13:39]Sock 9.Thread stoped [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:13:59]accept exits with 7 [07:13:59]New connection [07:13:59]New thread 3067346276 created [07:13:59]Thread 3067489636 joined [07:13:59]Waiting for new connection... [07:13:59] Sock 7.Parse request [07:13:59]Sock 7.Check first char [07:13:59]Sock 7.First char is OK [07:13:59]request: POST /json_proto HTTP/1.0 [07:13:59]Method: POST [07:13:59]URL: /json_proto [07:13:59]Method is POST - this is cgi request [07:13:59]url: /json_proto [07:13:59]query_string will be loaded in cgi processing [07:13:59]execute_cgi json_proto POST (null) [07:13:59]execute_cgi path=json_proto method=POST [07:13:59]POST find Content-Length [07:13:59]Host: 172.17.51.3:8080 [07:13:59]Content-Length: 682 [07:13:59]Content-Type: application/json [07:13:59] [07:13:59]POST finish read [07:13:59]Found Content-Length = 682 [07:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:59]execute_script... [07:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:59]POST & json_proto [07:13:59]process_json_proto [07:13:59]json parsed OK: [07:13:59]protocol is kg_v1.0 [07:13:59]action value=close_receipt [07:13:59]process_action close_receipt [07:13:59]cmd_close_receipt [07:13:59]MH_GetDate [07:13:59]Write to MH i2c: F0 00 00 50 71 B0 [07:13:59]Write i2c OK [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: F0 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: F0 09 00 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: F0 09 00 50 71 00 C0 50 17 67 04 C1 95 66 07 [07:13:59]GetLastDocTimeStamp 1729581225 [07:13:59]current date 1729581248 [07:13:59]FM_GetShiftState [07:13:59]SAM_PROTO_GetShiftState [07:13:59]wFMCommunicate request_size=4 [07:13:59]MH_SAM_APDU [07:13:59]CAPDU: 80 13 01 00 [07:13:59]Write to MH i2c: E2 08 00 51 71 80 13 01 00 00 00 00 00 3F [07:13:59]Write i2c OK [07:13:59]MH_I2C_Read... [07:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:59]Read from MH i2c: E2 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: E2 0E 00 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: E2 0E 00 51 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 19 [07:13:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:13:59]wFMCommunicate OK [07:13:59]SAM_PROTO_GetShiftState done [07:13:59]FM_GetShiftState done [07:13:59]opened in 1729557342 [07:13:59]opened+sec_in_day 1729643742 [07:13:59]quantity*price = 200031 [07:13:59]sum+1 = 200032 [07:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 16 22.10.2024 07:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30783 ФПД: 109942354826107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071408&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30783&fm=109942354826107&tin=02508201610067®Number=0000000000186857&sum=200000 [07:14:00]StoreToDocumentArchive [07:14:00]shift 116 fd 30783 [07:14:00]save to /storage/0116/doc_00030783 [07:14:00]save last doc name /storage/0116/doc_00030783 to /storage/kkm_last_doc_name [07:14:00]save OK [07:14:00]Clear old archive folders... [07:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:00]tlvbuf is 01E56180 [07:14:00]SAM_PROTO_ClearQueue [07:14:00]wFMCommunicate request_size=4 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 09 00 00 [07:14:00]Write to MH i2c: E2 08 00 5E 71 80 09 00 00 00 00 00 00 41 [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 5E 71 00 90 00 43 [07:14:00]RAPDU: 90 00 [07:14:00]wFMCommunicate OK [07:14:00]SAM_PROTO_ClearQueue done [07:14:00]KKMCreateOFDPacket [07:14:00]OFDProtocolAddRootSTLVToBuf [07:14:00]FM_MakeSignedData [07:14:00]FM_MakeSignedData [07:14:00]SAM_PROTO_SignData [07:14:00]wFMCommunicate request_size=4 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 0D 01 02 [07:14:00]Write to MH i2c: E2 08 00 5F 71 80 0D 01 02 00 00 00 00 49 [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 5F 71 00 90 00 44 [07:14:00]RAPDU: 90 00 [07:14:00]wFMCommunicate OK [07:14:00]wFMCommunicate request_size=255 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C0 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 78 00 00 35 04 06 00 63 [07:14:00]Write to MH i2c: E2 02 01 60 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C0 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 78 00 00 35 04 06 00 63 00 00 48 [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 60 71 00 90 00 45 [07:14:00]RAPDU: 90 00 [07:14:00]wFMCommunicate OK [07:14:00]wFMCommunicate request_size=10 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 0D 02 02 05 FD F3 01 53 7B [07:14:00]Write to MH i2c: E2 0D 00 61 71 80 0D 02 02 05 00 FD F3 01 53 7B 00 00 15 [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 03 00 61 71 00 90 00 46 [07:14:00]RAPDU: 90 00 [07:14:00]wFMCommunicate OK [07:14:00]wFMCommunicate request_size=4 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 0D 03 02 [07:14:00]Write to MH i2c: E2 08 00 62 71 80 0D 03 02 00 00 00 00 4E [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 0B 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 0B 00 62 71 00 C6 4E 42 BB F1 F8 01 D5 90 00 1F [07:14:00]RAPDU: C6 4E 42 BB F1 F8 01 D5 90 00 [07:14:00]wFMCommunicate OK [07:14:00]SAM_PROTO_SignData done [07:14:00]FM_MakeSignedData done [07:14:00]CreateOFDProtocolMessage [07:14:00]wFMCommunicate request_size=4 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 11 00 00 [07:14:00]Write to MH i2c: E2 08 00 63 71 80 11 00 00 00 00 00 00 4E [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 17 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 17 00 63 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [07:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:14:00]wFMCommunicate OK [07:14:00]CreateOFDProtocolMessage done [07:14:00]OFDSenderStorePacket 30783 [07:14:00]StoreOFDPacket docnum=30783 [07:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4B A5 07 01 92 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C0 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 78 00 00 35 04 06 00 63 FD F3 01 53 7B C6 4E 42 BB F1 F8 01 D5 [07:14:00]CheckFolder [07:14:00]dirname=/storage/ofd_packets [07:14:00]CheckFolder done [07:14:00]ProducePacketName [07:14:00]name=ofd_packets/00030783 [07:14:00]NVStorageSaveData ofd_packets/00030783 [07:14:00]File name is /storage/ofd_packets/00030783 [07:14:00]Write 301 bytes [07:14:00]NVStorageSaveData done [07:14:00]OFDSenderStorePacket done [07:14:00]KKMCreateOFDPacket done [07:14:00]NVStorageSaveData kkm_last_timestamp [07:14:00]File name is /storage/kkm_last_timestamp [07:14:00]Write 4 bytes [07:14:00]NVStorageSaveData done [07:14:00]ExternCall_PrintAddStr [07:14:00]wPrintStart [07:14:00]Write to MH i2c: 01 00 00 64 71 D5 [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: 01 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: 01 07 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: 01 07 00 64 71 00 00 00 00 00 FF 0F EA [07:14:00]RasterBufferAndPrint [07:14:00]line Счет N : (1)343199 [07:14:00]line ИНН: 02508201610067 [07:14:00]line Контрольно-Кассовый Чек [07:14:00]line ПРОДАЖА [07:14:00]line ТРК (МРК, ГНК) : 63 [07:14:00]line Товар: 2710124130 [07:14:00]line Аи-92-К-2 [07:14:00]line 29.900 * 66.90 [07:14:00]line = 2000.31 [07:14:00]line НДС 12% НСП 1% [07:14:00]line > о реализуемом товаре [07:14:00]line ОКРУГЛЕНИЕ: -0.31 [07:14:00]line ИТОГО: 2000.00 [07:14:00]line Внесено: 2000.00 [07:14:00]line СДАЧА: 0.00 [07:14:00]line НСП 1% : 17.70 [07:14:00]line НДС 12% : 212.42 [07:14:00]line Наличными: 2000.00 [07:14:00]line Безнал.: 0.00 [07:14:00]line Место: АЗС № 78 "Партнер Нефть" [07:14:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:14:00]line СНО: Общий режим [07:14:00]line Чек 16 22.10.2024 07:14 [07:14:00]line Смена: 116 ФФД: 1.0 [07:14:00]line ЗНМ: 0300000137 [07:14:00]line РНМ: 0000000000186857 [07:14:00]line Версия ККМ: v1.0 [07:14:00]line ФМ: 0000000002094219 [07:14:00]line ФД: 30783 [07:14:00]line ФПД: 109942354826107 [07:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071408&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30783&fm=109942354826107&tin=02508201610067®Number=0000000000186857&sum=200000 [07:14:01]OFD Sender: Processing packet 30783 [packets to send 10, broken 9] [07:14:01]ProducePacketName [07:14:01]name=ofd_packets/00030783 [07:14:01]OFD Sender: To server: pG, [07:14:01]CommunicateWithHost lk.salyk.kg:30040 [07:14:01]ConnectInit lk.salyk.kg [07:14:01]written 0, free lines is 4095 [07:14:01]Connected sock=10 [07:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4B A5 07 01 92 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C0 50 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 78 00 00 35 04 06 00 63 FD F3 01 53 7B C6 4E 42 BB F1 F8 01 D5 [07:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 88 30 47 00 CA BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 78 00 00 F4 03 04 00 3E FB 16 67 B6 04 01 00 00 D4 24 CB 40 B3 8D DB B4 [07:14:01]CommunicateWithHost err = 0 [07:14:01]CheckOFDResponse [07:14:01]1017 (14) - 77093643461234 [07:14:01]1041 (16) - 0000000002094219 [07:14:01]1040 (4) - 30783 [07:14:01]1012 (4) - 22.10.2024 01:09 [07:14:01]1206 (1) - 0 [07:14:01]OFD Sender: Remove packet 30783 [07:14:01]ProducePacketName [07:14:01]name=ofd_packets/00030783 [07:14:01]NVStorageDeleteData [07:14:01]Write to MH i2c: 01 00 00 8F 71 00 [07:14:01]Write i2c OK [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: 01 [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: 01 07 00 [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: 01 07 00 8F 71 00 00 00 00 00 F4 0C 07 [07:14:01]RasterBufferAndPrint [07:14:01]line [07:14:01]line [07:14:01]line [07:14:01]line [07:14:01]line [07:14:01]written 0, free lines is 3322 [07:14:01]MH_Cut [07:14:01]Write to MH i2c: D1 01 00 96 71 01 D9 [07:14:01]Write i2c OK [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: D1 [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: D1 01 00 [07:14:01]MH_I2C_Read... [07:14:01]Read from MH i2c: D1 01 00 96 71 00 D8 [07:14:01]Write to MH i2c: 01 00 00 97 71 08 [07:14:01]Write i2c OK [07:14:01]MH_I2C_Read... [07:14:01]OFD Sender: No OFD packet to send [07:14:02]*** Cut start [07:14:02]*** Partial cut [07:14:02]*** CUTSNS_PIN = 1 [07:14:02]*** CUTSNS_PIN = 0 [07:14:02]*** Brake cut motor [07:14:02]Read from MH i2c: 01 [07:14:02]MH_I2C_Read... [07:14:02]*** Stop cut motor [07:14:02]*** Cut end [07:14:02]Read from MH i2c: 01 07 00 [07:14:02]MH_I2C_Read... [07:14:02]Read from MH i2c: 01 07 00 97 71 00 00 00 00 00 FF 0F 1D [07:14:02]process_action close_receipt done [07:14:02]requested_data is exist [07:14:02]produce_requested_data [07:14:02]requested_item fm.sn is exist - process it [07:14:02]wFMCommunicate request_size=4 [07:14:02]MH_SAM_APDU [07:14:02]CAPDU: 80 11 00 00 [07:14:02]Write to MH i2c: E2 08 00 98 71 80 11 00 00 00 00 00 00 83 [07:14:02]Write i2c OK [07:14:02]MH_I2C_Read... [07:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:02]Read from MH i2c: E2 [07:14:02]MH_I2C_Read... [07:14:02]Read from MH i2c: E2 17 00 [07:14:02]MH_I2C_Read... [07:14:02]Read from MH i2c: E2 17 00 98 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [07:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:14:02]wFMCommunicate OK [07:14:02]requested_item fd.num is exist - process it [07:14:02]SAM_PROTO_GetFieldsCounters [07:14:02]wFMCommunicate request_size=4 [07:14:02]MH_SAM_APDU [07:14:02]CAPDU: 80 13 00 00 [07:14:02]Write to MH i2c: E2 08 00 99 71 80 13 00 00 00 00 00 00 86 [07:14:02]Write i2c OK [07:14:02]MH_I2C_Read... [07:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:03]Read from MH i2c: E2 [07:14:03]MH_I2C_Read... [07:14:03]Read from MH i2c: E2 62 00 [07:14:03]MH_I2C_Read... [07:14:03]Read from MH i2c: E2 62 00 99 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 78 00 00 0E 04 04 00 74 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 07 [07:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 78 00 00 0E 04 04 00 74 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 [07:14:03]wFMCommunicate OK [07:14:03]SAM_PROTO_GetFieldsCounters done [07:14:03]requested_item shift.num is exist - process it [07:14:03]requested_item shift.opened is exist - process it [07:14:03]req_shift_opened [07:14:03]FM_GetShiftState [07:14:03]SAM_PROTO_GetShiftState [07:14:03]wFMCommunicate request_size=4 [07:14:03]MH_SAM_APDU [07:14:03]CAPDU: 80 13 01 00 [07:14:03]Write to MH i2c: E2 08 00 9A 71 80 13 01 00 00 00 00 00 88 [07:14:03]Write i2c OK [07:14:03]MH_I2C_Read... [07:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:03]Read from MH i2c: E2 [07:14:03]MH_I2C_Read... [07:14:03]Read from MH i2c: E2 0E 00 [07:14:03]MH_I2C_Read... [07:14:03]Read from MH i2c: E2 0E 00 9A 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 62 [07:14:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:14:03]wFMCommunicate OK [07:14:03]SAM_PROTO_GetShiftState done [07:14:03]FM_GetShiftState done [07:14:03]req_shift_opened done [07:14:03]requested_item shift.open_date is exist - process it [07:14:03]req_shift_open_date [07:14:03]req_shift_open_date done [07:14:03]produce_requested_data done [07:14:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30783,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:14:03]process_action_free close_receipt [07:14:03]json_value_free [07:14:03]json_value_free done [07:14:03]process_json_proto returns [07:14:03]Send response to host [07:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30783,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:14:03]free response buf [07:14:03]execute_script done [07:14:03]execute_script returns [07:14:03]free content buf [07:14:03]Sock 7.Close socket [07:14:03]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:27]recv_with_timeout no data received [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:44]recv_with_timeout no data received [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:47]recv_with_timeout no data received [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:08]recv_with_timeout no data received [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:36]accept exits with 9 [07:24:36]New connection [07:24:36]New thread 3067489636 created [07:24:36]Thread 3067346276 joined [07:24:36]Waiting for new connection... [07:24:36] Sock 9.Parse request [07:24:36]Sock 9.Check first char [07:24:36]Sock 9.First char is OK [07:24:36]request: POST /json_proto HTTP/1.0 [07:24:36]Method: POST [07:24:36]URL: /json_proto [07:24:36]Method is POST - this is cgi request [07:24:36]url: /json_proto [07:24:36]query_string will be loaded in cgi processing [07:24:36]execute_cgi json_proto POST (null) [07:24:36]execute_cgi path=json_proto method=POST [07:24:36]POST find Content-Length [07:24:36]Host: 172.17.51.3:8080 [07:24:36]Content-Length: 682 [07:24:36]Content-Type: application/json [07:24:36] [07:24:36]POST finish read [07:24:36]Found Content-Length = 682 [07:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:36]execute_script... [07:24:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:36]POST & json_proto [07:24:36]process_json_proto [07:24:36]json parsed OK: [07:24:36]protocol is kg_v1.0 [07:24:36]action value=close_receipt [07:24:36]process_action close_receipt [07:24:36]cmd_close_receipt [07:24:36]MH_GetDate [07:24:36]Write to MH i2c: F0 00 00 9B 71 FB [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: F0 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: F0 09 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: F0 09 00 9B 71 00 3D 53 17 67 04 C1 95 66 D2 [07:24:36]GetLastDocTimeStamp 1729581248 [07:24:36]current date 1729581885 [07:24:36]FM_GetShiftState [07:24:36]SAM_PROTO_GetShiftState [07:24:36]wFMCommunicate request_size=4 [07:24:36]MH_SAM_APDU [07:24:36]CAPDU: 80 13 01 00 [07:24:36]Write to MH i2c: E2 08 00 9C 71 80 13 01 00 00 00 00 00 8A [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:36]Read from MH i2c: E2 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 0E 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 0E 00 9C 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 64 [07:24:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:24:36]wFMCommunicate OK [07:24:36]SAM_PROTO_GetShiftState done [07:24:36]FM_GetShiftState done [07:24:36]opened in 1729557342 [07:24:36]opened+sec_in_day 1729643742 [07:24:36]quantity*price = 100015 [07:24:36]sum+1 = 100017 [07:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 17 22.10.2024 07:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30784 ФПД: 274412743108522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072445&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30784&fm=274412743108522&tin=02508201610067®Number=0000000000186857&sum=100000 [07:24:37]StoreToDocumentArchive [07:24:37]shift 116 fd 30784 [07:24:37]save to /storage/0116/doc_00030784 [07:24:37]save last doc name /storage/0116/doc_00030784 to /storage/kkm_last_doc_name [07:24:37]save OK [07:24:37]Clear old archive folders... [07:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:37]tlvbuf is 01E0C9B0 [07:24:37]SAM_PROTO_ClearQueue [07:24:37]wFMCommunicate request_size=4 [07:24:37]MH_SAM_APDU [07:24:37]CAPDU: 80 09 00 00 [07:24:37]Write to MH i2c: E2 08 00 A9 71 80 09 00 00 00 00 00 00 8C [07:24:37]Write i2c OK [07:24:37]MH_I2C_Read... [07:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:37]Read from MH i2c: E2 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 03 00 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 03 00 A9 71 00 90 00 8E [07:24:37]RAPDU: 90 00 [07:24:37]wFMCommunicate OK [07:24:37]SAM_PROTO_ClearQueue done [07:24:37]KKMCreateOFDPacket [07:24:37]OFDProtocolAddRootSTLVToBuf [07:24:37]FM_MakeSignedData [07:24:37]FM_MakeSignedData [07:24:37]SAM_PROTO_SignData [07:24:37]wFMCommunicate request_size=4 [07:24:37]MH_SAM_APDU [07:24:37]CAPDU: 80 0D 01 02 [07:24:37]Write to MH i2c: E2 08 00 AA 71 80 0D 01 02 00 00 00 00 94 [07:24:37]Write i2c OK [07:24:37]MH_I2C_Read... [07:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:37]Read from MH i2c: E2 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 03 00 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 03 00 AA 71 00 90 00 8F [07:24:37]RAPDU: 90 00 [07:24:37]wFMCommunicate OK [07:24:37]wFMCommunicate request_size=255 [07:24:37]MH_SAM_APDU [07:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3D 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 78 00 00 35 04 06 00 F9 [07:24:37]Write to MH i2c: E2 02 01 AB 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3D 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 78 00 00 35 04 06 00 F9 00 00 63 [07:24:37]Write i2c OK [07:24:37]MH_I2C_Read... [07:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:38]Read from MH i2c: E2 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 03 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 03 00 AB 71 00 90 00 90 [07:24:38]RAPDU: 90 00 [07:24:38]wFMCommunicate OK [07:24:38]wFMCommunicate request_size=10 [07:24:38]MH_SAM_APDU [07:24:38]CAPDU: 80 0D 02 02 05 93 B2 13 27 AA [07:24:38]Write to MH i2c: E2 0D 00 AC 71 80 0D 02 02 05 00 93 B2 13 27 AA 00 00 CA [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:38]Read from MH i2c: E2 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 03 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 03 00 AC 71 00 90 00 91 [07:24:38]RAPDU: 90 00 [07:24:38]wFMCommunicate OK [07:24:38]wFMCommunicate request_size=4 [07:24:38]MH_SAM_APDU [07:24:38]CAPDU: 80 0D 03 02 [07:24:38]Write to MH i2c: E2 08 00 AD 71 80 0D 03 02 00 00 00 00 99 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:38]Read from MH i2c: E2 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 0B 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 0B 00 AD 71 00 5E FE D3 98 97 2C 3D 35 90 00 96 [07:24:38]RAPDU: 5E FE D3 98 97 2C 3D 35 90 00 [07:24:38]wFMCommunicate OK [07:24:38]SAM_PROTO_SignData done [07:24:38]FM_MakeSignedData done [07:24:38]CreateOFDProtocolMessage [07:24:38]wFMCommunicate request_size=4 [07:24:38]MH_SAM_APDU [07:24:38]CAPDU: 80 11 00 00 [07:24:38]Write to MH i2c: E2 08 00 AE 71 80 11 00 00 00 00 00 00 99 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:38]Read from MH i2c: E2 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 17 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: E2 17 00 AE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [07:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:24:38]wFMCommunicate OK [07:24:38]CreateOFDProtocolMessage done [07:24:38]OFDSenderStorePacket 30784 [07:24:38]StoreOFDPacket docnum=30784 [07:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E 4C 07 01 CC 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3D 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 78 00 00 35 04 06 00 F9 93 B2 13 27 AA 5E FE D3 98 97 2C 3D 35 [07:24:38]CheckFolder [07:24:38]dirname=/storage/ofd_packets [07:24:38]CheckFolder done [07:24:38]ProducePacketName [07:24:38]name=ofd_packets/00030784 [07:24:38]NVStorageSaveData ofd_packets/00030784 [07:24:38]File name is /storage/ofd_packets/00030784 [07:24:38]Write 301 bytes [07:24:38]NVStorageSaveData done [07:24:38]OFDSenderStorePacket done [07:24:38]KKMCreateOFDPacket done [07:24:38]NVStorageSaveData kkm_last_timestamp [07:24:38]File name is /storage/kkm_last_timestamp [07:24:38]Write 4 bytes [07:24:38]NVStorageSaveData done [07:24:38]ExternCall_PrintAddStr [07:24:38]wPrintStart [07:24:38]Write to MH i2c: 01 00 00 AF 71 20 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 AF 71 00 00 00 00 00 FF 0F 35 [07:24:38]RasterBufferAndPrint [07:24:38]line Счет N : (1)343201 [07:24:38]line ИНН: 02508201610067 [07:24:38]line Контрольно-Кассовый Чек [07:24:38]line ПРОДАЖА [07:24:38]line ТРК (МРК, ГНК) : 63 [07:24:38]line Товар: 2710124130 [07:24:38]line Аи-92-К-2 [07:24:38]line 14.950 * 66.90 [07:24:38]line = 1000.16 [07:24:38]line НДС 12% НСП 1% [07:24:38]line > о реализуемом товаре [07:24:38]line ОКРУГЛЕНИЕ: -0.16 [07:24:38]line ИТОГО: 1000.00 [07:24:38]line Внесено: 1000.00 [07:24:38]line СДАЧА: 0.00 [07:24:38]line НСП 1% : 8.85 [07:24:38]line НДС 12% : 106.21 [07:24:38]line Наличными: 1000.00 [07:24:38]line Безнал.: 0.00 [07:24:38]line Место: АЗС № 78 "Партнер Нефть" [07:24:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:24:38]line СНО: Общий режим [07:24:38]line Чек 17 22.10.2024 07:24 [07:24:38]line Смена: 116 ФФД: 1.0 [07:24:38]line ЗНМ: 0300000137 [07:24:38]line РНМ: 0000000000186857 [07:24:38]line Версия ККМ: v1.0 [07:24:38]line ФМ: 0000000002094219 [07:24:38]line ФД: 30784 [07:24:38]line ФПД: 274412743108522 [07:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072445&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30784&fm=274412743108522&tin=02508201610067®Number=0000000000186857&sum=100000 [07:24:38]OFD Sender: Processing packet 30784 [packets to send 10, broken 9] [07:24:38]ProducePacketName [07:24:38]name=ofd_packets/00030784 [07:24:38]OFD Sender: To server: pG, [07:24:38]CommunicateWithHost lk.salyk.kg:30040 [07:24:38]ConnectInit lk.salyk.kg [07:24:38]written 0, free lines is 4095 [07:24:38]Connected sock=10 [07:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E 4C 07 01 CC 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3D 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 78 00 00 35 04 06 00 F9 93 B2 13 27 AA 5E FE D3 98 97 2C 3D 35 [07:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AF BD 47 00 03 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 78 00 00 F4 03 04 00 BC FD 16 67 B6 04 01 00 00 16 BA 8B 80 32 C8 08 CE [07:24:38]CommunicateWithHost err = 0 [07:24:38]CheckOFDResponse [07:24:38]1017 (14) - 77093643461234 [07:24:38]1041 (16) - 0000000002094219 [07:24:38]1040 (4) - 30784 [07:24:38]1012 (4) - 22.10.2024 01:19 [07:24:38]1206 (1) - 0 [07:24:38]OFD Sender: Remove packet 30784 [07:24:38]ProducePacketName [07:24:38]name=ofd_packets/00030784 [07:24:38]NVStorageDeleteData [07:24:39]Write to MH i2c: 01 00 00 DA 71 4B [07:24:39]Write i2c OK [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: 01 [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: 01 07 00 [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: 01 07 00 DA 71 00 00 00 00 00 F4 0C 52 [07:24:39]RasterBufferAndPrint [07:24:39]line [07:24:39]line [07:24:39]line [07:24:39]line [07:24:39]line [07:24:39]written 0, free lines is 3326 [07:24:39]MH_Cut [07:24:39]Write to MH i2c: D1 01 00 E1 71 01 24 [07:24:39]Write i2c OK [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: D1 [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: D1 01 00 [07:24:39]MH_I2C_Read... [07:24:39]Read from MH i2c: D1 01 00 E1 71 00 23 [07:24:39]Write to MH i2c: 01 00 00 E2 71 53 [07:24:39]Write i2c OK [07:24:39]MH_I2C_Read... [07:24:39]OFD Sender: No OFD packet to send [07:24:39]*** Cut start [07:24:39]*** Partial cut [07:24:39]*** CUTSNS_PIN = 1 [07:24:39]*** CUTSNS_PIN = 0 [07:24:40]*** Brake cut motor [07:24:40]Read from MH i2c: 01 [07:24:40]MH_I2C_Read... [07:24:40]*** Stop cut motor [07:24:40]*** Cut end [07:24:40]Read from MH i2c: 01 07 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: 01 07 00 E2 71 00 00 00 00 00 FF 0F 68 [07:24:40]process_action close_receipt done [07:24:40]requested_data is exist [07:24:40]produce_requested_data [07:24:40]requested_item fm.sn is exist - process it [07:24:40]wFMCommunicate request_size=4 [07:24:40]MH_SAM_APDU [07:24:40]CAPDU: 80 11 00 00 [07:24:40]Write to MH i2c: E2 08 00 E3 71 80 11 00 00 00 00 00 00 CE [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:40]Read from MH i2c: E2 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 17 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 17 00 E3 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [07:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:24:40]wFMCommunicate OK [07:24:40]requested_item fd.num is exist - process it [07:24:40]SAM_PROTO_GetFieldsCounters [07:24:40]wFMCommunicate request_size=4 [07:24:40]MH_SAM_APDU [07:24:40]CAPDU: 80 13 00 00 [07:24:40]Write to MH i2c: E2 08 00 E4 71 80 13 00 00 00 00 00 00 D1 [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:40]Read from MH i2c: E2 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 62 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 62 00 E4 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 78 00 00 0E 04 04 00 74 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 56 [07:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 78 00 00 0E 04 04 00 74 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 [07:24:40]wFMCommunicate OK [07:24:40]SAM_PROTO_GetFieldsCounters done [07:24:40]requested_item shift.num is exist - process it [07:24:40]requested_item shift.opened is exist - process it [07:24:40]req_shift_opened [07:24:40]FM_GetShiftState [07:24:40]SAM_PROTO_GetShiftState [07:24:40]wFMCommunicate request_size=4 [07:24:40]MH_SAM_APDU [07:24:40]CAPDU: 80 13 01 00 [07:24:40]Write to MH i2c: E2 08 00 E5 71 80 13 01 00 00 00 00 00 D3 [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:40]Read from MH i2c: E2 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 E5 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AD [07:24:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:24:40]wFMCommunicate OK [07:24:40]SAM_PROTO_GetShiftState done [07:24:40]FM_GetShiftState done [07:24:40]req_shift_opened done [07:24:40]requested_item shift.open_date is exist - process it [07:24:40]req_shift_open_date [07:24:40]req_shift_open_date done [07:24:40]produce_requested_data done [07:24:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30784,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:24:40]process_action_free close_receipt [07:24:40]json_value_free [07:24:40]json_value_free done [07:24:40]process_json_proto returns [07:24:40]Send response to host [07:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30784,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:24:40]free response buf [07:24:40]execute_script done [07:24:40]execute_script returns [07:24:40]free content buf [07:24:40]Sock 9.Close socket [07:24:40]Sock 9.Thread stoped [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:47]accept exits with 7 [07:26:47]New connection [07:26:47]New thread 3067346276 created [07:26:47]Thread 3067489636 joined [07:26:47]Waiting for new connection... [07:26:47] Sock 7.Parse request [07:26:47]Sock 7.Check first char [07:26:47]Sock 7.First char is OK [07:26:47]request: POST /json_proto HTTP/1.0 [07:26:47]Method: POST [07:26:47]URL: /json_proto [07:26:47]Method is POST - this is cgi request [07:26:47]url: /json_proto [07:26:47]query_string will be loaded in cgi processing [07:26:47]execute_cgi json_proto POST (null) [07:26:47]execute_cgi path=json_proto method=POST [07:26:47]POST find Content-Length [07:26:47]Host: 172.17.51.3:8080 [07:26:47]Content-Length: 677 [07:26:47]Content-Type: application/json [07:26:47] [07:26:47]POST finish read [07:26:47]Found Content-Length = 677 [07:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:47]execute_script... [07:26: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)343202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:47]POST & json_proto [07:26:47]process_json_proto [07:26:47]json parsed OK: [07:26:47]protocol is kg_v1.0 [07:26:47]action value=close_receipt [07:26:47]process_action close_receipt [07:26:47]cmd_close_receipt [07:26:47]MH_GetDate [07:26:47]Write to MH i2c: F0 00 00 E6 71 46 [07:26:47]Write i2c OK [07:26:47]MH_I2C_Read... [07:26:47]Read from MH i2c: F0 [07:26:47]MH_I2C_Read... [07:26:47]Read from MH i2c: F0 09 00 [07:26:47]MH_I2C_Read... [07:26:47]Read from MH i2c: F0 09 00 E6 71 00 C1 53 17 67 04 C1 95 66 A1 [07:26:47]GetLastDocTimeStamp 1729581885 [07:26:47]current date 1729582017 [07:26:47]FM_GetShiftState [07:26:47]SAM_PROTO_GetShiftState [07:26:47]wFMCommunicate request_size=4 [07:26:47]MH_SAM_APDU [07:26:47]CAPDU: 80 13 01 00 [07:26:47]Write to MH i2c: E2 08 00 E7 71 80 13 01 00 00 00 00 00 D5 [07:26:47]Write i2c OK [07:26:47]MH_I2C_Read... [07:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:47]Read from MH i2c: E2 [07:26:47]MH_I2C_Read... [07:26:47]Read from MH i2c: E2 0E 00 [07:26:47]MH_I2C_Read... [07:26:47]Read from MH i2c: E2 0E 00 E7 71 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AF [07:26:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:26:47]wFMCommunicate OK [07:26:47]SAM_PROTO_GetShiftState done [07:26:47]FM_GetShiftState done [07:26:47]opened in 1729557342 [07:26:47]opened+sec_in_day 1729643742 [07:26:47]quantity*price = 50041 [07:26:47]sum+1 = 50042 [07:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 18 22.10.2024 07:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30785 ФПД: 237976139665464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30785&fm=237976139665464&tin=02508201610067®Number=0000000000186857&sum=50000 [07:26:49]StoreToDocumentArchive [07:26:49]shift 116 fd 30785 [07:26:49]save to /storage/0116/doc_00030785 [07:26:49]save last doc name /storage/0116/doc_00030785 to /storage/kkm_last_doc_name [07:26:49]save OK [07:26:49]Clear old archive folders... [07:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:26:49]tlvbuf is 01E0C440 [07:26:49]SAM_PROTO_ClearQueue [07:26:49]wFMCommunicate request_size=4 [07:26:49]MH_SAM_APDU [07:26:49]CAPDU: 80 09 00 00 [07:26:49]Write to MH i2c: E2 08 00 F4 71 80 09 00 00 00 00 00 00 D7 [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 F4 71 00 90 00 D9 [07:26:49]RAPDU: 90 00 [07:26:49]wFMCommunicate OK [07:26:49]SAM_PROTO_ClearQueue done [07:26:49]KKMCreateOFDPacket [07:26:49]OFDProtocolAddRootSTLVToBuf [07:26:49]FM_MakeSignedData [07:26:49]FM_MakeSignedData [07:26:49]SAM_PROTO_SignData [07:26:49]wFMCommunicate request_size=4 [07:26:49]MH_SAM_APDU [07:26:49]CAPDU: 80 0D 01 02 [07:26:49]Write to MH i2c: E2 08 00 F5 71 80 0D 01 02 00 00 00 00 DF [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 F5 71 00 90 00 DA [07:26:49]RAPDU: 90 00 [07:26:49]wFMCommunicate OK [07:26:49]wFMCommunicate request_size=255 [07:26:49]MH_SAM_APDU [07:26: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 78 00 00 35 04 06 00 D8 [07:26:49]Write to MH i2c: E2 02 01 F6 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 78 00 00 35 04 06 00 D8 00 00 19 [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 F6 71 00 90 00 DB [07:26:49]RAPDU: 90 00 [07:26:49]wFMCommunicate OK [07:26:49]wFMCommunicate request_size=10 [07:26:49]MH_SAM_APDU [07:26:49]CAPDU: 80 0D 02 02 05 70 23 45 10 38 [07:26:49]Write to MH i2c: E2 0D 00 F7 71 80 0D 02 02 05 00 70 23 45 10 38 00 00 0C [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 03 00 F7 71 00 90 00 DC [07:26:49]RAPDU: 90 00 [07:26:49]wFMCommunicate OK [07:26:49]wFMCommunicate request_size=4 [07:26:49]MH_SAM_APDU [07:26:49]CAPDU: 80 0D 03 02 [07:26:49]Write to MH i2c: E2 08 00 F8 71 80 0D 03 02 00 00 00 00 E4 [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 0B 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 0B 00 F8 71 00 67 07 6F 34 06 61 F3 1F 90 00 6F [07:26:49]RAPDU: 67 07 6F 34 06 61 F3 1F 90 00 [07:26:49]wFMCommunicate OK [07:26:49]SAM_PROTO_SignData done [07:26:49]FM_MakeSignedData done [07:26:49]CreateOFDProtocolMessage [07:26:49]wFMCommunicate request_size=4 [07:26:49]MH_SAM_APDU [07:26:49]CAPDU: 80 11 00 00 [07:26:49]Write to MH i2c: E2 08 00 F9 71 80 11 00 00 00 00 00 00 E4 [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:49]Read from MH i2c: E2 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 17 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: E2 17 00 F9 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [07:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:26:49]wFMCommunicate OK [07:26:49]CreateOFDProtocolMessage done [07:26:49]OFDSenderStorePacket 30785 [07:26:49]StoreOFDPacket docnum=30785 [07:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 53 4B 07 01 B3 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 78 00 00 35 04 06 00 D8 70 23 45 10 38 67 07 6F 34 06 61 F3 1F [07:26:49]CheckFolder [07:26:49]dirname=/storage/ofd_packets [07:26:49]CheckFolder done [07:26:49]ProducePacketName [07:26:49]name=ofd_packets/00030785 [07:26:49]NVStorageSaveData ofd_packets/00030785 [07:26:49]File name is /storage/ofd_packets/00030785 [07:26:49]Write 301 bytes [07:26:49]NVStorageSaveData done [07:26:49]OFDSenderStorePacket done [07:26:49]KKMCreateOFDPacket done [07:26:49]NVStorageSaveData kkm_last_timestamp [07:26:49]File name is /storage/kkm_last_timestamp [07:26:49]Write 4 bytes [07:26:49]NVStorageSaveData done [07:26:49]ExternCall_PrintAddStr [07:26:49]wPrintStart [07:26:49]Write to MH i2c: 01 00 00 FA 71 6B [07:26:49]Write i2c OK [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: 01 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: 01 07 00 [07:26:49]MH_I2C_Read... [07:26:49]Read from MH i2c: 01 07 00 FA 71 00 00 00 00 00 FF 0F 80 [07:26:49]RasterBufferAndPrint [07:26:49]line Счет N : (1)343202 [07:26:49]line ИНН: 02508201610067 [07:26:49]line Контрольно-Кассовый Чек [07:26:49]line ПРОДАЖА [07:26:49]line ТРК (МРК, ГНК) : 63 [07:26:49]line Товар: 2710124130 [07:26:49]line Аи-92-К-2 [07:26:49]line 7.480 * 66.90 [07:26:49]line = 500.41 [07:26:49]line НДС 12% НСП 1% [07:26:49]line > о реализуемом товаре [07:26:49]line ОКРУГЛЕНИЕ: -0.41 [07:26:49]line ИТОГО: 500.00 [07:26:49]line Внесено: 500.00 [07:26:49]line СДАЧА: 0.00 [07:26:49]line НСП 1% : 4.43 [07:26:49]line НДС 12% : 53.14 [07:26:49]line Наличными: 500.00 [07:26:49]line Безнал.: 0.00 [07:26:49]line Место: АЗС № 78 "Партнер Нефть" [07:26:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:26:49]line СНО: Общий режим [07:26:49]line Чек 18 22.10.2024 07:26 [07:26:49]line Смена: 116 ФФД: 1.0 [07:26:49]line ЗНМ: 0300000137 [07:26:49]line РНМ: 0000000000186857 [07:26:49]line Версия ККМ: v1.0 [07:26:49]line ФМ: 0000000002094219 [07:26:49]line ФД: 30785 [07:26:49]line ФПД: 237976139665464 [07:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30785&fm=237976139665464&tin=02508201610067®Number=0000000000186857&sum=50000 [07:26:49]OFD Sender: Processing packet 30785 [packets to send 10, broken 9] [07:26:49]ProducePacketName [07:26:49]name=ofd_packets/00030785 [07:26:49]OFD Sender: To server: pG, [07:26:49]CommunicateWithHost lk.salyk.kg:30040 [07:26:49]ConnectInit lk.salyk.kg [07:26:49]written 0, free lines is 4095 [07:26:49]Connected sock=10 [07:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 53 4B 07 01 B3 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 53 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 78 00 00 35 04 06 00 D8 70 23 45 10 38 67 07 6F 34 06 61 F3 1F [07:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7C 75 47 00 EC BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 78 00 00 F4 03 04 00 3F FE 16 67 B6 04 01 00 00 49 8A 20 1D 01 DC 16 23 [07:26:50]CommunicateWithHost err = 0 [07:26:50]CheckOFDResponse [07:26:50]1017 (14) - 77093643461234 [07:26:50]1041 (16) - 0000000002094219 [07:26:50]1040 (4) - 30785 [07:26:50]1012 (4) - 22.10.2024 01:22 [07:26:50]1206 (1) - 0 [07:26:50]OFD Sender: Remove packet 30785 [07:26:50]ProducePacketName [07:26:50]name=ofd_packets/00030785 [07:26:50]NVStorageDeleteData [07:26:50]Write to MH i2c: 01 00 00 25 72 97 [07:26:50]Write i2c OK [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: 01 [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: 01 07 00 [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: 01 07 00 25 72 00 00 00 00 00 E4 0C 8E [07:26:50]RasterBufferAndPrint [07:26:50]line [07:26:50]line [07:26:50]line [07:26:50]line [07:26:50]line [07:26:50]written 0, free lines is 3306 [07:26:50]MH_Cut [07:26:50]Write to MH i2c: D1 01 00 2C 72 01 70 [07:26:50]Write i2c OK [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: D1 [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: D1 01 00 [07:26:50]MH_I2C_Read... [07:26:50]Read from MH i2c: D1 01 00 2C 72 00 6F [07:26:50]Write to MH i2c: 01 00 00 2D 72 9F [07:26:50]Write i2c OK [07:26:50]MH_I2C_Read... [07:26:50]OFD Sender: No OFD packet to send [07:26:51]*** Cut start [07:26:51]*** Partial cut [07:26:51]*** CUTSNS_PIN = 1 [07:26:51]*** CUTSNS_PIN = 0 [07:26:51]*** Brake cut motor [07:26:51]Read from MH i2c: 01 [07:26:51]MH_I2C_Read... [07:26:51]*** Stop cut motor [07:26:51]*** Cut end [07:26:51]Read from MH i2c: 01 07 00 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: 01 07 00 2D 72 00 00 00 00 00 FF 0F B4 [07:26:51]process_action close_receipt done [07:26:51]requested_data is exist [07:26:51]produce_requested_data [07:26:51]requested_item fm.sn is exist - process it [07:26:51]wFMCommunicate request_size=4 [07:26:51]MH_SAM_APDU [07:26:51]CAPDU: 80 11 00 00 [07:26:51]Write to MH i2c: E2 08 00 2E 72 80 11 00 00 00 00 00 00 1A [07:26:51]Write i2c OK [07:26:51]MH_I2C_Read... [07:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:51]Read from MH i2c: E2 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 17 00 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 17 00 2E 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [07:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:26:51]wFMCommunicate OK [07:26:51]requested_item fd.num is exist - process it [07:26:51]SAM_PROTO_GetFieldsCounters [07:26:51]wFMCommunicate request_size=4 [07:26:51]MH_SAM_APDU [07:26:51]CAPDU: 80 13 00 00 [07:26:51]Write to MH i2c: E2 08 00 2F 72 80 13 00 00 00 00 00 00 1D [07:26:51]Write i2c OK [07:26:51]MH_I2C_Read... [07:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:51]Read from MH i2c: E2 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 62 00 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 62 00 2F 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 78 00 00 0E 04 04 00 74 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 A6 [07:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 78 00 00 0E 04 04 00 74 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 [07:26:51]wFMCommunicate OK [07:26:51]SAM_PROTO_GetFieldsCounters done [07:26:51]requested_item shift.num is exist - process it [07:26:51]requested_item shift.opened is exist - process it [07:26:51]req_shift_opened [07:26:51]FM_GetShiftState [07:26:51]SAM_PROTO_GetShiftState [07:26:51]wFMCommunicate request_size=4 [07:26:51]MH_SAM_APDU [07:26:51]CAPDU: 80 13 01 00 [07:26:51]Write to MH i2c: E2 08 00 30 72 80 13 01 00 00 00 00 00 1F [07:26:51]Write i2c OK [07:26:51]MH_I2C_Read... [07:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:51]Read from MH i2c: E2 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 0E 00 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: E2 0E 00 30 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F9 [07:26:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:26:51]wFMCommunicate OK [07:26:51]SAM_PROTO_GetShiftState done [07:26:51]FM_GetShiftState done [07:26:51]req_shift_opened done [07:26:51]requested_item shift.open_date is exist - process it [07:26:51]req_shift_open_date [07:26:51]req_shift_open_date done [07:26:51]produce_requested_data done [07:26:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30785,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:26:51]process_action_free close_receipt [07:26:51]json_value_free [07:26:51]json_value_free done [07:26:51]process_json_proto returns [07:26:51]Send response to host [07:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30785,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:26:51]free response buf [07:26:51]execute_script done [07:26:51]execute_script returns [07:26:51]free content buf [07:26:51]Sock 7.Close socket [07:26:51]Sock 7.Thread stoped [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:22]recv_with_timeout no data received [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:42]recv_with_timeout no data received [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:40:58]accept exits with 9 [07:40:58]New connection [07:40:58]New thread 3067489636 created [07:40:58]Thread 3067346276 joined [07:40:58]Waiting for new connection... [07:40:58] Sock 9.Parse request [07:40:58]Sock 9.Check first char [07:40:58]Sock 9.First char is OK [07:40:58]request: POST /json_proto HTTP/1.0 [07:40:58]Method: POST [07:40:58]URL: /json_proto [07:40:58]Method is POST - this is cgi request [07:40:58]url: /json_proto [07:40:58]query_string will be loaded in cgi processing [07:40:58]execute_cgi json_proto POST (null) [07:40:58]execute_cgi path=json_proto method=POST [07:40:58]POST find Content-Length [07:40:58]Host: 172.17.51.3:8080 [07:40:58]Content-Length: 677 [07:40:58]Content-Type: application/json [07:40:58] [07:40:58]POST finish read [07:40:58]Found Content-Length = 677 [07:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:58]execute_script... [07:40: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)343203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:58]POST & json_proto [07:40:58]process_json_proto [07:40:58]json parsed OK: [07:40:58]protocol is kg_v1.0 [07:40:58]action value=close_receipt [07:40:58]process_action close_receipt [07:40:58]cmd_close_receipt [07:40:58]MH_GetDate [07:40:58]Write to MH i2c: F0 00 00 31 72 92 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 09 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 09 00 31 72 00 14 57 17 67 04 C1 95 66 44 [07:40:58]GetLastDocTimeStamp 1729582017 [07:40:58]current date 1729582868 [07:40:58]FM_GetShiftState [07:40:58]SAM_PROTO_GetShiftState [07:40:58]wFMCommunicate request_size=4 [07:40:58]MH_SAM_APDU [07:40:58]CAPDU: 80 13 01 00 [07:40:58]Write to MH i2c: E2 08 00 32 72 80 13 01 00 00 00 00 00 21 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:58]Read from MH i2c: E2 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 32 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FB [07:40:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:40:58]wFMCommunicate OK [07:40:58]SAM_PROTO_GetShiftState done [07:40:58]FM_GetShiftState done [07:40:58]opened in 1729557342 [07:40:58]opened+sec_in_day 1729643742 [07:40:58]quantity*price = 40006 [07:40:58]sum+1 = 40007 [07:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 19 22.10.2024 07:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30786 ФПД: 187076446268789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30786&fm=187076446268789&tin=02508201610067®Number=0000000000186857&sum=40000 [07:40:59]StoreToDocumentArchive [07:40:59]shift 116 fd 30786 [07:40:59]save to /storage/0116/doc_00030786 [07:40:59]save last doc name /storage/0116/doc_00030786 to /storage/kkm_last_doc_name [07:40:59]save OK [07:40:59]Clear old archive folders... [07:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:59]tlvbuf is B6F5D940 [07:40:59]SAM_PROTO_ClearQueue [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 09 00 00 [07:40:59]Write to MH i2c: E2 08 00 3F 72 80 09 00 00 00 00 00 00 23 [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 3F 72 00 90 00 25 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]SAM_PROTO_ClearQueue done [07:40:59]KKMCreateOFDPacket [07:40:59]OFDProtocolAddRootSTLVToBuf [07:40:59]FM_MakeSignedData [07:40:59]FM_MakeSignedData [07:40:59]SAM_PROTO_SignData [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 0D 01 02 [07:40:59]Write to MH i2c: E2 08 00 40 72 80 0D 01 02 00 00 00 00 2B [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 40 72 00 90 00 26 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]wFMCommunicate request_size=255 [07:40:59]MH_SAM_APDU [07:40: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 14 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 78 00 00 35 04 06 00 AA [07:40:59]Write to MH i2c: E2 02 01 41 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 14 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 78 00 00 35 04 06 00 AA 00 00 5F [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 03 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 03 00 41 72 00 90 00 27 [07:41:00]RAPDU: 90 00 [07:41:00]wFMCommunicate OK [07:41:00]wFMCommunicate request_size=10 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 0D 02 02 05 25 21 20 2D 75 [07:41:00]Write to MH i2c: E2 0D 00 42 72 80 0D 02 02 05 00 25 21 20 2D 75 00 00 40 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 03 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 03 00 42 72 00 90 00 28 [07:41:00]RAPDU: 90 00 [07:41:00]wFMCommunicate OK [07:41:00]wFMCommunicate request_size=4 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 0D 03 02 [07:41:00]Write to MH i2c: E2 08 00 43 72 80 0D 03 02 00 00 00 00 30 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 0B 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 0B 00 43 72 00 64 5E 6C 8A 06 2E A8 79 90 00 3E [07:41:00]RAPDU: 64 5E 6C 8A 06 2E A8 79 90 00 [07:41:00]wFMCommunicate OK [07:41:00]SAM_PROTO_SignData done [07:41:00]FM_MakeSignedData done [07:41:00]CreateOFDProtocolMessage [07:41:00]wFMCommunicate request_size=4 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 11 00 00 [07:41:00]Write to MH i2c: E2 08 00 44 72 80 11 00 00 00 00 00 00 30 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 17 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 17 00 44 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [07:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:41:00]wFMCommunicate OK [07:41:00]CreateOFDProtocolMessage done [07:41:00]OFDSenderStorePacket 30786 [07:41:00]StoreOFDPacket docnum=30786 [07:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1E 8B 07 01 98 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 14 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 78 00 00 35 04 06 00 AA 25 21 20 2D 75 64 5E 6C 8A 06 2E A8 79 [07:41:00]CheckFolder [07:41:00]dirname=/storage/ofd_packets [07:41:00]CheckFolder done [07:41:00]ProducePacketName [07:41:00]name=ofd_packets/00030786 [07:41:00]NVStorageSaveData ofd_packets/00030786 [07:41:00]File name is /storage/ofd_packets/00030786 [07:41:00]Write 301 bytes [07:41:00]NVStorageSaveData done [07:41:00]OFDSenderStorePacket done [07:41:00]KKMCreateOFDPacket done [07:41:00]NVStorageSaveData kkm_last_timestamp [07:41:00]File name is /storage/kkm_last_timestamp [07:41:00]Write 4 bytes [07:41:00]NVStorageSaveData done [07:41:00]ExternCall_PrintAddStr [07:41:00]wPrintStart [07:41:00]Write to MH i2c: 01 00 00 45 72 B7 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 07 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 07 00 45 72 00 00 00 00 00 FF 0F CC [07:41:00]RasterBufferAndPrint [07:41:00]line Счет N : (1)343203 [07:41:00]line ИНН: 02508201610067 [07:41:00]line Контрольно-Кассовый Чек [07:41:00]line ПРОДАЖА [07:41:00]line ТРК (МРК, ГНК) : 33 [07:41:00]line Товар: 2710124130 [07:41:00]line Аи-92-К-2 [07:41:00]line 5.980 * 66.90 [07:41:00]line = 400.06 [07:41:00]line НДС 12% НСП 1% [07:41:00]line > о реализуемом товаре [07:41:00]line ОКРУГЛЕНИЕ: -0.06 [07:41:00]line ИТОГО: 400.00 [07:41:00]line Внесено: 400.00 [07:41:00]line СДАЧА: 0.00 [07:41:00]line НСП 1% : 3.54 [07:41:00]line НДС 12% : 42.48 [07:41:00]line Наличными: 400.00 [07:41:00]line Безнал.: 0.00 [07:41:00]line Место: АЗС № 78 "Партнер Нефть" [07:41:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:41:00]line СНО: Общий режим [07:41:00]line Чек 19 22.10.2024 07:41 [07:41:00]line Смена: 116 ФФД: 1.0 [07:41:00]line ЗНМ: 0300000137 [07:41:00]line РНМ: 0000000000186857 [07:41:00]line Версия ККМ: v1.0 [07:41:00]line ФМ: 0000000002094219 [07:41:00]line ФД: 30786 [07:41:00]line ФПД: 187076446268789 [07:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30786&fm=187076446268789&tin=02508201610067®Number=0000000000186857&sum=40000 [07:41:00]OFD Sender: Processing packet 30786 [packets to send 10, broken 9] [07:41:00]ProducePacketName [07:41:00]name=ofd_packets/00030786 [07:41:00]OFD Sender: To server: pG, [07:41:00]CommunicateWithHost lk.salyk.kg:30040 [07:41:00]ConnectInit lk.salyk.kg [07:41:00]written 0, free lines is 4095 [07:41:00]Connected sock=10 [07:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1E 8B 07 01 98 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 14 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 78 00 00 35 04 06 00 AA 25 21 20 2D 75 64 5E 6C 8A 06 2E A8 79 [07:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4F 04 47 00 B9 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 32 30 39 34 32 31 39 10 04 04 00 42 78 00 00 F4 03 04 00 92 01 17 67 B6 04 01 00 00 B8 79 EE B1 53 A0 B1 57 [07:41:01]CommunicateWithHost err = 0 [07:41:01]CheckOFDResponse [07:41:01]1017 (14) - 77093643461234 [07:41:01]1041 (16) - 0000000002094219 [07:41:01]1040 (4) - 30786 [07:41:01]1012 (4) - 22.10.2024 01:36 [07:41:01]1206 (1) - 0 [07:41:01]OFD Sender: Remove packet 30786 [07:41:01]ProducePacketName [07:41:01]name=ofd_packets/00030786 [07:41:01]NVStorageDeleteData [07:41:01]Write to MH i2c: 01 00 00 70 72 E2 [07:41:01]Write i2c OK [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: 01 [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: 01 07 00 [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: 01 07 00 70 72 00 00 00 00 00 E6 0C DB [07:41:01]RasterBufferAndPrint [07:41:01]line [07:41:01]line [07:41:01]line [07:41:01]line [07:41:01]line [07:41:01]written 0, free lines is 3311 [07:41:01]MH_Cut [07:41:01]Write to MH i2c: D1 01 00 77 72 01 BB [07:41:01]Write i2c OK [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: D1 [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: D1 01 00 [07:41:01]MH_I2C_Read... [07:41:01]Read from MH i2c: D1 01 00 77 72 00 BA [07:41:01]Write to MH i2c: 01 00 00 78 72 EA [07:41:01]Write i2c OK [07:41:01]MH_I2C_Read... [07:41:01]OFD Sender: No OFD packet to send [07:41:01]*** Cut start [07:41:01]*** Partial cut [07:41:01]*** CUTSNS_PIN = 1 [07:41:01]*** CUTSNS_PIN = 0 [07:41:02]*** Brake cut motor [07:41:02]Read from MH i2c: 01 [07:41:02]MH_I2C_Read... [07:41:02]*** Stop cut motor [07:41:02]*** Cut end [07:41:02]Read from MH i2c: 01 07 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: 01 07 00 78 72 00 00 00 00 00 FF 0F FF [07:41:02]process_action close_receipt done [07:41:02]requested_data is exist [07:41:02]produce_requested_data [07:41:02]requested_item fm.sn is exist - process it [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 11 00 00 [07:41:02]Write to MH i2c: E2 08 00 79 72 80 11 00 00 00 00 00 00 65 [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 17 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 17 00 79 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [07:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:41:02]wFMCommunicate OK [07:41:02]requested_item fd.num is exist - process it [07:41:02]SAM_PROTO_GetFieldsCounters [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 13 00 00 [07:41:02]Write to MH i2c: E2 08 00 7A 72 80 13 00 00 00 00 00 00 68 [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 62 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 62 00 7A 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 78 00 00 0E 04 04 00 74 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 F5 [07:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 78 00 00 0E 04 04 00 74 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 [07:41:02]wFMCommunicate OK [07:41:02]SAM_PROTO_GetFieldsCounters done [07:41:02]requested_item shift.num is exist - process it [07:41:02]requested_item shift.opened is exist - process it [07:41:02]req_shift_opened [07:41:02]FM_GetShiftState [07:41:02]SAM_PROTO_GetShiftState [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 13 01 00 [07:41:02]Write to MH i2c: E2 08 00 7B 72 80 13 01 00 00 00 00 00 6A [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 0E 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 0E 00 7B 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 44 [07:41:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:41:02]wFMCommunicate OK [07:41:02]SAM_PROTO_GetShiftState done [07:41:02]FM_GetShiftState done [07:41:02]req_shift_opened done [07:41:02]requested_item shift.open_date is exist - process it [07:41:02]req_shift_open_date [07:41:02]req_shift_open_date done [07:41:02]produce_requested_data done [07:41:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30786,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:41:02]process_action_free close_receipt [07:41:02]json_value_free [07:41:02]json_value_free done [07:41:02]process_json_proto returns [07:41:02]Send response to host [07:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30786,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:41:02]free response buf [07:41:02]execute_script done [07:41:02]execute_script returns [07:41:02]free content buf [07:41:02]Sock 9.Close socket [07:41:02]Sock 9.Thread stoped [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:41:58]accept exits with 7 [07:41:58]New connection [07:41:58]New thread 3067346276 created [07:41:58]Thread 3067489636 joined [07:41:58]Waiting for new connection... [07:41:58] Sock 7.Parse request [07:41:58]Sock 7.Check first char [07:41:58]Sock 7.First char is OK [07:41:58]request: POST /json_proto HTTP/1.0 [07:41:58]Method: POST [07:41:58]URL: /json_proto [07:41:58]Method is POST - this is cgi request [07:41:58]url: /json_proto [07:41:58]query_string will be loaded in cgi processing [07:41:58]execute_cgi json_proto POST (null) [07:41:58]execute_cgi path=json_proto method=POST [07:41:58]POST find Content-Length [07:41:58]Host: 172.17.51.3:8080 [07:41:58]Content-Length: 677 [07:41:58]Content-Type: application/json [07:41:58] [07:41:58]POST finish read [07:41:58]Found Content-Length = 677 [07:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:58]execute_script... [07:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:58]POST & json_proto [07:41:58]process_json_proto [07:41:58]json parsed OK: [07:41:58]protocol is kg_v1.0 [07:41:58]action value=close_receipt [07:41:58]process_action close_receipt [07:41:58]cmd_close_receipt [07:41:58]MH_GetDate [07:41:58]Write to MH i2c: F0 00 00 7C 72 DD [07:41:58]Write i2c OK [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 09 00 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 09 00 7C 72 00 4F 57 17 67 04 C1 95 66 CA [07:41:58]GetLastDocTimeStamp 1729582868 [07:41:58]current date 1729582927 [07:41:58]FM_GetShiftState [07:41:58]SAM_PROTO_GetShiftState [07:41:58]wFMCommunicate request_size=4 [07:41:58]MH_SAM_APDU [07:41:58]CAPDU: 80 13 01 00 [07:41:58]Write to MH i2c: E2 08 00 7D 72 80 13 01 00 00 00 00 00 6C [07:41:58]Write i2c OK [07:41:58]MH_I2C_Read... [07:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:58]Read from MH i2c: E2 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: E2 0E 00 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: E2 0E 00 7D 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 46 [07:41:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:41:58]wFMCommunicate OK [07:41:58]SAM_PROTO_GetShiftState done [07:41:58]FM_GetShiftState done [07:41:58]opened in 1729557342 [07:41:58]opened+sec_in_day 1729643742 [07:41:58]quantity*price = 45023 [07:41:58]sum+1 = 45025 [07:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 20 22.10.2024 07:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30787 ФПД: 99097392267897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30787&fm=99097392267897&tin=02508201610067®Number=0000000000186857&sum=45000 [07:41:59]StoreToDocumentArchive [07:41:59]shift 116 fd 30787 [07:41:59]save to /storage/0116/doc_00030787 [07:41:59]save last doc name /storage/0116/doc_00030787 to /storage/kkm_last_doc_name [07:41:59]save OK [07:41:59]Clear old archive folders... [07:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:59]tlvbuf is 01E11070 [07:41:59]SAM_PROTO_ClearQueue [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 09 00 00 [07:41:59]Write to MH i2c: E2 08 00 8A 72 80 09 00 00 00 00 00 00 6E [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 8A 72 00 90 00 70 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]SAM_PROTO_ClearQueue done [07:41:59]KKMCreateOFDPacket [07:41:59]OFDProtocolAddRootSTLVToBuf [07:41:59]FM_MakeSignedData [07:41:59]FM_MakeSignedData [07:41:59]SAM_PROTO_SignData [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 0D 01 02 [07:41:59]Write to MH i2c: E2 08 00 8B 72 80 0D 01 02 00 00 00 00 76 [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 8B 72 00 90 00 71 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]wFMCommunicate request_size=255 [07:41:59]MH_SAM_APDU [07:41: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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4F 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 78 00 00 35 04 06 00 5A [07:41:59]Write to MH i2c: E2 02 01 8C 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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4F 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 78 00 00 35 04 06 00 5A 00 00 AE [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 8C 72 00 90 00 72 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]wFMCommunicate request_size=10 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 0D 02 02 05 20 E8 DD 42 79 [07:41:59]Write to MH i2c: E2 0D 00 8D 72 80 0D 02 02 05 00 20 E8 DD 42 79 00 00 23 [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 8D 72 00 90 00 73 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 0D 03 02 [07:41:59]Write to MH i2c: E2 08 00 8E 72 80 0D 03 02 00 00 00 00 7B [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 0B 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 0B 00 8E 72 00 B0 27 71 AD 87 0C 1A CC 90 00 EA [07:41:59]RAPDU: B0 27 71 AD 87 0C 1A CC 90 00 [07:41:59]wFMCommunicate OK [07:41:59]SAM_PROTO_SignData done [07:41:59]FM_MakeSignedData done [07:41:59]CreateOFDProtocolMessage [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 11 00 00 [07:41:59]Write to MH i2c: E2 08 00 8F 72 80 11 00 00 00 00 00 00 7B [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 17 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 17 00 8F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [07:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:41:59]wFMCommunicate OK [07:41:59]CreateOFDProtocolMessage done [07:41:59]OFDSenderStorePacket 30787 [07:41:59]StoreOFDPacket docnum=30787 [07:41:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 07 07 01 D4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4F 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 78 00 00 35 04 06 00 5A 20 E8 DD 42 79 B0 27 71 AD 87 0C 1A CC [07:41:59]CheckFolder [07:41:59]dirname=/storage/ofd_packets [07:41:59]CheckFolder done [07:41:59]ProducePacketName [07:41:59]name=ofd_packets/00030787 [07:41:59]NVStorageSaveData ofd_packets/00030787 [07:41:59]File name is /storage/ofd_packets/00030787 [07:41:59]Write 301 bytes [07:41:59]NVStorageSaveData done [07:41:59]OFDSenderStorePacket done [07:41:59]KKMCreateOFDPacket done [07:41:59]NVStorageSaveData kkm_last_timestamp [07:41:59]File name is /storage/kkm_last_timestamp [07:41:59]Write 4 bytes [07:41:59]NVStorageSaveData done [07:41:59]ExternCall_PrintAddStr [07:41:59]wPrintStart [07:41:59]Write to MH i2c: 01 00 00 90 72 02 [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: 01 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: 01 07 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: 01 07 00 90 72 00 00 00 00 00 FF 0F 17 [07:41:59]RasterBufferAndPrint [07:41:59]line Счет N : (1)343204 [07:41:59]line ИНН: 02508201610067 [07:41:59]line Контрольно-Кассовый Чек [07:41:59]line ПРОДАЖА [07:41:59]line ТРК (МРК, ГНК) : 63 [07:41:59]line Товар: 2710124130 [07:41:59]line Аи-92-К-2 [07:41:59]line 6.730 * 66.90 [07:41:59]line = 450.24 [07:41:59]line НДС 12% НСП 1% [07:41:59]line > о реализуемом товаре [07:41:59]line ОКРУГЛЕНИЕ: -0.24 [07:41:59]line ИТОГО: 450.00 [07:41:59]line Внесено: 450.00 [07:41:59]line СДАЧА: 0.00 [07:41:59]line НСП 1% : 3.98 [07:41:59]line НДС 12% : 47.81 [07:41:59]line Наличными: 450.00 [07:41:59]line Безнал.: 0.00 [07:41:59]line Место: АЗС № 78 "Партнер Нефть" [07:41:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:41:59]line СНО: Общий режим [07:41:59]line Чек 20 22.10.2024 07:42 [07:41:59]line Смена: 116 ФФД: 1.0 [07:41:59]line ЗНМ: 0300000137 [07:41:59]line РНМ: 0000000000186857 [07:41:59]line Версия ККМ: v1.0 [07:41:59]line ФМ: 0000000002094219 [07:41:59]line ФД: 30787 [07:41:59]line ФПД: 99097392267897 [07:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30787&fm=99097392267897&tin=02508201610067®Number=0000000000186857&sum=45000 [07:42:00]OFD Sender: Processing packet 30787 [packets to send 10, broken 9] [07:42:00]ProducePacketName [07:42:00]name=ofd_packets/00030787 [07:42:00]OFD Sender: To server: pG, [07:42:00]CommunicateWithHost lk.salyk.kg:30040 [07:42:00]ConnectInit lk.salyk.kg [07:42:00]written 0, free lines is 4095 [07:42:00]Connected sock=10 [07:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 07 07 01 D4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4F 57 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 78 00 00 35 04 06 00 5A 20 E8 DD 42 79 B0 27 71 AD 87 0C 1A CC [07:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6C 2B 47 00 30 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 32 30 39 34 32 31 39 10 04 04 00 43 78 00 00 F4 03 04 00 CD 01 17 67 B6 04 01 00 00 1E C8 25 CE 03 14 1A 0E [07:42:00]CommunicateWithHost err = 0 [07:42:00]CheckOFDResponse [07:42:00]1017 (14) - 77093643461234 [07:42:00]1041 (16) - 0000000002094219 [07:42:00]1040 (4) - 30787 [07:42:00]1012 (4) - 22.10.2024 01:37 [07:42:00]1206 (1) - 0 [07:42:00]OFD Sender: Remove packet 30787 [07:42:00]ProducePacketName [07:42:00]name=ofd_packets/00030787 [07:42:00]NVStorageDeleteData [07:42:00]Write to MH i2c: 01 00 00 BB 72 2D [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 07 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 07 00 BB 72 00 00 00 00 00 F4 0C 34 [07:42:00]RasterBufferAndPrint [07:42:00]line [07:42:00]line [07:42:00]line [07:42:00]line [07:42:00]line [07:42:00]written 0, free lines is 3326 [07:42:00]MH_Cut [07:42:00]Write to MH i2c: D1 01 00 C2 72 01 06 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: D1 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: D1 01 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: D1 01 00 C2 72 00 05 [07:42:00]Write to MH i2c: 01 00 00 C3 72 35 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]OFD Sender: No OFD packet to send [07:42:01]*** Cut start [07:42:01]*** Partial cut [07:42:01]*** CUTSNS_PIN = 1 [07:42:01]*** CUTSNS_PIN = 0 [07:42:01]*** Brake cut motor [07:42:01]Read from MH i2c: 01 [07:42:01]MH_I2C_Read... [07:42:01]*** Stop cut motor [07:42:01]*** Cut end [07:42:01]Read from MH i2c: 01 07 00 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: 01 07 00 C3 72 00 00 00 00 00 FF 0F 4A [07:42:01]process_action close_receipt done [07:42:01]requested_data is exist [07:42:01]produce_requested_data [07:42:01]requested_item fm.sn is exist - process it [07:42:01]wFMCommunicate request_size=4 [07:42:01]MH_SAM_APDU [07:42:01]CAPDU: 80 11 00 00 [07:42:01]Write to MH i2c: E2 08 00 C4 72 80 11 00 00 00 00 00 00 B0 [07:42:01]Write i2c OK [07:42:01]MH_I2C_Read... [07:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:01]Read from MH i2c: E2 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: E2 17 00 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: E2 17 00 C4 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [07:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:42:01]wFMCommunicate OK [07:42:01]requested_item fd.num is exist - process it [07:42:01]SAM_PROTO_GetFieldsCounters [07:42:01]wFMCommunicate request_size=4 [07:42:01]MH_SAM_APDU [07:42:01]CAPDU: 80 13 00 00 [07:42:01]Write to MH i2c: E2 08 00 C5 72 80 13 00 00 00 00 00 00 B3 [07:42:01]Write i2c OK [07:42:01]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 C5 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 78 00 00 0E 04 04 00 74 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 44 [07:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 78 00 00 0E 04 04 00 74 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 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetFieldsCounters done [07:42:02]requested_item shift.num is exist - process it [07:42:02]requested_item shift.opened is exist - process it [07:42:02]req_shift_opened [07:42:02]FM_GetShiftState [07:42:02]SAM_PROTO_GetShiftState [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 01 00 [07:42:02]Write to MH i2c: E2 08 00 C6 72 80 13 01 00 00 00 00 00 B5 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 C6 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8F [07:42:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetShiftState done [07:42:02]FM_GetShiftState done [07:42:02]req_shift_opened done [07:42:02]requested_item shift.open_date is exist - process it [07:42:02]req_shift_open_date [07:42:02]req_shift_open_date done [07:42:02]produce_requested_data done [07:42:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30787,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:42:02]process_action_free close_receipt [07:42:02]json_value_free [07:42:02]json_value_free done [07:42:02]process_json_proto returns [07:42:02]Send response to host [07:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30787,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:42:02]free response buf [07:42:02]execute_script done [07:42:02]execute_script returns [07:42:02]free content buf [07:42:02]Sock 7.Close socket [07:42:02]Sock 7.Thread stoped [07:42:05]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:44]accept exits with 9 [07:45:44]New connection [07:45:44]New thread 3067489636 created [07:45:44]Thread 3067346276 joined [07:45:44]Waiting for new connection... [07:45:44] Sock 9.Parse request [07:45:44]Sock 9.Check first char [07:45:44]Sock 9.First char is OK [07:45:44]request: POST /json_proto HTTP/1.0 [07:45:44]Method: POST [07:45:44]URL: /json_proto [07:45:44]Method is POST - this is cgi request [07:45:44]url: /json_proto [07:45:44]query_string will be loaded in cgi processing [07:45:44]execute_cgi json_proto POST (null) [07:45:44]execute_cgi path=json_proto method=POST [07:45:44]POST find Content-Length [07:45:44]Host: 172.17.51.3:8080 [07:45:44]Content-Length: 682 [07:45:44]Content-Type: application/json [07:45:44] [07:45:44]POST finish read [07:45:44]Found Content-Length = 682 [07:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.900, "sum" : 1105.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1105.00, "total" : 1105.00, "payments": [ { "type": 0, "sum" : 1105.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]execute_script... [07:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.900, "sum" : 1105.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1105.00, "total" : 1105.00, "payments": [ { "type": 0, "sum" : 1105.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]POST & json_proto [07:45:44]process_json_proto [07:45:44]json parsed OK: [07:45:44]protocol is kg_v1.0 [07:45:44]action value=close_receipt [07:45:44]process_action close_receipt [07:45:44]cmd_close_receipt [07:45:44]MH_GetDate [07:45:44]Write to MH i2c: F0 00 00 C7 72 28 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 C7 72 00 32 58 17 67 04 C1 95 66 F9 [07:45:44]GetLastDocTimeStamp 1729582927 [07:45:44]current date 1729583154 [07:45:44]FM_GetShiftState [07:45:44]SAM_PROTO_GetShiftState [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 13 01 00 [07:45:44]Write to MH i2c: E2 08 00 C8 72 80 13 01 00 00 00 00 00 B7 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 C8 72 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 91 [07:45:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:45:44]wFMCommunicate OK [07:45:44]SAM_PROTO_GetShiftState done [07:45:44]FM_GetShiftState done [07:45:44]opened in 1729557342 [07:45:44]opened+sec_in_day 1729643742 [07:45:44]quantity*price = 110558 [07:45:44]sum+1 = 110559 [07:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1105.00 Внесено: 1105.00 СДАЧА: 0.00 НСП 1% : 9.78 НДС 12% : 117.41 Наличными: 1105.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 21 22.10.2024 07:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30788 ФПД: 27997319338150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074554&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30788&fm=27997319338150&tin=02508201610067®Number=0000000000186857&sum=110500 [07:45:45]StoreToDocumentArchive [07:45:45]shift 116 fd 30788 [07:45:45]save to /storage/0116/doc_00030788 [07:45:45]save last doc name /storage/0116/doc_00030788 to /storage/kkm_last_doc_name [07:45:45]save OK [07:45:45]Clear old archive folders... [07:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:45]tlvbuf is 01DAFB90 [07:45:45]SAM_PROTO_ClearQueue [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 09 00 00 [07:45:45]Write to MH i2c: E2 08 00 D5 72 80 09 00 00 00 00 00 00 B9 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 D5 72 00 90 00 BB [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_ClearQueue done [07:45:45]KKMCreateOFDPacket [07:45:45]OFDProtocolAddRootSTLVToBuf [07:45:45]FM_MakeSignedData [07:45:45]FM_MakeSignedData [07:45:45]SAM_PROTO_SignData [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 01 02 [07:45:45]Write to MH i2c: E2 08 00 D6 72 80 0D 01 02 00 00 00 00 C1 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 D6 72 00 90 00 BC [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=255 [07:45:45]MH_SAM_APDU [07:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 32 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 78 00 00 35 04 06 00 19 [07:45:45]Write to MH i2c: E2 02 01 D7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 32 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 78 00 00 35 04 06 00 19 00 00 D3 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:46]OFD Sender: No OFD packet to send [07:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 03 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 03 00 D7 72 00 90 00 BD [07:45:46]RAPDU: 90 00 [07:45:46]wFMCommunicate OK [07:45:46]wFMCommunicate request_size=10 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 0D 02 02 05 76 A2 46 18 A6 [07:45:46]Write to MH i2c: E2 0D 00 D8 72 80 0D 02 02 05 00 76 A2 46 18 A6 00 00 EA [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 03 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 03 00 D8 72 00 90 00 BE [07:45:46]RAPDU: 90 00 [07:45:46]wFMCommunicate OK [07:45:46]wFMCommunicate request_size=4 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 0D 03 02 [07:45:46]Write to MH i2c: E2 08 00 D9 72 80 0D 03 02 00 00 00 00 C6 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 0B 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 0B 00 D9 72 00 2E 7C 15 9D 4C 1D 37 08 90 00 CB [07:45:46]RAPDU: 2E 7C 15 9D 4C 1D 37 08 90 00 [07:45:46]wFMCommunicate OK [07:45:46]SAM_PROTO_SignData done [07:45:46]FM_MakeSignedData done [07:45:46]CreateOFDProtocolMessage [07:45:46]wFMCommunicate request_size=4 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 11 00 00 [07:45:46]Write to MH i2c: E2 08 00 DA 72 80 11 00 00 00 00 00 00 C6 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 17 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 17 00 DA 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [07:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:45:46]wFMCommunicate OK [07:45:46]CreateOFDProtocolMessage done [07:45:46]OFDSenderStorePacket 30788 [07:45:46]StoreOFDPacket docnum=30788 [07:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB FE 07 01 C8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 32 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 78 00 00 35 04 06 00 19 76 A2 46 18 A6 2E 7C 15 9D 4C 1D 37 08 [07:45:46]CheckFolder [07:45:46]dirname=/storage/ofd_packets [07:45:46]CheckFolder done [07:45:46]ProducePacketName [07:45:46]name=ofd_packets/00030788 [07:45:46]NVStorageSaveData ofd_packets/00030788 [07:45:46]File name is /storage/ofd_packets/00030788 [07:45:46]Write 301 bytes [07:45:46]NVStorageSaveData done [07:45:46]OFDSenderStorePacket done [07:45:46]KKMCreateOFDPacket done [07:45:46]NVStorageSaveData kkm_last_timestamp [07:45:46]File name is /storage/kkm_last_timestamp [07:45:46]Write 4 bytes [07:45:46]NVStorageSaveData done [07:45:46]ExternCall_PrintAddStr [07:45:46]wPrintStart [07:45:46]Write to MH i2c: 01 00 00 DB 72 4D [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 DB 72 00 00 00 00 00 FF 0F 62 [07:45:46]RasterBufferAndPrint [07:45:46]line Счет N : (1)343205 [07:45:46]line ИНН: 02508201610067 [07:45:46]line Контрольно-Кассовый Чек [07:45:46]line ПРОДАЖА [07:45:46]line ТРК (МРК, ГНК) : 62 [07:45:46]line Товар: 2710124500 [07:45:46]line Аи-95-К-3 [07:45:46]line 14.900 * 74.20 [07:45:46]line = 1105.58 [07:45:46]line НДС 12% НСП 1% [07:45:46]line > о реализуемом товаре [07:45:46]line ОКРУГЛЕНИЕ: -0.58 [07:45:46]line ИТОГО: 1105.00 [07:45:46]line Внесено: 1105.00 [07:45:46]line СДАЧА: 0.00 [07:45:46]line НСП 1% : 9.78 [07:45:46]line НДС 12% : 117.41 [07:45:46]line Наличными: 1105.00 [07:45:46]line Безнал.: 0.00 [07:45:46]line Место: АЗС № 78 "Партнер Нефть" [07:45:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:45:46]line СНО: Общий режим [07:45:46]line Чек 21 22.10.2024 07:45 [07:45:46]line Смена: 116 ФФД: 1.0 [07:45:46]line ЗНМ: 0300000137 [07:45:46]line РНМ: 0000000000186857 [07:45:46]line Версия ККМ: v1.0 [07:45:46]line ФМ: 0000000002094219 [07:45:46]line ФД: 30788 [07:45:46]line ФПД: 27997319338150 [07:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074554&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30788&fm=27997319338150&tin=02508201610067®Number=0000000000186857&sum=110500 [07:45:46]written 0, free lines is 4095 [07:45:46]OFD Sender: Processing packet 30788 [packets to send 10, broken 9] [07:45:46]ProducePacketName [07:45:46]name=ofd_packets/00030788 [07:45:46]OFD Sender: To server: pG, [07:45:46]CommunicateWithHost lk.salyk.kg:30040 [07:45:46]ConnectInit lk.salyk.kg [07:45:46]Connected sock=10 [07:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB FE 07 01 C8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 32 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 78 00 00 35 04 06 00 19 76 A2 46 18 A6 2E 7C 15 9D 4C 1D 37 08 [07:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FD 94 47 00 4B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 78 00 00 F4 03 04 00 B0 02 17 67 B6 04 01 00 00 A5 FA BB BD 4E 45 E7 D3 [07:45:47]CommunicateWithHost err = 0 [07:45:47]CheckOFDResponse [07:45:47]1017 (14) - 77093643461234 [07:45:47]1041 (16) - 0000000002094219 [07:45:47]1040 (4) - 30788 [07:45:47]1012 (4) - 22.10.2024 01:41 [07:45:47]1206 (1) - 0 [07:45:47]OFD Sender: Remove packet 30788 [07:45:47]ProducePacketName [07:45:47]name=ofd_packets/00030788 [07:45:47]NVStorageDeleteData [07:45:47]Write to MH i2c: 01 00 00 06 73 79 [07:45:47]Write i2c OK [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: 01 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: 01 07 00 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: 01 07 00 06 73 00 00 00 00 00 E4 0C 70 [07:45:47]RasterBufferAndPrint [07:45:47]line [07:45:47]line [07:45:47]line [07:45:47]line [07:45:47]line [07:45:47]written 0, free lines is 3306 [07:45:47]MH_Cut [07:45:47]Write to MH i2c: D1 01 00 0D 73 01 52 [07:45:47]Write i2c OK [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: D1 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: D1 01 00 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: D1 01 00 0D 73 00 51 [07:45:47]Write to MH i2c: 01 00 00 0E 73 81 [07:45:47]Write i2c OK [07:45:47]MH_I2C_Read... [07:45:47]OFD Sender: No OFD packet to send [07:45:47]*** Cut start [07:45:47]*** Partial cut [07:45:47]*** CUTSNS_PIN = 1 [07:45:47]*** CUTSNS_PIN = 0 [07:45:48]*** Brake cut motor [07:45:48]Read from MH i2c: 01 [07:45:48]MH_I2C_Read... [07:45:48]*** Stop cut motor [07:45:48]Read from MH i2c: 01 *** Cut end [07:45:48]07 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: 01 07 00 0E 73 00 00 00 00 00 FF 0F 96 [07:45:48]process_action close_receipt done [07:45:48]requested_data is exist [07:45:48]produce_requested_data [07:45:48]requested_item fm.sn is exist - process it [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 11 00 00 [07:45:48]Write to MH i2c: E2 08 00 0F 73 80 11 00 00 00 00 00 00 FC [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 17 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 17 00 0F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [07:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:45:48]wFMCommunicate OK [07:45:48]requested_item fd.num is exist - process it [07:45:48]SAM_PROTO_GetFieldsCounters [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 13 00 00 [07:45:48]Write to MH i2c: E2 08 00 10 73 80 13 00 00 00 00 00 00 FF [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 10 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 78 00 00 0E 04 04 00 74 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 94 [07:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 78 00 00 0E 04 04 00 74 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 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetFieldsCounters done [07:45:48]requested_item shift.num is exist - process it [07:45:48]requested_item shift.opened is exist - process it [07:45:48]req_shift_opened [07:45:48]FM_GetShiftState [07:45:48]SAM_PROTO_GetShiftState [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 13 01 00 [07:45:48]Write to MH i2c: E2 08 00 11 73 80 13 01 00 00 00 00 00 01 [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 11 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DB [07:45:48]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetShiftState done [07:45:48]FM_GetShiftState done [07:45:48]req_shift_opened done [07:45:48]requested_item shift.open_date is exist - process it [07:45:48]req_shift_open_date [07:45:48]req_shift_open_date done [07:45:48]produce_requested_data done [07:45:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30788,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:45:48]process_action_free close_receipt [07:45:48]json_value_free [07:45:48]json_value_free done [07:45:48]process_json_proto returns [07:45:48]Send response to host [07:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30788,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:45:48]free response buf [07:45:48]execute_script done [07:45:48]execute_script returns [07:45:48]free content buf [07:45:48]Sock 9.Close socket [07:45:48]Sock 9.Thread stoped [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:50]accept exits with 7 [07:46:50]New connection [07:46:50]New thread 3067346276 created [07:46:50]Thread 3067489636 joined [07:46:50]Waiting for new connection... [07:46:50] Sock 7.Parse request [07:46:50]Sock 7.Check first char [07:46:50]Sock 7.First char is OK [07:46:50]request: POST /json_proto HTTP/1.0 [07:46:50]Method: POST [07:46:50]URL: /json_proto [07:46:50]Method is POST - this is cgi request [07:46:50]url: /json_proto [07:46:50]query_string will be loaded in cgi processing [07:46:50]execute_cgi json_proto POST (null) [07:46:50]execute_cgi path=json_proto method=POST [07:46:50]POST find Content-Length [07:46:50]Host: 172.17.51.3:8080 [07:46:50]Content-Length: 840 [07:46:50]Content-Type: application/json [07:46:50] [07:46:50]POST finish read [07:46:50]Found Content-Length = 840 [07:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:50]execute_script... [07:46: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)343207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:50]POST & json_proto [07:46:50]process_json_proto [07:46:50]json parsed OK: [07:46:50]protocol is kg_v1.0 [07:46:50]action value=close_receipt [07:46:50]process_action close_receipt [07:46:50]cmd_close_receipt [07:46:50]MH_GetDate [07:46:50]Write to MH i2c: F0 00 00 12 73 74 [07:46:50]Write i2c OK [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 09 00 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 09 00 12 73 00 74 58 17 67 04 C1 95 66 87 [07:46:50]GetLastDocTimeStamp 1729583154 [07:46:50]current date 1729583220 [07:46:50]FM_GetShiftState [07:46:50]SAM_PROTO_GetShiftState [07:46:50]wFMCommunicate request_size=4 [07:46:50]MH_SAM_APDU [07:46:50]CAPDU: 80 13 01 00 [07:46:50]Write to MH i2c: E2 08 00 13 73 80 13 01 00 00 00 00 00 03 [07:46:50]Write i2c OK [07:46:50]MH_I2C_Read... [07:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:50]Read from MH i2c: E2 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 13 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DD [07:46:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:46:50]wFMCommunicate OK [07:46:50]SAM_PROTO_GetShiftState done [07:46:50]FM_GetShiftState done [07:46:50]opened in 1729557342 [07:46:50]opened+sec_in_day 1729643742 [07:46:50]quantity*price = 50041 [07:46:50]sum+1 = 50042 [07:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 22 22.10.2024 07:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30789 ФПД: 130566384288417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30789&fm=130566384288417&tin=02508201610067®Number=0000000000186857&sum=50041 [07:46:52]StoreToDocumentArchive [07:46:52]shift 116 fd 30789 [07:46:52]save to /storage/0116/doc_00030789 [07:46:52]save last doc name /storage/0116/doc_00030789 to /storage/kkm_last_doc_name [07:46:52]save OK [07:46:52]Clear old archive folders... [07:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:52]tlvbuf is 01E11500 [07:46:52]SAM_PROTO_ClearQueue [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 09 00 00 [07:46:52]Write to MH i2c: E2 08 00 20 73 80 09 00 00 00 00 00 00 05 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 20 73 00 90 00 07 [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]SAM_PROTO_ClearQueue done [07:46:52]KKMCreateOFDPacket [07:46:52]OFDProtocolAddRootSTLVToBuf [07:46:52]FM_MakeSignedData [07:46:52]FM_MakeSignedData [07:46:52]SAM_PROTO_SignData [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 0D 01 02 [07:46:52]Write to MH i2c: E2 08 00 21 73 80 0D 01 02 00 00 00 00 0D [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 21 73 00 90 00 08 [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]wFMCommunicate request_size=255 [07:46:52]MH_SAM_APDU [07:46: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 78 00 00 35 04 06 00 76 [07:46:52]Write to MH i2c: E2 02 01 22 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 78 00 00 35 04 06 00 76 00 00 F7 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 22 73 00 90 00 09 [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]wFMCommunicate request_size=10 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 0D 02 02 05 BF DA F4 82 A1 [07:46:52]Write to MH i2c: E2 0D 00 23 73 80 0D 02 02 05 00 BF DA F4 82 A1 00 00 CA [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 23 73 00 90 00 0A [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 0D 03 02 [07:46:52]Write to MH i2c: E2 08 00 24 73 80 0D 03 02 00 00 00 00 12 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 0B 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 0B 00 24 73 00 C7 28 B6 93 AE AD 22 56 90 00 1E [07:46:52]RAPDU: C7 28 B6 93 AE AD 22 56 90 00 [07:46:52]wFMCommunicate OK [07:46:52]SAM_PROTO_SignData done [07:46:52]FM_MakeSignedData done [07:46:52]CreateOFDProtocolMessage [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 11 00 00 [07:46:52]Write to MH i2c: E2 08 00 25 73 80 11 00 00 00 00 00 00 12 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 17 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 17 00 25 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [07:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:46:52]wFMCommunicate OK [07:46:52]CreateOFDProtocolMessage done [07:46:52]OFDSenderStorePacket 30789 [07:46:52]StoreOFDPacket docnum=30789 [07:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E 3D 07 01 5D C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 78 00 00 35 04 06 00 76 BF DA F4 82 A1 C7 28 B6 93 AE AD 22 56 [07:46:52]CheckFolder [07:46:52]dirname=/storage/ofd_packets [07:46:52]CheckFolder done [07:46:52]ProducePacketName [07:46:52]name=ofd_packets/00030789 [07:46:52]NVStorageSaveData ofd_packets/00030789 [07:46:52]File name is /storage/ofd_packets/00030789 [07:46:52]Write 301 bytes [07:46:52]NVStorageSaveData done [07:46:52]OFDSenderStorePacket done [07:46:52]KKMCreateOFDPacket done [07:46:52]NVStorageSaveData kkm_last_timestamp [07:46:52]File name is /storage/kkm_last_timestamp [07:46:52]Write 4 bytes [07:46:52]NVStorageSaveData done [07:46:52]ExternCall_PrintAddStr [07:46:52]wPrintStart [07:46:52]Write to MH i2c: 01 00 00 26 73 99 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 07 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 07 00 26 73 00 00 00 00 00 FF 0F AE [07:46:52]RasterBufferAndPrint [07:46:52]line Счет N : (1)343207 [07:46:52]line ИНН: 02508201610067 [07:46:52]line Контрольно-Кассовый Чек [07:46:52]line ПРОДАЖА [07:46:52]line ТРК (МРК, ГНК) : 43 [07:46:52]line Товар: 2710124130 [07:46:52]line Аи-92-К-2 [07:46:52]line 7.480 * 66.90 [07:46:52]line = 500.41 [07:46:52]line НДС 12% НСП 1% [07:46:52]line > о реализуемом товаре [07:46:52]line ИТОГО: 500.41 [07:46:52]line НСП 1% : 4.43 [07:46:52]line НДС 12% : 53.14 [07:46:52]line Наличными: 0.00 [07:46:52]line Безнал.: 500.41 [07:46:52]line Место: АЗС № 78 "Партнер Нефть" [07:46:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:46:52]line СНО: Общий режим [07:46:52]line Чек 22 22.10.2024 07:47 [07:46:52]line Смена: 116 ФФД: 1.0 [07:46:52]line ЗНМ: 0300000137 [07:46:52]line РНМ: 0000000000186857 [07:46:52]line Версия ККМ: v1.0 [07:46:52]line Платежная система: АКБ Кыргызстан [07:46:52]line ФМ: 0000000002094219 [07:46:52]line ФД: 30789 [07:46:52]line ФПД: 130566384288417 [07:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30789&fm=130566384288417&tin=02508201610067®Number=0000000000186857&sum=50041 [07:46:52]OFD Sender: Processing packet 30789 [packets to send 10, broken 9] [07:46:52]ProducePacketName [07:46:52]name=ofd_packets/00030789 [07:46:52]OFD Sender: To server: pG, [07:46:52]CommunicateWithHost lk.salyk.kg:30040 [07:46:52]ConnectInit lk.salyk.kg [07:46:52]written 0, free lines is 4095 [07:46:53]Write to MH i2c: 01 00 00 50 73 C3 [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 07 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 07 00 50 73 00 00 00 00 00 FF 0C D5 [07:46:53]RasterBufferAndPrint [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]written 0, free lines is 3332 [07:46:53]MH_Cut [07:46:53]Write to MH i2c: D1 01 00 57 73 01 9C [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 01 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 01 00 57 73 00 9B [07:46:53]Write to MH i2c: 01 00 00 58 73 CB [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:54]*** Cut start [07:46:54]*** Partial cut [07:46:54]*** CUTSNS_PIN = 1 [07:46:54]*** CUTSNS_PIN = 0 [07:46:54]*** Brake cut motor [07:46:54]Read from MH i2c: 01 [07:46:54]MH_I2C_Read... [07:46:54]*** Stop cut motor [07:46:54]*** Cut end [07:46:54]Read from MH i2c: 01 07 00 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: 01 07 00 58 73 00 00 00 00 00 FF 0F E0 [07:46:54]process_action close_receipt done [07:46:54]requested_data is exist [07:46:54]produce_requested_data [07:46:54]requested_item fm.sn is exist - process it [07:46:54]wFMCommunicate request_size=4 [07:46:54]MH_SAM_APDU [07:46:54]CAPDU: 80 11 00 00 [07:46:54]Write to MH i2c: E2 08 00 59 73 80 11 00 00 00 00 00 00 46 [07:46:54]Write i2c OK [07:46:54]MH_I2C_Read... [07:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:54]Read from MH i2c: E2 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 17 00 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 17 00 59 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [07:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:46:54]wFMCommunicate OK [07:46:54]requested_item fd.num is exist - process it [07:46:54]SAM_PROTO_GetFieldsCounters [07:46:54]wFMCommunicate request_size=4 [07:46:54]MH_SAM_APDU [07:46:54]CAPDU: 80 13 00 00 [07:46:54]Write to MH i2c: E2 08 00 5A 73 80 13 00 00 00 00 00 00 49 [07:46:54]Write i2c OK [07:46:54]MH_I2C_Read... [07:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:54]Read from MH i2c: E2 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 62 00 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 62 00 5A 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 78 00 00 0E 04 04 00 74 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 E2 [07:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 78 00 00 0E 04 04 00 74 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 [07:46:54]wFMCommunicate OK [07:46:54]SAM_PROTO_GetFieldsCounters done [07:46:54]requested_item shift.num is exist - process it [07:46:54]requested_item shift.opened is exist - process it [07:46:54]req_shift_opened [07:46:54]FM_GetShiftState [07:46:54]SAM_PROTO_GetShiftState [07:46:54]wFMCommunicate request_size=4 [07:46:54]MH_SAM_APDU [07:46:54]CAPDU: 80 13 01 00 [07:46:54]Write to MH i2c: E2 08 00 5B 73 80 13 01 00 00 00 00 00 4B [07:46:54]Write i2c OK [07:46:54]MH_I2C_Read... [07:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:54]Read from MH i2c: E2 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 0E 00 [07:46:54]MH_I2C_Read... [07:46:54]Read from MH i2c: E2 0E 00 5B 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 25 [07:46:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:46:54]wFMCommunicate OK [07:46:54]SAM_PROTO_GetShiftState done [07:46:54]FM_GetShiftState done [07:46:54]req_shift_opened done [07:46:54]requested_item shift.open_date is exist - process it [07:46:54]req_shift_open_date [07:46:54]req_shift_open_date done [07:46:54]produce_requested_data done [07:46:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30789,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:46:54]process_action_free close_receipt [07:46:54]json_value_free [07:46:54]json_value_free done [07:46:54]process_json_proto returns [07:46:54]Send response to host [07:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30789,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:46:54]free response buf [07:46:54]execute_script done [07:46:54]execute_script returns [07:46:54]free content buf [07:46:54]Sock 7.Close socket [07:46:54]Sock 7.Thread stoped [07:46:57]ConnectInit Can't take IP for lk.salyk.kg [07:46:57]CommunicateWithHost connect error [07:46:57]CommunicateWithHost err = -1 [07:46:57]OFD Sender: Server communicate error [07:46:59]recv_with_timeout no data received [07:47:02]OFD Sender: Processing packet 30789 [packets to send 10, broken 9] [07:47:02]ProducePacketName [07:47:02]name=ofd_packets/00030789 [07:47:02]OFD Sender: To server: pG, [07:47:02]CommunicateWithHost lk.salyk.kg:30040 [07:47:02]ConnectInit lk.salyk.kg [07:47:07]ConnectInit Can't take IP for lk.salyk.kg [07:47:07]CommunicateWithHost connect error [07:47:07]CommunicateWithHost err = -1 [07:47:07]OFD Sender: Server communicate error [07:47:12]OFD Sender: Processing packet 30789 [packets to send 10, broken 9] [07:47:12]ProducePacketName [07:47:12]name=ofd_packets/00030789 [07:47:12]OFD Sender: To server: pG, [07:47:12]CommunicateWithHost lk.salyk.kg:30040 [07:47:12]ConnectInit lk.salyk.kg [07:47:14]recv_with_timeout no data received [07:47:17]ConnectInit Can't take IP for lk.salyk.kg [07:47:17]CommunicateWithHost connect error [07:47:17]CommunicateWithHost err = -1 [07:47:17]OFD Sender: Server communicate error [07:47:22]OFD Sender: Processing packet 30789 [packets to send 10, broken 9] [07:47:22]ProducePacketName [07:47:22]name=ofd_packets/00030789 [07:47:22]OFD Sender: To server: pG, [07:47:22]CommunicateWithHost lk.salyk.kg:30040 [07:47:22]ConnectInit lk.salyk.kg [07:47:27]ConnectInit Can't take IP for lk.salyk.kg [07:47:27]CommunicateWithHost connect error [07:47:27]CommunicateWithHost err = -1 [07:47:27]OFD Sender: Server communicate error [07:47:32]OFD Sender: Processing packet 30789 [packets to send 10, broken 9] [07:47:32]ProducePacketName [07:47:32]name=ofd_packets/00030789 [07:47:32]OFD Sender: To server: pG, [07:47:32]CommunicateWithHost lk.salyk.kg:30040 [07:47:32]ConnectInit lk.salyk.kg [07:47:34]recv_with_timeout no data received [07:47:36]accept exits with 10 [07:47:36]New connection [07:47:36]New thread 3067489636 created [07:47:36]Thread 3067346276 joined [07:47:36]Waiting for new connection... [07:47:36] Sock 10.Parse request [07:47:36]Sock 10.Check first char [07:47:36]Sock 10.First char is OK [07:47:36]request: POST /json_proto HTTP/1.0 [07:47:36]Method: POST [07:47:36]URL: /json_proto [07:47:36]Method is POST - this is cgi request [07:47:36]url: /json_proto [07:47:36]query_string will be loaded in cgi processing [07:47:36]execute_cgi json_proto POST (null) [07:47:36]execute_cgi path=json_proto method=POST [07:47:36]POST find Content-Length [07:47:36]Host: 172.17.51.3:8080 [07:47:36]Content-Length: 677 [07:47:36]Content-Type: application/json [07:47:36] [07:47:36]POST finish read [07:47:36]Found Content-Length = 677 [07:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:36]execute_script... [07:47: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)343209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:36]POST & json_proto [07:47:36]process_json_proto [07:47:36]json parsed OK: [07:47:36]protocol is kg_v1.0 [07:47:36]action value=close_receipt [07:47:36]process_action close_receipt [07:47:36]cmd_close_receipt [07:47:36]MH_GetDate [07:47:36]Write to MH i2c: F0 00 00 5C 73 BE [07:47:36]Write i2c OK [07:47:36]MH_I2C_Read... [07:47:36]Read from MH i2c: F0 [07:47:36]MH_I2C_Read... [07:47:36]Read from MH i2c: F0 09 00 [07:47:36]MH_I2C_Read... [07:47:36]Read from MH i2c: F0 09 00 5C 73 00 A1 58 17 67 04 C1 95 66 FE [07:47:36]GetLastDocTimeStamp 1729583220 [07:47:36]current date 1729583265 [07:47:36]FM_GetShiftState [07:47:36]SAM_PROTO_GetShiftState [07:47:36]wFMCommunicate request_size=4 [07:47:36]MH_SAM_APDU [07:47:36]CAPDU: 80 13 01 00 [07:47:36]Write to MH i2c: E2 08 00 5D 73 80 13 01 00 00 00 00 00 4D [07:47:36]Write i2c OK [07:47:36]MH_I2C_Read... [07:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:36]Read from MH i2c: E2 [07:47:36]MH_I2C_Read... [07:47:36]Read from MH i2c: E2 0E 00 [07:47:36]MH_I2C_Read... [07:47:36]Read from MH i2c: E2 0E 00 5D 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 27 [07:47:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:47:36]wFMCommunicate OK [07:47:36]SAM_PROTO_GetShiftState done [07:47:36]FM_GetShiftState done [07:47:36]opened in 1729557342 [07:47:36]opened+sec_in_day 1729643742 [07:47:36]quantity*price = 30038 [07:47:36]sum+1 = 30039 [07:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 23 22.10.2024 07:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30790 ФПД: 245367146986913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30790&fm=245367146986913&tin=02508201610067®Number=0000000000186857&sum=30000 [07:47:37]StoreToDocumentArchive [07:47:37]shift 116 fd 30790 [07:47:37]save to /storage/0116/doc_00030790 [07:47:37]save last doc name /storage/0116/doc_00030790 to /storage/kkm_last_doc_name [07:47:37]save OK [07:47:37]Clear old archive folders... [07:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:37]tlvbuf is 01ED8900 [07:47:37]SAM_PROTO_ClearQueue [07:47:37]wFMCommunicate request_size=4 [07:47:37]MH_SAM_APDU [07:47:37]CAPDU: 80 09 00 00 [07:47:37]Write to MH i2c: E2 08 00 6A 73 80 09 00 00 00 00 00 00 4F [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 6A 73 00 90 00 51 [07:47:37]RAPDU: 90 00 [07:47:37]wFMCommunicate OK [07:47:37]SAM_PROTO_ClearQueue done [07:47:37]KKMCreateOFDPacket [07:47:37]OFDProtocolAddRootSTLVToBuf [07:47:37]FM_MakeSignedData [07:47:37]FM_MakeSignedData [07:47:37]SAM_PROTO_SignData [07:47:37]wFMCommunicate request_size=4 [07:47:37]MH_SAM_APDU [07:47:37]CAPDU: 80 0D 01 02 [07:47:37]Write to MH i2c: E2 08 00 6B 73 80 0D 01 02 00 00 00 00 57 [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 6B 73 00 90 00 52 [07:47:37]RAPDU: 90 00 [07:47:37]wFMCommunicate OK [07:47:37]wFMCommunicate request_size=255 [07:47:37]MH_SAM_APDU [07:47: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A1 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 78 00 00 35 04 06 00 DF [07:47:37]Write to MH i2c: E2 02 01 6C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A1 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 78 00 00 35 04 06 00 DF 00 00 7B [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 6C 73 00 90 00 53 [07:47:37]RAPDU: 90 00 [07:47:37]wFMCommunicate OK [07:47:37]wFMCommunicate request_size=10 [07:47:37]MH_SAM_APDU [07:47:37]CAPDU: 80 0D 02 02 05 28 FD A2 BD A1 [07:47:37]Write to MH i2c: E2 0D 00 6D 73 80 0D 02 02 05 00 28 FD A2 BD A1 00 00 89 [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 03 00 6D 73 00 90 00 54 [07:47:37]RAPDU: 90 00 [07:47:37]wFMCommunicate OK [07:47:37]wFMCommunicate request_size=4 [07:47:37]MH_SAM_APDU [07:47:37]CAPDU: 80 0D 03 02 [07:47:37]Write to MH i2c: E2 08 00 6E 73 80 0D 03 02 00 00 00 00 5C [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 0B 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 0B 00 6E 73 00 CB 05 16 76 C1 6F 6F AE 90 00 06 [07:47:37]RAPDU: CB 05 16 76 C1 6F 6F AE 90 00 [07:47:37]wFMCommunicate OK [07:47:37]SAM_PROTO_SignData done [07:47:37]FM_MakeSignedData done [07:47:37]CreateOFDProtocolMessage [07:47:37]wFMCommunicate request_size=4 [07:47:37]MH_SAM_APDU [07:47:37]CAPDU: 80 11 00 00 [07:47:37]Write to MH i2c: E2 08 00 6F 73 80 11 00 00 00 00 00 00 5C [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:37]Read from MH i2c: E2 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 17 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: E2 17 00 6F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [07:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:47:37]wFMCommunicate OK [07:47:37]CreateOFDProtocolMessage done [07:47:37]OFDSenderStorePacket 30790 [07:47:37]StoreOFDPacket docnum=30790 [07:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 B0 07 01 4F 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A1 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 78 00 00 35 04 06 00 DF 28 FD A2 BD A1 CB 05 16 76 C1 6F 6F AE [07:47:37]CheckFolder [07:47:37]dirname=/storage/ofd_packets [07:47:37]CheckFolder done [07:47:37]ProducePacketName [07:47:37]name=ofd_packets/00030790 [07:47:37]NVStorageSaveData ofd_packets/00030790 [07:47:37]File name is /storage/ofd_packets/00030790 [07:47:37]Write 301 bytes [07:47:37]NVStorageSaveData done [07:47:37]OFDSenderStorePacket done [07:47:37]KKMCreateOFDPacket done [07:47:37]NVStorageSaveData kkm_last_timestamp [07:47:37]File name is /storage/kkm_last_timestamp [07:47:37]Write 4 bytes [07:47:37]NVStorageSaveData done [07:47:37]ExternCall_PrintAddStr [07:47:37]wPrintStart [07:47:37]Write to MH i2c: 01 00 00 70 73 E3 [07:47:37]Write i2c OK [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: 01 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: 01 07 00 [07:47:37]MH_I2C_Read... [07:47:37]Read from MH i2c: 01 07 00 70 73 00 00 00 00 00 FF 0F F8 [07:47:37]RasterBufferAndPrint [07:47:37]line Счет N : (1)343209 [07:47:37]line ИНН: 02508201610067 [07:47:37]line Контрольно-Кассовый Чек [07:47:37]line ПРОДАЖА [07:47:37]line ТРК (МРК, ГНК) : 33 [07:47:37]line Товар: 2710124130 [07:47:37]line Аи-92-К-2 [07:47:37]line 4.490 * 66.90 [07:47:37]line = 300.38 [07:47:37]line НДС 12% НСП 1% [07:47:37]line > о реализуемом товаре [07:47:37]line ОКРУГЛЕНИЕ: -0.38 [07:47:37]line ИТОГО: 300.00 [07:47:37]line Внесено: 300.00 [07:47:37]line СДАЧА: 0.00 [07:47:37]line НСП 1% : 2.66 [07:47:37]line НДС 12% : 31.90 [07:47:37]line Наличными: 300.00 [07:47:37]line Безнал.: 0.00 [07:47:37]line Место: АЗС № 78 "Партнер Нефть" [07:47:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:47:37]line СНО: Общий режим [07:47:37]line Чек 23 22.10.2024 07:47 [07:47:37]line Смена: 116 ФФД: 1.0 [07:47:37]line ЗНМ: 0300000137 [07:47:37]line РНМ: 0000000000186857 [07:47:37]line Версия ККМ: v1.0 [07:47:37]line ФМ: 0000000002094219 [07:47:37]line ФД: 30790 [07:47:37]line ФПД: 245367146986913 [07:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30790&fm=245367146986913&tin=02508201610067®Number=0000000000186857&sum=30000 [07:47:38]ConnectInit Can't take IP for lk.salyk.kg [07:47:38]CommunicateWithHost connect error [07:47:38]CommunicateWithHost err = -1 [07:47:38]OFD Sender: Server communicate error [07:47:38]written 0, free lines is 4095 [07:47:38]OFD Sender: Processing packet 30789 [packets to send 11, broken 9] [07:47:38]ProducePacketName [07:47:38]name=ofd_packets/00030789 [07:47:38]OFD Sender: To server: pG, [07:47:38]CommunicateWithHost lk.salyk.kg:30040 [07:47:38]ConnectInit lk.salyk.kg [07:47:38]Write to MH i2c: 01 00 00 9B 73 0E [07:47:38]Write i2c OK [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: 01 [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: 01 07 00 [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: 01 07 00 9B 73 00 00 00 00 00 E7 0C 08 [07:47:38]RasterBufferAndPrint [07:47:38]line [07:47:38]line [07:47:38]line [07:47:38]line [07:47:38]line [07:47:38]written 0, free lines is 3313 [07:47:38]MH_Cut [07:47:38]Write to MH i2c: D1 01 00 A2 73 01 E7 [07:47:38]Write i2c OK [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: D1 [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: D1 01 00 [07:47:38]MH_I2C_Read... [07:47:38]Read from MH i2c: D1 01 00 A2 73 00 E6 [07:47:38]Write to MH i2c: 01 00 00 A3 73 16 [07:47:38]Write i2c OK [07:47:38]MH_I2C_Read... [07:47:39]*** Cut start [07:47:39]*** Partial cut [07:47:39]*** CUTSNS_PIN = 1 [07:47:39]*** CUTSNS_PIN = 0 [07:47:39]*** Brake cut motor [07:47:39]Read from MH i2c: 01 [07:47:39]MH_I2C_Read... [07:47:39]*** Stop cut motor [07:47:39]*** Cut end [07:47:39]Read from MH i2c: 01 07 00 [07:47:39]MH_I2C_Read... [07:47:39]Read from MH i2c: 01 07 00 A3 73 00 00 00 00 00 FF 0F 2B [07:47:39]process_action close_receipt done [07:47:39]requested_data is exist [07:47:39]produce_requested_data [07:47:39]requested_item fm.sn is exist - process it [07:47:39]wFMCommunicate request_size=4 [07:47:39]MH_SAM_APDU [07:47:39]CAPDU: 80 11 00 00 [07:47:39]Write to MH i2c: E2 08 00 A4 73 80 11 00 00 00 00 00 00 91 [07:47:39]Write i2c OK [07:47:39]MH_I2C_Read... [07:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:40]Read from MH i2c: E2 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 17 00 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 17 00 A4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [07:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:47:40]wFMCommunicate OK [07:47:40]requested_item fd.num is exist - process it [07:47:40]SAM_PROTO_GetFieldsCounters [07:47:40]wFMCommunicate request_size=4 [07:47:40]MH_SAM_APDU [07:47:40]CAPDU: 80 13 00 00 [07:47:40]Write to MH i2c: E2 08 00 A5 73 80 13 00 00 00 00 00 00 94 [07:47:40]Write i2c OK [07:47:40]MH_I2C_Read... [07:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:40]Read from MH i2c: E2 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 62 00 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 62 00 A5 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 78 00 00 0E 04 04 00 74 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 31 [07:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 78 00 00 0E 04 04 00 74 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 [07:47:40]wFMCommunicate OK [07:47:40]SAM_PROTO_GetFieldsCounters done [07:47:40]requested_item shift.num is exist - process it [07:47:40]requested_item shift.opened is exist - process it [07:47:40]req_shift_opened [07:47:40]FM_GetShiftState [07:47:40]SAM_PROTO_GetShiftState [07:47:40]wFMCommunicate request_size=4 [07:47:40]MH_SAM_APDU [07:47:40]CAPDU: 80 13 01 00 [07:47:40]Write to MH i2c: E2 08 00 A6 73 80 13 01 00 00 00 00 00 96 [07:47:40]Write i2c OK [07:47:40]MH_I2C_Read... [07:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:40]Read from MH i2c: E2 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 0E 00 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 0E 00 A6 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 70 [07:47:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:47:40]wFMCommunicate OK [07:47:40]SAM_PROTO_GetShiftState done [07:47:40]FM_GetShiftState done [07:47:40]req_shift_opened done [07:47:40]requested_item shift.open_date is exist - process it [07:47:40]req_shift_open_date [07:47:40]req_shift_open_date done [07:47:40]produce_requested_data done [07:47:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30790,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:47:40]process_action_free close_receipt [07:47:40]json_value_free [07:47:40]json_value_free done [07:47:40]process_json_proto returns [07:47:40]Send response to host [07:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30790,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:47:40]free response buf [07:47:40]execute_script done [07:47:40]execute_script returns [07:47:40]free content buf [07:47:40]Sock 10.Close socket [07:47:40]Sock 10.Thread stoped [07:47:40]accept exits with 7 [07:47:40]New connection [07:47:40]New thread 3067346276 created [07:47:40]Thread 3067489636 joined [07:47:40]Waiting for new connection... [07:47:40] Sock 7.Parse request [07:47:40]Sock 7.Check first char [07:47:40]Sock 7.First char is OK [07:47:40]request: POST /json_proto HTTP/1.0 [07:47:40]Method: POST [07:47:40]URL: /json_proto [07:47:40]Method is POST - this is cgi request [07:47:40]url: /json_proto [07:47:40]query_string will be loaded in cgi processing [07:47:40]execute_cgi json_proto POST (null) [07:47:40]execute_cgi path=json_proto method=POST [07:47:40]POST find Content-Length [07:47:40]Host: 172.17.51.3:8080 [07:47:40]Content-Length: 678 [07:47:40]Content-Type: application/json [07:47:40] [07:47:40]POST finish read [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 B2 73 00 90 00 99 [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 15 03 00 [07:47:41]Write to MH i2c: E2 08 00 B3 73 80 15 03 00 00 00 00 00 A7 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 40 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 40 00 B3 73 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 00 00 00 35 04 06 00 06 8D E4 94 23 47 90 00 58 [07:47:41]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 00 00 00 35 04 06 00 06 8D E4 94 23 47 90 00 [07:47:41]wFMCommunicate OK [07:47:41]SAM_PROTO_ProcessDocument answer len = 59 [07:47:41]SAM_PROTO_ProcessDocument done [07:47:41]SetTLVBufToDocument [07:47:41]Processing tag 1209 (04B9) [07:47:41]Malloc new data [07:47:41]Processing tag 1041 (0411) [07:47:41]Processing tag 1040 (0410) [07:47:41]Malloc new data [07:47:41]Processing tag 1038 (040E) [07:47:41]Malloc new data [07:47:41]Processing tag 1042 (0412) [07:47:41]Malloc new data [07:47:41]Processing tag 1077 (0435) [07:47:41]Malloc new data [07:47:41]SetTLVBufToDocument err=0 [07:47:41]KKMLoadAndSignReceiptData store KKM data [07:47:41]KKMLoadAndSignReceiptData err=0 [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 11 00 00 [07:47:41]Write to MH i2c: E2 08 00 B4 73 80 11 00 00 00 00 00 00 A1 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 17 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 17 00 B4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [07:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:47:41]wFMCommunicate OK [07:47:41]Счет N : (1)343208 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 53 Товар: 2710124130 Аи-92-К-2 10.470 * 66.90 = 700.44 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 24 22.10.2024 07:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30791 ФПД: 7206495068999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074750&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30791&fm=7206495068999&tin=02508201610067®Number=0000000000186857&sum=70000 [07:47:41]StoreToDocumentArchive [07:47:41]shift 116 fd 30791 [07:47:41]save to /storage/0116/doc_00030791 [07:47:41]save last doc name /storage/0116/doc_00030791 to /storage/kkm_last_doc_name [07:47:41]save OK [07:47:41]Clear old archive folders... [07:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:41]tlvbuf is 01DFCD60 [07:47:41]SAM_PROTO_ClearQueue [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 09 00 00 [07:47:41]Write to MH i2c: E2 08 00 B5 73 80 09 00 00 00 00 00 00 9A [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 B5 73 00 90 00 9C [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]SAM_PROTO_ClearQueue done [07:47:41]KKMCreateOFDPacket [07:47:41]OFDProtocolAddRootSTLVToBuf [07:47:41]FM_MakeSignedData [07:47:41]FM_MakeSignedData [07:47:41]SAM_PROTO_SignData [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 01 02 [07:47:41]Write to MH i2c: E2 08 00 B6 73 80 0D 01 02 00 00 00 00 A2 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 B6 73 00 90 00 9D [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]wFMCommunicate request_size=255 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A6 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 35 04 06 00 06 [07:47:42]Write to MH i2c: E2 02 01 B7 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A6 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 35 04 06 00 06 00 00 10 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:42]Read from MH i2c: E2 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 03 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 03 00 B7 73 00 90 00 9E [07:47:42]RAPDU: 90 00 [07:47:42]wFMCommunicate OK [07:47:42]wFMCommunicate request_size=10 [07:47:42]MH_SAM_APDU [07:47:42]CAPDU: 80 0D 02 02 05 8D E4 94 23 47 [07:47:42]Write to MH i2c: E2 0D 00 B8 73 80 0D 02 02 05 00 8D E4 94 23 47 00 00 1E [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 [07:47:42]MH_I2C_Read... [07:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:42]Read from MH i2c: E2 03 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 03 00 B8 73 00 90 00 9F [07:47:42]RAPDU: 90 00 [07:47:42]wFMCommunicate OK [07:47:42]wFMCommunicate request_size=4 [07:47:42]MH_SAM_APDU [07:47:42]CAPDU: 80 0D 03 02 [07:47:42]Write to MH i2c: E2 08 00 B9 73 80 0D 03 02 00 00 00 00 A7 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:42]Read from MH i2c: E2 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 0B 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 0B 00 B9 73 00 6E 9B AF D9 18 23 A5 56 90 00 6F [07:47:42]RAPDU: 6E 9B AF D9 18 23 A5 56 90 00 [07:47:42]wFMCommunicate OK [07:47:42]SAM_PROTO_SignData done [07:47:42]FM_MakeSignedData done [07:47:42]CreateOFDProtocolMessage [07:47:42]wFMCommunicate request_size=4 [07:47:42]MH_SAM_APDU [07:47:42]CAPDU: 80 11 00 00 [07:47:42]Write to MH i2c: E2 08 00 BA 73 80 11 00 00 00 00 00 00 A7 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:42]Read from MH i2c: E2 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 17 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 17 00 BA 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [07:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:47:42]wFMCommunicate OK [07:47:42]CreateOFDProtocolMessage done [07:47:42]OFDSenderStorePacket 30791 [07:47:42]StoreOFDPacket docnum=30791 [07:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 DA 07 01 54 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A6 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 35 04 06 00 06 8D E4 94 23 47 6E 9B AF D9 18 23 A5 56 [07:47:42]CheckFolder [07:47:42]dirname=/storage/ofd_packets [07:47:42]CheckFolder done [07:47:42]ProducePacketName [07:47:42]name=ofd_packets/00030791 [07:47:42]NVStorageSaveData ofd_packets/00030791 [07:47:42]File name is /storage/ofd_packets/00030791 [07:47:42]Write 301 bytes [07:47:42]NVStorageSaveData done [07:47:42]OFDSenderStorePacket done [07:47:42]KKMCreateOFDPacket done [07:47:42]NVStorageSaveData kkm_last_timestamp [07:47:42]File name is /storage/kkm_last_timestamp [07:47:42]Write 4 bytes [07:47:42]NVStorageSaveData done [07:47:42]ExternCall_PrintAddStr [07:47:42]wPrintStart [07:47:42]Write to MH i2c: 01 00 00 BB 73 2E [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 07 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 07 00 BB 73 00 00 00 00 00 FF 0F 43 [07:47:42]RasterBufferAndPrint [07:47:42]line Счет N : (1)343208 [07:47:42]line ИНН: 02508201610067 [07:47:42]line Контрольно-Кассовый Чек [07:47:42]line ПРОДАЖА [07:47:42]line ТРК (МРК, ГНК) : 53 [07:47:42]line Товар: 2710124130 [07:47:42]line Аи-92-К-2 [07:47:42]line 10.470 * 66.90 [07:47:42]line = 700.44 [07:47:42]line НДС 12% НСП 1% [07:47:42]line > о реализуемом товаре [07:47:42]line ОКРУГЛЕНИЕ: -0.44 [07:47:42]line ИТОГО: 700.00 [07:47:42]line Внесено: 700.00 [07:47:42]line СДАЧА: 0.00 [07:47:42]line НСП 1% : 6.20 [07:47:42]line НДС 12% : 74.38 [07:47:42]line Наличными: 700.00 [07:47:42]line Безнал.: 0.00 [07:47:42]line Место: АЗС № 78 "Партнер Нефть" [07:47:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:47:42]line СНО: Общий режим [07:47:42]line Чек 24 22.10.2024 07:47 [07:47:42]line Смена: 116 ФФД: 1.0 [07:47:42]line ЗНМ: 0300000137 [07:47:42]line РНМ: 0000000000186857 [07:47:42]line Версия ККМ: v1.0 [07:47:42]line ФМ: 0000000002094219 [07:47:42]line ФД: 30791 [07:47:42]line ФПД: 7206495068999 [07:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074750&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30791&fm=7206495068999&tin=02508201610067®Number=0000000000186857&sum=70000 [07:47:42]written 0, free lines is 4095 [07:47:43]Write to MH i2c: 01 00 00 E6 73 59 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 E6 73 00 00 00 00 00 E7 0C 53 [07:47:43]RasterBufferAndPrint [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]written 0, free lines is 3318 [07:47:43]MH_Cut [07:47:43]Write to MH i2c: D1 01 00 ED 73 01 32 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 01 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 01 00 ED 73 00 31 [07:47:43]Write to MH i2c: 01 00 00 EE 73 61 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]ConnectInit Can't take IP for lk.salyk.kg [07:47:43]CommunicateWithHost connect error [07:47:43]CommunicateWithHost err = -1 [07:47:43]OFD Sender: Server communicate error [07:47:43]OFD Sender: Processing packet 30789 [packets to send 12, broken 9] [07:47:43]ProducePacketName [07:47:43]name=ofd_packets/00030789 [07:47:43]OFD Sender: To server: pG, [07:47:43]CommunicateWithHost lk.salyk.kg:30040 [07:47:43]ConnectInit lk.salyk.kg [07:47:43]*** Cut start [07:47:43]*** Partial cut [07:47:43]*** CUTSNS_PIN = 1 [07:47:44]*** CUTSNS_PIN = 0 [07:47:44]*** Brake cut motor [07:47:44]Read from MH i2c: 01 [07:47:44]MH_I2C_Read... [07:47:44]*** Stop cut motor [07:47:44]*** Cut end [07:47:44]Read from MH i2c: 01 07 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 EE 73 00 00 00 00 00 FF 0F 76 [07:47:44]process_action close_receipt done [07:47:44]requested_data is exist [07:47:44]produce_requested_data [07:47:44]requested_item fm.sn is exist - process it [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 11 00 00 [07:47:44]Write to MH i2c: E2 08 00 EF 73 80 11 00 00 00 00 00 00 DC [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 EF 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [07:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:47:44]wFMCommunicate OK [07:47:44]requested_item fd.num is exist - process it [07:47:44]SAM_PROTO_GetFieldsCounters [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 00 00 [07:47:44]Write to MH i2c: E2 08 00 F0 73 80 13 00 00 00 00 00 00 DF [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 F0 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 78 00 00 0E 04 04 00 74 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 80 [07:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 78 00 00 0E 04 04 00 74 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 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetFieldsCounters done [07:47:44]requested_item shift.num is exist - process it [07:47:44]requested_item shift.opened is exist - process it [07:47:44]req_shift_opened [07:47:44]FM_GetShiftState [07:47:44]SAM_PROTO_GetShiftState [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 01 00 [07:47:44]Write to MH i2c: E2 08 00 F1 73 80 13 01 00 00 00 00 00 E1 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 F1 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BB [07:47:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetShiftState done [07:47:44]FM_GetShiftState done [07:47:44]req_shift_opened done [07:47:44]requested_item shift.open_date is exist - process it [07:47:44]req_shift_open_date [07:47:44]req_shift_open_date done [07:47:44]produce_requested_data done [07:47:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30791,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:47:44]process_action_free close_receipt [07:47:44]json_value_free [07:47:44]json_value_free done [07:47:44]process_json_proto returns [07:47:44]Send response to host [07:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30791,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:47:44]free response buf [07:47:44]execute_script done [07:47:44]execute_script returns [07:47:44]free content buf [07:47:44]Sock 7.Close socket [07:47:44]Sock 7.Thread stoped [07:47:45]Connected sock=9 [07:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E 3D 07 01 5D C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 78 00 00 35 04 06 00 76 BF DA F4 82 A1 C7 28 B6 93 AE AD 22 56 [07:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E5 15 47 00 B4 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 78 00 00 F4 03 04 00 27 03 17 67 B6 04 01 00 00 95 19 43 64 E8 AF CB 78 [07:47:46]CommunicateWithHost err = 0 [07:47:46]CheckOFDResponse [07:47:46]1017 (14) - 77093643461234 [07:47:46]1041 (16) - 0000000002094219 [07:47:46]1040 (4) - 30789 [07:47:46]1012 (4) - 22.10.2024 01:43 [07:47:46]1206 (1) - 0 [07:47:46]OFD Sender: Remove packet 30789 [07:47:46]ProducePacketName [07:47:46]name=ofd_packets/00030789 [07:47:46]NVStorageDeleteData [07:47:46]OFD Sender: Processing packet 30790 [packets to send 11, broken 9] [07:47:46]ProducePacketName [07:47:46]name=ofd_packets/00030790 [07:47:46]OFD Sender: To server: pG, [07:47:46]CommunicateWithHost lk.salyk.kg:30040 [07:47:46]ConnectInit lk.salyk.kg [07:47:46]Connected sock=7 [07:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 B0 07 01 4F 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A1 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 78 00 00 35 04 06 00 DF 28 FD A2 BD A1 CB 05 16 76 C1 6F 6F AE [07:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7D D1 47 00 A8 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 32 30 39 34 32 31 39 10 04 04 00 46 78 00 00 F4 03 04 00 28 03 17 67 B6 04 01 00 00 0C 7D 98 1F 9F 5A B5 8A [07:47:46]CommunicateWithHost err = 0 [07:47:46]CheckOFDResponse [07:47:46]1017 (14) - 77093643461234 [07:47:46]1041 (16) - 0000000002094219 [07:47:46]1040 (4) - 30790 [07:47:46]1012 (4) - 22.10.2024 01:43 [07:47:46]1206 (1) - 0 [07:47:46]OFD Sender: Remove packet 30790 [07:47:46]ProducePacketName [07:47:46]name=ofd_packets/00030790 [07:47:46]NVStorageDeleteData [07:47:47]OFD Sender: Processing packet 30791 [packets to send 10, broken 9] [07:47:47]ProducePacketName [07:47:47]name=ofd_packets/00030791 [07:47:47]OFD Sender: To server: pG, [07:47:47]CommunicateWithHost lk.salyk.kg:30040 [07:47:47]ConnectInit lk.salyk.kg [07:47:47]Connected sock=7 [07:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 DA 07 01 54 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A6 58 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 35 04 06 00 06 8D E4 94 23 47 6E 9B AF D9 18 23 A5 56 [07:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C2 62 47 00 71 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 32 30 39 34 32 31 39 10 04 04 00 47 78 00 00 F4 03 04 00 28 03 17 67 B6 04 01 00 00 46 F7 C1 9A 26 ED AD 9F [07:47:47]CommunicateWithHost err = 0 [07:47:47]CheckOFDResponse [07:47:47]1017 (14) - 77093643461234 [07:47:47]1041 (16) - 0000000002094219 [07:47:47]1040 (4) - 30791 [07:47:47]1012 (4) - 22.10.2024 01:43 [07:47:47]1206 (1) - 0 [07:47:47]OFD Sender: Remove packet 30791 [07:47:47]ProducePacketName [07:47:47]name=ofd_packets/00030791 [07:47:47]NVStorageDeleteData [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:12]recv_with_timeout no data received [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]recv_with_timeout no data received [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:51]accept exits with 10 [07:50:51]New connection [07:50:51]New thread 3067489636 created [07:50:51]Thread 3067346276 joined [07:50:51]Waiting for new connection... [07:50:51] Sock 10.Parse request [07:50:51]Sock 10.Check first char [07:50:51]Sock 10.First char is OK [07:50:51]request: POST /json_proto HTTP/1.0 [07:50:51]Method: POST [07:50:51]URL: /json_proto [07:50:51]Method is POST - this is cgi request [07:50:51]url: /json_proto [07:50:51]query_string will be loaded in cgi processing [07:50:51]execute_cgi json_proto POST (null) [07:50:51]execute_cgi path=json_proto method=POST [07:50:51]POST find Content-Length [07:50:51]Host: 172.17.51.3:8080 [07:50:51]Content-Length: 840 [07:50:51]Content-Type: application/json [07:50:51] [07:50:51]POST finish read [07:50:51]Found Content-Length = 840 [07:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:51]execute_script... [07:50: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)343210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:51]POST & json_proto [07:50:51]process_json_proto [07:50:51]json parsed OK: [07:50:51]protocol is kg_v1.0 [07:50:51]action value=close_receipt [07:50:51]process_action close_receipt [07:50:51]cmd_close_receipt [07:50:51]MH_GetDate [07:50:51]Write to MH i2c: F0 00 00 F2 73 54 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: F0 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: F0 09 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: F0 09 00 F2 73 00 64 59 17 67 04 C1 95 66 58 [07:50:51]GetLastDocTimeStamp 1729583270 [07:50:51]current date 1729583460 [07:50:51]FM_GetShiftState [07:50:51]SAM_PROTO_GetShiftState [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 13 01 00 [07:50:51]Write to MH i2c: E2 08 00 F3 73 80 13 01 00 00 00 00 00 E3 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 0E 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 0E 00 F3 73 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BD [07:50:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:50:51]wFMCommunicate OK [07:50:51]SAM_PROTO_GetShiftState done [07:50:51]FM_GetShiftState done [07:50:51]opened in 1729557342 [07:50:51]opened+sec_in_day 1729643742 [07:50:51]quantity*price = 100050 [07:50:51]sum+1 = 100052 [07:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 25 22.10.2024 07:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30792 ФПД: 23756298381747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30792&fm=23756298381747&tin=02508201610067®Number=0000000000186857&sum=100051 [07:50:52]StoreToDocumentArchive [07:50:52]shift 116 fd 30792 [07:50:52]save to /storage/0116/doc_00030792 [07:50:52]save last doc name /storage/0116/doc_00030792 to /storage/kkm_last_doc_name [07:50:52]save OK [07:50:52]Clear old archive folders... [07:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:50:52]tlvbuf is B6FDB8B0 [07:50:52]SAM_PROTO_ClearQueue [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 09 00 00 [07:50:52]Write to MH i2c: E2 08 00 00 74 80 09 00 00 00 00 00 00 E6 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 00 74 00 90 00 E8 [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]SAM_PROTO_ClearQueue done [07:50:52]KKMCreateOFDPacket [07:50:52]OFDProtocolAddRootSTLVToBuf [07:50:52]FM_MakeSignedData [07:50:52]FM_MakeSignedData [07:50:52]SAM_PROTO_SignData [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 01 02 [07:50:52]Write to MH i2c: E2 08 00 01 74 80 0D 01 02 00 00 00 00 EE [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 01 74 00 90 00 E9 [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]wFMCommunicate request_size=255 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 64 59 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 78 00 00 35 04 06 00 15 9B 31 B9 [07:50:52]Write to MH i2c: E2 02 01 02 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 64 59 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 78 00 00 35 04 06 00 15 9B 31 B9 00 00 FD [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 02 74 00 90 00 EA [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]wFMCommunicate request_size=7 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 02 02 02 E9 B3 [07:50:52]Write to MH i2c: E2 0A 00 03 74 80 0D 02 02 02 00 E9 B3 00 00 91 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 03 74 00 90 00 EB [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 03 02 [07:50:52]Write to MH i2c: E2 08 00 04 74 80 0D 03 02 00 00 00 00 F3 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 0B 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 0B 00 04 74 00 1B D3 64 9C 3B 02 B7 53 90 00 29 [07:50:52]RAPDU: 1B D3 64 9C 3B 02 B7 53 90 00 [07:50:52]wFMCommunicate OK [07:50:52]SAM_PROTO_SignData done [07:50:52]FM_MakeSignedData done [07:50:52]CreateOFDProtocolMessage [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 11 00 00 [07:50:52]Write to MH i2c: E2 08 00 05 74 80 11 00 00 00 00 00 00 F3 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 17 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 17 00 05 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [07:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:50:52]wFMCommunicate OK [07:50:52]CreateOFDProtocolMessage done [07:50:52]OFDSenderStorePacket 30792 [07:50:52]StoreOFDPacket docnum=30792 [07:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EB D4 04 01 1F 06 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 64 59 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 78 00 00 35 04 06 00 15 9B 31 B9 E9 B3 1B D3 64 9C 3B 02 B7 53 [07:50:52]CheckFolder [07:50:52]dirname=/storage/ofd_packets [07:50:52]CheckFolder done [07:50:52]ProducePacketName [07:50:52]name=ofd_packets/00030792 [07:50:52]NVStorageSaveData ofd_packets/00030792 [07:50:52]File name is /storage/ofd_packets/00030792 [07:50:52]Write 298 bytes [07:50:52]NVStorageSaveData done [07:50:52]OFDSenderStorePacket done [07:50:52]KKMCreateOFDPacket done [07:50:52]NVStorageSaveData kkm_last_timestamp [07:50:52]File name is /storage/kkm_last_timestamp [07:50:52]Write 4 bytes [07:50:52]NVStorageSaveData done [07:50:52]ExternCall_PrintAddStr [07:50:52]wPrintStart [07:50:52]Write to MH i2c: 01 00 00 06 74 7A [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 06 74 00 00 00 00 00 FF 0F 8F [07:50:52]RasterBufferAndPrint [07:50:52]line Счет N : (1)343210 [07:50:52]line ИНН: 02508201610067 [07:50:52]line Контрольно-Кассовый Чек [07:50:52]line ПРОДАЖА [07:50:52]line ТРК (МРК, ГНК) : 34 [07:50:52]line Товар: 2710194210 [07:50:52]line ДТ-К-2 [07:50:52]line 13.130 * 76.20 [07:50:52]line = 1000.51 [07:50:52]line НДС 12% НСП 1% [07:50:52]line > о реализуемом товаре [07:50:52]line ИТОГО: 1000.51 [07:50:52]line НСП 1% : 8.85 [07:50:52]line НДС 12% : 106.25 [07:50:52]line Наличными: 0.00 [07:50:52]line Безнал.: 1000.51 [07:50:52]line Место: АЗС № 78 "Партнер Нефть" [07:50:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:50:52]line СНО: Общий режим [07:50:52]line Чек 25 22.10.2024 07:51 [07:50:52]line Смена: 116 ФФД: 1.0 [07:50:52]line ЗНМ: 0300000137 [07:50:52]line РНМ: 0000000000186857 [07:50:52]line Версия ККМ: v1.0 [07:50:52]line Платежная система: АКБ Кыргызстан [07:50:52]line ФМ: 0000000002094219 [07:50:52]line ФД: 30792 [07:50:52]line ФПД: 23756298381747 [07:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30792&fm=23756298381747&tin=02508201610067®Number=0000000000186857&sum=100051 [07:50:53]OFD Sender: Processing packet 30792 [packets to send 10, broken 9] [07:50:53]ProducePacketName [07:50:53]name=ofd_packets/00030792 [07:50:53]OFD Sender: To server: pG, [07:50:53]CommunicateWithHost lk.salyk.kg:30040 [07:50:53]ConnectInit lk.salyk.kg [07:50:53]written 0, free lines is 4095 [07:50:53]Connected sock=9 [07:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EB D4 04 01 1F 06 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 64 59 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 78 00 00 35 04 06 00 15 9B 31 B9 E9 B3 1B D3 64 9C 3B 02 B7 53 [07:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 63 8B 47 00 2B 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 32 30 39 34 32 31 39 10 04 04 00 48 78 00 00 F4 03 04 00 E2 03 17 67 B6 04 01 00 00 70 A4 5C 2D 72 B9 47 81 [07:50:53]CommunicateWithHost err = 0 [07:50:53]CheckOFDResponse [07:50:53]1017 (14) - 77093643461234 [07:50:53]1041 (16) - 0000000002094219 [07:50:53]1040 (4) - 30792 [07:50:53]1012 (4) - 22.10.2024 01:46 [07:50:53]1206 (1) - 0 [07:50:53]OFD Sender: Remove packet 30792 [07:50:53]ProducePacketName [07:50:53]name=ofd_packets/00030792 [07:50:53]NVStorageDeleteData [07:50:53]Write to MH i2c: 01 00 00 30 74 A4 [07:50:53]Write i2c OK [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: 01 [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: 01 07 00 [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: 01 07 00 30 74 00 00 00 00 00 01 0D B9 [07:50:53]RasterBufferAndPrint [07:50:53]line [07:50:53]line [07:50:53]line [07:50:53]line [07:50:53]line [07:50:53]written 0, free lines is 3335 [07:50:53]MH_Cut [07:50:53]Write to MH i2c: D1 01 00 37 74 01 7D [07:50:53]Write i2c OK [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: D1 [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: D1 01 00 [07:50:53]MH_I2C_Read... [07:50:53]Read from MH i2c: D1 01 00 37 74 00 7C [07:50:53]Write to MH i2c: 01 00 00 38 74 AC [07:50:53]Write i2c OK [07:50:53]MH_I2C_Read... [07:50:54]OFD Sender: No OFD packet to send [07:50:54]*** Cut start [07:50:54]*** Partial cut [07:50:54]*** CUTSNS_PIN = 1 [07:50:54]*** CUTSNS_PIN = 0 [07:50:54]*** Brake cut motor [07:50:55]Read from MH i2c: 01 [07:50:55]MH_I2C_Read... [07:50:55]*** Stop cut motor [07:50:55]*** Cut end [07:50:55]Read from MH i2c: 01 07 00 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: 01 07 00 38 74 00 00 00 00 00 FF 0F C1 [07:50:55]process_action close_receipt done [07:50:55]requested_data is exist [07:50:55]produce_requested_data [07:50:55]requested_item fm.sn is exist - process it [07:50:55]wFMCommunicate request_size=4 [07:50:55]MH_SAM_APDU [07:50:55]CAPDU: 80 11 00 00 [07:50:55]Write to MH i2c: E2 08 00 39 74 80 11 00 00 00 00 00 00 27 [07:50:55]Write i2c OK [07:50:55]MH_I2C_Read... [07:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:55]Read from MH i2c: E2 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 17 00 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 17 00 39 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [07:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:50:55]wFMCommunicate OK [07:50:55]requested_item fd.num is exist - process it [07:50:55]SAM_PROTO_GetFieldsCounters [07:50:55]wFMCommunicate request_size=4 [07:50:55]MH_SAM_APDU [07:50:55]CAPDU: 80 13 00 00 [07:50:55]Write to MH i2c: E2 08 00 3A 74 80 13 00 00 00 00 00 00 2A [07:50:55]Write i2c OK [07:50:55]MH_I2C_Read... [07:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:55]Read from MH i2c: E2 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 62 00 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 62 00 3A 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 78 00 00 0E 04 04 00 74 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 CF [07:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 78 00 00 0E 04 04 00 74 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 [07:50:55]wFMCommunicate OK [07:50:55]SAM_PROTO_GetFieldsCounters done [07:50:55]requested_item shift.num is exist - process it [07:50:55]requested_item shift.opened is exist - process it [07:50:55]req_shift_opened [07:50:55]FM_GetShiftState [07:50:55]SAM_PROTO_GetShiftState [07:50:55]wFMCommunicate request_size=4 [07:50:55]MH_SAM_APDU [07:50:55]CAPDU: 80 13 01 00 [07:50:55]Write to MH i2c: E2 08 00 3B 74 80 13 01 00 00 00 00 00 2C [07:50:55]Write i2c OK [07:50:55]MH_I2C_Read... [07:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:55]Read from MH i2c: E2 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 0E 00 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 0E 00 3B 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 06 [07:50:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:50:55]wFMCommunicate OK [07:50:55]SAM_PROTO_GetShiftState done [07:50:55]FM_GetShiftState done [07:50:55]req_shift_opened done [07:50:55]requested_item shift.open_date is exist - process it [07:50:55]req_shift_open_date [07:50:55]req_shift_open_date done [07:50:55]produce_requested_data done [07:50:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30792,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:50:55]process_action_free close_receipt [07:50:55]json_value_free [07:50:55]json_value_free done [07:50:55]process_json_proto returns [07:50:55]Send response to host [07:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30792,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:50:55]free response buf [07:50:55]execute_script done [07:50:55]execute_script returns [07:50:55]free content buf [07:50:55]Sock 10.Close socket [07:50:55]Sock 10.Thread stoped [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:10]accept exits with 7 [07:55:10]New connection [07:55:10]New thread 3067346276 created [07:55:10]Thread 3067489636 joined [07:55:10]Waiting for new connection... [07:55:10] Sock 7.Parse request [07:55:10]Sock 7.Check first char [07:55:10]Sock 7.First char is OK [07:55:10]request: POST /json_proto HTTP/1.0 [07:55:10]Method: POST [07:55:10]URL: /json_proto [07:55:10]Method is POST - this is cgi request [07:55:10]url: /json_proto [07:55:10]query_string will be loaded in cgi processing [07:55:10]execute_cgi json_proto POST (null) [07:55:10]execute_cgi path=json_proto method=POST [07:55:10]POST find Content-Length [07:55:10]Host: 172.17.51.3:8080 [07:55:10]Content-Length: 677 [07:55:10]Content-Type: application/json [07:55:10] [07:55:10]POST finish read [07:55:10]Found Content-Length = 677 [07:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:10]execute_script... [07:55: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)343212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:10]POST & json_proto [07:55:10]process_json_proto [07:55:10]json parsed OK: [07:55:10]protocol is kg_v1.0 [07:55:10]action value=close_receipt [07:55:10]process_action close_receipt [07:55:10]cmd_close_receipt [07:55:10]MH_GetDate [07:55:10]Write to MH i2c: F0 00 00 3C 74 9F [07:55:10]Write i2c OK [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 09 00 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 09 00 3C 74 00 67 5A 17 67 04 C1 95 66 A7 [07:55:10]GetLastDocTimeStamp 1729583460 [07:55:10]current date 1729583719 [07:55:10]FM_GetShiftState [07:55:10]SAM_PROTO_GetShiftState [07:55:10]wFMCommunicate request_size=4 [07:55:10]MH_SAM_APDU [07:55:10]CAPDU: 80 13 01 00 [07:55:10]Write to MH i2c: E2 08 00 3D 74 80 13 01 00 00 00 00 00 2E [07:55:10]Write i2c OK [07:55:10]MH_I2C_Read... [07:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:10]Read from MH i2c: E2 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: E2 0E 00 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: E2 0E 00 3D 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 08 [07:55:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:55:10]wFMCommunicate OK [07:55:10]SAM_PROTO_GetShiftState done [07:55:10]FM_GetShiftState done [07:55:10]opened in 1729557342 [07:55:10]opened+sec_in_day 1729643742 [07:55:10]quantity*price = 40006 [07:55:10]sum+1 = 40007 [07:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 26 22.10.2024 07:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30793 ФПД: 132614362275049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075519&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30793&fm=132614362275049&tin=02508201610067®Number=0000000000186857&sum=40000 [07:55:11]StoreToDocumentArchive [07:55:11]shift 116 fd 30793 [07:55:11]save to /storage/0116/doc_00030793 [07:55:11]save last doc name /storage/0116/doc_00030793 to /storage/kkm_last_doc_name [07:55:11]save OK [07:55:11]Clear old archive folders... [07:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:11]tlvbuf is 01E2B900 [07:55:11]SAM_PROTO_ClearQueue [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 09 00 00 [07:55:11]Write to MH i2c: E2 08 00 4A 74 80 09 00 00 00 00 00 00 30 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 4A 74 00 90 00 32 [07:55:11]RAPDU: 90 00 [07:55:11]wFMCommunicate OK [07:55:11]SAM_PROTO_ClearQueue done [07:55:11]KKMCreateOFDPacket [07:55:11]OFDProtocolAddRootSTLVToBuf [07:55:11]FM_MakeSignedData [07:55:11]FM_MakeSignedData [07:55:11]SAM_PROTO_SignData [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 0D 01 02 [07:55:11]Write to MH i2c: E2 08 00 4B 74 80 0D 01 02 00 00 00 00 38 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 4B 74 00 90 00 33 [07:55:11]RAPDU: 90 00 [07:55:11]wFMCommunicate OK [07:55:11]wFMCommunicate request_size=255 [07:55:11]MH_SAM_APDU [07:55: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 67 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 78 00 00 35 04 06 00 78 [07:55:11]Write to MH i2c: E2 02 01 4C 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 67 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 78 00 00 35 04 06 00 78 00 00 9E [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 4C 74 00 90 00 34 [07:55:11]RAPDU: 90 00 [07:55:11]wFMCommunicate OK [07:55:11]wFMCommunicate request_size=10 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 0D 02 02 05 9C AF F4 9C E9 [07:55:11]Write to MH i2c: E2 0D 00 4D 74 80 0D 02 02 05 00 9C AF F4 9C E9 00 00 09 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 4D 74 00 90 00 35 [07:55:12]RAPDU: 90 00 [07:55:12]wFMCommunicate OK [07:55:12]wFMCommunicate request_size=4 [07:55:12]MH_SAM_APDU [07:55:12]CAPDU: 80 0D 03 02 [07:55:12]Write to MH i2c: E2 08 00 4E 74 80 0D 03 02 00 00 00 00 3D [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 0B 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 0B 00 4E 74 00 83 41 63 E7 2F FB E3 B1 90 00 0A [07:55:12]RAPDU: 83 41 63 E7 2F FB E3 B1 90 00 [07:55:12]wFMCommunicate OK [07:55:12]SAM_PROTO_SignData done [07:55:12]FM_MakeSignedData done [07:55:12]CreateOFDProtocolMessage [07:55:12]wFMCommunicate request_size=4 [07:55:12]MH_SAM_APDU [07:55:12]CAPDU: 80 11 00 00 [07:55:12]Write to MH i2c: E2 08 00 4F 74 80 11 00 00 00 00 00 00 3D [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 17 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 17 00 4F 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [07:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:12]wFMCommunicate OK [07:55:12]CreateOFDProtocolMessage done [07:55:12]OFDSenderStorePacket 30793 [07:55:12]StoreOFDPacket docnum=30793 [07:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 05 07 01 42 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 67 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 78 00 00 35 04 06 00 78 9C AF F4 9C E9 83 41 63 E7 2F FB E3 B1 [07:55:12]CheckFolder [07:55:12]dirname=/storage/ofd_packets [07:55:12]CheckFolder done [07:55:12]ProducePacketName [07:55:12]name=ofd_packets/00030793 [07:55:12]NVStorageSaveData ofd_packets/00030793 [07:55:12]File name is /storage/ofd_packets/00030793 [07:55:12]Write 301 bytes [07:55:12]NVStorageSaveData done [07:55:12]OFDSenderStorePacket done [07:55:12]KKMCreateOFDPacket done [07:55:12]NVStorageSaveData kkm_last_timestamp [07:55:12]File name is /storage/kkm_last_timestamp [07:55:12]Write 4 bytes [07:55:12]NVStorageSaveData done [07:55:12]ExternCall_PrintAddStr [07:55:12]wPrintStart [07:55:12]Write to MH i2c: 01 00 00 50 74 C4 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 50 74 00 00 00 00 00 FF 0F D9 [07:55:12]RasterBufferAndPrint [07:55:12]line Счет N : (1)343212 [07:55:12]line ИНН: 02508201610067 [07:55:12]line Контрольно-Кассовый Чек [07:55:12]line ПРОДАЖА [07:55:12]line ТРК (МРК, ГНК) : 33 [07:55:12]line Товар: 2710124130 [07:55:12]line Аи-92-К-2 [07:55:12]line 5.980 * 66.90 [07:55:12]line = 400.06 [07:55:12]line НДС 12% НСП 1% [07:55:12]line > о реализуемом товаре [07:55:12]line ОКРУГЛЕНИЕ: -0.06 [07:55:12]line ИТОГО: 400.00 [07:55:12]line Внесено: 400.00 [07:55:12]line СДАЧА: 0.00 [07:55:12]line НСП 1% : 3.54 [07:55:12]line НДС 12% : 42.48 [07:55:12]line Наличными: 400.00 [07:55:12]line Безнал.: 0.00 [07:55:12]line Место: АЗС № 78 "Партнер Нефть" [07:55:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:55:12]line СНО: Общий режим [07:55:12]line Чек 26 22.10.2024 07:55 [07:55:12]line Смена: 116 ФФД: 1.0 [07:55:12]line ЗНМ: 0300000137 [07:55:12]line РНМ: 0000000000186857 [07:55:12]line Версия ККМ: v1.0 [07:55:12]line ФМ: 0000000002094219 [07:55:12]line ФД: 30793 [07:55:12]line ФПД: 132614362275049 [07:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075519&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30793&fm=132614362275049&tin=02508201610067®Number=0000000000186857&sum=40000 [07:55:12]OFD Sender: Processing packet 30793 [packets to send 10, broken 9] [07:55:12]ProducePacketName [07:55:12]name=ofd_packets/00030793 [07:55:12]OFD Sender: To server: pG, [07:55:12]CommunicateWithHost lk.salyk.kg:30040 [07:55:12]ConnectInit lk.salyk.kg [07:55:12]written 0, free lines is 4095 [07:55:12]Connected sock=10 [07:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 05 07 01 42 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 67 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 78 00 00 35 04 06 00 78 9C AF F4 9C E9 83 41 63 E7 2F FB E3 B1 [07:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 53 3C 47 00 C4 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 32 30 39 34 32 31 39 10 04 04 00 49 78 00 00 F4 03 04 00 E5 04 17 67 B6 04 01 00 00 2E 58 FD B8 63 66 33 5E [07:55:12]CommunicateWithHost err = 0 [07:55:12]CheckOFDResponse [07:55:12]1017 (14) - 77093643461234 [07:55:12]1041 (16) - 0000000002094219 [07:55:12]1040 (4) - 30793 [07:55:12]1012 (4) - 22.10.2024 01:50 [07:55:12]1206 (1) - 0 [07:55:12]OFD Sender: Remove packet 30793 [07:55:12]ProducePacketName [07:55:12]name=ofd_packets/00030793 [07:55:12]NVStorageDeleteData [07:55:12]Write to MH i2c: 01 00 00 7B 74 EF [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 7B 74 00 00 00 00 00 E7 0C E9 [07:55:12]RasterBufferAndPrint [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]written 0, free lines is 3310 [07:55:12]MH_Cut [07:55:12]Write to MH i2c: D1 01 00 82 74 01 C8 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 01 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 01 00 82 74 00 C7 [07:55:12]Write to MH i2c: 01 00 00 83 74 F7 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:13]OFD Sender: No OFD packet to send [07:55:13]*** Cut start [07:55:13]*** Partial cut [07:55:13]*** CUTSNS_PIN = 1 [07:55:13]*** CUTSNS_PIN = 0 [07:55:13]*** Brake cut motor [07:55:14]Read from MH i2c: 01 [07:55:14]MH_I2C_Read... [07:55:14]*** Stop cut motor [07:55:14]*** Cut end [07:55:14]Read from MH i2c: 01 07 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: 01 07 00 83 74 00 00 00 00 00 FF 0F 0C [07:55:14]process_action close_receipt done [07:55:14]requested_data is exist [07:55:14]produce_requested_data [07:55:14]requested_item fm.sn is exist - process it [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 11 00 00 [07:55:14]Write to MH i2c: E2 08 00 84 74 80 11 00 00 00 00 00 00 72 [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 17 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 17 00 84 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [07:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:14]wFMCommunicate OK [07:55:14]requested_item fd.num is exist - process it [07:55:14]SAM_PROTO_GetFieldsCounters [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 13 00 00 [07:55:14]Write to MH i2c: E2 08 00 85 74 80 13 00 00 00 00 00 00 75 [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 62 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 62 00 85 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 78 00 00 0E 04 04 00 74 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 1E [07:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 78 00 00 0E 04 04 00 74 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 [07:55:14]wFMCommunicate OK [07:55:14]SAM_PROTO_GetFieldsCounters done [07:55:14]requested_item shift.num is exist - process it [07:55:14]requested_item shift.opened is exist - process it [07:55:14]req_shift_opened [07:55:14]FM_GetShiftState [07:55:14]SAM_PROTO_GetShiftState [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 13 01 00 [07:55:14]Write to MH i2c: E2 08 00 86 74 80 13 01 00 00 00 00 00 77 [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 0E 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 0E 00 86 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 51 [07:55:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:55:14]wFMCommunicate OK [07:55:14]SAM_PROTO_GetShiftState done [07:55:14]FM_GetShiftState done [07:55:14]req_shift_opened done [07:55:14]requested_item shift.open_date is exist - process it [07:55:14]req_shift_open_date [07:55:14]req_shift_open_date done [07:55:14]produce_requested_data done [07:55:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30793,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:55:14]process_action_free close_receipt [07:55:14]json_value_free [07:55:14]json_value_free done [07:55:14]process_json_proto returns [07:55:14]Send response to host [07:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30793,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:55:14]free response buf [07:55:14]execute_script done [07:55:14]execute_script returns [07:55:14]free content buf [07:55:14]Sock 7.Close socket [07:55:14]Sock 7.Thread stoped [07:55:14]accept exits with 9 [07:55:14]New connection [07:55:14]New thread 3067489636 created [07:55:14]Thread 3067346276 joined [07:55:14]Waiting for new connection... [07:55:14] Sock 9.Parse request [07:55:14]Sock 9.Check first char [07:55:14]Sock 9.First char is OK [07:55:14]request: POST /json_proto HTTP/1.0 [07:55:14]Method: POST [07:55:14]URL: /json_proto [07:55:14]Method is POST - this is cgi request [07:55:14]url: /json_proto [07:55:14]query_string will be loaded in cgi processing [07:55:14]execute_cgi json_proto POST (null) [07:55:14]execute_cgi path=json_proto method=POST [07:55:14]POST find Content-Length [07:55:14]Host: 172.17.51.3:8080 [07:55:14]Content-Length: 677 [07:55:14]Content-Type: application/json [07:55:14] [07:55:14]POST finish read [07:55:14]Found Content-Length = 677 [07:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:14]execute_script... [07:55: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)343213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:14]POST & json_proto [07:55:14]process_json_proto [07:55:14]json parsed OK: [07:55:14]protocol is kg_v1.0 [07:55:14]action value=close_receipt [07:55:14]process_action close_receipt [07:55:14]cmd_close_receipt [07:55:14]MH_GetDate [07:55:14]Write to MH i2c: F0 00 00 87 74 EA [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: F0 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: F0 09 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: F0 09 00 87 74 00 6C 5A 17 67 04 C1 95 66 F7 [07:55:14]GetLastDocTimeStamp 1729583719 [07:55:14]current date 1729583724 [07:55:14]FM_GetShiftState [07:55:14]SAM_PROTO_GetShiftState [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 13 01 00 [07:55:14]Write to MH i2c: E2 08 00 88 74 80 13 01 00 00 00 00 00 79 [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 0E 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 0E 00 88 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 53 [07:55:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:55:14]wFMCommunicate OK [07:55:14]SAM_PROTO_GetShiftState done [07:55:14]FM_GetShiftState done [07:55:14]opened in 1729557342 [07:55:14]opened+sec_in_day 1729643742 [07:55:14]quantity*price = 50041 [07:55:14]sum+1 = 50042 [07:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 27 22.10.2024 07:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30794 ФПД: 261746255955081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075524&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30794&fm=261746255955081&tin=02508201610067®Number=0000000000186857&sum=50000 [07:55:16]StoreToDocumentArchive [07:55:16]shift 116 fd 30794 [07:55:16]save to /storage/0116/doc_00030794 [07:55:16]save last doc name /storage/0116/doc_00030794 to /storage/kkm_last_doc_name [07:55:16]save OK [07:55:16]Clear old archive folders... [07:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:16]tlvbuf is 01F6BDA0 [07:55:16]SAM_PROTO_ClearQueue [07:55:16]wFMCommunicate request_size=4 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 09 00 00 [07:55:16]Write to MH i2c: E2 08 00 95 74 80 09 00 00 00 00 00 00 7B [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 95 74 00 90 00 7D [07:55:16]RAPDU: 90 00 [07:55:16]wFMCommunicate OK [07:55:16]SAM_PROTO_ClearQueue done [07:55:16]KKMCreateOFDPacket [07:55:16]OFDProtocolAddRootSTLVToBuf [07:55:16]FM_MakeSignedData [07:55:16]FM_MakeSignedData [07:55:16]SAM_PROTO_SignData [07:55:16]wFMCommunicate request_size=4 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 0D 01 02 [07:55:16]Write to MH i2c: E2 08 00 96 74 80 0D 01 02 00 00 00 00 83 [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 96 74 00 90 00 7E [07:55:16]RAPDU: 90 00 [07:55:16]wFMCommunicate OK [07:55:16]wFMCommunicate request_size=255 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 78 00 00 35 04 06 00 EE [07:55:16]Write to MH i2c: E2 02 01 97 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 78 00 00 35 04 06 00 EE 00 00 97 [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 97 74 00 90 00 7F [07:55:16]RAPDU: 90 00 [07:55:16]wFMCommunicate OK [07:55:16]wFMCommunicate request_size=10 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 0D 02 02 05 0E 8C 9B 84 89 [07:55:16]Write to MH i2c: E2 0D 00 98 74 80 0D 02 02 05 00 0E 8C 9B 84 89 00 00 D2 [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 03 00 98 74 00 90 00 80 [07:55:16]RAPDU: 90 00 [07:55:16]wFMCommunicate OK [07:55:16]wFMCommunicate request_size=4 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 0D 03 02 [07:55:16]Write to MH i2c: E2 08 00 99 74 80 0D 03 02 00 00 00 00 88 [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 0B 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 0B 00 99 74 00 B2 BA DD D6 FC 74 3E B6 90 00 0C [07:55:16]RAPDU: B2 BA DD D6 FC 74 3E B6 90 00 [07:55:16]wFMCommunicate OK [07:55:16]SAM_PROTO_SignData done [07:55:16]FM_MakeSignedData done [07:55:16]CreateOFDProtocolMessage [07:55:16]wFMCommunicate request_size=4 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 11 00 00 [07:55:16]Write to MH i2c: E2 08 00 9A 74 80 11 00 00 00 00 00 00 88 [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 17 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 17 00 9A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [07:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:16]wFMCommunicate OK [07:55:16]CreateOFDProtocolMessage done [07:55:16]OFDSenderStorePacket 30794 [07:55:16]StoreOFDPacket docnum=30794 [07:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 B7 07 01 01 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 78 00 00 35 04 06 00 EE 0E 8C 9B 84 89 B2 BA DD D6 FC 74 3E B6 [07:55:16]CheckFolder [07:55:16]dirname=/storage/ofd_packets [07:55:16]CheckFolder done [07:55:16]ProducePacketName [07:55:16]name=ofd_packets/00030794 [07:55:16]NVStorageSaveData ofd_packets/00030794 [07:55:16]File name is /storage/ofd_packets/00030794 [07:55:16]Write 301 bytes [07:55:16]NVStorageSaveData done [07:55:16]OFDSenderStorePacket done [07:55:16]KKMCreateOFDPacket done [07:55:16]NVStorageSaveData kkm_last_timestamp [07:55:16]File name is /storage/kkm_last_timestamp [07:55:16]Write 4 bytes [07:55:16]NVStorageSaveData done [07:55:16]ExternCall_PrintAddStr [07:55:16]wPrintStart [07:55:16]Write to MH i2c: 01 00 00 9B 74 0F [07:55:17]OFD Sender: Processing packet 30794 [packets to send 10, broken 9] [07:55:17]ProducePacketName [07:55:17]name=ofd_packets/00030794 [07:55:17]OFD Sender: To server: pG, [07:55:17]CommunicateWithHost lk.salyk.kg:30040 [07:55:17]ConnectInit lk.salyk.kg [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 07 00 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 07 00 9B 74 00 00 00 00 00 FF 0F 24 [07:55:17]RasterBufferAndPrint [07:55:17]line Счет N : (1)343213 [07:55:17]line ИНН: 02508201610067 [07:55:17]line Контрольно-Кассовый Чек [07:55:17]line ПРОДАЖА [07:55:17]line ТРК (МРК, ГНК) : 43 [07:55:17]line Товар: 2710124130 [07:55:17]line Аи-92-К-2 [07:55:17]line 7.480 * 66.90 [07:55:17]line = 500.41 [07:55:17]line НДС 12% НСП 1% [07:55:17]line > о реализуемом товаре [07:55:17]line ОКРУГЛЕНИЕ: -0.41 [07:55:17]line ИТОГО: 500.00 [07:55:17]line Внесено: 500.00 [07:55:17]line СДАЧА: 0.00 [07:55:17]line НСП 1% : 4.43 [07:55:17]line НДС 12% : 53.14 [07:55:17]line Наличными: 500.00 [07:55:17]line Безнал.: 0.00 [07:55:17]line Место: АЗС № 78 "Партнер Нефть" [07:55:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:55:17]line СНО: Общий режим [07:55:17]line Чек 27 22.10.2024 07:55 [07:55:17]line Смена: 116 ФФД: 1.0 [07:55:17]line ЗНМ: 0300000137 [07:55:17]line РНМ: 0000000000186857 [07:55:17]line Версия ККМ: v1.0 [07:55:17]line ФМ: 0000000002094219 [07:55:17]line ФД: 30794 [07:55:17]line ФПД: 261746255955081 [07:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075524&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30794&fm=261746255955081&tin=02508201610067®Number=0000000000186857&sum=50000 [07:55:17]written 0, free lines is 4095 [07:55:17]Connected sock=7 [07:55:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 B7 07 01 01 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 78 00 00 35 04 06 00 EE 0E 8C 9B 84 89 B2 BA DD D6 FC 74 3E B6 [07:55:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5C 55 47 00 68 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 32 30 39 34 32 31 39 10 04 04 00 4A 78 00 00 F4 03 04 00 EA 04 17 67 B6 04 01 00 00 5A AF A1 94 D2 07 02 7D [07:55:17]CommunicateWithHost err = 0 [07:55:17]CheckOFDResponse [07:55:17]1017 (14) - 77093643461234 [07:55:17]1041 (16) - 0000000002094219 [07:55:17]1040 (4) - 30794 [07:55:17]1012 (4) - 22.10.2024 01:50 [07:55:17]1206 (1) - 0 [07:55:17]OFD Sender: Remove packet 30794 [07:55:17]ProducePacketName [07:55:17]name=ofd_packets/00030794 [07:55:17]NVStorageDeleteData [07:55:17]Write to MH i2c: 01 00 00 C6 74 3A [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 07 00 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: 01 07 00 C6 74 00 00 00 00 00 00 0D 4E [07:55:17]RasterBufferAndPrint [07:55:17]line [07:55:17]line [07:55:17]line [07:55:17]line [07:55:17]line [07:55:17]written 0, free lines is 3343 [07:55:17]MH_Cut [07:55:17]Write to MH i2c: D1 01 00 CD 74 01 13 [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: D1 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: D1 01 00 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: D1 01 00 CD 74 00 12 [07:55:17]Write to MH i2c: 01 00 00 CE 74 42 [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:18]OFD Sender: No OFD packet to send [07:55:18]*** Cut start [07:55:18]*** Partial cut [07:55:18]*** CUTSNS_PIN = 1 [07:55:18]*** CUTSNS_PIN = 0 [07:55:18]*** Brake cut motor [07:55:18]Read from MH i2c: 01 *** Stop cut motor [07:55:18] [07:55:18]*** Cut end [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: 01 07 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: 01 07 00 CE 74 00 00 00 00 00 FF 0F 57 [07:55:18]process_action close_receipt done [07:55:18]requested_data is exist [07:55:18]produce_requested_data [07:55:18]requested_item fm.sn is exist - process it [07:55:18]wFMCommunicate request_size=4 [07:55:18]MH_SAM_APDU [07:55:18]CAPDU: 80 11 00 00 [07:55:18]Write to MH i2c: E2 08 00 CF 74 80 11 00 00 00 00 00 00 BD [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:19]Read from MH i2c: E2 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 17 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 17 00 CF 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [07:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:19]wFMCommunicate OK [07:55:19]requested_item fd.num is exist - process it [07:55:19]SAM_PROTO_GetFieldsCounters [07:55:19]wFMCommunicate request_size=4 [07:55:19]MH_SAM_APDU [07:55:19]CAPDU: 80 13 00 00 [07:55:19]Write to MH i2c: E2 08 00 D0 74 80 13 00 00 00 00 00 00 C0 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:19]Read from MH i2c: E2 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 62 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 62 00 D0 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 78 00 00 0E 04 04 00 74 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 6D [07:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 78 00 00 0E 04 04 00 74 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 [07:55:19]wFMCommunicate OK [07:55:19]SAM_PROTO_GetFieldsCounters done [07:55:19]requested_item shift.num is exist - process it [07:55:19]requested_item shift.opened is exist - process it [07:55:19]req_shift_opened [07:55:19]FM_GetShiftState [07:55:19]SAM_PROTO_GetShiftState [07:55:19]wFMCommunicate request_size=4 [07:55:19]MH_SAM_APDU [07:55:19]CAPDU: 80 13 01 00 [07:55:19]Write to MH i2c: E2 08 00 D1 74 80 13 01 00 00 00 00 00 C2 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:19]Read from MH i2c: E2 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 0E 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: E2 0E 00 D1 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9C [07:55:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:55:19]wFMCommunicate OK [07:55:19]SAM_PROTO_GetShiftState done [07:55:19]FM_GetShiftState done [07:55:19]req_shift_opened done [07:55:19]requested_item shift.open_date is exist - process it [07:55:19]req_shift_open_date [07:55:19]req_shift_open_date done [07:55:19]produce_requested_data done [07:55:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30794,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:55:19]process_action_free close_receipt [07:55:19]json_value_free [07:55:19]json_value_free done [07:55:19]process_json_proto returns [07:55:19]Send response to host [07:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30794,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:55:19]free response buf [07:55:19]execute_script done [07:55:19]execute_script returns [07:55:19]free content buf [07:55:19]Sock 9.Close socket [07:55:19]Sock 9.Thread stoped [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:24]accept exits with 10 [07:57:24]New connection [07:57:24]New thread 3067346276 created [07:57:24]Thread 3067489636 joined [07:57:24]Waiting for new connection... [07:57:24] Sock 10.Parse request [07:57:24]Sock 10.Check first char [07:57:24]Sock 10.First char is OK [07:57:24]request: POST /json_proto HTTP/1.0 [07:57:24]Method: POST [07:57:24]URL: /json_proto [07:57:24]Method is POST - this is cgi request [07:57:24]url: /json_proto [07:57:24]query_string will be loaded in cgi processing [07:57:24]execute_cgi json_proto POST (null) [07:57:24]execute_cgi path=json_proto method=POST [07:57:24]POST find Content-Length [07:57:24]Host: 172.17.51.3:8080 [07:57:24]Content-Length: 693 [07:57:24]Content-Type: application/json [07:57:24] [07:57:24]POST finish read [07:57:24]Found Content-Length = 693 [07:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 194.310, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:24]execute_script... [07:57: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)343211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 194.310, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:24]POST & json_proto [07:57:24]process_json_proto [07:57:24]json parsed OK: [07:57:24]protocol is kg_v1.0 [07:57:24]action value=close_receipt [07:57:24]process_action close_receipt [07:57:24]cmd_close_receipt [07:57:24]MH_GetDate [07:57:24]Write to MH i2c: F0 00 00 D2 74 35 [07:57:24]Write i2c OK [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 09 00 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 09 00 D2 74 00 ED 5A 17 67 04 C1 95 66 C3 [07:57:24]GetLastDocTimeStamp 1729583724 [07:57:24]current date 1729583853 [07:57:24]FM_GetShiftState [07:57:24]SAM_PROTO_GetShiftState [07:57:24]wFMCommunicate request_size=4 [07:57:24]MH_SAM_APDU [07:57:24]CAPDU: 80 13 01 00 [07:57:24]Write to MH i2c: E2 08 00 D3 74 80 13 01 00 00 00 00 00 C4 [07:57:24]Write i2c OK [07:57:24]MH_I2C_Read... [07:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:24]Read from MH i2c: E2 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: E2 0E 00 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: E2 0E 00 D3 74 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9E [07:57:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:57:24]wFMCommunicate OK [07:57:24]SAM_PROTO_GetShiftState done [07:57:24]FM_GetShiftState done [07:57:24]opened in 1729557342 [07:57:24]opened+sec_in_day 1729643742 [07:57:24]quantity*price = 1500073 [07:57:24]sum+1 = 1500074 [07:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.75 НДС 12% : 1593.00 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 28 22.10.2024 07:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30795 ФПД: 137931664526522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30795&fm=137931664526522&tin=02508201610067®Number=0000000000186857&sum=1500000 [07:57:25]StoreToDocumentArchive [07:57:25]shift 116 fd 30795 [07:57:25]save to /storage/0116/doc_00030795 [07:57:25]save last doc name /storage/0116/doc_00030795 to /storage/kkm_last_doc_name [07:57:25]save OK [07:57:25]Clear old archive folders... [07:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:57:25]tlvbuf is B6FD81B0 [07:57:25]SAM_PROTO_ClearQueue [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 09 00 00 [07:57:25]Write to MH i2c: E2 08 00 E0 74 80 09 00 00 00 00 00 00 C6 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 E0 74 00 90 00 C8 [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]SAM_PROTO_ClearQueue done [07:57:25]KKMCreateOFDPacket [07:57:25]OFDProtocolAddRootSTLVToBuf [07:57:25]FM_MakeSignedData [07:57:25]FM_MakeSignedData [07:57:25]SAM_PROTO_SignData [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 0D 01 02 [07:57:25]Write to MH i2c: E2 08 00 E1 74 80 0D 01 02 00 00 00 00 CE [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 E1 74 00 90 00 C9 [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]wFMCommunicate request_size=255 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 F7 02 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 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 ED 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 78 00 [07:57:25]Write to MH i2c: E2 02 01 E2 74 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 F7 02 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 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 ED 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 78 00 00 00 B9 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 E2 74 00 90 00 CA [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]wFMCommunicate request_size=16 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7D 72 B7 DE 0C BA [07:57:25]Write to MH i2c: E2 13 00 E3 74 80 0D 02 02 0B 00 00 35 04 06 00 7D 72 B7 DE 0C BA 00 00 70 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 E3 74 00 90 00 CB [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 0D 03 02 [07:57:25]Write to MH i2c: E2 08 00 E4 74 80 0D 03 02 00 00 00 00 D3 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 0B 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 0B 00 E4 74 00 07 A2 A0 AC EE 24 11 DC 90 00 C8 [07:57:25]RAPDU: 07 A2 A0 AC EE 24 11 DC 90 00 [07:57:25]wFMCommunicate OK [07:57:25]SAM_PROTO_SignData done [07:57:25]FM_MakeSignedData done [07:57:25]CreateOFDProtocolMessage [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 11 00 00 [07:57:25]Write to MH i2c: E2 08 00 E5 74 80 11 00 00 00 00 00 00 D3 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 17 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 17 00 E5 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [07:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:57:25]wFMCommunicate OK [07:57:25]CreateOFDProtocolMessage done [07:57:25]OFDSenderStorePacket 30795 [07:57:25]StoreOFDPacket docnum=30795 [07:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 35 83 0D 01 E3 2D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 F7 02 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 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 ED 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 78 00 00 35 04 06 00 7D 72 B7 DE 0C BA 07 A2 A0 AC EE 24 11 DC [07:57:25]CheckFolder [07:57:25]dirname=/storage/ofd_packets [07:57:25]CheckFolder done [07:57:25]ProducePacketName [07:57:25]name=ofd_packets/00030795 [07:57:25]NVStorageSaveData ofd_packets/00030795 [07:57:25]File name is /storage/ofd_packets/00030795 [07:57:25]Write 307 bytes [07:57:25]NVStorageSaveData done [07:57:25]OFDSenderStorePacket done [07:57:25]KKMCreateOFDPacket done [07:57:25]NVStorageSaveData kkm_last_timestamp [07:57:25]File name is /storage/kkm_last_timestamp [07:57:25]Write 4 bytes [07:57:25]NVStorageSaveData done [07:57:25]ExternCall_PrintAddStr [07:57:25]wPrintStart [07:57:25]Write to MH i2c: 01 00 00 E6 74 5A [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: 01 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: 01 07 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: 01 07 00 E6 74 00 00 00 00 00 FF 0F 6F [07:57:25]RasterBufferAndPrint [07:57:25]line Счет N : (1)343211 [07:57:25]line ИНН: 02508201610067 [07:57:25]line Контрольно-Кассовый Чек [07:57:25]line ПРОДАЖА [07:57:25]line ТРК (МРК, ГНК) : 61 [07:57:25]line Товар: 2710194210 [07:57:25]line D-ENERGY Дт-К-2 [07:57:25]line 194.310 * 77.20 [07:57:25]line = 15000.73 [07:57:25]line НДС 12% НСП 1% [07:57:25]line > о реализуемом товаре [07:57:25]line ОКРУГЛЕНИЕ: -0.73 [07:57:25]line ИТОГО: 15000.00 [07:57:25]line Внесено: 15000.00 [07:57:25]line СДАЧА: 0.00 [07:57:25]line НСП 1% : 132.75 [07:57:25]line НДС 12% : 1593.00 [07:57:25]line Наличными: 15000.00 [07:57:25]line Безнал.: 0.00 [07:57:25]line Место: АЗС № 78 "Партнер Нефть" [07:57:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:57:25]line СНО: Общий режим [07:57:25]line Чек 28 22.10.2024 07:57 [07:57:25]line Смена: 116 ФФД: 1.0 [07:57:25]line ЗНМ: 0300000137 [07:57:25]line РНМ: 0000000000186857 [07:57:25]line Версия ККМ: v1.0 [07:57:25]line ФМ: 0000000002094219 [07:57:25]line ФД: 30795 [07:57:25]line ФПД: 137931664526522 [07:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30795&fm=137931664526522&tin=02508201610067®Number=0000000000186857&sum=1500000 [07:57:26]OFD Sender: Processing packet 30795 [packets to send 10, broken 9] [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00030795 [07:57:26]OFD Sender: To server: pG, [07:57:26]CommunicateWithHost lk.salyk.kg:30040 [07:57:26]ConnectInit lk.salyk.kg [07:57:26]written 0, free lines is 4095 [07:57:26]Connected sock=9 [07:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 35 83 0D 01 E3 2D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 F7 02 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 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 ED 5A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 78 00 00 35 04 06 00 7D 72 B7 DE 0C BA 07 A2 A0 AC EE 24 11 DC [07:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E9 DA 47 00 59 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 78 00 00 F4 03 04 00 6B 05 17 67 B6 04 01 00 00 30 DA 5F EF 53 BF 9C 47 [07:57:26]CommunicateWithHost err = 0 [07:57:26]CheckOFDResponse [07:57:26]1017 (14) - 77093643461234 [07:57:26]1041 (16) - 0000000002094219 [07:57:26]1040 (4) - 30795 [07:57:26]1012 (4) - 22.10.2024 01:52 [07:57:26]1206 (1) - 0 [07:57:26]OFD Sender: Remove packet 30795 [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00030795 [07:57:26]NVStorageDeleteData [07:57:26]Write to MH i2c: 01 00 00 11 75 86 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 11 75 00 00 00 00 00 F6 0C 8F [07:57:26]RasterBufferAndPrint [07:57:26]line [07:57:26]line [07:57:26]line [07:57:26]line [07:57:26]line [07:57:26]written 0, free lines is 3324 [07:57:26]MH_Cut [07:57:26]Write to MH i2c: D1 01 00 18 75 01 5F [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: D1 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: D1 01 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: D1 01 00 18 75 00 5E [07:57:26]Write to MH i2c: 01 00 00 19 75 8E [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:27]OFD Sender: No OFD packet to send [07:57:27]*** Cut start [07:57:27]*** Partial cut [07:57:27]*** CUTSNS_PIN = 1 [07:57:27]*** CUTSNS_PIN = 0 [07:57:27]*** Brake cut motor [07:57:27]Read from MH i2c: 01 [07:57:27]MH_I2C_Read... [07:57:27]*** Stop cut motor [07:57:27]*** Cut end [07:57:27]Read from MH i2c: 01 07 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 07 00 19 75 00 00 00 00 00 FF 0F A3 [07:57:27]process_action close_receipt done [07:57:27]requested_data is exist [07:57:27]produce_requested_data [07:57:27]requested_item fm.sn is exist - process it [07:57:27]wFMCommunicate request_size=4 [07:57:27]MH_SAM_APDU [07:57:27]CAPDU: 80 11 00 00 [07:57:27]Write to MH i2c: E2 08 00 1A 75 80 11 00 00 00 00 00 00 09 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 1A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [07:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:57:28]wFMCommunicate OK [07:57:28]requested_item fd.num is exist - process it [07:57:28]SAM_PROTO_GetFieldsCounters [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 00 00 [07:57:28]Write to MH i2c: E2 08 00 1B 75 80 13 00 00 00 00 00 00 0C [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 62 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 62 00 1B 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 78 00 00 0E 04 04 00 74 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 BD [07:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 78 00 00 0E 04 04 00 74 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 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_GetFieldsCounters done [07:57:28]requested_item shift.num is exist - process it [07:57:28]requested_item shift.opened is exist - process it [07:57:28]req_shift_opened [07:57:28]FM_GetShiftState [07:57:28]SAM_PROTO_GetShiftState [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 01 00 [07:57:28]Write to MH i2c: E2 08 00 1C 75 80 13 01 00 00 00 00 00 0E [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 1C 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E8 [07:57:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_GetShiftState done [07:57:28]FM_GetShiftState done [07:57:28]req_shift_opened done [07:57:28]requested_item shift.open_date is exist - process it [07:57:28]req_shift_open_date [07:57:28]req_shift_open_date done [07:57:28]produce_requested_data done [07:57:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30795,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:57:28]process_action_free close_receipt [07:57:28]json_value_free [07:57:28]json_value_free done [07:57:28]process_json_proto returns [07:57:28]Send response to host [07:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30795,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:57:28]free response buf [07:57:28]execute_script done [07:57:28]execute_script returns [07:57:28]free content buf [07:57:28]Sock 10.Close socket [07:57:28]Sock 10.Thread stoped [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:11]accept exits with 7 [07:58:11]New connection [07:58:11]New thread 3067489636 created [07:58:11]Thread 3067346276 joined [07:58:11]Waiting for new connection... [07:58:11] Sock 7.Parse request [07:58:11]Sock 7.Check first char [07:58:11]Sock 7.First char is OK [07:58:11]request: POST /json_proto HTTP/1.0 [07:58:11]Method: POST [07:58:11]URL: /json_proto [07:58:11]Method is POST - this is cgi request [07:58:11]url: /json_proto [07:58:11]query_string will be loaded in cgi processing [07:58:11]execute_cgi json_proto POST (null) [07:58:11]execute_cgi path=json_proto method=POST [07:58:11]POST find Content-Length [07:58:11]Host: 172.17.51.3:8080 [07:58:11]Content-Length: 674 [07:58:11]Content-Type: application/json [07:58:11] [07:58:11]POST finish read [07:58:11]Found Content-Length = 674 [07:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [07:58:11]execute_script... [07:58: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)343214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [07:58:11]POST & json_proto [07:58:11]process_json_proto [07:58:11]json parsed OK: [07:58:11]protocol is kg_v1.0 [07:58:11]action value=close_receipt [07:58:11]process_action close_receipt [07:58:11]cmd_close_receipt [07:58:11]MH_GetDate [07:58:11]Write to MH i2c: F0 00 00 1D 75 81 [07:58:11]Write i2c OK [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 09 00 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 09 00 1D 75 00 1D 5B 17 67 04 C1 95 66 40 [07:58:11]GetLastDocTimeStamp 1729583853 [07:58:11]current date 1729583901 [07:58:11]FM_GetShiftState [07:58:11]SAM_PROTO_GetShiftState [07:58:11]wFMCommunicate request_size=4 [07:58:11]MH_SAM_APDU [07:58:11]CAPDU: 80 13 01 00 [07:58:11]Write to MH i2c: E2 08 00 1E 75 80 13 01 00 00 00 00 00 10 [07:58:11]Write i2c OK [07:58:11]MH_I2C_Read... [07:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:11]Read from MH i2c: E2 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: E2 0E 00 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: E2 0E 00 1E 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EA [07:58:11]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:58:11]wFMCommunicate OK [07:58:11]SAM_PROTO_GetShiftState done [07:58:11]FM_GetShiftState done [07:58:11]opened in 1729557342 [07:58:11]opened+sec_in_day 1729643742 [07:58:11]quantity*price = 60045 [07:58:11]sum+1 = 60047 [07:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 29 22.10.2024 07:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30796 ФПД: 230358373685278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30796&fm=230358373685278&tin=02508201610067®Number=0000000000186857&sum=60000 [07:58:13]StoreToDocumentArchive [07:58:13]shift 116 fd 30796 [07:58:13]save to /storage/0116/doc_00030796 [07:58:13]save last doc name /storage/0116/doc_00030796 to /storage/kkm_last_doc_name [07:58:13]save OK [07:58:13]Clear old archive folders... [07:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:58:13]tlvbuf is B6E2B8F0 [07:58:13]SAM_PROTO_ClearQueue [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 09 00 00 [07:58:13]Write to MH i2c: E2 08 00 2B 75 80 09 00 00 00 00 00 00 12 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 2B 75 00 90 00 14 [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]SAM_PROTO_ClearQueue done [07:58:13]KKMCreateOFDPacket [07:58:13]OFDProtocolAddRootSTLVToBuf [07:58:13]FM_MakeSignedData [07:58:13]FM_MakeSignedData [07:58:13]SAM_PROTO_SignData [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 0D 01 02 [07:58:13]Write to MH i2c: E2 08 00 2C 75 80 0D 01 02 00 00 00 00 1A [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 2C 75 00 90 00 15 [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]wFMCommunicate request_size=255 [07:58:13]MH_SAM_APDU [07:58: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 78 00 00 35 04 06 00 D1 82 7D 08 [07:58:13]Write to MH i2c: E2 02 01 2D 75 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 78 00 00 35 04 06 00 D1 82 7D 08 00 00 85 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 2D 75 00 90 00 16 [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]wFMCommunicate request_size=7 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 0D 02 02 02 D8 1E [07:58:13]Write to MH i2c: E2 0A 00 2E 75 80 0D 02 02 02 00 D8 1E 00 00 17 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 2E 75 00 90 00 17 [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 0D 03 02 [07:58:13]Write to MH i2c: E2 08 00 2F 75 80 0D 03 02 00 00 00 00 1F [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0B 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0B 00 2F 75 00 41 AD 36 83 1D 3E 62 B2 90 00 36 [07:58:13]RAPDU: 41 AD 36 83 1D 3E 62 B2 90 00 [07:58:13]wFMCommunicate OK [07:58:13]SAM_PROTO_SignData done [07:58:13]FM_MakeSignedData done [07:58:13]CreateOFDProtocolMessage [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 11 00 00 [07:58:13]Write to MH i2c: E2 08 00 30 75 80 11 00 00 00 00 00 00 1F [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 17 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 17 00 30 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [07:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:58:13]wFMCommunicate OK [07:58:13]CreateOFDProtocolMessage done [07:58:13]OFDSenderStorePacket 30796 [07:58:13]StoreOFDPacket docnum=30796 [07:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 AB 92 04 01 49 9C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 78 00 00 35 04 06 00 D1 82 7D 08 D8 1E 41 AD 36 83 1D 3E 62 B2 [07:58:13]CheckFolder [07:58:13]dirname=/storage/ofd_packets [07:58:13]CheckFolder done [07:58:13]ProducePacketName [07:58:13]name=ofd_packets/00030796 [07:58:13]NVStorageSaveData ofd_packets/00030796 [07:58:13]File name is /storage/ofd_packets/00030796 [07:58:13]Write 298 bytes [07:58:13]NVStorageSaveData done [07:58:13]OFDSenderStorePacket done [07:58:13]KKMCreateOFDPacket done [07:58:13]NVStorageSaveData kkm_last_timestamp [07:58:13]File name is /storage/kkm_last_timestamp [07:58:13]Write 4 bytes [07:58:13]NVStorageSaveData done [07:58:13]ExternCall_PrintAddStr [07:58:13]wPrintStart [07:58:13]Write to MH i2c: 01 00 00 31 75 A6 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 07 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 07 00 31 75 00 00 00 00 00 FF 0F BB [07:58:13]RasterBufferAndPrint [07:58:13]line Счет N : (1)343214 [07:58:13]line ИНН: 02508201610067 [07:58:13]line Контрольно-Кассовый Чек [07:58:13]line ПРОДАЖА [07:58:13]line ТРК (МРК, ГНК) : 34 [07:58:13]line Товар: 2710194210 [07:58:13]line ДТ-К-2 [07:58:13]line 7.880 * 76.20 [07:58:13]line = 600.46 [07:58:13]line НДС 12% НСП 1% [07:58:13]line > о реализуемом товаре [07:58:13]line ОКРУГЛЕНИЕ: -0.46 [07:58:13]line ИТОГО: 600.00 [07:58:13]line Внесено: 600.00 [07:58:13]line СДАЧА: 0.00 [07:58:13]line НСП 1% : 5.31 [07:58:13]line НДС 12% : 63.77 [07:58:13]line Наличными: 600.00 [07:58:13]line Безнал.: 0.00 [07:58:13]line Место: АЗС № 78 "Партнер Нефть" [07:58:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:58:13]line СНО: Общий режим [07:58:13]line Чек 29 22.10.2024 07:58 [07:58:13]line Смена: 116 ФФД: 1.0 [07:58:13]line ЗНМ: 0300000137 [07:58:13]line РНМ: 0000000000186857 [07:58:13]line Версия ККМ: v1.0 [07:58:13]line ФМ: 0000000002094219 [07:58:13]line ФД: 30796 [07:58:13]line ФПД: 230358373685278 [07:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30796&fm=230358373685278&tin=02508201610067®Number=0000000000186857&sum=60000 [07:58:13]OFD Sender: Processing packet 30796 [packets to send 10, broken 9] [07:58:13]ProducePacketName [07:58:13]name=ofd_packets/00030796 [07:58:13]OFD Sender: To server: pG, [07:58:13]CommunicateWithHost lk.salyk.kg:30040 [07:58:13]ConnectInit lk.salyk.kg [07:58:13]written 0, free lines is 4095 [07:58:13]Connected sock=10 [07:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 AB 92 04 01 49 9C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 78 00 00 35 04 06 00 D1 82 7D 08 D8 1E 41 AD 36 83 1D 3E 62 B2 [07:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5D B9 47 00 E8 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 78 00 00 F4 03 04 00 9B 05 17 67 B6 04 01 00 00 36 7A 8D 3A 4A 69 E1 51 [07:58:14]CommunicateWithHost err = 0 [07:58:14]CheckOFDResponse [07:58:14]1017 (14) - 77093643461234 [07:58:14]1041 (16) - 0000000002094219 [07:58:14]1040 (4) - 30796 [07:58:14]1012 (4) - 22.10.2024 01:53 [07:58:14]1206 (1) - 0 [07:58:14]OFD Sender: Remove packet 30796 [07:58:14]ProducePacketName [07:58:14]name=ofd_packets/00030796 [07:58:14]NVStorageDeleteData [07:58:14]Write to MH i2c: 01 00 00 5C 75 D1 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 5C 75 00 00 00 00 00 F0 0C D4 [07:58:14]RasterBufferAndPrint [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]written 0, free lines is 3319 [07:58:14]MH_Cut [07:58:14]Write to MH i2c: D1 01 00 63 75 01 AA [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 01 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 01 00 63 75 00 A9 [07:58:14]Write to MH i2c: 01 00 00 64 75 D9 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]OFD Sender: No OFD packet to send [07:58:15]*** Cut start [07:58:15]*** Partial cut [07:58:15]*** CUTSNS_PIN = 1 [07:58:15]*** CUTSNS_PIN = 0 [07:58:15]*** Brake cut motor [07:58:15]Read from MH i2c: 01 [07:58:15]MH_I2C_Read... [07:58:15]*** Stop cut motor [07:58:15]*** Cut end [07:58:15]Read from MH i2c: 01 07 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: 01 07 00 64 75 00 00 00 00 00 FF 0F EE [07:58:15]process_action close_receipt done [07:58:15]requested_data is exist [07:58:15]produce_requested_data [07:58:15]requested_item fm.sn is exist - process it [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 11 00 00 [07:58:15]Write to MH i2c: E2 08 00 65 75 80 11 00 00 00 00 00 00 54 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 65 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [07:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:58:15]wFMCommunicate OK [07:58:15]requested_item fd.num is exist - process it [07:58:15]SAM_PROTO_GetFieldsCounters [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 00 00 [07:58:15]Write to MH i2c: E2 08 00 66 75 80 13 00 00 00 00 00 00 57 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 66 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 78 00 00 0E 04 04 00 74 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 0C [07:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 78 00 00 0E 04 04 00 74 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 [07:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetFieldsCounters done [07:58:15]requested_item shift.num is exist - process it [07:58:15]requested_item shift.opened is exist - process it [07:58:15]req_shift_opened [07:58:15]FM_GetShiftState [07:58:15]SAM_PROTO_GetShiftState [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 01 00 [07:58:15]Write to MH i2c: E2 08 00 67 75 80 13 01 00 00 00 00 00 59 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 67 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 33 [07:58:15]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [07:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetShiftState done [07:58:15]FM_GetShiftState done [07:58:15]req_shift_opened done [07:58:15]requested_item shift.open_date is exist - process it [07:58:15]req_shift_open_date [07:58:15]req_shift_open_date done [07:58:15]produce_requested_data done [07:58:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30796,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [07:58:15]process_action_free close_receipt [07:58:15]json_value_free [07:58:15]json_value_free done [07:58:15]process_json_proto returns [07:58:15]Send response to host [07:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30796,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [07:58:15]free response buf [07:58:15]execute_script done [07:58:15]execute_script returns [07:58:15]free content buf [07:58:15]Sock 7.Close socket [07:58:15]Sock 7.Thread stoped [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:48]recv_with_timeout no data received [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:08]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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 [08:00:01]ConnectInit Can't connect to host [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:52]accept exits with 9 [08:01:52]New connection [08:01:52]New thread 3067346276 created [08:01:52]Thread 3067489636 joined [08:01:52]Waiting for new connection... [08:01:52] Sock 9.Parse request [08:01:52]Sock 9.Check first char [08:01:52]Sock 9.First char is OK [08:01:52]request: POST /json_proto HTTP/1.0 [08:01:52]Method: POST [08:01:52]URL: /json_proto [08:01:52]Method is POST - this is cgi request [08:01:52]url: /json_proto [08:01:52]query_string will be loaded in cgi processing [08:01:52]execute_cgi json_proto POST (null) [08:01:52]execute_cgi path=json_proto method=POST [08:01:52]POST find Content-Length [08:01:52]Host: 172.17.51.3:8080 [08:01:52]Content-Length: 836 [08:01:52]Content-Type: application/json [08:01:52] [08:01:52]POST finish read [08:01:52]Found Content-Length = 836 [08:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.020, "sum" : 1.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:52]execute_script... [08:01: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)343215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.020, "sum" : 1.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:52]POST & json_proto [08:01:52]process_json_proto [08:01:52]json parsed OK: [08:01:52]protocol is kg_v1.0 [08:01:52]action value=close_receipt [08:01:52]process_action close_receipt [08:01:52]cmd_close_receipt [08:01:52]MH_GetDate [08:01:52]Write to MH i2c: F0 00 00 68 75 CC [08:01:52]Write i2c OK [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: F0 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: F0 09 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: F0 09 00 68 75 00 F9 5B 17 67 04 C1 95 66 67 [08:01:52]GetLastDocTimeStamp 1729583901 [08:01:52]current date 1729584121 [08:01:52]FM_GetShiftState [08:01:52]SAM_PROTO_GetShiftState [08:01:52]wFMCommunicate request_size=4 [08:01:52]MH_SAM_APDU [08:01:52]CAPDU: 80 13 01 00 [08:01:52]Write to MH i2c: E2 08 00 69 75 80 13 01 00 00 00 00 00 5B [08:01:52]Write i2c OK [08:01:52]MH_I2C_Read... [08:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:52]Read from MH i2c: E2 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 0E 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 0E 00 69 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 35 [08:01:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:01:52]wFMCommunicate OK [08:01:52]SAM_PROTO_GetShiftState done [08:01:52]FM_GetShiftState done [08:01:52]opened in 1729557342 [08:01:52]opened+sec_in_day 1729643742 [08:01:52]quantity*price = 133 [08:01:52]sum+1 = 135 [08:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1.34 НСП 1% : 0.01 НДС 12% : 0.14 Наличными: 0.00 Безнал.: 1.34 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 30 22.10.2024 08:02 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30797 ФПД: 97151331488824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30797&fm=97151331488824&tin=02508201610067®Number=0000000000186857&sum=134 [08:01:53]StoreToDocumentArchive [08:01:53]shift 116 fd 30797 [08:01:53]save to /storage/0116/doc_00030797 [08:01:53]save last doc name /storage/0116/doc_00030797 to /storage/kkm_last_doc_name [08:01:53]save OK [08:01:53]Clear old archive folders... [08:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:53]tlvbuf is 01F4B740 [08:01:53]SAM_PROTO_ClearQueue [08:01:53]wFMCommunicate request_size=4 [08:01:53]MH_SAM_APDU [08:01:53]CAPDU: 80 09 00 00 [08:01:53]Write to MH i2c: E2 08 00 76 75 80 09 00 00 00 00 00 00 5D [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:53]Read from MH i2c: E2 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 76 75 00 90 00 5F [08:01:53]RAPDU: 90 00 [08:01:53]wFMCommunicate OK [08:01:53]SAM_PROTO_ClearQueue done [08:01:53]KKMCreateOFDPacket [08:01:53]OFDProtocolAddRootSTLVToBuf [08:01:53]FM_MakeSignedData [08:01:53]FM_MakeSignedData [08:01:53]SAM_PROTO_SignData [08:01:53]wFMCommunicate request_size=4 [08:01:53]MH_SAM_APDU [08:01:53]CAPDU: 80 0D 01 02 [08:01:53]Write to MH i2c: E2 08 00 77 75 80 0D 01 02 00 00 00 00 65 [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:53]Read from MH i2c: E2 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 77 75 00 90 00 60 [08:01:53]RAPDU: 90 00 [08:01:53]wFMCommunicate OK [08:01:53]wFMCommunicate request_size=255 [08:01:53]MH_SAM_APDU [08:01: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 32 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 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 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 78 00 00 35 04 06 00 58 [08:01:53]Write to MH i2c: E2 02 01 78 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 32 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 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 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 78 00 00 35 04 06 00 58 00 00 E3 [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:53]Read from MH i2c: E2 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 78 75 00 90 00 61 [08:01:53]RAPDU: 90 00 [08:01:53]wFMCommunicate OK [08:01:53]wFMCommunicate request_size=10 [08:01:53]MH_SAM_APDU [08:01:53]CAPDU: 80 0D 02 02 05 5B CE 9A 54 38 [08:01:53]Write to MH i2c: E2 0D 00 79 75 80 0D 02 02 05 00 5B CE 9A 54 38 00 00 C1 [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:53]Read from MH i2c: E2 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 03 00 79 75 00 90 00 62 [08:01:53]RAPDU: 90 00 [08:01:53]wFMCommunicate OK [08:01:53]wFMCommunicate request_size=4 [08:01:53]MH_SAM_APDU [08:01:53]CAPDU: 80 0D 03 02 [08:01:53]Write to MH i2c: E2 08 00 7A 75 80 0D 03 02 00 00 00 00 6A [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:53]Read from MH i2c: E2 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 0B 00 [08:01:53]MH_I2C_Read... [08:01:53]Read from MH i2c: E2 0B 00 7A 75 00 F8 D8 40 65 08 67 9F EA 90 00 D8 [08:01:53]RAPDU: F8 D8 40 65 08 67 9F EA 90 00 [08:01:53]wFMCommunicate OK [08:01:53]SAM_PROTO_SignData done [08:01:53]FM_MakeSignedData done [08:01:53]CreateOFDProtocolMessage [08:01:53]wFMCommunicate request_size=4 [08:01:53]MH_SAM_APDU [08:01:53]CAPDU: 80 11 00 00 [08:01:53]Write to MH i2c: E2 08 00 7B 75 80 11 00 00 00 00 00 00 6A [08:01:53]Write i2c OK [08:01:53]MH_I2C_Read... [08:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:54]Read from MH i2c: E2 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: E2 17 00 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: E2 17 00 7B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [08:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:01:54]wFMCommunicate OK [08:01:54]CreateOFDProtocolMessage done [08:01:54]OFDSenderStorePacket 30797 [08:01:54]StoreOFDPacket docnum=30797 [08:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B 2E 07 01 6D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 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 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 78 00 00 35 04 06 00 58 5B CE 9A 54 38 F8 D8 40 65 08 67 9F EA [08:01:54]CheckFolder [08:01:54]dirname=/storage/ofd_packets [08:01:54]CheckFolder done [08:01:54]ProducePacketName [08:01:54]name=ofd_packets/00030797 [08:01:54]NVStorageSaveData ofd_packets/00030797 [08:01:54]File name is /storage/ofd_packets/00030797 [08:01:54]Write 301 bytes [08:01:54]NVStorageSaveData done [08:01:54]OFDSenderStorePacket done [08:01:54]KKMCreateOFDPacket done [08:01:54]NVStorageSaveData kkm_last_timestamp [08:01:54]File name is /storage/kkm_last_timestamp [08:01:54]Write 4 bytes [08:01:54]NVStorageSaveData done [08:01:54]ExternCall_PrintAddStr [08:01:54]wPrintStart [08:01:54]Write to MH i2c: 01 00 00 7C 75 F1 [08:01:54]Write i2c OK [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 07 00 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 07 00 7C 75 00 00 00 00 00 FF 0F 06 [08:01:54]RasterBufferAndPrint [08:01:54]line Счет N : (1)343215 [08:01:54]line ИНН: 02508201610067 [08:01:54]line Контрольно-Кассовый Чек [08:01:54]line ПРОДАЖА [08:01:54]line ТРК (МРК, ГНК) : 43 [08:01:54]line Товар: 2710124130 [08:01:54]line Аи-92-К-2 [08:01:54]line 0.020 * 66.90 [08:01:54]line = 1.34 [08:01:54]line НДС 12% НСП 1% [08:01:54]line > о реализуемом товаре [08:01:54]line ИТОГО: 1.34 [08:01:54]line НСП 1% : 0.01 [08:01:54]line НДС 12% : 0.14 [08:01:54]line Наличными: 0.00 [08:01:54]line Безнал.: 1.34 [08:01:54]line Место: АЗС № 78 "Партнер Нефть" [08:01:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:01:54]line СНО: Общий режим [08:01:54]line Чек 30 22.10.2024 08:02 [08:01:54]line Смена: 116 ФФД: 1.0 [08:01:54]line ЗНМ: 0300000137 [08:01:54]line РНМ: 0000000000186857 [08:01:54]line Версия ККМ: v1.0 [08:01:54]line Платежная система: АКБ Кыргызстан [08:01:54]line ФМ: 0000000002094219 [08:01:54]line ФД: 30797 [08:01:54]line ФПД: 97151331488824 [08:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30797&fm=97151331488824&tin=02508201610067®Number=0000000000186857&sum=134 [08:01:54]OFD Sender: Processing packet 30797 [packets to send 10, broken 9] [08:01:54]ProducePacketName [08:01:54]name=ofd_packets/00030797 [08:01:54]OFD Sender: To server: pG, [08:01:54]CommunicateWithHost lk.salyk.kg:30040 [08:01:54]ConnectInit lk.salyk.kg [08:01:54]written 0, free lines is 4095 [08:01:54]Connected sock=7 [08:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B 2E 07 01 6D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 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 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 5B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 78 00 00 35 04 06 00 58 5B CE 9A 54 38 F8 D8 40 65 08 67 9F EA [08:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 42 A9 47 00 6B 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 78 00 00 F4 03 04 00 77 06 17 67 B6 04 01 00 00 9E 0E E0 04 9A D6 15 5C [08:01:54]CommunicateWithHost err = 0 [08:01:54]CheckOFDResponse [08:01:54]1017 (14) - 77093643461234 [08:01:54]1041 (16) - 0000000002094219 [08:01:54]1040 (4) - 30797 [08:01:54]1012 (4) - 22.10.2024 01:57 [08:01:54]1206 (1) - 0 [08:01:54]OFD Sender: Remove packet 30797 [08:01:54]ProducePacketName [08:01:54]name=ofd_packets/00030797 [08:01:54]NVStorageDeleteData [08:01:54]Write to MH i2c: 01 00 00 A6 75 1B [08:01:54]Write i2c OK [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 07 00 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: 01 07 00 A6 75 00 00 00 00 00 FE 0C 2C [08:01:54]RasterBufferAndPrint [08:01:54]line [08:01:54]line [08:01:54]line [08:01:54]line [08:01:54]line [08:01:54]written 0, free lines is 3332 [08:01:54]MH_Cut [08:01:54]Write to MH i2c: D1 01 00 AD 75 01 F4 [08:01:54]Write i2c OK [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: D1 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: D1 01 00 [08:01:54]MH_I2C_Read... [08:01:54]Read from MH i2c: D1 01 00 AD 75 00 F3 [08:01:54]Write to MH i2c: 01 00 00 AE 75 23 [08:01:54]Write i2c OK [08:01:54]MH_I2C_Read... [08:01:55]OFD Sender: No OFD packet to send [08:01:55]*** Cut start [08:01:55]*** Partial cut [08:01:55]*** CUTSNS_PIN = 1 [08:01:55]*** CUTSNS_PIN = 0 [08:01:55]*** Brake cut motor [08:01:56]Read from MH i2c: 01 [08:01:56]MH_I2C_Read... [08:01:56]*** Stop cut motor [08:01:56]*** Cut end [08:01:56]Read from MH i2c: 01 07 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: 01 07 00 AE 75 00 00 00 00 00 FF 0F 38 [08:01:56]process_action close_receipt done [08:01:56]requested_data is exist [08:01:56]produce_requested_data [08:01:56]requested_item fm.sn is exist - process it [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 11 00 00 [08:01:56]Write to MH i2c: E2 08 00 AF 75 80 11 00 00 00 00 00 00 9E [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 17 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 17 00 AF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [08:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:01:56]wFMCommunicate OK [08:01:56]requested_item fd.num is exist - process it [08:01:56]SAM_PROTO_GetFieldsCounters [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 13 00 00 [08:01:56]Write to MH i2c: E2 08 00 B0 75 80 13 00 00 00 00 00 00 A1 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 62 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 62 00 B0 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 78 00 00 0E 04 04 00 74 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 5A [08:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 78 00 00 0E 04 04 00 74 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 [08:01:56]wFMCommunicate OK [08:01:56]SAM_PROTO_GetFieldsCounters done [08:01:56]requested_item shift.num is exist - process it [08:01:56]requested_item shift.opened is exist - process it [08:01:56]req_shift_opened [08:01:56]FM_GetShiftState [08:01:56]SAM_PROTO_GetShiftState [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 13 01 00 [08:01:56]Write to MH i2c: E2 08 00 B1 75 80 13 01 00 00 00 00 00 A3 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 B1 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7D [08:01:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:01:56]wFMCommunicate OK [08:01:56]SAM_PROTO_GetShiftState done [08:01:56]FM_GetShiftState done [08:01:56]req_shift_opened done [08:01:56]requested_item shift.open_date is exist - process it [08:01:56]req_shift_open_date [08:01:56]req_shift_open_date done [08:01:56]produce_requested_data done [08:01:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30797,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:01:56]process_action_free close_receipt [08:01:56]json_value_free [08:01:56]json_value_free done [08:01:56]process_json_proto returns [08:01:56]Send response to host [08:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30797,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:01:56]free response buf [08:01:56]execute_script done [08:01:56]execute_script returns [08:01:56]free content buf [08:01:56]Sock 9.Close socket [08:01:56]Sock 9.Thread stoped [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:31]accept exits with 10 [08:02:31]New connection [08:02:31]New thread 3067489636 created [08:02:31]Thread 3067346276 joined [08:02:31]Waiting for new connection... [08:02:31] Sock 10.Parse request [08:02:31]Sock 10.Check first char [08:02:31]Sock 10.First char is OK [08:02:31]request: POST /json_proto HTTP/1.0 [08:02:31]Method: POST [08:02:31]URL: /json_proto [08:02:31]Method is POST - this is cgi request [08:02:31]url: /json_proto [08:02:31]query_string will be loaded in cgi processing [08:02:31]execute_cgi json_proto POST (null) [08:02:31]execute_cgi path=json_proto method=POST [08:02:31]POST find Content-Length [08:02:31]Host: 172.17.51.3:8080 [08:02:31]Content-Length: 843 [08:02:31]Content-Type: application/json [08:02:31] [08:02:31]POST finish read [08:02:31]Found Content-Length = 843 [08:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:31]execute_script... [08:02: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)343217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:31]POST & json_proto [08:02:31]process_json_proto [08:02:31]json parsed OK: [08:02:31]protocol is kg_v1.0 [08:02:31]action value=close_receipt [08:02:31]process_action close_receipt [08:02:31]cmd_close_receipt [08:02:31]MH_GetDate [08:02:31]Write to MH i2c: F0 00 00 B2 75 16 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 09 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 09 00 B2 75 00 20 5C 17 67 04 C1 95 66 D9 [08:02:31]GetLastDocTimeStamp 1729584121 [08:02:31]current date 1729584160 [08:02:31]FM_GetShiftState [08:02:31]SAM_PROTO_GetShiftState [08:02:31]wFMCommunicate request_size=4 [08:02:31]MH_SAM_APDU [08:02:31]CAPDU: 80 13 01 00 [08:02:31]Write to MH i2c: E2 08 00 B3 75 80 13 01 00 00 00 00 00 A5 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:31]Read from MH i2c: E2 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: E2 0E 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: E2 0E 00 B3 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7F [08:02:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:02:31]wFMCommunicate OK [08:02:31]SAM_PROTO_GetShiftState done [08:02:31]FM_GetShiftState done [08:02:31]opened in 1729557342 [08:02:31]opened+sec_in_day 1729643742 [08:02:31]quantity*price = 100015 [08:02:31]sum+1 = 100017 [08:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 31 22.10.2024 08:02 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30798 ФПД: 176963895234053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30798&fm=176963895234053&tin=02508201610067®Number=0000000000186857&sum=100016 [08:02:32]StoreToDocumentArchive [08:02:32]shift 116 fd 30798 [08:02:32]save to /storage/0116/doc_00030798 [08:02:32]save last doc name /storage/0116/doc_00030798 to /storage/kkm_last_doc_name [08:02:32]save OK [08:02:32]Clear old archive folders... [08:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:32]tlvbuf is 01DB6880 [08:02:32]SAM_PROTO_ClearQueue [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 09 00 00 [08:02:32]Write to MH i2c: E2 08 00 C0 75 80 09 00 00 00 00 00 00 A7 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 03 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 03 00 C0 75 00 90 00 A9 [08:02:32]RAPDU: 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_ClearQueue done [08:02:32]KKMCreateOFDPacket [08:02:32]OFDProtocolAddRootSTLVToBuf [08:02:32]FM_MakeSignedData [08:02:32]FM_MakeSignedData [08:02:32]SAM_PROTO_SignData [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 0D 01 02 [08:02:32]Write to MH i2c: E2 08 00 C1 75 80 0D 01 02 00 00 00 00 AF [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 03 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 03 00 C1 75 00 90 00 AA [08:02:32]RAPDU: 90 00 [08:02:32]wFMCommunicate OK [08:02:32]wFMCommunicate request_size=255 [08:02:32]MH_SAM_APDU [08:02: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 21 5C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 78 00 00 35 04 06 00 A0 [08:02:32]Write to MH i2c: E2 02 01 C2 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 21 5C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 78 00 00 35 04 06 00 A0 00 00 4E [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 C2 75 00 90 00 AB [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=10 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 05 F2 9E 1D 0E 05 [08:02:33]Write to MH i2c: E2 0D 00 C3 75 80 0D 02 02 05 00 F2 9E 1D 0E 05 00 00 7C [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 C3 75 00 90 00 AC [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 03 02 [08:02:33]Write to MH i2c: E2 08 00 C4 75 80 0D 03 02 00 00 00 00 B4 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 C4 75 00 57 F3 FD 44 FA F0 BC AD 90 00 93 [08:02:33]RAPDU: 57 F3 FD 44 FA F0 BC AD 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_SignData done [08:02:33]FM_MakeSignedData done [08:02:33]CreateOFDProtocolMessage [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 11 00 00 [08:02:33]Write to MH i2c: E2 08 00 C5 75 80 11 00 00 00 00 00 00 B4 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 C5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [08:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:02:33]wFMCommunicate OK [08:02:33]CreateOFDProtocolMessage done [08:02:33]OFDSenderStorePacket 30798 [08:02:33]StoreOFDPacket docnum=30798 [08:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 6F 07 01 E1 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 21 5C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 78 00 00 35 04 06 00 A0 F2 9E 1D 0E 05 57 F3 FD 44 FA F0 BC AD [08:02:33]CheckFolder [08:02:33]dirname=/storage/ofd_packets [08:02:33]CheckFolder done [08:02:33]ProducePacketName [08:02:33]name=ofd_packets/00030798 [08:02:33]NVStorageSaveData ofd_packets/00030798 [08:02:33]File name is /storage/ofd_packets/00030798 [08:02:33]Write 301 bytes [08:02:33]NVStorageSaveData done [08:02:33]OFDSenderStorePacket done [08:02:33]KKMCreateOFDPacket done [08:02:33]NVStorageSaveData kkm_last_timestamp [08:02:33]File name is /storage/kkm_last_timestamp [08:02:33]Write 4 bytes [08:02:33]NVStorageSaveData done [08:02:33]ExternCall_PrintAddStr [08:02:33]wPrintStart [08:02:33]Write to MH i2c: 01 00 00 C6 75 3B [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 C6 75 00 00 00 00 00 FF 0F 50 [08:02:33]RasterBufferAndPrint [08:02:33]line Счет N : (1)343217 [08:02:33]line ИНН: 02508201610067 [08:02:33]line Контрольно-Кассовый Чек [08:02:33]line ПРОДАЖА [08:02:33]line ТРК (МРК, ГНК) : 43 [08:02:33]line Товар: 2710124130 [08:02:33]line Аи-92-К-2 [08:02:33]line 14.950 * 66.90 [08:02:33]line = 1000.16 [08:02:33]line НДС 12% НСП 1% [08:02:33]line > о реализуемом товаре [08:02:33]line ИТОГО: 1000.16 [08:02:33]line НСП 1% : 8.85 [08:02:33]line НДС 12% : 106.21 [08:02:33]line Наличными: 0.00 [08:02:33]line Безнал.: 1000.16 [08:02:33]line Место: АЗС № 78 "Партнер Нефть" [08:02:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:02:33]line СНО: Общий режим [08:02:33]line Чек 31 22.10.2024 08:02 [08:02:33]line Смена: 116 ФФД: 1.0 [08:02:33]line ЗНМ: 0300000137 [08:02:33]line РНМ: 0000000000186857 [08:02:33]line Версия ККМ: v1.0 [08:02:33]line Платежная система: АКБ Кыргызстан [08:02:33]line ФМ: 0000000002094219 [08:02:33]line ФД: 30798 [08:02:33]line ФПД: 176963895234053 [08:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30798&fm=176963895234053&tin=02508201610067®Number=0000000000186857&sum=100016 [08:02:33]OFD Sender: Processing packet 30798 [packets to send 10, broken 9] [08:02:33]ProducePacketName [08:02:33]name=ofd_packets/00030798 [08:02:33]OFD Sender: To server: pG, [08:02:33]CommunicateWithHost lk.salyk.kg:30040 [08:02:33]ConnectInit lk.salyk.kg [08:02:33]written 0, free lines is 4095 [08:02:33]Connected sock=9 [08:02:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 6F 07 01 E1 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 21 5C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 78 00 00 35 04 06 00 A0 F2 9E 1D 0E 05 57 F3 FD 44 FA F0 BC AD [08:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DF 54 47 00 B6 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 78 00 00 F4 03 04 00 9F 06 17 67 B6 04 01 00 00 0E C1 E6 73 86 78 43 A7 [08:02:33]CommunicateWithHost err = 0 [08:02:33]CheckOFDResponse [08:02:33]1017 (14) - 77093643461234 [08:02:33]1041 (16) - 0000000002094219 [08:02:33]1040 (4) - 30798 [08:02:33]1012 (4) - 22.10.2024 01:57 [08:02:33]1206 (1) - 0 [08:02:33]OFD Sender: Remove packet 30798 [08:02:33]ProducePacketName [08:02:33]name=ofd_packets/00030798 [08:02:33]NVStorageDeleteData [08:02:34]Write to MH i2c: 01 00 00 F0 75 65 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 F0 75 00 00 00 00 00 03 0D 7C [08:02:34]RasterBufferAndPrint [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]written 0, free lines is 3337 [08:02:34]MH_Cut [08:02:34]Write to MH i2c: D1 01 00 F7 75 01 3E [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 F7 75 00 3D [08:02:34]Write to MH i2c: 01 00 00 F8 75 6D [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]OFD Sender: No OFD packet to send [08:02:34]*** Cut start [08:02:34]*** Partial cut [08:02:34]*** CUTSNS_PIN = 1 [08:02:34]*** CUTSNS_PIN = 0 [08:02:35]*** Brake cut motor [08:02:35]Read from MH i2c: 01 [08:02:35]MH_I2C_Read... [08:02:35]*** Stop cut motor [08:02:35]*** Cut end [08:02:35]Read from MH i2c: 01 07 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: 01 07 00 F8 75 00 00 00 00 00 FF 0F 82 [08:02:35]process_action close_receipt done [08:02:35]requested_data is exist [08:02:35]produce_requested_data [08:02:35]requested_item fm.sn is exist - process it [08:02:35]wFMCommunicate request_size=4 [08:02:35]MH_SAM_APDU [08:02:35]CAPDU: 80 11 00 00 [08:02:35]Write to MH i2c: E2 08 00 F9 75 80 11 00 00 00 00 00 00 E8 [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:35]Read from MH i2c: E2 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 17 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 17 00 F9 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [08:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:02:35]wFMCommunicate OK [08:02:35]requested_item fd.num is exist - process it [08:02:35]SAM_PROTO_GetFieldsCounters [08:02:35]wFMCommunicate request_size=4 [08:02:35]MH_SAM_APDU [08:02:35]CAPDU: 80 13 00 00 [08:02:35]Write to MH i2c: E2 08 00 FA 75 80 13 00 00 00 00 00 00 EB [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:35]Read from MH i2c: E2 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 62 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 62 00 FA 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 78 00 00 0E 04 04 00 74 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 A8 [08:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 78 00 00 0E 04 04 00 74 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 [08:02:35]wFMCommunicate OK [08:02:35]SAM_PROTO_GetFieldsCounters done [08:02:35]requested_item shift.num is exist - process it [08:02:35]requested_item shift.opened is exist - process it [08:02:35]req_shift_opened [08:02:35]FM_GetShiftState [08:02:35]SAM_PROTO_GetShiftState [08:02:35]wFMCommunicate request_size=4 [08:02:35]MH_SAM_APDU [08:02:35]CAPDU: 80 13 01 00 [08:02:35]Write to MH i2c: E2 08 00 FB 75 80 13 01 00 00 00 00 00 ED [08:02:35]Write i2c OK [08:02:35]MH_I2C_Read... [08:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:35]Read from MH i2c: E2 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 0E 00 [08:02:35]MH_I2C_Read... [08:02:35]Read from MH i2c: E2 0E 00 FB 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C7 [08:02:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:02:35]wFMCommunicate OK [08:02:35]SAM_PROTO_GetShiftState done [08:02:35]FM_GetShiftState done [08:02:35]req_shift_opened done [08:02:35]requested_item shift.open_date is exist - process it [08:02:35]req_shift_open_date [08:02:35]req_shift_open_date done [08:02:35]produce_requested_data done [08:02:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30798,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:02:35]process_action_free close_receipt [08:02:35]json_value_free [08:02:35]json_value_free done [08:02:35]process_json_proto returns [08:02:35]Send response to host [08:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30798,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:02:35]free response buf [08:02:35]execute_script done [08:02:35]execute_script returns [08:02:35]free content buf [08:02:35]Sock 10.Close socket [08:02:35]Sock 10.Thread stoped [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:35]accept exits with 7 [08:06:35]New connection [08:06:35]New thread 3067346276 created [08:06:35]Thread 3067489636 joined [08:06:35]Waiting for new connection... [08:06:35] Sock 7.Parse request [08:06:35]Sock 7.Check first char [08:06:35]Sock 7.First char is OK [08:06:35]request: POST /json_proto HTTP/1.0 [08:06:35]Method: POST [08:06:35]URL: /json_proto [08:06:35]Method is POST - this is cgi request [08:06:35]url: /json_proto [08:06:35]query_string will be loaded in cgi processing [08:06:35]execute_cgi json_proto POST (null) [08:06:35]execute_cgi path=json_proto method=POST [08:06:35]POST find Content-Length [08:06:35]Host: 172.17.51.3:8080 [08:06:35]Content-Length: 790 [08:06:35]Content-Type: application/json [08:06:35] [08:06:35]POST finish read [08:06:35]Found Content-Length = 790 [08:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 196.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31175", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:35]execute_script... [08:06: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)343216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 196.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31175", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:35]POST & json_proto [08:06:35]process_json_proto [08:06:35]json parsed OK: [08:06:35]protocol is kg_v1.0 [08:06:35]action value=close_receipt [08:06:35]process_action close_receipt [08:06:35]cmd_close_receipt [08:06:35]MH_GetDate [08:06:35]Write to MH i2c: F0 00 00 FC 75 60 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: F0 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: F0 09 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: F0 09 00 FC 75 00 14 5D 17 67 04 C1 95 66 18 [08:06:35]GetLastDocTimeStamp 1729584161 [08:06:35]current date 1729584404 [08:06:35]FM_GetShiftState [08:06:35]SAM_PROTO_GetShiftState [08:06:35]wFMCommunicate request_size=4 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 13 01 00 [08:06:35]Write to MH i2c: E2 08 00 FD 75 80 13 01 00 00 00 00 00 EF [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 0E 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 0E 00 FD 75 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C9 [08:06:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:06:35]wFMCommunicate OK [08:06:35]SAM_PROTO_GetShiftState done [08:06:35]FM_GetShiftState done [08:06:35]opened in 1729557342 [08:06:35]opened+sec_in_day 1729643742 [08:06:35]quantity*price = 0 [08:06:35]sum+1 = 1 [08:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 32 22.10.2024 08:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31175 ФМ: 0000000002094219 ФД: 30799 ФПД: 246010083558605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30799&fm=246010083558605&tin=02508201610067®Number=0000000000186857&sum=0 [08:06:36]StoreToDocumentArchive [08:06:36]shift 116 fd 30799 [08:06:36]save to /storage/0116/doc_00030799 [08:06:36]save last doc name /storage/0116/doc_00030799 to /storage/kkm_last_doc_name [08:06:36]save OK [08:06:36]Clear old archive folders... [08:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:36]tlvbuf is 01FB6AE0 [08:06:36]SAM_PROTO_ClearQueue [08:06:36]wFMCommunicate request_size=4 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 09 00 00 [08:06:36]Write to MH i2c: E2 08 00 0A 76 80 09 00 00 00 00 00 00 F2 [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 0A 76 00 90 00 F4 [08:06:36]RAPDU: 90 00 [08:06:36]wFMCommunicate OK [08:06:36]SAM_PROTO_ClearQueue done [08:06:36]KKMCreateOFDPacket [08:06:36]OFDProtocolAddRootSTLVToBuf [08:06:36]FM_MakeSignedData [08:06:36]FM_MakeSignedData [08:06:36]SAM_PROTO_SignData [08:06:36]wFMCommunicate request_size=4 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 0D 01 02 [08:06:36]Write to MH i2c: E2 08 00 0B 76 80 0D 01 02 00 00 00 00 FA [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 0B 76 00 90 00 F5 [08:06:36]RAPDU: 90 00 [08:06:36]wFMCommunicate OK [08:06:36]wFMCommunicate request_size=255 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 14 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 78 00 00 35 04 06 00 DF BE AF A4 [08:06:36]Write to MH i2c: E2 02 01 0C 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 32 FF 03 08 00 03 F2 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 14 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 78 00 00 35 04 06 00 DF BE AF A4 00 00 88 [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:37]Read from MH i2c: E2 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 03 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 03 00 0C 76 00 90 00 F6 [08:06:37]RAPDU: 90 00 [08:06:37]wFMCommunicate OK [08:06:37]wFMCommunicate request_size=7 [08:06:37]MH_SAM_APDU [08:06:37]CAPDU: 80 0D 02 02 02 44 CD [08:06:37]Write to MH i2c: E2 0A 00 0D 76 80 0D 02 02 02 00 44 CD 00 00 12 [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:37]Read from MH i2c: E2 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 03 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 03 00 0D 76 00 90 00 F7 [08:06:37]RAPDU: 90 00 [08:06:37]wFMCommunicate OK [08:06:37]wFMCommunicate request_size=4 [08:06:37]MH_SAM_APDU [08:06:37]CAPDU: 80 0D 03 02 [08:06:37]Write to MH i2c: E2 08 00 0E 76 80 0D 03 02 00 00 00 00 FF [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:37]Read from MH i2c: E2 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 0B 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 0B 00 0E 76 00 3B 1B 1E E8 3F A1 80 10 90 00 CC [08:06:37]RAPDU: 3B 1B 1E E8 3F A1 80 10 90 00 [08:06:37]wFMCommunicate OK [08:06:37]SAM_PROTO_SignData done [08:06:37]FM_MakeSignedData done [08:06:37]CreateOFDProtocolMessage [08:06:37]wFMCommunicate request_size=4 [08:06:37]MH_SAM_APDU [08:06:37]CAPDU: 80 11 00 00 [08:06:37]Write to MH i2c: E2 08 00 0F 76 80 11 00 00 00 00 00 00 FF [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:37]Read from MH i2c: E2 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 17 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: E2 17 00 0F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [08:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:37]wFMCommunicate OK [08:06:37]CreateOFDProtocolMessage done [08:06:37]OFDSenderStorePacket 30799 [08:06:37]StoreOFDPacket docnum=30799 [08:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 99 E8 04 01 61 71 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 32 FF 03 08 00 03 F2 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 14 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 78 00 00 35 04 06 00 DF BE AF A4 44 CD 3B 1B 1E E8 3F A1 80 10 [08:06:37]CheckFolder [08:06:37]dirname=/storage/ofd_packets [08:06:37]CheckFolder done [08:06:37]ProducePacketName [08:06:37]name=ofd_packets/00030799 [08:06:37]NVStorageSaveData ofd_packets/00030799 [08:06:37]File name is /storage/ofd_packets/00030799 [08:06:37]Write 298 bytes [08:06:37]NVStorageSaveData done [08:06:37]OFDSenderStorePacket done [08:06:37]KKMCreateOFDPacket done [08:06:37]NVStorageSaveData kkm_last_timestamp [08:06:37]File name is /storage/kkm_last_timestamp [08:06:37]Write 4 bytes [08:06:37]NVStorageSaveData done [08:06:37]ExternCall_PrintAddStr [08:06:37]wPrintStart [08:06:37]Write to MH i2c: 01 00 00 10 76 86 [08:06:37]OFD Sender: Processing packet 30799 [packets to send 10, broken 9] [08:06:37]ProducePacketName [08:06:37]name=ofd_packets/00030799 [08:06:37]OFD Sender: To server: pG, [08:06:37]CommunicateWithHost lk.salyk.kg:30040 [08:06:37]ConnectInit lk.salyk.kg [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 07 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 07 00 10 76 00 00 00 00 00 FF 0F 9B [08:06:37]RasterBufferAndPrint [08:06:37]line Счет N : (1)343216 [08:06:37]line ИНН: 02508201610067 [08:06:37]line Контрольно-Кассовый Чек [08:06:37]line ПРОДАЖА [08:06:37]line ТРК (МРК, ГНК) : 64 [08:06:37]line Товар: 2710194210 [08:06:37]line ДТ-К-2 [08:06:37]line 196.850 * 0.00 [08:06:37]line = 0.00 [08:06:37]line НДС 12% НСП 1% [08:06:37]line > о реализуемом товаре [08:06:37]line ИТОГО: 0.00 [08:06:37]line НСП 1% : 0.00 [08:06:37]line НДС 12% : 0.00 [08:06:37]line Наличными: 0.00 [08:06:37]line Безнал.: 0.00 [08:06:37]line Место: АЗС № 78 "Партнер Нефть" [08:06:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:06:37]line СНО: Общий режим [08:06:37]line Чек 32 22.10.2024 08:06 [08:06:37]line Смена: 116 ФФД: 1.0 [08:06:37]line ЗНМ: 0300000137 [08:06:37]line РНМ: 0000000000186857 [08:06:37]line Версия ККМ: v1.0 [08:06:37]line Талоны: Топливная Карта [08:06:37]line 31175 [08:06:37]line ФМ: 0000000002094219 [08:06:37]line ФД: 30799 [08:06:37]line ФПД: 246010083558605 [08:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30799&fm=246010083558605&tin=02508201610067®Number=0000000000186857&sum=0 [08:06:37]written 0, free lines is 4095 [08:06:37]Write to MH i2c: 01 00 00 3A 76 B0 [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 07 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: 01 07 00 3A 76 00 00 00 00 00 F6 0C B9 [08:06:37]RasterBufferAndPrint [08:06:37]line [08:06:37]line [08:06:37]line [08:06:37]line [08:06:37]line [08:06:37]written 0, free lines is 3324 [08:06:37]MH_Cut [08:06:37]Write to MH i2c: D1 01 00 41 76 01 89 [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: D1 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: D1 01 00 [08:06:37]MH_I2C_Read... [08:06:37]Read from MH i2c: D1 01 00 41 76 00 88 [08:06:37]Write to MH i2c: 01 00 00 42 76 B8 [08:06:37]Write i2c OK [08:06:37]MH_I2C_Read... [08:06:38]*** Cut start [08:06:38]*** Partial cut [08:06:38]*** CUTSNS_PIN = 1 [08:06:38]*** CUTSNS_PIN = 0 [08:06:38]*** Brake cut motor [08:06:38]Read from MH i2c: 01 [08:06:38]MH_I2C_Read... [08:06:38]*** Stop cut motor [08:06:38]*** Cut end [08:06:38]Read from MH i2c: 01 07 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: 01 07 00 42 76 00 00 00 00 00 FF 0F CD [08:06:38]process_action close_receipt done [08:06:38]requested_data is exist [08:06:38]produce_requested_data [08:06:38]requested_item fm.sn is exist - process it [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 11 00 00 [08:06:38]Write to MH i2c: E2 08 00 43 76 80 11 00 00 00 00 00 00 33 [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 43 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [08:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:38]wFMCommunicate OK [08:06:38]requested_item fd.num is exist - process it [08:06:38]SAM_PROTO_GetFieldsCounters [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 13 00 00 [08:06:38]Write to MH i2c: E2 08 00 44 76 80 13 00 00 00 00 00 00 36 [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:39]Read from MH i2c: E2 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 62 00 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 62 00 44 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 78 00 00 0E 04 04 00 74 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 F7 [08:06:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 78 00 00 0E 04 04 00 74 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 [08:06:39]wFMCommunicate OK [08:06:39]SAM_PROTO_GetFieldsCounters done [08:06:39]requested_item shift.num is exist - process it [08:06:39]requested_item shift.opened is exist - process it [08:06:39]req_shift_opened [08:06:39]FM_GetShiftState [08:06:39]SAM_PROTO_GetShiftState [08:06:39]wFMCommunicate request_size=4 [08:06:39]MH_SAM_APDU [08:06:39]CAPDU: 80 13 01 00 [08:06:39]Write to MH i2c: E2 08 00 45 76 80 13 01 00 00 00 00 00 38 [08:06:39]Write i2c OK [08:06:39]MH_I2C_Read... [08:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:39]Read from MH i2c: E2 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 45 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 12 [08:06:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:06:39]wFMCommunicate OK [08:06:39]SAM_PROTO_GetShiftState done [08:06:39]FM_GetShiftState done [08:06:39]req_shift_opened done [08:06:39]requested_item shift.open_date is exist - process it [08:06:39]req_shift_open_date [08:06:39]req_shift_open_date done [08:06:39]produce_requested_data done [08:06:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30799,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:06:39]process_action_free close_receipt [08:06:39]json_value_free [08:06:39]json_value_free done [08:06:39]process_json_proto returns [08:06:39]Send response to host [08:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30799,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:06:39]free response buf [08:06:39]execute_script done [08:06:39]execute_script returns [08:06:39]free content buf [08:06:39]Sock 7.Close socket [08:06:39]Sock 7.Thread stoped [08:06:39]accept exits with 9 [08:06:39]New connection [08:06:39]New thread 3067489636 created [08:06:39]Thread 3067346276 joined [08:06:39]Waiting for new connection... [08:06:39] Sock 9.Parse request [08:06:39]Sock 9.Check first char [08:06:39]Sock 9.First char is OK [08:06:39]request: POST /json_proto HTTP/1.0 [08:06:39]Method: POST [08:06:39]URL: /json_proto [08:06:39]Method is POST - this is cgi request [08:06:39]url: /json_proto [08:06:39]query_string will be loaded in cgi processing [08:06:39]execute_cgi json_proto POST (null) [08:06:39]execute_cgi path=json_proto method=POST [08:06:39]POST find Content-Length [08:06:39]Host: 172.17.51.3:8080 [08:06:39]Content-Length: 678 [08:06:39]Content-Type: application/json [08:06:39] [08:06:39]POST finish read [08:06:39]Found Content-Length = 678 [08:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:39]execute_script... [08:06: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)343218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:39]POST & json_proto [08:06:39]process_json_proto [08:06:39]json parsed OK: [08:06:39]protocol is kg_v1.0 [08:06:39]action value=close_receipt [08:06:39]process_action close_receipt [08:06:39]cmd_close_receipt [08:06:39]MH_GetDate [08:06:39]Write to MH i2c: F0 00 00 46 76 AB [08:06:39]Write i2c OK [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: F0 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: F0 09 00 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: F0 09 00 46 76 00 18 5D 17 67 04 C1 95 66 67 [08:06:39]GetLastDocTimeStamp 1729584404 [08:06:39]current date 1729584408 [08:06:39]FM_GetShiftState [08:06:39]SAM_PROTO_GetShiftState [08:06:39]wFMCommunicate request_size=4 [08:06:39]MH_SAM_APDU [08:06:39]CAPDU: 80 13 01 00 [08:06:39]Write to MH i2c: E2 08 00 47 76 80 13 01 00 00 00 00 00 3A [08:06:39]Write i2c OK [08:06:39]MH_I2C_Read... [08:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:39]Read from MH i2c: E2 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 47 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 14 [08:06:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:06:39]wFMCommunicate OK [08:06:39]SAM_PROTO_GetShiftState done [08:06:39]FM_GetShiftState done [08:06:39]opened in 1729557342 [08:06:39]opened+sec_in_day 1729643742 [08:06:39]quantity*price = 70044 [08:06:39]sum+1 = 70045 [08:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 33 22.10.2024 08:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30800 ФПД: 45621953186806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30800&fm=45621953186806&tin=02508201610067®Number=0000000000186857&sum=70000 [08:06:40]StoreToDocumentArchive [08:06:40]shift 116 fd 30800 [08:06:40]save to /storage/0116/doc_00030800 [08:06:40]save last doc name /storage/0116/doc_00030800 to /storage/kkm_last_doc_name [08:06:40]save OK [08:06:40]Clear old archive folders... [08:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:40]tlvbuf is 01E60A90 [08:06:40]SAM_PROTO_ClearQueue [08:06:40]wFMCommunicate request_size=4 [08:06:40]MH_SAM_APDU [08:06:40]CAPDU: 80 09 00 00 [08:06:40]Write to MH i2c: E2 08 00 54 76 80 09 00 00 00 00 00 00 3C [08:06:40]Write i2c OK [08:06:40]MH_I2C_Read... [08:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:40]Read from MH i2c: E2 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 03 00 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 03 00 54 76 00 90 00 3E [08:06:40]RAPDU: 90 00 [08:06:40]wFMCommunicate OK [08:06:40]SAM_PROTO_ClearQueue done [08:06:40]KKMCreateOFDPacket [08:06:40]OFDProtocolAddRootSTLVToBuf [08:06:40]FM_MakeSignedData [08:06:40]FM_MakeSignedData [08:06:40]SAM_PROTO_SignData [08:06:40]wFMCommunicate request_size=4 [08:06:40]MH_SAM_APDU [08:06:40]CAPDU: 80 0D 01 02 [08:06:40]Write to MH i2c: E2 08 00 55 76 80 0D 01 02 00 00 00 00 44 [08:06:40]Write i2c OK [08:06:40]MH_I2C_Read... [08:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:40]Read from MH i2c: E2 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 03 00 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 03 00 55 76 00 90 00 3F [08:06:40]RAPDU: 90 00 [08:06:40]wFMCommunicate OK [08:06:40]wFMCommunicate request_size=255 [08:06:40]MH_SAM_APDU [08:06: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 78 00 00 35 04 06 00 29 [08:06:41]Write to MH i2c: E2 02 01 56 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 78 00 00 35 04 06 00 29 00 00 5E [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 56 76 00 90 00 40 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]wFMCommunicate request_size=10 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 02 02 05 7E 30 50 4B F6 [08:06:41]Write to MH i2c: E2 0D 00 57 76 80 0D 02 02 05 00 7E 30 50 4B F6 00 00 90 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 57 76 00 90 00 41 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 03 02 [08:06:41]Write to MH i2c: E2 08 00 58 76 80 0D 03 02 00 00 00 00 49 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0B 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0B 00 58 76 00 63 55 2A D4 41 37 2A F0 90 00 92 [08:06:41]RAPDU: 63 55 2A D4 41 37 2A F0 90 00 [08:06:41]wFMCommunicate OK [08:06:41]SAM_PROTO_SignData done [08:06:41]FM_MakeSignedData done [08:06:41]CreateOFDProtocolMessage [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 11 00 00 [08:06:41]Write to MH i2c: E2 08 00 59 76 80 11 00 00 00 00 00 00 49 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 17 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 17 00 59 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [08:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:41]wFMCommunicate OK [08:06:41]CreateOFDProtocolMessage done [08:06:41]OFDSenderStorePacket 30800 [08:06:41]StoreOFDPacket docnum=30800 [08:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 D9 07 01 D8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 78 00 00 35 04 06 00 29 7E 30 50 4B F6 63 55 2A D4 41 37 2A F0 [08:06:41]CheckFolder [08:06:41]dirname=/storage/ofd_packets [08:06:41]CheckFolder done [08:06:41]ProducePacketName [08:06:41]name=ofd_packets/00030800 [08:06:41]NVStorageSaveData ofd_packets/00030800 [08:06:41]File name is /storage/ofd_packets/00030800 [08:06:41]Write 301 bytes [08:06:41]NVStorageSaveData done [08:06:41]OFDSenderStorePacket done [08:06:41]KKMCreateOFDPacket done [08:06:41]NVStorageSaveData kkm_last_timestamp [08:06:41]File name is /storage/kkm_last_timestamp [08:06:41]Write 4 bytes [08:06:41]NVStorageSaveData done [08:06:41]ExternCall_PrintAddStr [08:06:41]wPrintStart [08:06:41]Write to MH i2c: 01 00 00 5A 76 D0 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 07 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 07 00 5A 76 00 00 00 00 00 FF 0F E5 [08:06:41]RasterBufferAndPrint [08:06:41]line Счет N : (1)343218 [08:06:41]line ИНН: 02508201610067 [08:06:41]line Контрольно-Кассовый Чек [08:06:41]line ПРОДАЖА [08:06:41]line ТРК (МРК, ГНК) : 53 [08:06:41]line Товар: 2710124130 [08:06:41]line Аи-92-К-2 [08:06:41]line 10.470 * 66.90 [08:06:41]line = 700.44 [08:06:41]line НДС 12% НСП 1% [08:06:41]line > о реализуемом товаре [08:06:41]line ОКРУГЛЕНИЕ: -0.44 [08:06:41]line ИТОГО: 700.00 [08:06:41]line Внесено: 700.00 [08:06:41]line СДАЧА: 0.00 [08:06:41]line НСП 1% : 6.20 [08:06:41]line НДС 12% : 74.38 [08:06:41]line Наличными: 700.00 [08:06:41]line Безнал.: 0.00 [08:06:41]line Место: АЗС № 78 "Партнер Нефть" [08:06:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:06:41]line СНО: Общий режим [08:06:41]line Чек 33 22.10.2024 08:06 [08:06:41]line Смена: 116 ФФД: 1.0 [08:06:41]line ЗНМ: 0300000137 [08:06:41]line РНМ: 0000000000186857 [08:06:41]line Версия ККМ: v1.0 [08:06:41]line ФМ: 0000000002094219 [08:06:41]line ФД: 30800 [08:06:41]line ФПД: 45621953186806 [08:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30800&fm=45621953186806&tin=02508201610067®Number=0000000000186857&sum=70000 [08:06:41]written 0, free lines is 4095 [08:06:42]Write to MH i2c: 01 00 00 85 76 FB [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 85 76 00 00 00 00 00 E4 0C F2 [08:06:42]RasterBufferAndPrint [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]written 0, free lines is 3315 [08:06:42]MH_Cut [08:06:42]Write to MH i2c: D1 01 00 8C 76 01 D4 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 01 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 01 00 8C 76 00 D3 [08:06:42]Write to MH i2c: 01 00 00 8D 76 03 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:43]*** Cut start [08:06:43]*** Partial cut [08:06:43]*** CUTSNS_PIN = 1 [08:06:43]*** CUTSNS_PIN = 0 [08:06:43]*** Brake cut motor [08:06:43]Read from MH i2c: 01 [08:06:43]MH_I2C_Read... [08:06:43]*** Stop cut motor [08:06:43]*** Cut end [08:06:43]Read from MH i2c: 01 07 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 8D 76 00 00 00 00 00 FF 0F 18 [08:06:43]process_action close_receipt done [08:06:43]requested_data is exist [08:06:43]produce_requested_data [08:06:43]requested_item fm.sn is exist - process it [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 11 00 00 [08:06:43]Write to MH i2c: E2 08 00 8E 76 80 11 00 00 00 00 00 00 7E [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 17 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 17 00 8E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CC [08:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:43]wFMCommunicate OK [08:06:43]requested_item fd.num is exist - process it [08:06:43]SAM_PROTO_GetFieldsCounters [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 13 00 00 [08:06:43]Write to MH i2c: E2 08 00 8F 76 80 13 00 00 00 00 00 00 81 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 62 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 62 00 8F 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 78 00 00 0E 04 04 00 74 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 46 [08:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 78 00 00 0E 04 04 00 74 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 [08:06:43]wFMCommunicate OK [08:06:43]SAM_PROTO_GetFieldsCounters done [08:06:43]requested_item shift.num is exist - process it [08:06:43]requested_item shift.opened is exist - process it [08:06:43]req_shift_opened [08:06:43]FM_GetShiftState [08:06:43]SAM_PROTO_GetShiftState [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 13 01 00 [08:06:43]Write to MH i2c: E2 08 00 90 76 80 13 01 00 00 00 00 00 83 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 0E 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 0E 00 90 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5D [08:06:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:06:43]wFMCommunicate OK [08:06:43]SAM_PROTO_GetShiftState done [08:06:43]FM_GetShiftState done [08:06:43]req_shift_opened done [08:06:43]requested_item shift.open_date is exist - process it [08:06:43]req_shift_open_date [08:06:43]req_shift_open_date done [08:06:43]produce_requested_data done [08:06:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30800,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:06:43]process_action_free close_receipt [08:06:43]json_value_free [08:06:43]json_value_free done [08:06:43]process_json_proto returns [08:06:43]Send response to host [08:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30800,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:06:43]free response buf [08:06:43]execute_script done [08:06:43]execute_script returns [08:06:43]free content buf [08:06:43]Sock 9.Close socket [08:06:43]Sock 9.Thread stoped [08:07:14]recv_with_timeout no data received [08:07:30]recv_with_timeout no data received [08:07:46]accept exits with 7 [08:07:46]New connection [08:07:46]New thread 3067346276 created [08:07:46]Thread 3067489636 joined [08:07:46]Waiting for new connection... [08:07:46] Sock 7.Parse request [08:07:46]Sock 7.Check first char [08:07:46]Sock 7.First char is OK [08:07:46]request: POST /json_proto HTTP/1.0 [08:07:46]Method: POST [08:07:46]URL: /json_proto [08:07:46]Method is POST - this is cgi request [08:07:46]url: /json_proto [08:07:46]query_string will be loaded in cgi processing [08:07:46]execute_cgi json_proto POST (null) [08:07:46]execute_cgi path=json_proto method=POST [08:07:46]POST find Content-Length [08:07:46]Host: 172.17.51.3:8080 [08:07:46]Content-Length: 682 [08:07:46]Content-Type: application/json [08:07:46] [08:07:46]POST finish read [08:07:46]Found Content-Length = 682 [08:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [08:07:46]execute_script... [08:07: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)343219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [08:07:46]POST & json_proto [08:07:46]process_json_proto [08:07:46]json parsed OK: [08:07:46]protocol is kg_v1.0 [08:07:46]action value=close_receipt [08:07:46]process_action close_receipt [08:07:46]cmd_close_receipt [08:07:46]MH_GetDate [08:07:46]Write to MH i2c: F0 00 00 91 76 F6 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: F0 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: F0 09 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: F0 09 00 91 76 00 5C 5D 17 67 04 C1 95 66 F6 [08:07:46]GetLastDocTimeStamp 1729584408 [08:07:46]current date 1729584476 [08:07:46]FM_GetShiftState [08:07:46]SAM_PROTO_GetShiftState [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 13 01 00 [08:07:46]Write to MH i2c: E2 08 00 92 76 80 13 01 00 00 00 00 00 85 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0E 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0E 00 92 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5F [08:07:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:07:46]wFMCommunicate OK [08:07:46]SAM_PROTO_GetShiftState done [08:07:46]FM_GetShiftState done [08:07:46]opened in 1729557342 [08:07:46]opened+sec_in_day 1729643742 [08:07:46]quantity*price = 120055 [08:07:46]sum+1 = 120057 [08:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 34 22.10.2024 08:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30801 ФПД: 6142861834820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080756&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30801&fm=6142861834820&tin=02508201610067®Number=0000000000186857&sum=120000 [08:07:48]StoreToDocumentArchive [08:07:48]shift 116 fd 30801 [08:07:48]save to /storage/0116/doc_00030801 [08:07:48]save last doc name /storage/0116/doc_00030801 to /storage/kkm_last_doc_name [08:07:48]save OK [08:07:48]Clear old archive folders... [08:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:48]tlvbuf is 01F55C80 [08:07:48]SAM_PROTO_ClearQueue [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 09 00 00 [08:07:48]Write to MH i2c: E2 08 00 9F 76 80 09 00 00 00 00 00 00 87 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 9F 76 00 90 00 89 [08:07:48]RAPDU: 90 00 [08:07:48]wFMCommunicate OK [08:07:48]SAM_PROTO_ClearQueue done [08:07:48]KKMCreateOFDPacket [08:07:48]OFDProtocolAddRootSTLVToBuf [08:07:48]FM_MakeSignedData [08:07:48]FM_MakeSignedData [08:07:48]SAM_PROTO_SignData [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 0D 01 02 [08:07:48]Write to MH i2c: E2 08 00 A0 76 80 0D 01 02 00 00 00 00 8F [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 A0 76 00 90 00 8A [08:07:48]RAPDU: 90 00 [08:07:48]wFMCommunicate OK [08:07:48]wFMCommunicate request_size=255 [08:07:48]MH_SAM_APDU [08:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 22 00 00 00 F4 03 04 00 5C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 78 00 00 35 04 06 00 05 [08:07:48]Write to MH i2c: E2 02 01 A1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 22 00 00 00 F4 03 04 00 5C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 78 00 00 35 04 06 00 05 00 00 E5 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 A1 76 00 90 00 8B [08:07:48]RAPDU: 90 00 [08:07:48]wFMCommunicate OK [08:07:48]wFMCommunicate request_size=10 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 0D 02 02 05 96 3F 18 FA 44 [08:07:48]Write to MH i2c: E2 0D 00 A2 76 80 0D 02 02 05 00 96 3F 18 FA 44 00 00 C7 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 03 00 A2 76 00 90 00 8C [08:07:48]RAPDU: 90 00 [08:07:48]wFMCommunicate OK [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 0D 03 02 [08:07:48]Write to MH i2c: E2 08 00 A3 76 80 0D 03 02 00 00 00 00 94 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 0B 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 0B 00 A3 76 00 2C D5 B1 CF 33 D9 CC D6 90 00 C4 [08:07:48]RAPDU: 2C D5 B1 CF 33 D9 CC D6 90 00 [08:07:48]wFMCommunicate OK [08:07:48]SAM_PROTO_SignData done [08:07:48]FM_MakeSignedData done [08:07:48]CreateOFDProtocolMessage [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 11 00 00 [08:07:48]Write to MH i2c: E2 08 00 A4 76 80 11 00 00 00 00 00 00 94 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 17 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 17 00 A4 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [08:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:07:48]wFMCommunicate OK [08:07:48]CreateOFDProtocolMessage done [08:07:48]OFDSenderStorePacket 30801 [08:07:48]StoreOFDPacket docnum=30801 [08:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 35 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 22 00 00 00 F4 03 04 00 5C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 78 00 00 35 04 06 00 05 96 3F 18 FA 44 2C D5 B1 CF 33 D9 CC D6 [08:07:48]CheckFolder [08:07:48]dirname=/storage/ofd_packets [08:07:48]CheckFolder done [08:07:48]ProducePacketName [08:07:48]name=ofd_packets/00030801 [08:07:48]NVStorageSaveData ofd_packets/00030801 [08:07:48]File name is /storage/ofd_packets/00030801 [08:07:48]Write 301 bytes [08:07:48]NVStorageSaveData done [08:07:48]OFDSenderStorePacket done [08:07:48]KKMCreateOFDPacket done [08:07:48]NVStorageSaveData kkm_last_timestamp [08:07:48]File name is /storage/kkm_last_timestamp [08:07:48]Write 4 bytes [08:07:48]NVStorageSaveData done [08:07:48]ExternCall_PrintAddStr [08:07:48]wPrintStart [08:07:48]Write to MH i2c: 01 00 00 A5 76 1B [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: 01 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: 01 07 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: 01 07 00 A5 76 00 00 00 00 00 FF 0F 30 [08:07:48]RasterBufferAndPrint [08:07:48]line Счет N : (1)343219 [08:07:48]line ИНН: 02508201610067 [08:07:48]line Контрольно-Кассовый Чек [08:07:48]line ПРОДАЖА [08:07:48]line ТРК (МРК, ГНК) : 32 [08:07:48]line Товар: 2710124500 [08:07:48]line Аи-95-К-3 [08:07:48]line 16.180 * 74.20 [08:07:48]line = 1200.56 [08:07:48]line НДС 12% НСП 1% [08:07:48]line > о реализуемом товаре [08:07:48]line ОКРУГЛЕНИЕ: -0.56 [08:07:48]line ИТОГО: 1200.00 [08:07:48]line Внесено: 1200.00 [08:07:48]line СДАЧА: 0.00 [08:07:48]line НСП 1% : 10.62 [08:07:48]line НДС 12% : 127.49 [08:07:48]line Наличными: 1200.00 [08:07:48]line Безнал.: 0.00 [08:07:48]line Место: АЗС № 78 "Партнер Нефть" [08:07:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:07:48]line СНО: Общий режим [08:07:48]line Чек 34 22.10.2024 08:07 [08:07:48]line Смена: 116 ФФД: 1.0 [08:07:48]line ЗНМ: 0300000137 [08:07:48]line РНМ: 0000000000186857 [08:07:48]line Версия ККМ: v1.0 [08:07:48]line ФМ: 0000000002094219 [08:07:48]line ФД: 30801 [08:07:48]line ФПД: 6142861834820 [08:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080756&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30801&fm=6142861834820&tin=02508201610067®Number=0000000000186857&sum=120000 [08:07:48]written 0, free lines is 4095 [08:07:49]Write to MH i2c: 01 00 00 D0 76 46 [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: 01 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: 01 07 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: 01 07 00 D0 76 00 00 00 00 00 EC 0C 45 [08:07:49]RasterBufferAndPrint [08:07:49]line [08:07:49]line [08:07:49]line [08:07:49]line [08:07:49]line [08:07:49]written 0, free lines is 3314 [08:07:49]MH_Cut [08:07:49]Write to MH i2c: D1 01 00 D7 76 01 1F [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: D1 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: D1 01 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: D1 01 00 D7 76 00 1E [08:07:49]Write to MH i2c: 01 00 00 D8 76 4E [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:50]*** Cut start [08:07:50]*** Partial cut [08:07:50]*** CUTSNS_PIN = 1 [08:07:50]*** CUTSNS_PIN = 0 [08:07:50]*** Brake cut motor [08:07:50]recv_with_timeout no data received [08:07:50]Read from MH i2c: 01 [08:07:50]MH_I2C_Read... [08:07:50]*** Stop cut motor [08:07:50]*** Cut end [08:07:50]Read from MH i2c: 01 07 00 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: 01 07 00 D8 76 00 00 00 00 00 FF 0F 63 [08:07:50]process_action close_receipt done [08:07:50]requested_data is exist [08:07:50]produce_requested_data [08:07:50]requested_item fm.sn is exist - process it [08:07:50]wFMCommunicate request_size=4 [08:07:50]MH_SAM_APDU [08:07:50]CAPDU: 80 11 00 00 [08:07:50]Write to MH i2c: E2 08 00 D9 76 80 11 00 00 00 00 00 00 C9 [08:07:50]Write i2c OK [08:07:50]MH_I2C_Read... [08:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:50]Read from MH i2c: E2 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 17 00 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 17 00 D9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 17 [08:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:07:50]wFMCommunicate OK [08:07:50]requested_item fd.num is exist - process it [08:07:50]SAM_PROTO_GetFieldsCounters [08:07:50]wFMCommunicate request_size=4 [08:07:50]MH_SAM_APDU [08:07:50]CAPDU: 80 13 00 00 [08:07:50]Write to MH i2c: E2 08 00 DA 76 80 13 00 00 00 00 00 00 CC [08:07:50]Write i2c OK [08:07:50]MH_I2C_Read... [08:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:50]Read from MH i2c: E2 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 62 00 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 62 00 DA 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 78 00 00 0E 04 04 00 74 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 95 [08:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 78 00 00 0E 04 04 00 74 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 [08:07:50]wFMCommunicate OK [08:07:50]SAM_PROTO_GetFieldsCounters done [08:07:50]requested_item shift.num is exist - process it [08:07:50]requested_item shift.opened is exist - process it [08:07:50]req_shift_opened [08:07:50]FM_GetShiftState [08:07:50]SAM_PROTO_GetShiftState [08:07:50]wFMCommunicate request_size=4 [08:07:50]MH_SAM_APDU [08:07:50]CAPDU: 80 13 01 00 [08:07:50]Write to MH i2c: E2 08 00 DB 76 80 13 01 00 00 00 00 00 CE [08:07:50]Write i2c OK [08:07:50]MH_I2C_Read... [08:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:50]Read from MH i2c: E2 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 0E 00 [08:07:50]MH_I2C_Read... [08:07:50]Read from MH i2c: E2 0E 00 DB 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A8 [08:07:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:07:50]wFMCommunicate OK [08:07:50]SAM_PROTO_GetShiftState done [08:07:50]FM_GetShiftState done [08:07:50]req_shift_opened done [08:07:50]requested_item shift.open_date is exist - process it [08:07:50]req_shift_open_date [08:07:50]req_shift_open_date done [08:07:50]produce_requested_data done [08:07:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30801,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:07:50]process_action_free close_receipt [08:07:50]json_value_free [08:07:50]json_value_free done [08:07:50]process_json_proto returns [08:07:50]Send response to host [08:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30801,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:07:50]free response buf [08:07:50]execute_script done [08:07:50]execute_script returns [08:07:50]free content buf [08:07:50]Sock 7.Close socket [08:07:50]Sock 7.Thread stoped [08:08:35]accept exits with 11 [08:08:35]New connection [08:08:35]New thread 3067489636 created [08:08:35]Thread 3067346276 joined [08:08:35]Waiting for new connection... [08:08:35] Sock 11.Parse request [08:08:35]Sock 11.Check first char [08:08:35]Sock 11.First char is OK [08:08:35]request: POST /json_proto HTTP/1.0 [08:08:35]Method: POST [08:08:35]URL: /json_proto [08:08:35]Method is POST - this is cgi request [08:08:35]url: /json_proto [08:08:35]query_string will be loaded in cgi processing [08:08:35]execute_cgi json_proto POST (null) [08:08:35]execute_cgi path=json_proto method=POST [08:08:35]POST find Content-Length [08:08:35]Host: 172.17.51.3:8080 [08:08:35]Content-Length: 677 [08:08:35]Content-Type: application/json [08:08:35] [08:08:35]POST finish read [08:08:35]Found Content-Length = 677 [08:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:35]execute_script... [08:08: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)343220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:35]POST & json_proto [08:08:35]process_json_proto [08:08:35]json parsed OK: [08:08:35]protocol is kg_v1.0 [08:08:35]action value=close_receipt [08:08:35]process_action close_receipt [08:08:35]cmd_close_receipt [08:08:35]MH_GetDate [08:08:35]Write to MH i2c: F0 00 00 DC 76 41 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 09 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 09 00 DC 76 00 8C 5D 17 67 04 C1 95 66 71 [08:08:35]GetLastDocTimeStamp 1729584476 [08:08:35]current date 1729584524 [08:08:35]FM_GetShiftState [08:08:35]SAM_PROTO_GetShiftState [08:08:35]wFMCommunicate request_size=4 [08:08:35]MH_SAM_APDU [08:08:35]CAPDU: 80 13 01 00 [08:08:35]Write to MH i2c: E2 08 00 DD 76 80 13 01 00 00 00 00 00 D0 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:35]Read from MH i2c: E2 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 DD 76 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AA [08:08:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:08:35]wFMCommunicate OK [08:08:35]SAM_PROTO_GetShiftState done [08:08:35]FM_GetShiftState done [08:08:35]opened in 1729557342 [08:08:35]opened+sec_in_day 1729643742 [08:08:35]quantity*price = 30038 [08:08:35]sum+1 = 30039 [08:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 35 22.10.2024 08:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30802 ФПД: 17396313793569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080844&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30802&fm=17396313793569&tin=02508201610067®Number=0000000000186857&sum=30000 [08:08:36]StoreToDocumentArchive [08:08:36]shift 116 fd 30802 [08:08:36]save to /storage/0116/doc_00030802 [08:08:36]save last doc name /storage/0116/doc_00030802 to /storage/kkm_last_doc_name [08:08:36]save OK [08:08:36]Clear old archive folders... [08:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:36]tlvbuf is 01E1C8A0 [08:08:36]SAM_PROTO_ClearQueue [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 09 00 00 [08:08:36]Write to MH i2c: E2 08 00 EA 76 80 09 00 00 00 00 00 00 D2 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 EA 76 00 90 00 D4 [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]SAM_PROTO_ClearQueue done [08:08:36]KKMCreateOFDPacket [08:08:36]OFDProtocolAddRootSTLVToBuf [08:08:36]FM_MakeSignedData [08:08:36]FM_MakeSignedData [08:08:36]SAM_PROTO_SignData [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 01 02 [08:08:36]Write to MH i2c: E2 08 00 EB 76 80 0D 01 02 00 00 00 00 DA [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 EB 76 00 90 00 D5 [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=255 [08:08:36]MH_SAM_APDU [08:08: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 78 00 00 35 04 06 00 0F [08:08:36]Write to MH i2c: E2 02 01 EC 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 78 00 00 35 04 06 00 0F 00 00 36 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 EC 76 00 90 00 D6 [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=10 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 02 02 05 D2 65 1A A4 21 [08:08:36]Write to MH i2c: E2 0D 00 ED 76 80 0D 02 02 05 00 D2 65 1A A4 21 00 00 FD [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 ED 76 00 90 00 D7 [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 03 02 [08:08:36]Write to MH i2c: E2 08 00 EE 76 80 0D 03 02 00 00 00 00 DF [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0B 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0B 00 EE 76 00 1C E7 DE 55 40 99 E8 86 90 00 5D [08:08:36]RAPDU: 1C E7 DE 55 40 99 E8 86 90 00 [08:08:36]wFMCommunicate OK [08:08:36]SAM_PROTO_SignData done [08:08:36]FM_MakeSignedData done [08:08:36]CreateOFDProtocolMessage [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 11 00 00 [08:08:36]Write to MH i2c: E2 08 00 EF 76 80 11 00 00 00 00 00 00 DF [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 17 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 17 00 EF 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [08:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:08:36]wFMCommunicate OK [08:08:36]CreateOFDProtocolMessage done [08:08:36]OFDSenderStorePacket 30802 [08:08:36]StoreOFDPacket docnum=30802 [08:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD 9B 07 01 DA 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 78 00 00 35 04 06 00 0F D2 65 1A A4 21 1C E7 DE 55 40 99 E8 86 [08:08:36]CheckFolder [08:08:36]dirname=/storage/ofd_packets [08:08:36]CheckFolder done [08:08:36]ProducePacketName [08:08:36]name=ofd_packets/00030802 [08:08:36]NVStorageSaveData ofd_packets/00030802 [08:08:36]File name is /storage/ofd_packets/00030802 [08:08:36]Write 301 bytes [08:08:36]NVStorageSaveData done [08:08:36]OFDSenderStorePacket done [08:08:36]KKMCreateOFDPacket done [08:08:36]NVStorageSaveData kkm_last_timestamp [08:08:36]File name is /storage/kkm_last_timestamp [08:08:36]Write 4 bytes [08:08:36]NVStorageSaveData done [08:08:36]ExternCall_PrintAddStr [08:08:36]wPrintStart [08:08:36]Write to MH i2c: 01 00 00 F0 76 66 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 07 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 07 00 F0 76 00 00 00 00 00 FF 0F 7B [08:08:36]RasterBufferAndPrint [08:08:36]line Счет N : (1)343220 [08:08:36]line ИНН: 02508201610067 [08:08:36]line Контрольно-Кассовый Чек [08:08:36]line ПРОДАЖА [08:08:36]line ТРК (МРК, ГНК) : 53 [08:08:36]line Товар: 2710124130 [08:08:36]line Аи-92-К-2 [08:08:36]line 4.490 * 66.90 [08:08:36]line = 300.38 [08:08:36]line НДС 12% НСП 1% [08:08:36]line > о реализуемом товаре [08:08:36]line ОКРУГЛЕНИЕ: -0.38 [08:08:36]line ИТОГО: 300.00 [08:08:36]line Внесено: 300.00 [08:08:36]line СДАЧА: 0.00 [08:08:36]line НСП 1% : 2.66 [08:08:36]line НДС 12% : 31.90 [08:08:36]line Наличными: 300.00 [08:08:36]line Безнал.: 0.00 [08:08:36]line Место: АЗС № 78 "Партнер Нефть" [08:08:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:08:36]line СНО: Общий режим [08:08:36]line Чек 35 22.10.2024 08:08 [08:08:36]line Смена: 116 ФФД: 1.0 [08:08:36]line ЗНМ: 0300000137 [08:08:36]line РНМ: 0000000000186857 [08:08:36]line Версия ККМ: v1.0 [08:08:37]line ФМ: 0000000002094219 [08:08:37]line ФД: 30802 [08:08:37]line ФПД: 17396313793569 [08:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080844&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30802&fm=17396313793569&tin=02508201610067®Number=0000000000186857&sum=30000 [08:08:37]written 0, free lines is 4095 [08:08:37]Write to MH i2c: 01 00 00 1B 77 92 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 1B 77 00 00 00 00 00 E8 0C 8D [08:08:37]RasterBufferAndPrint [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]written 0, free lines is 3310 [08:08:37]MH_Cut [08:08:37]Write to MH i2c: D1 01 00 22 77 01 6B [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 01 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 01 00 22 77 00 6A [08:08:37]Write to MH i2c: 01 00 00 23 77 9A [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:38]*** Cut start [08:08:38]*** Partial cut [08:08:38]*** CUTSNS_PIN = 1 [08:08:38]*** CUTSNS_PIN = 0 [08:08:38]*** Brake cut motor [08:08:38]Read from MH i2c: 01 [08:08:38]MH_I2C_Read... [08:08:38]*** Stop cut motor [08:08:38]*** Cut end [08:08:38]Read from MH i2c: 01 07 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: 01 07 00 23 77 00 00 00 00 00 FF 0F AF [08:08:38]process_action close_receipt done [08:08:38]requested_data is exist [08:08:38]produce_requested_data [08:08:38]requested_item fm.sn is exist - process it [08:08:38]wFMCommunicate request_size=4 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 11 00 00 [08:08:38]Write to MH i2c: E2 08 00 24 77 80 11 00 00 00 00 00 00 15 [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:38]Read from MH i2c: E2 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 17 00 [08:08:38]MH_I2C_Read... [08:08:38]Read from MH i2c: E2 17 00 24 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [08:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:08:38]wFMCommunicate OK [08:08:38]requested_item fd.num is exist - process it [08:08:38]SAM_PROTO_GetFieldsCounters [08:08:38]wFMCommunicate request_size=4 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 13 00 00 [08:08:38]Write to MH i2c: E2 08 00 25 77 80 13 00 00 00 00 00 00 18 [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 62 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 62 00 25 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 78 00 00 0E 04 04 00 74 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 E5 [08:08:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 78 00 00 0E 04 04 00 74 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 [08:08:39]wFMCommunicate OK [08:08:39]SAM_PROTO_GetFieldsCounters done [08:08:39]requested_item shift.num is exist - process it [08:08:39]requested_item shift.opened is exist - process it [08:08:39]req_shift_opened [08:08:39]FM_GetShiftState [08:08:39]SAM_PROTO_GetShiftState [08:08:39]wFMCommunicate request_size=4 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 13 01 00 [08:08:39]Write to MH i2c: E2 08 00 26 77 80 13 01 00 00 00 00 00 1A [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 0E 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 0E 00 26 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F4 [08:08:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:08:39]wFMCommunicate OK [08:08:39]SAM_PROTO_GetShiftState done [08:08:39]FM_GetShiftState done [08:08:39]req_shift_opened done [08:08:39]requested_item shift.open_date is exist - process it [08:08:39]req_shift_open_date [08:08:39]req_shift_open_date done [08:08:39]produce_requested_data done [08:08:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30802,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:08:39]process_action_free close_receipt [08:08:39]json_value_free [08:08:39]json_value_free done [08:08:39]process_json_proto returns [08:08:39]Send response to host [08:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30802,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:08:39]free response buf [08:08:39]execute_script done [08:08:39]execute_script returns [08:08:39]free content buf [08:08:39]Sock 11.Close socket [08:08:39]Sock 11.Thread stoped [08:08:50]ConnectInit Can't connect to host [08:08:50]CommunicateWithHost connect error [08:08:50]CommunicateWithHost err = -1 [08:08:50]OFD Sender: Server communicate error [08:08:50]OFD Sender: Processing packet 30799 [packets to send 13, broken 9] [08:08:50]ProducePacketName [08:08:50]name=ofd_packets/00030799 [08:08:50]OFD Sender: To server: pG, [08:08:50]CommunicateWithHost lk.salyk.kg:30040 [08:08:50]ConnectInit lk.salyk.kg [08:08:55]ConnectInit Can't take IP for lk.salyk.kg [08:08:55]CommunicateWithHost connect error [08:08:55]CommunicateWithHost err = -1 [08:08:55]OFD Sender: Server communicate error [08:09:00]OFD Sender: Processing packet 30799 [packets to send 13, broken 9] [08:09:00]ProducePacketName [08:09:00]name=ofd_packets/00030799 [08:09:00]OFD Sender: To server: pG, [08:09:00]CommunicateWithHost lk.salyk.kg:30040 [08:09:00]ConnectInit lk.salyk.kg [08:09:05]ConnectInit Can't take IP for lk.salyk.kg [08:09:05]CommunicateWithHost connect error [08:09:05]CommunicateWithHost err = -1 [08:09:05]OFD Sender: Server communicate error [08:09:10]OFD Sender: Processing packet 30799 [packets to send 13, broken 9] [08:09:10]ProducePacketName [08:09:10]name=ofd_packets/00030799 [08:09:10]OFD Sender: To server: pG, [08:09:10]CommunicateWithHost lk.salyk.kg:30040 [08:09:10]ConnectInit lk.salyk.kg [08:09:15]ConnectInit Can't take IP for lk.salyk.kg [08:09:15]CommunicateWithHost connect error [08:09:15]CommunicateWithHost err = -1 [08:09:15]OFD Sender: Server communicate error [08:09:20]OFD Sender: Processing packet 30799 [packets to send 13, broken 9] [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00030799 [08:09:20]OFD Sender: To server: pG, [08:09:20]CommunicateWithHost lk.salyk.kg:30040 [08:09:20]ConnectInit lk.salyk.kg [08:09:25]Connected sock=10 [08:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 99 E8 04 01 61 71 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 32 FF 03 08 00 03 F2 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 14 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 78 00 00 35 04 06 00 DF BE AF A4 44 CD 3B 1B 1E E8 3F A1 80 10 [08:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0C A0 47 00 0D 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 78 00 00 F4 03 04 00 3A 08 17 67 B6 04 01 00 00 81 86 6F EF 7D 5A 1F B9 [08:09:25]CommunicateWithHost err = 0 [08:09:25]CheckOFDResponse [08:09:25]1017 (14) - 77093643461234 [08:09:25]1041 (16) - 0000000002094219 [08:09:25]1040 (4) - 30799 [08:09:25]1012 (4) - 22.10.2024 02:04 [08:09:25]1206 (1) - 0 [08:09:25]OFD Sender: Remove packet 30799 [08:09:25]ProducePacketName [08:09:25]name=ofd_packets/00030799 [08:09:25]NVStorageDeleteData [08:09:25]OFD Sender: Processing packet 30800 [packets to send 12, broken 9] [08:09:25]ProducePacketName [08:09:25]name=ofd_packets/00030800 [08:09:25]OFD Sender: To server: pG, [08:09:25]CommunicateWithHost lk.salyk.kg:30040 [08:09:25]ConnectInit lk.salyk.kg [08:09:25]Connected sock=10 [08:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 D9 07 01 D8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 78 00 00 35 04 06 00 29 7E 30 50 4B F6 63 55 2A D4 41 37 2A F0 [08:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 73 0B 47 00 99 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 78 00 00 F4 03 04 00 3B 08 17 67 B6 04 01 00 00 1C 14 5E 53 FD D9 39 73 [08:09:26]CommunicateWithHost err = 0 [08:09:26]CheckOFDResponse [08:09:26]1017 (14) - 77093643461234 [08:09:26]1041 (16) - 0000000002094219 [08:09:26]1040 (4) - 30800 [08:09:26]1012 (4) - 22.10.2024 02:04 [08:09:26]1206 (1) - 0 [08:09:26]OFD Sender: Remove packet 30800 [08:09:26]ProducePacketName [08:09:26]name=ofd_packets/00030800 [08:09:26]NVStorageDeleteData [08:09:26]OFD Sender: Processing packet 30801 [packets to send 11, broken 9] [08:09:26]ProducePacketName [08:09:26]name=ofd_packets/00030801 [08:09:26]OFD Sender: To server: pG, [08:09:26]CommunicateWithHost lk.salyk.kg:30040 [08:09:26]ConnectInit lk.salyk.kg [08:09:26]Connected sock=10 [08:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 35 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 22 00 00 00 F4 03 04 00 5C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 78 00 00 35 04 06 00 05 96 3F 18 FA 44 2C D5 B1 CF 33 D9 CC D6 [08:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A8 07 47 00 97 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 78 00 00 F4 03 04 00 3C 08 17 67 B6 04 01 00 00 79 A8 09 E5 49 CD D6 91 [08:09:26]CommunicateWithHost err = 0 [08:09:26]CheckOFDResponse [08:09:26]1017 (14) - 77093643461234 [08:09:26]1041 (16) - 0000000002094219 [08:09:26]1040 (4) - 30801 [08:09:26]1012 (4) - 22.10.2024 02:04 [08:09:26]1206 (1) - 0 [08:09:26]OFD Sender: Remove packet 30801 [08:09:26]ProducePacketName [08:09:26]name=ofd_packets/00030801 [08:09:26]NVStorageDeleteData [08:09:27]OFD Sender: Processing packet 30802 [packets to send 10, broken 9] [08:09:27]ProducePacketName [08:09:27]name=ofd_packets/00030802 [08:09:27]OFD Sender: To server: pG, [08:09:27]CommunicateWithHost lk.salyk.kg:30040 [08:09:27]ConnectInit lk.salyk.kg [08:09:30]Connected sock=10 [08:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD 9B 07 01 DA 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C 5D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 78 00 00 35 04 06 00 0F D2 65 1A A4 21 1C E7 DE 55 40 99 E8 86 [08:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4E DB 47 00 A1 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 32 30 39 34 32 31 39 10 04 04 00 52 78 00 00 F4 03 04 00 40 08 17 67 B6 04 01 00 00 8E C5 C7 8A 0C B2 A7 9F [08:09:30]CommunicateWithHost err = 0 [08:09:30]CheckOFDResponse [08:09:30]1017 (14) - 77093643461234 [08:09:30]1041 (16) - 0000000002094219 [08:09:30]1040 (4) - 30802 [08:09:30]1012 (4) - 22.10.2024 02:04 [08:09:30]1206 (1) - 0 [08:09:30]OFD Sender: Remove packet 30802 [08:09:30]ProducePacketName [08:09:30]name=ofd_packets/00030802 [08:09:30]NVStorageDeleteData [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:40]accept exits with 7 [08:10:40]New connection [08:10:40]New thread 3067346276 created [08:10:40]Thread 3067489636 joined [08:10:40]Waiting for new connection... [08:10:40] Sock 7.Parse request [08:10:40]Sock 7.Check first char [08:10:40]Sock 7.First char is OK [08:10:40]request: POST /json_proto HTTP/1.0 [08:10:40]Method: POST [08:10:40]URL: /json_proto [08:10:40]Method is POST - this is cgi request [08:10:40]url: /json_proto [08:10:40]query_string will be loaded in cgi processing [08:10:40]execute_cgi json_proto POST (null) [08:10:40]execute_cgi path=json_proto method=POST [08:10:40]POST find Content-Length [08:10:40]Host: 172.17.51.3:8080 [08:10:40]Content-Length: 674 [08:10:40]Content-Type: application/json [08:10:40] [08:10:40]POST finish read [08:10:40]Found Content-Length = 674 [08:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:10:40]execute_script... [08:10:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:10:40]POST & json_proto [08:10:40]process_json_proto [08:10:40]json parsed OK: [08:10:40]protocol is kg_v1.0 [08:10:40]action value=close_receipt [08:10:40]process_action close_receipt [08:10:40]cmd_close_receipt [08:10:40]MH_GetDate [08:10:40]Write to MH i2c: F0 00 00 27 77 8D [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 09 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 09 00 27 77 00 09 5E 17 67 04 C1 95 66 3B [08:10:40]GetLastDocTimeStamp 1729584524 [08:10:40]current date 1729584649 [08:10:40]FM_GetShiftState [08:10:40]SAM_PROTO_GetShiftState [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 13 01 00 [08:10:40]Write to MH i2c: E2 08 00 28 77 80 13 01 00 00 00 00 00 1C [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 28 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F6 [08:10:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_GetShiftState done [08:10:40]FM_GetShiftState done [08:10:40]opened in 1729557342 [08:10:40]opened+sec_in_day 1729643742 [08:10:40]quantity*price = 60045 [08:10:40]sum+1 = 60047 [08:10:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 36 22.10.2024 08:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30803 ФПД: 80008055445342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30803&fm=80008055445342&tin=02508201610067®Number=0000000000186857&sum=60000 [08:10:41]StoreToDocumentArchive [08:10:41]shift 116 fd 30803 [08:10:41]save to /storage/0116/doc_00030803 [08:10:41]save last doc name /storage/0116/doc_00030803 to /storage/kkm_last_doc_name [08:10:41]save OK [08:10:41]Clear old archive folders... [08:10:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:10:41]tlvbuf is B6FDB680 [08:10:41]SAM_PROTO_ClearQueue [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 09 00 00 [08:10:41]Write to MH i2c: E2 08 00 35 77 80 09 00 00 00 00 00 00 1E [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 35 77 00 90 00 20 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_ClearQueue done [08:10:41]KKMCreateOFDPacket [08:10:41]OFDProtocolAddRootSTLVToBuf [08:10:41]FM_MakeSignedData [08:10:41]FM_MakeSignedData [08:10:41]SAM_PROTO_SignData [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 01 02 [08:10:41]Write to MH i2c: E2 08 00 36 77 80 0D 01 02 00 00 00 00 26 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 36 77 00 90 00 21 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=255 [08:10:41]MH_SAM_APDU [08:10: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 09 5E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 78 00 00 35 04 06 00 48 C4 53 B9 [08:10:41]Write to MH i2c: E2 02 01 37 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 09 5E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 78 00 00 35 04 06 00 48 C4 53 B9 00 00 CE [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 37 77 00 90 00 22 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=7 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 02 02 02 57 5E [08:10:41]Write to MH i2c: E2 0A 00 38 77 80 0D 02 02 02 00 57 5E 00 00 E2 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 38 77 00 90 00 23 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 03 02 [08:10:41]Write to MH i2c: E2 08 00 39 77 80 0D 03 02 00 00 00 00 2B [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 39 77 00 C8 A8 C9 F1 61 67 18 F0 90 00 26 [08:10:41]RAPDU: C8 A8 C9 F1 61 67 18 F0 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_SignData done [08:10:41]FM_MakeSignedData done [08:10:41]CreateOFDProtocolMessage [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 11 00 00 [08:10:41]Write to MH i2c: E2 08 00 3A 77 80 11 00 00 00 00 00 00 2B [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 3A 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 79 [08:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:10:42]wFMCommunicate OK [08:10:42]CreateOFDProtocolMessage done [08:10:42]OFDSenderStorePacket 30803 [08:10:42]StoreOFDPacket docnum=30803 [08:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F3 DE 04 01 EF 62 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 09 5E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 78 00 00 35 04 06 00 48 C4 53 B9 57 5E C8 A8 C9 F1 61 67 18 F0 [08:10:42]CheckFolder [08:10:42]dirname=/storage/ofd_packets [08:10:42]CheckFolder done [08:10:42]ProducePacketName [08:10:42]name=ofd_packets/00030803 [08:10:42]NVStorageSaveData ofd_packets/00030803 [08:10:42]File name is /storage/ofd_packets/00030803 [08:10:42]Write 298 bytes [08:10:42]NVStorageSaveData done [08:10:42]OFDSenderStorePacket done [08:10:42]KKMCreateOFDPacket done [08:10:42]NVStorageSaveData kkm_last_timestamp [08:10:42]File name is /storage/kkm_last_timestamp [08:10:42]Write 4 bytes [08:10:42]NVStorageSaveData done [08:10:42]ExternCall_PrintAddStr [08:10:42]wPrintStart [08:10:42]Write to MH i2c: 01 00 00 3B 77 B2 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 3B 77 00 00 00 00 00 FF 0F C7 [08:10:42]RasterBufferAndPrint [08:10:42]line Счет N : (1)343221 [08:10:42]line ИНН: 02508201610067 [08:10:42]line Контрольно-Кассовый Чек [08:10:42]line ПРОДАЖА [08:10:42]line ТРК (МРК, ГНК) : 64 [08:10:42]line Товар: 2710194210 [08:10:42]line ДТ-К-2 [08:10:42]line 7.880 * 76.20 [08:10:42]line = 600.46 [08:10:42]line НДС 12% НСП 1% [08:10:42]line > о реализуемом товаре [08:10:42]line ОКРУГЛЕНИЕ: -0.46 [08:10:42]line ИТОГО: 600.00 [08:10:42]line Внесено: 600.00 [08:10:42]line СДАЧА: 0.00 [08:10:42]line НСП 1% : 5.31 [08:10:42]line НДС 12% : 63.77 [08:10:42]line Наличными: 600.00 [08:10:42]line Безнал.: 0.00 [08:10:42]line Место: АЗС № 78 "Партнер Нефть" [08:10:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:10:42]line СНО: Общий режим [08:10:42]line Чек 36 22.10.2024 08:10 [08:10:42]line Смена: 116 ФФД: 1.0 [08:10:42]line ЗНМ: 0300000137 [08:10:42]line РНМ: 0000000000186857 [08:10:42]line Версия ККМ: v1.0 [08:10:42]line ФМ: 0000000002094219 [08:10:42]line ФД: 30803 [08:10:42]line ФПД: 80008055445342 [08:10:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30803&fm=80008055445342&tin=02508201610067®Number=0000000000186857&sum=60000 [08:10:42]OFD Sender: Processing packet 30803 [packets to send 10, broken 9] [08:10:42]ProducePacketName [08:10:42]name=ofd_packets/00030803 [08:10:42]OFD Sender: To server: pG, [08:10:42]CommunicateWithHost lk.salyk.kg:30040 [08:10:42]ConnectInit lk.salyk.kg [08:10:42]written 0, free lines is 4095 [08:10:42]Connected sock=10 [08:10:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F3 DE 04 01 EF 62 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 09 5E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 78 00 00 35 04 06 00 48 C4 53 B9 57 5E C8 A8 C9 F1 61 67 18 F0 [08:10:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2B 3A 47 00 5B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 78 00 00 F4 03 04 00 87 08 17 67 B6 04 01 00 00 F3 C5 F9 41 07 CA C5 C8 [08:10:42]CommunicateWithHost err = 0 [08:10:42]CheckOFDResponse [08:10:42]1017 (14) - 77093643461234 [08:10:42]1041 (16) - 0000000002094219 [08:10:42]1040 (4) - 30803 [08:10:42]1012 (4) - 22.10.2024 02:05 [08:10:42]1206 (1) - 0 [08:10:42]OFD Sender: Remove packet 30803 [08:10:42]ProducePacketName [08:10:42]name=ofd_packets/00030803 [08:10:42]NVStorageDeleteData [08:10:42]Write to MH i2c: 01 00 00 66 77 DD [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 66 77 00 00 00 00 00 E5 0C D5 [08:10:42]RasterBufferAndPrint [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]written 0, free lines is 3307 [08:10:42]MH_Cut [08:10:42]Write to MH i2c: D1 01 00 6D 77 01 B6 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 01 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 01 00 6D 77 00 B5 [08:10:42]Write to MH i2c: 01 00 00 6E 77 E5 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:43]OFD Sender: No OFD packet to send [08:10:43]*** Cut start [08:10:43]*** Partial cut [08:10:43]*** CUTSNS_PIN = 1 [08:10:43]*** CUTSNS_PIN = 0 [08:10:43]*** Brake cut motor [08:10:44]Read from MH i2c: 01 [08:10:44]MH_I2C_Read... [08:10:44]*** Stop cut motor [08:10:44]*** Cut end [08:10:44]Read from MH i2c: 01 07 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: 01 07 00 6E 77 00 00 00 00 00 FF 0F FA [08:10:44]process_action close_receipt done [08:10:44]requested_data is exist [08:10:44]produce_requested_data [08:10:44]requested_item fm.sn is exist - process it [08:10:44]wFMCommunicate request_size=4 [08:10:44]MH_SAM_APDU [08:10:44]CAPDU: 80 11 00 00 [08:10:44]Write to MH i2c: E2 08 00 6F 77 80 11 00 00 00 00 00 00 60 [08:10:44]Write i2c OK [08:10:44]MH_I2C_Read... [08:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:44]Read from MH i2c: E2 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 17 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 17 00 6F 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [08:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:10:44]wFMCommunicate OK [08:10:44]requested_item fd.num is exist - process it [08:10:44]SAM_PROTO_GetFieldsCounters [08:10:44]wFMCommunicate request_size=4 [08:10:44]MH_SAM_APDU [08:10:44]CAPDU: 80 13 00 00 [08:10:44]Write to MH i2c: E2 08 00 70 77 80 13 00 00 00 00 00 00 63 [08:10:44]Write i2c OK [08:10:44]MH_I2C_Read... [08:10:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:44]Read from MH i2c: E2 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 62 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 62 00 70 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 78 00 00 0E 04 04 00 74 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 34 [08:10:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 78 00 00 0E 04 04 00 74 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 [08:10:44]wFMCommunicate OK [08:10:44]SAM_PROTO_GetFieldsCounters done [08:10:44]requested_item shift.num is exist - process it [08:10:44]requested_item shift.opened is exist - process it [08:10:44]req_shift_opened [08:10:44]FM_GetShiftState [08:10:44]SAM_PROTO_GetShiftState [08:10:44]wFMCommunicate request_size=4 [08:10:44]MH_SAM_APDU [08:10:44]CAPDU: 80 13 01 00 [08:10:44]Write to MH i2c: E2 08 00 71 77 80 13 01 00 00 00 00 00 65 [08:10:44]Write i2c OK [08:10:44]MH_I2C_Read... [08:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:44]Read from MH i2c: E2 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 0E 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 0E 00 71 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3F [08:10:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:10:44]wFMCommunicate OK [08:10:44]SAM_PROTO_GetShiftState done [08:10:44]FM_GetShiftState done [08:10:44]req_shift_opened done [08:10:44]requested_item shift.open_date is exist - process it [08:10:44]req_shift_open_date [08:10:44]req_shift_open_date done [08:10:44]produce_requested_data done [08:10:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30803,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:10:44]process_action_free close_receipt [08:10:44]json_value_free [08:10:44]json_value_free done [08:10:44]process_json_proto returns [08:10:44]Send response to host [08:10:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30803,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:10:44]free response buf [08:10:44]execute_script done [08:10:44]execute_script returns [08:10:44]free content buf [08:10:44]Sock 7.Close socket [08:10:44]Sock 7.Thread stoped [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:34]accept exits with 9 [08:16:34]New connection [08:16:34]New thread 3067489636 created [08:16:34]Thread 3067346276 joined [08:16:34]Waiting for new connection... [08:16:34] Sock 9.Parse request [08:16:34]Sock 9.Check first char [08:16:34]Sock 9.First char is OK [08:16:34]request: POST /json_proto HTTP/1.0 [08:16:34]Method: POST [08:16:34]URL: /json_proto [08:16:34]Method is POST - this is cgi request [08:16:34]url: /json_proto [08:16:34]query_string will be loaded in cgi processing [08:16:34]execute_cgi json_proto POST (null) [08:16:34]execute_cgi path=json_proto method=POST [08:16:34]POST find Content-Length [08:16:34]Host: 172.17.51.3:8080 [08:16:34]Content-Length: 840 [08:16:34]Content-Type: application/json [08:16:34] [08:16:34]POST finish read [08:16:34]Found Content-Length = 840 [08:16:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:34]execute_script... [08:16:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:34]POST & json_proto [08:16:34]process_json_proto [08:16:34]json parsed OK: [08:16:34]protocol is kg_v1.0 [08:16:34]action value=close_receipt [08:16:34]process_action close_receipt [08:16:34]cmd_close_receipt [08:16:34]MH_GetDate [08:16:34]Write to MH i2c: F0 00 00 72 77 D8 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: F0 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: F0 09 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: F0 09 00 72 77 00 6B 5F 17 67 04 C1 95 66 E9 [08:16:34]GetLastDocTimeStamp 1729584649 [08:16:34]current date 1729585003 [08:16:34]FM_GetShiftState [08:16:34]SAM_PROTO_GetShiftState [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 13 01 00 [08:16:34]Write to MH i2c: E2 08 00 73 77 80 13 01 00 00 00 00 00 67 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0E 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0E 00 73 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 41 [08:16:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:16:34]wFMCommunicate OK [08:16:34]SAM_PROTO_GetShiftState done [08:16:34]FM_GetShiftState done [08:16:34]opened in 1729557342 [08:16:34]opened+sec_in_day 1729643742 [08:16:34]quantity*price = 50041 [08:16:34]sum+1 = 50042 [08:16:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 37 22.10.2024 08:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30804 ФПД: 147300281375267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081643&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30804&fm=147300281375267&tin=02508201610067®Number=0000000000186857&sum=50041 [08:16:35]StoreToDocumentArchive [08:16:35]shift 116 fd 30804 [08:16:35]save to /storage/0116/doc_00030804 [08:16:35]save last doc name /storage/0116/doc_00030804 to /storage/kkm_last_doc_name [08:16:35]save OK [08:16:35]Clear old archive folders... [08:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:35]tlvbuf is 01ED8C70 [08:16:35]SAM_PROTO_ClearQueue [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 09 00 00 [08:16:35]Write to MH i2c: E2 08 00 80 77 80 09 00 00 00 00 00 00 69 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 80 77 00 90 00 6B [08:16:35]RAPDU: 90 00 [08:16:35]wFMCommunicate OK [08:16:35]SAM_PROTO_ClearQueue done [08:16:35]KKMCreateOFDPacket [08:16:35]OFDProtocolAddRootSTLVToBuf [08:16:35]FM_MakeSignedData [08:16:35]FM_MakeSignedData [08:16:35]SAM_PROTO_SignData [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 0D 01 02 [08:16:35]Write to MH i2c: E2 08 00 81 77 80 0D 01 02 00 00 00 00 71 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 81 77 00 90 00 6C [08:16:35]RAPDU: 90 00 [08:16:35]wFMCommunicate OK [08:16:35]wFMCommunicate request_size=255 [08:16:35]MH_SAM_APDU [08:16: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B 5F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 78 00 00 35 04 06 00 85 [08:16:35]Write to MH i2c: E2 02 01 82 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B 5F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 78 00 00 35 04 06 00 85 00 00 86 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 03 00 82 77 00 90 00 6D [08:16:35]RAPDU: 90 00 [08:16:35]wFMCommunicate OK [08:16:35]wFMCommunicate request_size=10 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 0D 02 02 05 F8 04 F2 5A 23 [08:16:35]Write to MH i2c: E2 0D 00 83 77 80 0D 02 02 05 00 F8 04 F2 5A 23 00 00 E9 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 03 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 03 00 83 77 00 90 00 6E [08:16:36]RAPDU: 90 00 [08:16:36]wFMCommunicate OK [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 0D 03 02 [08:16:36]Write to MH i2c: E2 08 00 84 77 80 0D 03 02 00 00 00 00 76 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 0B 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 0B 00 84 77 00 27 D3 FA F2 0D 6B E0 7C 90 00 31 [08:16:36]RAPDU: 27 D3 FA F2 0D 6B E0 7C 90 00 [08:16:36]wFMCommunicate OK [08:16:36]SAM_PROTO_SignData done [08:16:36]FM_MakeSignedData done [08:16:36]CreateOFDProtocolMessage [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 11 00 00 [08:16:36]Write to MH i2c: E2 08 00 85 77 80 11 00 00 00 00 00 00 76 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 17 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 17 00 85 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [08:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:16:36]wFMCommunicate OK [08:16:36]CreateOFDProtocolMessage done [08:16:36]OFDSenderStorePacket 30804 [08:16:36]StoreOFDPacket docnum=30804 [08:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F7 E0 07 01 64 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B 5F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 78 00 00 35 04 06 00 85 F8 04 F2 5A 23 27 D3 FA F2 0D 6B E0 7C [08:16:36]CheckFolder [08:16:36]dirname=/storage/ofd_packets [08:16:36]CheckFolder done [08:16:36]ProducePacketName [08:16:36]name=ofd_packets/00030804 [08:16:36]NVStorageSaveData ofd_packets/00030804 [08:16:36]File name is /storage/ofd_packets/00030804 [08:16:36]Write 301 bytes [08:16:36]NVStorageSaveData done [08:16:36]OFDSenderStorePacket done [08:16:36]KKMCreateOFDPacket done [08:16:36]NVStorageSaveData kkm_last_timestamp [08:16:36]File name is /storage/kkm_last_timestamp [08:16:36]Write 4 bytes [08:16:36]NVStorageSaveData done [08:16:36]ExternCall_PrintAddStr [08:16:36]wPrintStart [08:16:36]Write to MH i2c: 01 00 00 86 77 FD [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 86 77 00 00 00 00 00 FF 0F 12 [08:16:36]RasterBufferAndPrint [08:16:36]line Счет N : (1)343222 [08:16:36]line ИНН: 02508201610067 [08:16:36]line Контрольно-Кассовый Чек [08:16:36]line ПРОДАЖА [08:16:36]line ТРК (МРК, ГНК) : 63 [08:16:36]line Товар: 2710124130 [08:16:36]line Аи-92-К-2 [08:16:36]line 7.480 * 66.90 [08:16:36]line = 500.41 [08:16:36]line НДС 12% НСП 1% [08:16:36]line > о реализуемом товаре [08:16:36]line ИТОГО: 500.41 [08:16:36]line НСП 1% : 4.43 [08:16:36]line НДС 12% : 53.14 [08:16:36]line Наличными: 0.00 [08:16:36]line Безнал.: 500.41 [08:16:36]line Место: АЗС № 78 "Партнер Нефть" [08:16:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:16:36]line СНО: Общий режим [08:16:36]line Чек 37 22.10.2024 08:16 [08:16:36]line Смена: 116 ФФД: 1.0 [08:16:36]line ЗНМ: 0300000137 [08:16:36]line РНМ: 0000000000186857 [08:16:36]line Версия ККМ: v1.0 [08:16:36]line Платежная система: АКБ Кыргызстан [08:16:36]line ФМ: 0000000002094219 [08:16:36]line ФД: 30804 [08:16:36]line ФПД: 147300281375267 [08:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081643&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30804&fm=147300281375267&tin=02508201610067®Number=0000000000186857&sum=50041 [08:16:36]OFD Sender: Processing packet 30804 [packets to send 10, broken 9] [08:16:36]ProducePacketName [08:16:36]name=ofd_packets/00030804 [08:16:36]OFD Sender: To server: pG, [08:16:36]CommunicateWithHost lk.salyk.kg:30040 [08:16:36]ConnectInit lk.salyk.kg [08:16:36]written 0, free lines is 4095 [08:16:36]Connected sock=10 [08:16:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F7 E0 07 01 64 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B 5F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 78 00 00 35 04 06 00 85 F8 04 F2 5A 23 27 D3 FA F2 0D 6B E0 7C [08:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 93 99 47 00 8D 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 78 00 00 F4 03 04 00 E9 09 17 67 B6 04 01 00 00 39 E4 28 BF A2 F0 79 60 [08:16:36]CommunicateWithHost err = 0 [08:16:36]CheckOFDResponse [08:16:36]1017 (14) - 77093643461234 [08:16:36]1041 (16) - 0000000002094219 [08:16:36]1040 (4) - 30804 [08:16:36]1012 (4) - 22.10.2024 02:11 [08:16:36]1206 (1) - 0 [08:16:36]OFD Sender: Remove packet 30804 [08:16:36]ProducePacketName [08:16:36]name=ofd_packets/00030804 [08:16:36]NVStorageDeleteData [08:16:36]Write to MH i2c: 01 00 00 B0 77 27 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 B0 77 00 00 00 00 00 FE 0C 38 [08:16:36]RasterBufferAndPrint [08:16:36]line [08:16:36]line [08:16:36]line [08:16:36]line [08:16:36]line [08:16:36]written 0, free lines is 3334 [08:16:36]MH_Cut [08:16:36]Write to MH i2c: D1 01 00 B7 77 01 00 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: D1 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: D1 01 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: D1 01 00 B7 77 00 FF [08:16:36]Write to MH i2c: 01 00 00 B8 77 2F [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:37]OFD Sender: No OFD packet to send [08:16:37]*** Cut start [08:16:37]*** Partial cut [08:16:37]*** CUTSNS_PIN = 1 [08:16:37]*** CUTSNS_PIN = 0 [08:16:37]*** Brake cut motor [08:16:38]Read from MH i2c: 01 [08:16:38]MH_I2C_Read... [08:16:38]*** Stop cut motor [08:16:38]*** Cut end [08:16:38]Read from MH i2c: 01 07 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: 01 07 00 B8 77 00 00 00 00 00 FF 0F 44 [08:16:38]process_action close_receipt done [08:16:38]requested_data is exist [08:16:38]produce_requested_data [08:16:38]requested_item fm.sn is exist - process it [08:16:38]wFMCommunicate request_size=4 [08:16:38]MH_SAM_APDU [08:16:38]CAPDU: 80 11 00 00 [08:16:38]Write to MH i2c: E2 08 00 B9 77 80 11 00 00 00 00 00 00 AA [08:16:38]Write i2c OK [08:16:38]MH_I2C_Read... [08:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:38]Read from MH i2c: E2 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 17 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 17 00 B9 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [08:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:16:38]wFMCommunicate OK [08:16:38]requested_item fd.num is exist - process it [08:16:38]SAM_PROTO_GetFieldsCounters [08:16:38]wFMCommunicate request_size=4 [08:16:38]MH_SAM_APDU [08:16:38]CAPDU: 80 13 00 00 [08:16:38]Write to MH i2c: E2 08 00 BA 77 80 13 00 00 00 00 00 00 AD [08:16:38]Write i2c OK [08:16:38]MH_I2C_Read... [08:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:38]Read from MH i2c: E2 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 62 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 62 00 BA 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 78 00 00 0E 04 04 00 74 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 82 [08:16:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 78 00 00 0E 04 04 00 74 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 [08:16:38]wFMCommunicate OK [08:16:38]SAM_PROTO_GetFieldsCounters done [08:16:38]requested_item shift.num is exist - process it [08:16:38]requested_item shift.opened is exist - process it [08:16:38]req_shift_opened [08:16:38]FM_GetShiftState [08:16:38]SAM_PROTO_GetShiftState [08:16:38]wFMCommunicate request_size=4 [08:16:38]MH_SAM_APDU [08:16:38]CAPDU: 80 13 01 00 [08:16:38]Write to MH i2c: E2 08 00 BB 77 80 13 01 00 00 00 00 00 AF [08:16:38]Write i2c OK [08:16:38]MH_I2C_Read... [08:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:38]Read from MH i2c: E2 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 BB 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 89 [08:16:38]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:16:38]wFMCommunicate OK [08:16:38]SAM_PROTO_GetShiftState done [08:16:38]FM_GetShiftState done [08:16:38]req_shift_opened done [08:16:38]requested_item shift.open_date is exist - process it [08:16:38]req_shift_open_date [08:16:38]req_shift_open_date done [08:16:38]produce_requested_data done [08:16:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30804,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:16:38]process_action_free close_receipt [08:16:38]json_value_free [08:16:38]json_value_free done [08:16:38]process_json_proto returns [08:16:38]Send response to host [08:16:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30804,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:16:38]free response buf [08:16:38]execute_script done [08:16:38]execute_script returns [08:16:38]free content buf [08:16:38]Sock 9.Close socket [08:16:38]Sock 9.Thread stoped [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:53]recv_with_timeout no data received [08:17:57]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:26]recv_with_timeout no data received [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:15]accept exits with 7 [08:20:15]New connection [08:20:15]New thread 3067346276 created [08:20:15]Thread 3067489636 joined [08:20:15]Waiting for new connection... [08:20:15] Sock 7.Parse request [08:20:15]Sock 7.Check first char [08:20:15]Sock 7.First char is OK [08:20:15]request: POST /json_proto HTTP/1.0 [08:20:15]Method: POST [08:20:15]URL: /json_proto [08:20:15]Method is POST - this is cgi request [08:20:15]url: /json_proto [08:20:15]query_string will be loaded in cgi processing [08:20:15]execute_cgi json_proto POST (null) [08:20:15]execute_cgi path=json_proto method=POST [08:20:15]POST find Content-Length [08:20:15]Host: 172.17.51.3:8080 [08:20:15]Content-Length: 800 [08:20:15]Content-Type: application/json [08:20:15] [08:20:15]POST finish read [08:20:15]Found Content-Length = 800 [08:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:15]execute_script... [08:20: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)343223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:15]POST & json_proto [08:20:15]process_json_proto [08:20:15]json parsed OK: [08:20:15]protocol is kg_v1.0 [08:20:15]action value=close_receipt [08:20:15]process_action close_receipt [08:20:15]cmd_close_receipt [08:20:15]MH_GetDate [08:20:15]Write to MH i2c: F0 00 00 BC 77 22 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 09 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 09 00 BC 77 00 48 60 17 67 04 C1 95 66 11 [08:20:15]GetLastDocTimeStamp 1729585003 [08:20:15]current date 1729585224 [08:20:15]FM_GetShiftState [08:20:15]SAM_PROTO_GetShiftState [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 13 01 00 [08:20:15]Write to MH i2c: E2 08 00 BD 77 80 13 01 00 00 00 00 00 B1 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0E 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0E 00 BD 77 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8B [08:20:15]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:20:15]wFMCommunicate OK [08:20:15]SAM_PROTO_GetShiftState done [08:20:15]FM_GetShiftState done [08:20:15]opened in 1729557342 [08:20:15]opened+sec_in_day 1729643742 [08:20:15]quantity*price = 0 [08:20:15]sum+1 = 1 [08:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 38 22.10.2024 08:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949822 ФМ: 0000000002094219 ФД: 30805 ФПД: 129616613521953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082024&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30805&fm=129616613521953&tin=02508201610067®Number=0000000000186857&sum=0 [08:20:16]StoreToDocumentArchive [08:20:16]shift 116 fd 30805 [08:20:16]save to /storage/0116/doc_00030805 [08:20:16]save last doc name /storage/0116/doc_00030805 to /storage/kkm_last_doc_name [08:20:16]save OK [08:20:16]Clear old archive folders... [08:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:16]tlvbuf is 01F560E0 [08:20:16]SAM_PROTO_ClearQueue [08:20:16]wFMCommunicate request_size=4 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 09 00 00 [08:20:16]Write to MH i2c: E2 08 00 CA 77 80 09 00 00 00 00 00 00 B3 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 CA 77 00 90 00 B5 [08:20:16]RAPDU: 90 00 [08:20:16]wFMCommunicate OK [08:20:16]SAM_PROTO_ClearQueue done [08:20:16]KKMCreateOFDPacket [08:20:16]OFDProtocolAddRootSTLVToBuf [08:20:16]FM_MakeSignedData [08:20:16]FM_MakeSignedData [08:20:16]SAM_PROTO_SignData [08:20:16]wFMCommunicate request_size=4 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 0D 01 02 [08:20:16]Write to MH i2c: E2 08 00 CB 77 80 0D 01 02 00 00 00 00 BB [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 CB 77 00 90 00 B6 [08:20:16]RAPDU: 90 00 [08:20:16]wFMCommunicate OK [08:20:16]wFMCommunicate request_size=255 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 48 60 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 78 00 00 35 04 06 00 75 [08:20:16]Write to MH i2c: E2 02 01 CC 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 48 60 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 78 00 00 35 04 06 00 75 00 00 A5 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 CC 77 00 90 00 B7 [08:20:16]RAPDU: 90 00 [08:20:16]wFMCommunicate OK [08:20:16]wFMCommunicate request_size=10 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 0D 02 02 05 E2 B8 34 BA 21 [08:20:16]Write to MH i2c: E2 0D 00 CD 77 80 0D 02 02 05 00 E2 B8 34 BA 21 00 00 71 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 03 00 CD 77 00 90 00 B8 [08:20:16]RAPDU: 90 00 [08:20:16]wFMCommunicate OK [08:20:16]wFMCommunicate request_size=4 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 0D 03 02 [08:20:16]Write to MH i2c: E2 08 00 CE 77 80 0D 03 02 00 00 00 00 C0 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 0B 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 0B 00 CE 77 00 8E 38 37 B5 5B BA B4 33 90 00 6F [08:20:16]RAPDU: 8E 38 37 B5 5B BA B4 33 90 00 [08:20:16]wFMCommunicate OK [08:20:16]SAM_PROTO_SignData done [08:20:16]FM_MakeSignedData done [08:20:16]CreateOFDProtocolMessage [08:20:16]wFMCommunicate request_size=4 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 11 00 00 [08:20:16]Write to MH i2c: E2 08 00 CF 77 80 11 00 00 00 00 00 00 C0 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 17 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 17 00 CF 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [08:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:16]wFMCommunicate OK [08:20:16]CreateOFDProtocolMessage done [08:20:16]OFDSenderStorePacket 30805 [08:20:16]StoreOFDPacket docnum=30805 [08:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 DB 07 01 6A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 48 60 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 78 00 00 35 04 06 00 75 E2 B8 34 BA 21 8E 38 37 B5 5B BA B4 33 [08:20:16]CheckFolder [08:20:16]dirname=/storage/ofd_packets [08:20:16]CheckFolder done [08:20:16]ProducePacketName [08:20:16]name=ofd_packets/00030805 [08:20:16]NVStorageSaveData ofd_packets/00030805 [08:20:16]File name is /storage/ofd_packets/00030805 [08:20:16]Write 301 bytes [08:20:16]NVStorageSaveData done [08:20:16]OFDSenderStorePacket done [08:20:16]KKMCreateOFDPacket done [08:20:16]NVStorageSaveData kkm_last_timestamp [08:20:16]File name is /storage/kkm_last_timestamp [08:20:16]Write 4 bytes [08:20:16]NVStorageSaveData done [08:20:16]ExternCall_PrintAddStr [08:20:16]wPrintStart [08:20:16]Write to MH i2c: 01 00 00 D0 77 47 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 07 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 07 00 D0 77 00 00 00 00 00 FF 0F 5C [08:20:16]RasterBufferAndPrint [08:20:16]line Счет N : (1)343223 [08:20:16]line ИНН: 02508201610067 [08:20:16]line Контрольно-Кассовый Чек [08:20:16]line ПРОДАЖА [08:20:16]line ТРК (МРК, ГНК) : 33 [08:20:16]line Товар: 2710124130 [08:20:16]line Аи-92-К-2 [08:20:16]line 40.000 * 0.00 [08:20:16]line = 0.00 [08:20:16]line НДС 12% НСП 1% [08:20:16]line > о реализуемом товаре [08:20:16]line ИТОГО: 0.00 [08:20:16]line НСП 1% : 0.00 [08:20:16]line НДС 12% : 0.00 [08:20:16]line Наличными: 0.00 [08:20:16]line Безнал.: 0.00 [08:20:16]line Место: АЗС № 78 "Партнер Нефть" [08:20:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:20:16]line СНО: Общий режим [08:20:16]line Чек 38 22.10.2024 08:20 [08:20:16]line Смена: 116 ФФД: 1.0 [08:20:16]line ЗНМ: 0300000137 [08:20:16]line РНМ: 0000000000186857 [08:20:16]line Версия ККМ: v1.0 [08:20:16]line Талоны: Топливные Талоны [08:20:16]line 3949822 [08:20:16]line ФМ: 0000000002094219 [08:20:16]line ФД: 30805 [08:20:16]line ФПД: 129616613521953 [08:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082024&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30805&fm=129616613521953&tin=02508201610067®Number=0000000000186857&sum=0 [08:20:17]OFD Sender: Processing packet 30805 [packets to send 10, broken 9] [08:20:17]ProducePacketName [08:20:17]name=ofd_packets/00030805 [08:20:17]OFD Sender: To server: pG, [08:20:17]CommunicateWithHost lk.salyk.kg:30040 [08:20:17]ConnectInit lk.salyk.kg [08:20:17]written 0, free lines is 4095 [08:20:17]Connected sock=11 [08:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 DB 07 01 6A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 48 60 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 78 00 00 35 04 06 00 75 E2 B8 34 BA 21 8E 38 37 B5 5B BA B4 33 [08:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FC 3F 47 00 A6 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 32 30 39 34 32 31 39 10 04 04 00 55 78 00 00 F4 03 04 00 C6 0A 17 67 B6 04 01 00 00 6B F7 79 12 6C F5 D0 10 [08:20:17]CommunicateWithHost err = 0 [08:20:17]CheckOFDResponse [08:20:17]1017 (14) - 77093643461234 [08:20:17]1041 (16) - 0000000002094219 [08:20:17]1040 (4) - 30805 [08:20:17]1012 (4) - 22.10.2024 02:15 [08:20:17]1206 (1) - 0 [08:20:17]OFD Sender: Remove packet 30805 [08:20:17]ProducePacketName [08:20:17]name=ofd_packets/00030805 [08:20:17]NVStorageDeleteData [08:20:17]Write to MH i2c: 01 00 00 FA 77 71 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 FA 77 00 00 00 00 00 FE 0C 82 [08:20:17]RasterBufferAndPrint [08:20:17]line [08:20:17]line [08:20:17]line [08:20:17]line [08:20:17]line [08:20:17]written 0, free lines is 3333 [08:20:17]MH_Cut [08:20:17]Write to MH i2c: D1 01 00 01 78 01 4B [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: D1 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: D1 01 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: D1 01 00 01 78 00 4A [08:20:17]Write to MH i2c: 01 00 00 02 78 7A [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]OFD Sender: No OFD packet to send [08:20:18]*** Cut start [08:20:18]*** Partial cut [08:20:18]*** CUTSNS_PIN = 1 [08:20:18]*** CUTSNS_PIN = 0 [08:20:18]*** Brake cut motor [08:20:18]Read from MH i2c: 01 [08:20:18]MH_I2C_Read... [08:20:18]*** Stop cut motor [08:20:18]*** Cut end [08:20:18]Read from MH i2c: 01 07 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 02 78 00 00 00 00 00 FF 0F 8F [08:20:18]process_action close_receipt done [08:20:18]requested_data is exist [08:20:18]produce_requested_data [08:20:18]requested_item fm.sn is exist - process it [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 11 00 00 [08:20:18]Write to MH i2c: E2 08 00 03 78 80 11 00 00 00 00 00 00 F5 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 17 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 17 00 03 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [08:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:18]wFMCommunicate OK [08:20:18]requested_item fd.num is exist - process it [08:20:18]SAM_PROTO_GetFieldsCounters [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 13 00 00 [08:20:18]Write to MH i2c: E2 08 00 04 78 80 13 00 00 00 00 00 00 F8 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:19]Read from MH i2c: E2 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 62 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 62 00 04 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 78 00 00 0E 04 04 00 74 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 D1 [08:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 78 00 00 0E 04 04 00 74 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 [08:20:19]wFMCommunicate OK [08:20:19]SAM_PROTO_GetFieldsCounters done [08:20:19]requested_item shift.num is exist - process it [08:20:19]requested_item shift.opened is exist - process it [08:20:19]req_shift_opened [08:20:19]FM_GetShiftState [08:20:19]SAM_PROTO_GetShiftState [08:20:19]wFMCommunicate request_size=4 [08:20:19]MH_SAM_APDU [08:20:19]CAPDU: 80 13 01 00 [08:20:19]Write to MH i2c: E2 08 00 05 78 80 13 01 00 00 00 00 00 FA [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:19]Read from MH i2c: E2 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 0E 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 0E 00 05 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D4 [08:20:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:20:19]wFMCommunicate OK [08:20:19]SAM_PROTO_GetShiftState done [08:20:19]FM_GetShiftState done [08:20:19]req_shift_opened done [08:20:19]requested_item shift.open_date is exist - process it [08:20:19]req_shift_open_date [08:20:19]req_shift_open_date done [08:20:19]produce_requested_data done [08:20:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30805,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:20:19]process_action_free close_receipt [08:20:19]json_value_free [08:20:19]json_value_free done [08:20:19]process_json_proto returns [08:20:19]Send response to host [08:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30805,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:20:19]free response buf [08:20:19]execute_script done [08:20:19]execute_script returns [08:20:19]free content buf [08:20:19]Sock 7.Close socket [08:20:19]Sock 7.Thread stoped [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:53]accept exits with 9 [08:23:53]New connection [08:23:53]New thread 3067489636 created [08:23:53]Thread 3067346276 joined [08:23:53]Waiting for new connection... [08:23:53] Sock 9.Parse request [08:23:53]Sock 9.Check first char [08:23:53]Sock 9.First char is OK [08:23:53]request: POST /json_proto HTTP/1.0 [08:23:53]Method: POST [08:23:53]URL: /json_proto [08:23:53]Method is POST - this is cgi request [08:23:53]url: /json_proto [08:23:53]query_string will be loaded in cgi processing [08:23:53]execute_cgi json_proto POST (null) [08:23:53]execute_cgi path=json_proto method=POST [08:23:53]POST find Content-Length [08:23:53]Host: 172.17.51.3:8080 [08:23:53]Content-Length: 677 [08:23:53]Content-Type: application/json [08:23:53] [08:23:53]POST finish read [08:23:53]Found Content-Length = 677 [08:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:53]execute_script... [08:23: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)343224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:53]POST & json_proto [08:23:53]process_json_proto [08:23:53]json parsed OK: [08:23:53]protocol is kg_v1.0 [08:23:53]action value=close_receipt [08:23:53]process_action close_receipt [08:23:53]cmd_close_receipt [08:23:53]MH_GetDate [08:23:53]Write to MH i2c: F0 00 00 06 78 6D [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 09 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 09 00 06 78 00 23 61 17 67 04 C1 95 66 38 [08:23:53]GetLastDocTimeStamp 1729585224 [08:23:53]current date 1729585443 [08:23:53]FM_GetShiftState [08:23:53]SAM_PROTO_GetShiftState [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 13 01 00 [08:23:53]Write to MH i2c: E2 08 00 07 78 80 13 01 00 00 00 00 00 FC [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 0E 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 0E 00 07 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D6 [08:23:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:23:53]wFMCommunicate OK [08:23:53]SAM_PROTO_GetShiftState done [08:23:53]FM_GetShiftState done [08:23:53]opened in 1729557342 [08:23:53]opened+sec_in_day 1729643742 [08:23:53]quantity*price = 30038 [08:23:53]sum+1 = 30039 [08:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 39 22.10.2024 08:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30806 ФПД: 147012148978785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082403&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30806&fm=147012148978785&tin=02508201610067®Number=0000000000186857&sum=30000 [08:23:55]StoreToDocumentArchive [08:23:55]shift 116 fd 30806 [08:23:55]save to /storage/0116/doc_00030806 [08:23:55]save last doc name /storage/0116/doc_00030806 to /storage/kkm_last_doc_name [08:23:55]save OK [08:23:55]Clear old archive folders... [08:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:55]tlvbuf is 01DEACB0 [08:23:55]SAM_PROTO_ClearQueue [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 09 00 00 [08:23:55]Write to MH i2c: E2 08 00 14 78 80 09 00 00 00 00 00 00 FE [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 14 78 00 90 00 00 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_ClearQueue done [08:23:55]KKMCreateOFDPacket [08:23:55]OFDProtocolAddRootSTLVToBuf [08:23:55]FM_MakeSignedData [08:23:55]FM_MakeSignedData [08:23:55]SAM_PROTO_SignData [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 01 02 [08:23:55]Write to MH i2c: E2 08 00 15 78 80 0D 01 02 00 00 00 00 06 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 15 78 00 90 00 01 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=255 [08:23:55]MH_SAM_APDU [08:23: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 23 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 78 00 00 35 04 06 00 85 [08:23:55]Write to MH i2c: E2 02 01 16 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 23 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 78 00 00 35 04 06 00 85 00 00 7B [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 16 78 00 90 00 02 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=10 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 02 02 05 B4 EE EA E4 61 [08:23:55]Write to MH i2c: E2 0D 00 17 78 80 0D 02 02 05 00 B4 EE EA E4 61 00 00 E4 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 17 78 00 90 00 03 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 03 02 [08:23:55]Write to MH i2c: E2 08 00 18 78 80 0D 03 02 00 00 00 00 0B [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 18 78 00 FB A6 DF 06 E2 1C 4A 78 90 00 52 [08:23:55]RAPDU: FB A6 DF 06 E2 1C 4A 78 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_SignData done [08:23:55]FM_MakeSignedData done [08:23:55]CreateOFDProtocolMessage [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 11 00 00 [08:23:55]Write to MH i2c: E2 08 00 19 78 80 11 00 00 00 00 00 00 0B [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 19 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [08:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:23:55]wFMCommunicate OK [08:23:55]CreateOFDProtocolMessage done [08:23:55]OFDSenderStorePacket 30806 [08:23:55]StoreOFDPacket docnum=30806 [08:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0F 30 07 01 DC F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 23 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 78 00 00 35 04 06 00 85 B4 EE EA E4 61 FB A6 DF 06 E2 1C 4A 78 [08:23:55]CheckFolder [08:23:55]dirname=/storage/ofd_packets [08:23:55]CheckFolder done [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00030806 [08:23:55]NVStorageSaveData ofd_packets/00030806 [08:23:55]File name is /storage/ofd_packets/00030806 [08:23:55]Write 301 bytes [08:23:55]NVStorageSaveData done [08:23:55]OFDSenderStorePacket done [08:23:55]KKMCreateOFDPacket done [08:23:55]NVStorageSaveData kkm_last_timestamp [08:23:55]File name is /storage/kkm_last_timestamp [08:23:55]Write 4 bytes [08:23:55]NVStorageSaveData done [08:23:55]ExternCall_PrintAddStr [08:23:55]wPrintStart [08:23:55]Write to MH i2c: 01 00 00 1A 78 92 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 1A 78 00 00 00 00 00 FF 0F A7 [08:23:55]RasterBufferAndPrint [08:23:55]line Счет N : (1)343224 [08:23:55]line ИНН: 02508201610067 [08:23:55]line Контрольно-Кассовый Чек [08:23:55]line ПРОДАЖА [08:23:55]line ТРК (МРК, ГНК) : 63 [08:23:55]line Товар: 2710124130 [08:23:55]line Аи-92-К-2 [08:23:55]line 4.490 * 66.90 [08:23:55]line = 300.38 [08:23:55]line НДС 12% НСП 1% [08:23:55]line > о реализуемом товаре [08:23:55]line ОКРУГЛЕНИЕ: -0.38 [08:23:55]line ИТОГО: 300.00 [08:23:55]line Внесено: 300.00 [08:23:55]line СДАЧА: 0.00 [08:23:55]line НСП 1% : 2.66 [08:23:55]line НДС 12% : 31.90 [08:23:55]line Наличными: 300.00 [08:23:55]line Безнал.: 0.00 [08:23:55]line Место: АЗС № 78 "Партнер Нефть" [08:23:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:23:55]line СНО: Общий режим [08:23:55]line Чек 39 22.10.2024 08:24 [08:23:55]line Смена: 116 ФФД: 1.0 [08:23:55]line ЗНМ: 0300000137 [08:23:55]line РНМ: 0000000000186857 [08:23:55]line Версия ККМ: v1.0 [08:23:55]line ФМ: 0000000002094219 [08:23:55]line ФД: 30806 [08:23:55]line ФПД: 147012148978785 [08:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082403&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30806&fm=147012148978785&tin=02508201610067®Number=0000000000186857&sum=30000 [08:23:55]OFD Sender: Processing packet 30806 [packets to send 10, broken 9] [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00030806 [08:23:55]OFD Sender: To server: pG, [08:23:55]CommunicateWithHost lk.salyk.kg:30040 [08:23:55]ConnectInit lk.salyk.kg [08:23:55]written 0, free lines is 4095 [08:23:56]Connected sock=10 [08:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0F 30 07 01 DC F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 23 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 78 00 00 35 04 06 00 85 B4 EE EA E4 61 FB A6 DF 06 E2 1C 4A 78 [08:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E9 1F 47 00 D6 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 78 00 00 F4 03 04 00 A1 0B 17 67 B6 04 01 00 00 7E 38 0D 7E 1A 4B 9D 4B [08:23:56]CommunicateWithHost err = 0 [08:23:56]CheckOFDResponse [08:23:56]1017 (14) - 77093643461234 [08:23:56]1041 (16) - 0000000002094219 [08:23:56]1040 (4) - 30806 [08:23:56]1012 (4) - 22.10.2024 02:19 [08:23:56]1206 (1) - 0 [08:23:56]OFD Sender: Remove packet 30806 [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00030806 [08:23:56]NVStorageDeleteData [08:23:56]Write to MH i2c: 01 00 00 45 78 BD [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 45 78 00 00 00 00 00 F5 0C C5 [08:23:56]RasterBufferAndPrint [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]written 0, free lines is 3323 [08:23:56]MH_Cut [08:23:56]Write to MH i2c: D1 01 00 4C 78 01 96 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 4C 78 00 95 [08:23:56]Write to MH i2c: 01 00 00 4D 78 C5 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]OFD Sender: No OFD packet to send [08:23:57]*** Cut start [08:23:57]*** Partial cut [08:23:57]*** CUTSNS_PIN = 1 [08:23:57]*** CUTSNS_PIN = 0 [08:23:57]*** Brake cut motor [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]*** Stop cut motor [08:23:57]*** Cut end [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 4D 78 00 00 00 00 00 FF 0F DA [08:23:57]process_action close_receipt done [08:23:57]requested_data is exist [08:23:57]produce_requested_data [08:23:57]requested_item fm.sn is exist - process it [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 11 00 00 [08:23:57]Write to MH i2c: E2 08 00 4E 78 80 11 00 00 00 00 00 00 40 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 4E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [08:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:23:57]wFMCommunicate OK [08:23:57]requested_item fd.num is exist - process it [08:23:57]SAM_PROTO_GetFieldsCounters [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 13 00 00 [08:23:57]Write to MH i2c: E2 08 00 4F 78 80 13 00 00 00 00 00 00 43 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 62 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 62 00 4F 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 78 00 00 0E 04 04 00 74 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 20 [08:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 78 00 00 0E 04 04 00 74 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 [08:23:57]wFMCommunicate OK [08:23:57]SAM_PROTO_GetFieldsCounters done [08:23:57]requested_item shift.num is exist - process it [08:23:57]requested_item shift.opened is exist - process it [08:23:57]req_shift_opened [08:23:57]FM_GetShiftState [08:23:57]SAM_PROTO_GetShiftState [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 13 01 00 [08:23:57]Write to MH i2c: E2 08 00 50 78 80 13 01 00 00 00 00 00 45 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 0E 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 0E 00 50 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1F [08:23:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:23:57]wFMCommunicate OK [08:23:57]SAM_PROTO_GetShiftState done [08:23:57]FM_GetShiftState done [08:23:57]req_shift_opened done [08:23:57]requested_item shift.open_date is exist - process it [08:23:57]req_shift_open_date [08:23:57]req_shift_open_date done [08:23:57]produce_requested_data done [08:23:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30806,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:23:57]process_action_free close_receipt [08:23:57]json_value_free [08:23:57]json_value_free done [08:23:57]process_json_proto returns [08:23:57]Send response to host [08:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30806,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:23:57]free response buf [08:23:57]execute_script done [08:23:57]execute_script returns [08:23:57]free content buf [08:23:57]Sock 9.Close socket [08:23:57]Sock 9.Thread stoped [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:41]accept exits with 7 [08:24:41]New connection [08:24:41]New thread 3067346276 created [08:24:41]Thread 3067489636 joined [08:24:41]Waiting for new connection... [08:24:41] Sock 7.Parse request [08:24:41]Sock 7.Check first char [08:24:41]Sock 7.First char is OK [08:24:41]request: POST /json_proto HTTP/1.0 [08:24:41]Method: POST [08:24:41]URL: /json_proto [08:24:41]Method is POST - this is cgi request [08:24:41]url: /json_proto [08:24:41]query_string will be loaded in cgi processing [08:24:41]execute_cgi json_proto POST (null) [08:24:41]execute_cgi path=json_proto method=POST [08:24:41]POST find Content-Length [08:24:41]Host: 172.17.51.3:8080 [08:24:41]Content-Length: 682 [08:24:41]Content-Type: application/json [08:24:41] [08:24:41]POST finish read [08:24:41]Found Content-Length = 682 [08:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:41]execute_script... [08:24: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)343225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:41]POST & json_proto [08:24:41]process_json_proto [08:24:41]json parsed OK: [08:24:41]protocol is kg_v1.0 [08:24:41]action value=close_receipt [08:24:41]process_action close_receipt [08:24:41]cmd_close_receipt [08:24:41]MH_GetDate [08:24:41]Write to MH i2c: F0 00 00 51 78 B8 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: F0 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: F0 09 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: F0 09 00 51 78 00 53 61 17 67 04 C1 95 66 B3 [08:24:41]GetLastDocTimeStamp 1729585443 [08:24:41]current date 1729585491 [08:24:41]FM_GetShiftState [08:24:41]SAM_PROTO_GetShiftState [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 13 01 00 [08:24:41]Write to MH i2c: E2 08 00 52 78 80 13 01 00 00 00 00 00 47 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:42]Read from MH i2c: E2 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: E2 0E 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: E2 0E 00 52 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 21 [08:24:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:24:42]wFMCommunicate OK [08:24:42]SAM_PROTO_GetShiftState done [08:24:42]FM_GetShiftState done [08:24:42]opened in 1729557342 [08:24:42]opened+sec_in_day 1729643742 [08:24:42]quantity*price = 100015 [08:24:42]sum+1 = 100017 [08:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 40 22.10.2024 08:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30807 ФПД: 150718737598674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082451&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30807&fm=150718737598674&tin=02508201610067®Number=0000000000186857&sum=100000 [08:24:43]StoreToDocumentArchive [08:24:43]shift 116 fd 30807 [08:24:43]save to /storage/0116/doc_00030807 [08:24:43]save last doc name /storage/0116/doc_00030807 to /storage/kkm_last_doc_name [08:24:43]save OK [08:24:43]Clear old archive folders... [08:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:43]tlvbuf is 01DB8B70 [08:24:43]SAM_PROTO_ClearQueue [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 09 00 00 [08:24:43]Write to MH i2c: E2 08 00 5F 78 80 09 00 00 00 00 00 00 49 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 5F 78 00 90 00 4B [08:24:43]RAPDU: 90 00 [08:24:43]wFMCommunicate OK [08:24:43]SAM_PROTO_ClearQueue done [08:24:43]KKMCreateOFDPacket [08:24:43]OFDProtocolAddRootSTLVToBuf [08:24:43]FM_MakeSignedData [08:24:43]FM_MakeSignedData [08:24:43]SAM_PROTO_SignData [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 0D 01 02 [08:24:43]Write to MH i2c: E2 08 00 60 78 80 0D 01 02 00 00 00 00 51 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 60 78 00 90 00 4C [08:24:43]RAPDU: 90 00 [08:24:43]wFMCommunicate OK [08:24:43]wFMCommunicate request_size=255 [08:24:43]MH_SAM_APDU [08:24: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 53 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 78 00 00 35 04 06 00 89 [08:24:43]Write to MH i2c: E2 02 01 61 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 53 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 78 00 00 35 04 06 00 89 00 00 02 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 61 78 00 90 00 4D [08:24:43]RAPDU: 90 00 [08:24:43]wFMCommunicate OK [08:24:43]wFMCommunicate request_size=10 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 0D 02 02 05 13 F0 D0 C8 D2 [08:24:43]Write to MH i2c: E2 0D 00 62 78 80 0D 02 02 05 00 13 F0 D0 C8 D2 00 00 CB [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 03 00 62 78 00 90 00 4E [08:24:43]RAPDU: 90 00 [08:24:43]wFMCommunicate OK [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 0D 03 02 [08:24:43]Write to MH i2c: E2 08 00 63 78 80 0D 03 02 00 00 00 00 56 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0B 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0B 00 63 78 00 B9 34 C9 5C 2D 22 B0 F1 90 00 59 [08:24:43]RAPDU: B9 34 C9 5C 2D 22 B0 F1 90 00 [08:24:43]wFMCommunicate OK [08:24:43]SAM_PROTO_SignData done [08:24:43]FM_MakeSignedData done [08:24:43]CreateOFDProtocolMessage [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 11 00 00 [08:24:43]Write to MH i2c: E2 08 00 64 78 80 11 00 00 00 00 00 00 56 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 64 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [08:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:24:43]wFMCommunicate OK [08:24:43]CreateOFDProtocolMessage done [08:24:43]OFDSenderStorePacket 30807 [08:24:43]StoreOFDPacket docnum=30807 [08:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 4C 07 01 37 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 53 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 78 00 00 35 04 06 00 89 13 F0 D0 C8 D2 B9 34 C9 5C 2D 22 B0 F1 [08:24:43]CheckFolder [08:24:43]dirname=/storage/ofd_packets [08:24:43]CheckFolder done [08:24:43]ProducePacketName [08:24:43]name=ofd_packets/00030807 [08:24:43]NVStorageSaveData ofd_packets/00030807 [08:24:43]File name is /storage/ofd_packets/00030807 [08:24:43]Write 301 bytes [08:24:43]NVStorageSaveData done [08:24:43]OFDSenderStorePacket done [08:24:43]KKMCreateOFDPacket done [08:24:43]NVStorageSaveData kkm_last_timestamp [08:24:43]File name is /storage/kkm_last_timestamp [08:24:43]Write 4 bytes [08:24:43]NVStorageSaveData done [08:24:43]ExternCall_PrintAddStr [08:24:43]wPrintStart [08:24:43]Write to MH i2c: 01 00 00 65 78 DD [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: 01 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: 01 07 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: 01 07 00 65 78 00 00 00 00 00 FF 0F F2 [08:24:43]RasterBufferAndPrint [08:24:43]line Счет N : (1)343225 [08:24:43]line ИНН: 02508201610067 [08:24:43]line Контрольно-Кассовый Чек [08:24:43]line ПРОДАЖА [08:24:43]line ТРК (МРК, ГНК) : 43 [08:24:43]line Товар: 2710124130 [08:24:43]line Аи-92-К-2 [08:24:43]line 14.950 * 66.90 [08:24:43]line = 1000.16 [08:24:43]line НДС 12% НСП 1% [08:24:43]line > о реализуемом товаре [08:24:43]line ОКРУГЛЕНИЕ: -0.16 [08:24:43]line ИТОГО: 1000.00 [08:24:43]line Внесено: 1000.00 [08:24:43]line СДАЧА: 0.00 [08:24:43]line НСП 1% : 8.85 [08:24:43]line НДС 12% : 106.21 [08:24:43]line Наличными: 1000.00 [08:24:43]line Безнал.: 0.00 [08:24:43]line Место: АЗС № 78 "Партнер Нефть" [08:24:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:24:43]line СНО: Общий режим [08:24:43]line Чек 40 22.10.2024 08:24 [08:24:43]line Смена: 116 ФФД: 1.0 [08:24:43]line ЗНМ: 0300000137 [08:24:43]line РНМ: 0000000000186857 [08:24:43]line Версия ККМ: v1.0 [08:24:43]line ФМ: 0000000002094219 [08:24:43]line ФД: 30807 [08:24:43]line ФПД: 150718737598674 [08:24:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082451&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30807&fm=150718737598674&tin=02508201610067®Number=0000000000186857&sum=100000 [08:24:44]OFD Sender: Processing packet 30807 [packets to send 10, broken 9] [08:24:44]ProducePacketName [08:24:44]name=ofd_packets/00030807 [08:24:44]OFD Sender: To server: pG, [08:24:44]CommunicateWithHost lk.salyk.kg:30040 [08:24:44]ConnectInit lk.salyk.kg [08:24:44]written 0, free lines is 4095 [08:24:44]Connected sock=10 [08:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 4C 07 01 37 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 53 61 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 78 00 00 35 04 06 00 89 13 F0 D0 C8 D2 B9 34 C9 5C 2D 22 B0 F1 [08:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 19 1A 47 00 EF 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 78 00 00 F4 03 04 00 D1 0B 17 67 B6 04 01 00 00 82 3E B2 F0 E4 D0 4D BE [08:24:44]CommunicateWithHost err = 0 [08:24:44]CheckOFDResponse [08:24:44]1017 (14) - 77093643461234 [08:24:44]1041 (16) - 0000000002094219 [08:24:44]1040 (4) - 30807 [08:24:44]1012 (4) - 22.10.2024 02:20 [08:24:44]1206 (1) - 0 [08:24:44]OFD Sender: Remove packet 30807 [08:24:44]ProducePacketName [08:24:44]name=ofd_packets/00030807 [08:24:44]NVStorageDeleteData [08:24:44]Write to MH i2c: 01 00 00 90 78 08 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 07 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: 01 07 00 90 78 00 00 00 00 00 EE 0C 09 [08:24:44]RasterBufferAndPrint [08:24:44]line [08:24:44]line [08:24:44]line [08:24:44]line [08:24:44]line [08:24:44]written 0, free lines is 3317 [08:24:44]MH_Cut [08:24:44]Write to MH i2c: D1 01 00 97 78 01 E1 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: D1 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: D1 01 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: D1 01 00 97 78 00 E0 [08:24:44]Write to MH i2c: 01 00 00 98 78 10 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]OFD Sender: No OFD packet to send [08:24:45]*** Cut start [08:24:45]*** Partial cut [08:24:45]*** CUTSNS_PIN = 1 [08:24:45]*** CUTSNS_PIN = 0 [08:24:45]*** Brake cut motor [08:24:45]Read from MH i2c: 01 [08:24:45]MH_I2C_Read... [08:24:45]*** Stop cut motor [08:24:45]*** Cut end [08:24:45]Read from MH i2c: 01 07 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: 01 07 00 98 78 00 00 00 00 00 FF 0F 25 [08:24:45]process_action close_receipt done [08:24:45]requested_data is exist [08:24:45]produce_requested_data [08:24:45]requested_item fm.sn is exist - process it [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 11 00 00 [08:24:45]Write to MH i2c: E2 08 00 99 78 80 11 00 00 00 00 00 00 8B [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:45]Read from MH i2c: E2 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 17 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 17 00 99 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [08:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:24:45]wFMCommunicate OK [08:24:45]requested_item fd.num is exist - process it [08:24:45]SAM_PROTO_GetFieldsCounters [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 13 00 00 [08:24:45]Write to MH i2c: E2 08 00 9A 78 80 13 00 00 00 00 00 00 8E [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:45]Read from MH i2c: E2 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 62 00 [08:24:45]MH_I2C_Read... [08:24:45]Read from MH i2c: E2 62 00 9A 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 78 00 00 0E 04 04 00 74 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 6F [08:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 78 00 00 0E 04 04 00 74 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 [08:24:45]wFMCommunicate OK [08:24:45]SAM_PROTO_GetFieldsCounters done [08:24:45]requested_item shift.num is exist - process it [08:24:45]requested_item shift.opened is exist - process it [08:24:45]req_shift_opened [08:24:45]FM_GetShiftState [08:24:45]SAM_PROTO_GetShiftState [08:24:45]wFMCommunicate request_size=4 [08:24:45]MH_SAM_APDU [08:24:45]CAPDU: 80 13 01 00 [08:24:45]Write to MH i2c: E2 08 00 9B 78 80 13 01 00 00 00 00 00 90 [08:24:45]Write i2c OK [08:24:45]MH_I2C_Read... [08:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:46]Read from MH i2c: E2 [08:24:46]MH_I2C_Read... [08:24:46]Read from MH i2c: E2 0E 00 [08:24:46]MH_I2C_Read... [08:24:46]Read from MH i2c: E2 0E 00 9B 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6A [08:24:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:24:46]wFMCommunicate OK [08:24:46]SAM_PROTO_GetShiftState done [08:24:46]FM_GetShiftState done [08:24:46]req_shift_opened done [08:24:46]requested_item shift.open_date is exist - process it [08:24:46]req_shift_open_date [08:24:46]req_shift_open_date done [08:24:46]produce_requested_data done [08:24:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30807,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:24:46]process_action_free close_receipt [08:24:46]json_value_free [08:24:46]json_value_free done [08:24:46]process_json_proto returns [08:24:46]Send response to host [08:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30807,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:24:46]free response buf [08:24:46]execute_script done [08:24:46]execute_script returns [08:24:46]free content buf [08:24:46]Sock 7.Close socket [08:24:46]Sock 7.Thread stoped [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:36]accept exits with 9 [08:29:36]New connection [08:29:36]New thread 3067489636 created [08:29:36]Thread 3067346276 joined [08:29:36]Waiting for new connection... [08:29:36] Sock 9.Parse request [08:29:36]Sock 9.Check first char [08:29:36]Sock 9.First char is OK [08:29:36]request: POST /json_proto HTTP/1.0 [08:29:36]Method: POST [08:29:36]URL: /json_proto [08:29:36]Method is POST - this is cgi request [08:29:36]url: /json_proto [08:29:36]query_string will be loaded in cgi processing [08:29:36]execute_cgi json_proto POST (null) [08:29:36]execute_cgi path=json_proto method=POST [08:29:36]POST find Content-Length [08:29:36]Host: 172.17.51.3:8080 [08:29:36]Content-Length: 677 [08:29:36]Content-Type: application/json [08:29:36] [08:29:36]POST finish read [08:29:36]Found Content-Length = 677 [08:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:36]execute_script... [08:29: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)343226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:36]POST & json_proto [08:29:36]process_json_proto [08:29:36]json parsed OK: [08:29:36]protocol is kg_v1.0 [08:29:36]action value=close_receipt [08:29:36]process_action close_receipt [08:29:36]cmd_close_receipt [08:29:36]MH_GetDate [08:29:36]Write to MH i2c: F0 00 00 9C 78 03 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: F0 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: F0 09 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: F0 09 00 9C 78 00 7A 62 17 67 04 C1 95 66 26 [08:29:36]GetLastDocTimeStamp 1729585491 [08:29:36]current date 1729585786 [08:29:36]FM_GetShiftState [08:29:36]SAM_PROTO_GetShiftState [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 13 01 00 [08:29:36]Write to MH i2c: E2 08 00 9D 78 80 13 01 00 00 00 00 00 92 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 0E 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 0E 00 9D 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6C [08:29:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:29:36]wFMCommunicate OK [08:29:36]SAM_PROTO_GetShiftState done [08:29:36]FM_GetShiftState done [08:29:36]opened in 1729557342 [08:29:36]opened+sec_in_day 1729643742 [08:29:36]quantity*price = 30038 [08:29:36]sum+1 = 30039 [08:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 41 22.10.2024 08:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30808 ФПД: 66212998438676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30808&fm=66212998438676&tin=02508201610067®Number=0000000000186857&sum=30000 [08:29:37]StoreToDocumentArchive [08:29:37]shift 116 fd 30808 [08:29:37]save to /storage/0116/doc_00030808 [08:29:37]save last doc name /storage/0116/doc_00030808 to /storage/kkm_last_doc_name [08:29:37]save OK [08:29:37]Clear old archive folders... [08:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:37]tlvbuf is B6E2B470 [08:29:37]SAM_PROTO_ClearQueue [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 09 00 00 [08:29:37]Write to MH i2c: E2 08 00 AA 78 80 09 00 00 00 00 00 00 94 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 AA 78 00 90 00 96 [08:29:38]RAPDU: 90 00 [08:29:38]wFMCommunicate OK [08:29:38]SAM_PROTO_ClearQueue done [08:29:38]KKMCreateOFDPacket [08:29:38]OFDProtocolAddRootSTLVToBuf [08:29:38]FM_MakeSignedData [08:29:38]FM_MakeSignedData [08:29:38]SAM_PROTO_SignData [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 0D 01 02 [08:29:38]Write to MH i2c: E2 08 00 AB 78 80 0D 01 02 00 00 00 00 9C [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 AB 78 00 90 00 97 [08:29:38]RAPDU: 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=255 [08:29:38]MH_SAM_APDU [08:29: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7A 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 78 00 00 35 04 06 00 3C [08:29:38]Write to MH i2c: E2 02 01 AC 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7A 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 78 00 00 35 04 06 00 3C 00 00 24 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 AC 78 00 90 00 98 [08:29:38]RAPDU: 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=10 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 0D 02 02 05 38 6A 40 5F 14 [08:29:38]Write to MH i2c: E2 0D 00 AD 78 80 0D 02 02 05 00 38 6A 40 5F 14 00 00 FE [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 03 00 AD 78 00 90 00 99 [08:29:38]RAPDU: 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 0D 03 02 [08:29:38]Write to MH i2c: E2 08 00 AE 78 80 0D 03 02 00 00 00 00 A1 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 0B 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 0B 00 AE 78 00 78 99 A4 B7 50 D8 70 6F 90 00 15 [08:29:38]RAPDU: 78 99 A4 B7 50 D8 70 6F 90 00 [08:29:38]wFMCommunicate OK [08:29:38]SAM_PROTO_SignData done [08:29:38]FM_MakeSignedData done [08:29:38]CreateOFDProtocolMessage [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 11 00 00 [08:29:38]Write to MH i2c: E2 08 00 AF 78 80 11 00 00 00 00 00 00 A1 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 17 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 17 00 AF 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [08:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:38]wFMCommunicate OK [08:29:38]CreateOFDProtocolMessage done [08:29:38]OFDSenderStorePacket 30808 [08:29:38]StoreOFDPacket docnum=30808 [08:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 DE 07 01 50 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7A 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 78 00 00 35 04 06 00 3C 38 6A 40 5F 14 78 99 A4 B7 50 D8 70 6F [08:29:38]CheckFolder [08:29:38]dirname=/storage/ofd_packets [08:29:38]CheckFolder done [08:29:38]ProducePacketName [08:29:38]name=ofd_packets/00030808 [08:29:38]NVStorageSaveData ofd_packets/00030808 [08:29:38]File name is /storage/ofd_packets/00030808 [08:29:38]Write 301 bytes [08:29:38]NVStorageSaveData done [08:29:38]OFDSenderStorePacket done [08:29:38]KKMCreateOFDPacket done [08:29:38]NVStorageSaveData kkm_last_timestamp [08:29:38]File name is /storage/kkm_last_timestamp [08:29:38]Write 4 bytes [08:29:38]NVStorageSaveData done [08:29:38]ExternCall_PrintAddStr [08:29:38]wPrintStart [08:29:38]Write to MH i2c: 01 00 00 B0 78 28 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 07 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 07 00 B0 78 00 00 00 00 00 FF 0F 3D [08:29:38]RasterBufferAndPrint [08:29:38]line Счет N : (1)343226 [08:29:38]line ИНН: 02508201610067 [08:29:38]line Контрольно-Кассовый Чек [08:29:38]line ПРОДАЖА [08:29:38]line ТРК (МРК, ГНК) : 53 [08:29:38]line Товар: 2710124130 [08:29:38]line Аи-92-К-2 [08:29:38]line 4.490 * 66.90 [08:29:38]line = 300.38 [08:29:38]line НДС 12% НСП 1% [08:29:38]line > о реализуемом товаре [08:29:38]line ОКРУГЛЕНИЕ: -0.38 [08:29:38]line ИТОГО: 300.00 [08:29:38]line Внесено: 300.00 [08:29:38]line СДАЧА: 0.00 [08:29:38]line НСП 1% : 2.66 [08:29:38]line НДС 12% : 31.90 [08:29:38]line Наличными: 300.00 [08:29:38]line Безнал.: 0.00 [08:29:38]line Место: АЗС № 78 "Партнер Нефть" [08:29:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:29:38]line СНО: Общий режим [08:29:38]line Чек 41 22.10.2024 08:29 [08:29:38]line Смена: 116 ФФД: 1.0 [08:29:38]line ЗНМ: 0300000137 [08:29:38]line РНМ: 0000000000186857 [08:29:38]line Версия ККМ: v1.0 [08:29:38]line ФМ: 0000000002094219 [08:29:38]line ФД: 30808 [08:29:38]line ФПД: 66212998438676 [08:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30808&fm=66212998438676&tin=02508201610067®Number=0000000000186857&sum=30000 [08:29:38]OFD Sender: Processing packet 30808 [packets to send 10, broken 9] [08:29:38]ProducePacketName [08:29:38]name=ofd_packets/00030808 [08:29:38]OFD Sender: To server: pG, [08:29:38]CommunicateWithHost lk.salyk.kg:30040 [08:29:38]ConnectInit lk.salyk.kg [08:29:38]written 0, free lines is 4095 [08:29:38]Connected sock=10 [08:29:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 DE 07 01 50 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7A 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 78 00 00 35 04 06 00 3C 38 6A 40 5F 14 78 99 A4 B7 50 D8 70 6F [08:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3D 8C 47 00 25 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 78 00 00 F4 03 04 00 F8 0C 17 67 B6 04 01 00 00 B3 D9 D1 5A 91 D2 0C 4C [08:29:39]CommunicateWithHost err = 0 [08:29:39]CheckOFDResponse [08:29:39]1017 (14) - 77093643461234 [08:29:39]1041 (16) - 0000000002094219 [08:29:39]1040 (4) - 30808 [08:29:39]1012 (4) - 22.10.2024 02:24 [08:29:39]1206 (1) - 0 [08:29:39]OFD Sender: Remove packet 30808 [08:29:39]ProducePacketName [08:29:39]name=ofd_packets/00030808 [08:29:39]NVStorageDeleteData [08:29:39]Write to MH i2c: 01 00 00 DB 78 53 [08:29:39]Write i2c OK [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: 01 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: 01 07 00 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: 01 07 00 DB 78 00 00 00 00 00 E3 0C 49 [08:29:39]RasterBufferAndPrint [08:29:39]line [08:29:39]line [08:29:39]line [08:29:39]line [08:29:39]line [08:29:39]written 0, free lines is 3307 [08:29:39]MH_Cut [08:29:39]Write to MH i2c: D1 01 00 E2 78 01 2C [08:29:39]Write i2c OK [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: D1 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: D1 01 00 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: D1 01 00 E2 78 00 2B [08:29:39]Write to MH i2c: 01 00 00 E3 78 5B [08:29:39]Write i2c OK [08:29:39]MH_I2C_Read... [08:29:39]OFD Sender: No OFD packet to send [08:29:39]*** Cut start [08:29:39]*** Partial cut [08:29:39]*** CUTSNS_PIN = 1 [08:29:40]*** CUTSNS_PIN = 0 [08:29:40]*** Brake cut motor [08:29:40]Read from MH i2c: 01 [08:29:40]MH_I2C_Read... [08:29:40]*** Stop cut motor [08:29:40]*** Cut end [08:29:40]Read from MH i2c: 01 07 00 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: 01 07 00 E3 78 00 00 00 00 00 FF 0F 70 [08:29:40]process_action close_receipt done [08:29:40]requested_data is exist [08:29:40]produce_requested_data [08:29:40]requested_item fm.sn is exist - process it [08:29:40]wFMCommunicate request_size=4 [08:29:40]MH_SAM_APDU [08:29:40]CAPDU: 80 11 00 00 [08:29:40]Write to MH i2c: E2 08 00 E4 78 80 11 00 00 00 00 00 00 D6 [08:29:40]Write i2c OK [08:29:40]MH_I2C_Read... [08:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:40]Read from MH i2c: E2 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 17 00 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 17 00 E4 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 24 [08:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:40]wFMCommunicate OK [08:29:40]requested_item fd.num is exist - process it [08:29:40]SAM_PROTO_GetFieldsCounters [08:29:40]wFMCommunicate request_size=4 [08:29:40]MH_SAM_APDU [08:29:40]CAPDU: 80 13 00 00 [08:29:40]Write to MH i2c: E2 08 00 E5 78 80 13 00 00 00 00 00 00 D9 [08:29:40]Write i2c OK [08:29:40]MH_I2C_Read... [08:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:40]Read from MH i2c: E2 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 62 00 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 62 00 E5 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 78 00 00 0E 04 04 00 74 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 BE [08:29:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 78 00 00 0E 04 04 00 74 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 [08:29:40]wFMCommunicate OK [08:29:40]SAM_PROTO_GetFieldsCounters done [08:29:40]requested_item shift.num is exist - process it [08:29:40]requested_item shift.opened is exist - process it [08:29:40]req_shift_opened [08:29:40]FM_GetShiftState [08:29:40]SAM_PROTO_GetShiftState [08:29:40]wFMCommunicate request_size=4 [08:29:40]MH_SAM_APDU [08:29:40]CAPDU: 80 13 01 00 [08:29:40]Write to MH i2c: E2 08 00 E6 78 80 13 01 00 00 00 00 00 DB [08:29:40]Write i2c OK [08:29:40]MH_I2C_Read... [08:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:40]Read from MH i2c: E2 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 0E 00 [08:29:40]MH_I2C_Read... [08:29:40]Read from MH i2c: E2 0E 00 E6 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B5 [08:29:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:29:40]wFMCommunicate OK [08:29:40]SAM_PROTO_GetShiftState done [08:29:40]FM_GetShiftState done [08:29:40]req_shift_opened done [08:29:40]requested_item shift.open_date is exist - process it [08:29:40]req_shift_open_date [08:29:40]req_shift_open_date done [08:29:40]produce_requested_data done [08:29:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30808,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:29:40]process_action_free close_receipt [08:29:40]json_value_free [08:29:40]json_value_free done [08:29:40]process_json_proto returns [08:29:40]Send response to host [08:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30808,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:29:40]free response buf [08:29:40]execute_script done [08:29:40]execute_script returns [08:29:40]free content buf [08:29:40]Sock 9.Close socket [08:29:40]Sock 9.Thread stoped [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:35]accept exits with 7 [08:31:35]New connection [08:31:35]New thread 3067346276 created [08:31:35]Thread 3067489636 joined [08:31:35]Waiting for new connection... [08:31:35] Sock 7.Parse request [08:31:35]Sock 7.Check first char [08:31:35]Sock 7.First char is OK [08:31:35]request: POST /json_proto HTTP/1.0 [08:31:35]Method: POST [08:31:35]URL: /json_proto [08:31:35]Method is POST - this is cgi request [08:31:35]url: /json_proto [08:31:35]query_string will be loaded in cgi processing [08:31:35]execute_cgi json_proto POST (null) [08:31:35]execute_cgi path=json_proto method=POST [08:31:35]POST find Content-Length [08:31:35]Host: 172.17.51.3:8080 [08:31:35]Content-Length: 682 [08:31:35]Content-Type: application/json [08:31:35] [08:31:35]POST finish read [08:31:35]Found Content-Length = 682 [08:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:35]execute_script... [08:31: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)343227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:35]POST & json_proto [08:31:35]process_json_proto [08:31:35]json parsed OK: [08:31:35]protocol is kg_v1.0 [08:31:35]action value=close_receipt [08:31:35]process_action close_receipt [08:31:35]cmd_close_receipt [08:31:35]MH_GetDate [08:31:35]Write to MH i2c: F0 00 00 E7 78 4E [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 09 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 09 00 E7 78 00 F1 62 17 67 04 C1 95 66 E8 [08:31:35]GetLastDocTimeStamp 1729585786 [08:31:35]current date 1729585905 [08:31:35]FM_GetShiftState [08:31:35]SAM_PROTO_GetShiftState [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 01 00 [08:31:35]Write to MH i2c: E2 08 00 E8 78 80 13 01 00 00 00 00 00 DD [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 E8 78 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B7 [08:31:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]SAM_PROTO_GetShiftState done [08:31:35]FM_GetShiftState done [08:31:35]opened in 1729557342 [08:31:35]opened+sec_in_day 1729643742 [08:31:35]quantity*price = 100015 [08:31:35]sum+1 = 100017 [08:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 42 22.10.2024 08:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30809 ФПД: 77762247629697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083145&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30809&fm=77762247629697&tin=02508201610067®Number=0000000000186857&sum=100000 [08:31:36]StoreToDocumentArchive [08:31:36]shift 116 fd 30809 [08:31:36]save to /storage/0116/doc_00030809 [08:31:36]save last doc name /storage/0116/doc_00030809 to /storage/kkm_last_doc_name [08:31:36]save OK [08:31:36]Clear old archive folders... [08:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:36]tlvbuf is B6FDB9E0 [08:31:36]SAM_PROTO_ClearQueue [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 09 00 00 [08:31:36]Write to MH i2c: E2 08 00 F5 78 80 09 00 00 00 00 00 00 DF [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 F5 78 00 90 00 E1 [08:31:36]RAPDU: 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_ClearQueue done [08:31:36]KKMCreateOFDPacket [08:31:36]OFDProtocolAddRootSTLVToBuf [08:31:36]FM_MakeSignedData [08:31:36]FM_MakeSignedData [08:31:36]SAM_PROTO_SignData [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 0D 01 02 [08:31:36]Write to MH i2c: E2 08 00 F6 78 80 0D 01 02 00 00 00 00 E7 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 F6 78 00 90 00 E2 [08:31:36]RAPDU: 90 00 [08:31:36]wFMCommunicate OK [08:31:36]wFMCommunicate request_size=255 [08:31:36]MH_SAM_APDU [08:31: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F1 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 78 00 00 35 04 06 00 46 [08:31:36]Write to MH i2c: E2 02 01 F7 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F1 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 78 00 00 35 04 06 00 46 00 00 F8 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 F7 78 00 90 00 E3 [08:31:37]RAPDU: 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=10 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 0D 02 02 05 B9 6F 25 9B 81 [08:31:37]Write to MH i2c: E2 0D 00 F8 78 80 0D 02 02 05 00 B9 6F 25 9B 81 00 00 5D [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 F8 78 00 90 00 E4 [08:31:37]RAPDU: 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 0D 03 02 [08:31:37]Write to MH i2c: E2 08 00 F9 78 80 0D 03 02 00 00 00 00 EC [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0B 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0B 00 F9 78 00 C0 D8 37 05 2B 1C A1 93 90 00 3C [08:31:37]RAPDU: C0 D8 37 05 2B 1C A1 93 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_SignData done [08:31:37]FM_MakeSignedData done [08:31:37]CreateOFDProtocolMessage [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 11 00 00 [08:31:37]Write to MH i2c: E2 08 00 FA 78 80 11 00 00 00 00 00 00 EC [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 FA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [08:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:37]wFMCommunicate OK [08:31:37]CreateOFDProtocolMessage done [08:31:37]OFDSenderStorePacket 30809 [08:31:37]StoreOFDPacket docnum=30809 [08:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 89 07 01 E2 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F1 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 78 00 00 35 04 06 00 46 B9 6F 25 9B 81 C0 D8 37 05 2B 1C A1 93 [08:31:37]CheckFolder [08:31:37]dirname=/storage/ofd_packets [08:31:37]CheckFolder done [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00030809 [08:31:37]NVStorageSaveData ofd_packets/00030809 [08:31:37]File name is /storage/ofd_packets/00030809 [08:31:37]Write 301 bytes [08:31:37]NVStorageSaveData done [08:31:37]OFDSenderStorePacket done [08:31:37]KKMCreateOFDPacket done [08:31:37]NVStorageSaveData kkm_last_timestamp [08:31:37]File name is /storage/kkm_last_timestamp [08:31:37]Write 4 bytes [08:31:37]NVStorageSaveData done [08:31:37]ExternCall_PrintAddStr [08:31:37]wPrintStart [08:31:37]Write to MH i2c: 01 00 00 FB 78 73 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 FB 78 00 00 00 00 00 FF 0F 88 [08:31:37]RasterBufferAndPrint [08:31:37]line Счет N : (1)343227 [08:31:37]line ИНН: 02508201610067 [08:31:37]line Контрольно-Кассовый Чек [08:31:37]line ПРОДАЖА [08:31:37]line ТРК (МРК, ГНК) : 33 [08:31:37]line Товар: 2710124130 [08:31:37]line Аи-92-К-2 [08:31:37]line 14.950 * 66.90 [08:31:37]line = 1000.16 [08:31:37]line НДС 12% НСП 1% [08:31:37]line > о реализуемом товаре [08:31:37]line ОКРУГЛЕНИЕ: -0.16 [08:31:37]line ИТОГО: 1000.00 [08:31:37]line Внесено: 1000.00 [08:31:37]line СДАЧА: 0.00 [08:31:37]line НСП 1% : 8.85 [08:31:37]line НДС 12% : 106.21 [08:31:37]line Наличными: 1000.00 [08:31:37]line Безнал.: 0.00 [08:31:37]line Место: АЗС № 78 "Партнер Нефть" [08:31:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:31:37]line СНО: Общий режим [08:31:37]line Чек 42 22.10.2024 08:31 [08:31:37]line Смена: 116 ФФД: 1.0 [08:31:37]line ЗНМ: 0300000137 [08:31:37]line РНМ: 0000000000186857 [08:31:37]line Версия ККМ: v1.0 [08:31:37]line ФМ: 0000000002094219 [08:31:37]line ФД: 30809 [08:31:37]line ФПД: 77762247629697 [08:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083145&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30809&fm=77762247629697&tin=02508201610067®Number=0000000000186857&sum=100000 [08:31:37]OFD Sender: Processing packet 30809 [packets to send 10, broken 9] [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00030809 [08:31:37]OFD Sender: To server: pG, [08:31:37]CommunicateWithHost lk.salyk.kg:30040 [08:31:37]ConnectInit lk.salyk.kg [08:31:37]written 0, free lines is 4095 [08:31:37]Connected sock=10 [08:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 89 07 01 E2 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F1 62 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 78 00 00 35 04 06 00 46 B9 6F 25 9B 81 C0 D8 37 05 2B 1C A1 93 [08:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 79 23 47 00 5C F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 78 00 00 F4 03 04 00 6F 0D 17 67 B6 04 01 00 00 61 74 35 87 49 EA 8F 86 [08:31:37]CommunicateWithHost err = 0 [08:31:37]CheckOFDResponse [08:31:37]1017 (14) - 77093643461234 [08:31:37]1041 (16) - 0000000002094219 [08:31:37]1040 (4) - 30809 [08:31:37]1012 (4) - 22.10.2024 02:26 [08:31:37]1206 (1) - 0 [08:31:37]OFD Sender: Remove packet 30809 [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00030809 [08:31:37]NVStorageDeleteData [08:31:38]Write to MH i2c: 01 00 00 26 79 9F [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 26 79 00 00 00 00 00 F9 0C AB [08:31:38]RasterBufferAndPrint [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]written 0, free lines is 3328 [08:31:38]MH_Cut [08:31:38]Write to MH i2c: D1 01 00 2D 79 01 78 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 01 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 01 00 2D 79 00 77 [08:31:38]Write to MH i2c: 01 00 00 2E 79 A7 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]OFD Sender: No OFD packet to send [08:31:38]*** Cut start [08:31:38]*** Partial cut [08:31:38]*** CUTSNS_PIN = 1 [08:31:38]*** CUTSNS_PIN = 0 [08:31:39]*** Brake cut motor [08:31:39]Read from MH i2c: 01 [08:31:39]MH_I2C_Read... [08:31:39]*** Stop cut motor [08:31:39]*** Cut end [08:31:39]Read from MH i2c: 01 07 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 2E 79 00 00 00 00 00 FF 0F BC [08:31:39]process_action close_receipt done [08:31:39]requested_data is exist [08:31:39]produce_requested_data [08:31:39]requested_item fm.sn is exist - process it [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 11 00 00 [08:31:39]Write to MH i2c: E2 08 00 2F 79 80 11 00 00 00 00 00 00 22 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 2F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [08:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:39]wFMCommunicate OK [08:31:39]requested_item fd.num is exist - process it [08:31:39]SAM_PROTO_GetFieldsCounters [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 00 00 [08:31:39]Write to MH i2c: E2 08 00 30 79 80 13 00 00 00 00 00 00 25 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 62 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 62 00 30 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 78 00 00 0E 04 04 00 74 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 0E [08:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 78 00 00 0E 04 04 00 74 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 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetFieldsCounters done [08:31:39]requested_item shift.num is exist - process it [08:31:39]requested_item shift.opened is exist - process it [08:31:39]req_shift_opened [08:31:39]FM_GetShiftState [08:31:39]SAM_PROTO_GetShiftState [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 01 00 [08:31:39]Write to MH i2c: E2 08 00 31 79 80 13 01 00 00 00 00 00 27 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 31 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 01 [08:31:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetShiftState done [08:31:39]FM_GetShiftState done [08:31:39]req_shift_opened done [08:31:39]requested_item shift.open_date is exist - process it [08:31:39]req_shift_open_date [08:31:39]req_shift_open_date done [08:31:39]produce_requested_data done [08:31:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30809,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:31:39]process_action_free close_receipt [08:31:39]json_value_free [08:31:39]json_value_free done [08:31:39]process_json_proto returns [08:31:39]Send response to host [08:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30809,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:31:39]free response buf [08:31:39]execute_script done [08:31:39]execute_script returns [08:31:39]free content buf [08:31:39]Sock 7.Close socket [08:31:39]Sock 7.Thread stoped [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:52]accept exits with 9 [08:32:52]New connection [08:32:52]New thread 3067489636 created [08:32:52]Thread 3067346276 joined [08:32:52]Waiting for new connection... [08:32:52] Sock 9.Parse request [08:32:52]Sock 9.Check first char [08:32:52]Sock 9.First char is OK [08:32:52]request: POST /json_proto HTTP/1.0 [08:32:52]Method: POST [08:32:52]URL: /json_proto [08:32:52]Method is POST - this is cgi request [08:32:52]url: /json_proto [08:32:52]query_string will be loaded in cgi processing [08:32:52]execute_cgi json_proto POST (null) [08:32:52]execute_cgi path=json_proto method=POST [08:32:52]POST find Content-Length [08:32:52]Host: 172.17.51.3:8080 [08:32:52]Content-Length: 678 [08:32:52]Content-Type: application/json [08:32:52] [08:32:52]POST finish read [08:32:52]Found Content-Length = 678 [08:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:52]execute_script... [08:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:52]POST & json_proto [08:32:52]process_json_proto [08:32:52]json parsed OK: [08:32:52]protocol is kg_v1.0 [08:32:52]action value=close_receipt [08:32:52]process_action close_receipt [08:32:52]cmd_close_receipt [08:32:52]MH_GetDate [08:32:52]Write to MH i2c: F0 00 00 32 79 9A [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: F0 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: F0 09 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: F0 09 00 32 79 00 3E 63 17 67 04 C1 95 66 82 [08:32:52]GetLastDocTimeStamp 1729585905 [08:32:52]current date 1729585982 [08:32:52]FM_GetShiftState [08:32:52]SAM_PROTO_GetShiftState [08:32:52]wFMCommunicate request_size=4 [08:32:52]MH_SAM_APDU [08:32:52]CAPDU: 80 13 01 00 [08:32:52]Write to MH i2c: E2 08 00 33 79 80 13 01 00 00 00 00 00 29 [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:52]Read from MH i2c: E2 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: E2 0E 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: E2 0E 00 33 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 03 [08:32:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:32:52]wFMCommunicate OK [08:32:52]SAM_PROTO_GetShiftState done [08:32:52]FM_GetShiftState done [08:32:52]opened in 1729557342 [08:32:52]opened+sec_in_day 1729643742 [08:32:52]quantity*price = 70044 [08:32:52]sum+1 = 70045 [08:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 43 22.10.2024 08:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30810 ФПД: 241012351960743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083302&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30810&fm=241012351960743&tin=02508201610067®Number=0000000000186857&sum=70000 [08:32:54]StoreToDocumentArchive [08:32:54]shift 116 fd 30810 [08:32:54]save to /storage/0116/doc_00030810 [08:32:54]save last doc name /storage/0116/doc_00030810 to /storage/kkm_last_doc_name [08:32:54]save OK [08:32:54]Clear old archive folders... [08:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:54]tlvbuf is 01DB66D0 [08:32:54]SAM_PROTO_ClearQueue [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 09 00 00 [08:32:54]Write to MH i2c: E2 08 00 40 79 80 09 00 00 00 00 00 00 2B [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 40 79 00 90 00 2D [08:32:54]RAPDU: 90 00 [08:32:54]wFMCommunicate OK [08:32:54]SAM_PROTO_ClearQueue done [08:32:54]KKMCreateOFDPacket [08:32:54]OFDProtocolAddRootSTLVToBuf [08:32:54]FM_MakeSignedData [08:32:54]FM_MakeSignedData [08:32:54]SAM_PROTO_SignData [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 0D 01 02 [08:32:54]Write to MH i2c: E2 08 00 41 79 80 0D 01 02 00 00 00 00 33 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 41 79 00 90 00 2E [08:32:54]RAPDU: 90 00 [08:32:54]wFMCommunicate OK [08:32:54]wFMCommunicate request_size=255 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 78 00 00 35 04 06 00 DB [08:32:54]Write to MH i2c: E2 02 01 42 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 78 00 00 35 04 06 00 DB 00 00 3F [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 42 79 00 90 00 2F [08:32:54]RAPDU: 90 00 [08:32:54]wFMCommunicate OK [08:32:54]wFMCommunicate request_size=10 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 0D 02 02 05 33 0F A0 06 A7 [08:32:54]Write to MH i2c: E2 0D 00 43 79 80 0D 02 02 05 00 33 0F A0 06 A7 00 00 CF [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 03 00 43 79 00 90 00 30 [08:32:54]RAPDU: 90 00 [08:32:54]wFMCommunicate OK [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 0D 03 02 [08:32:54]Write to MH i2c: E2 08 00 44 79 80 0D 03 02 00 00 00 00 38 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 0B 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 0B 00 44 79 00 43 F0 B0 EB 51 E8 4F AD 90 00 3C [08:32:54]RAPDU: 43 F0 B0 EB 51 E8 4F AD 90 00 [08:32:54]wFMCommunicate OK [08:32:54]SAM_PROTO_SignData done [08:32:54]FM_MakeSignedData done [08:32:54]CreateOFDProtocolMessage [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 11 00 00 [08:32:54]Write to MH i2c: E2 08 00 45 79 80 11 00 00 00 00 00 00 38 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 17 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 17 00 45 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [08:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:32:54]wFMCommunicate OK [08:32:54]CreateOFDProtocolMessage done [08:32:54]OFDSenderStorePacket 30810 [08:32:54]StoreOFDPacket docnum=30810 [08:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 29 B9 07 01 F0 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 78 00 00 35 04 06 00 DB 33 0F A0 06 A7 43 F0 B0 EB 51 E8 4F AD [08:32:54]CheckFolder [08:32:54]dirname=/storage/ofd_packets [08:32:54]CheckFolder done [08:32:54]ProducePacketName [08:32:54]name=ofd_packets/00030810 [08:32:54]NVStorageSaveData ofd_packets/00030810 [08:32:54]File name is /storage/ofd_packets/00030810 [08:32:54]Write 301 bytes [08:32:54]NVStorageSaveData done [08:32:54]OFDSenderStorePacket done [08:32:54]KKMCreateOFDPacket done [08:32:54]NVStorageSaveData kkm_last_timestamp [08:32:54]File name is /storage/kkm_last_timestamp [08:32:54]Write 4 bytes [08:32:54]NVStorageSaveData done [08:32:54]ExternCall_PrintAddStr [08:32:54]wPrintStart [08:32:54]Write to MH i2c: 01 00 00 46 79 BF [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 07 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 07 00 46 79 00 00 00 00 00 FF 0F D4 [08:32:54]RasterBufferAndPrint [08:32:54]line Счет N : (1)343228 [08:32:54]line ИНН: 02508201610067 [08:32:54]line Контрольно-Кассовый Чек [08:32:54]line ПРОДАЖА [08:32:54]line ТРК (МРК, ГНК) : 63 [08:32:54]line Товар: 2710124130 [08:32:54]line Аи-92-К-2 [08:32:54]line 10.470 * 66.90 [08:32:54]line = 700.44 [08:32:54]line НДС 12% НСП 1% [08:32:54]line > о реализуемом товаре [08:32:54]line ОКРУГЛЕНИЕ: -0.44 [08:32:54]line ИТОГО: 700.00 [08:32:54]line Внесено: 700.00 [08:32:54]line СДАЧА: 0.00 [08:32:54]line НСП 1% : 6.20 [08:32:54]line НДС 12% : 74.38 [08:32:54]line Наличными: 700.00 [08:32:54]line Безнал.: 0.00 [08:32:54]line Место: АЗС № 78 "Партнер Нефть" [08:32:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:32:54]line СНО: Общий режим [08:32:54]line Чек 43 22.10.2024 08:33 [08:32:54]line Смена: 116 ФФД: 1.0 [08:32:54]line ЗНМ: 0300000137 [08:32:54]line РНМ: 0000000000186857 [08:32:54]line Версия ККМ: v1.0 [08:32:54]line ФМ: 0000000002094219 [08:32:54]line ФД: 30810 [08:32:54]line ФПД: 241012351960743 [08:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083302&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30810&fm=241012351960743&tin=02508201610067®Number=0000000000186857&sum=70000 [08:32:54]OFD Sender: Processing packet 30810 [packets to send 10, broken 9] [08:32:54]ProducePacketName [08:32:54]name=ofd_packets/00030810 [08:32:54]OFD Sender: To server: pG, [08:32:54]CommunicateWithHost lk.salyk.kg:30040 [08:32:54]ConnectInit lk.salyk.kg [08:32:54]written 0, free lines is 4095 [08:32:55]Connected sock=10 [08:32:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 29 B9 07 01 F0 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 78 00 00 35 04 06 00 DB 33 0F A0 06 A7 43 F0 B0 EB 51 E8 4F AD [08:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6E 76 47 00 6E 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 32 30 39 34 32 31 39 10 04 04 00 5A 78 00 00 F4 03 04 00 BC 0D 17 67 B6 04 01 00 00 77 2F E8 D5 4E 23 82 B6 [08:32:55]CommunicateWithHost err = 0 [08:32:55]CheckOFDResponse [08:32:55]1017 (14) - 77093643461234 [08:32:55]1041 (16) - 0000000002094219 [08:32:55]1040 (4) - 30810 [08:32:55]1012 (4) - 22.10.2024 02:28 [08:32:55]1206 (1) - 0 [08:32:55]OFD Sender: Remove packet 30810 [08:32:55]ProducePacketName [08:32:55]name=ofd_packets/00030810 [08:32:55]NVStorageDeleteData [08:32:55]Write to MH i2c: 01 00 00 71 79 EA [08:32:55]Write i2c OK [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: 01 [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: 01 07 00 [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: 01 07 00 71 79 00 00 00 00 00 EE 0C EB [08:32:55]RasterBufferAndPrint [08:32:55]line [08:32:55]line [08:32:55]line [08:32:55]line [08:32:55]line [08:32:55]written 0, free lines is 3316 [08:32:55]MH_Cut [08:32:55]Write to MH i2c: D1 01 00 78 79 01 C3 [08:32:55]Write i2c OK [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: D1 [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: D1 01 00 [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: D1 01 00 78 79 00 C2 [08:32:55]Write to MH i2c: 01 00 00 79 79 F2 [08:32:55]Write i2c OK [08:32:55]MH_I2C_Read... [08:32:55]OFD Sender: No OFD packet to send [08:32:56]*** Cut start [08:32:56]*** Partial cut [08:32:56]*** CUTSNS_PIN = 1 [08:32:56]*** CUTSNS_PIN = 0 [08:32:56]*** Brake cut motor [08:32:56]Read from MH i2c: 01 [08:32:56]MH_I2C_Read... [08:32:56]*** Stop cut motor [08:32:56]*** Cut end [08:32:56]Read from MH i2c: 01 07 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: 01 07 00 79 79 00 00 00 00 00 FF 0F 07 [08:32:56]process_action close_receipt done [08:32:56]requested_data is exist [08:32:56]produce_requested_data [08:32:56]requested_item fm.sn is exist - process it [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 11 00 00 [08:32:56]Write to MH i2c: E2 08 00 7A 79 80 11 00 00 00 00 00 00 6D [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 17 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 17 00 7A 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [08:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:32:56]wFMCommunicate OK [08:32:56]requested_item fd.num is exist - process it [08:32:56]SAM_PROTO_GetFieldsCounters [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 13 00 00 [08:32:56]Write to MH i2c: E2 08 00 7B 79 80 13 00 00 00 00 00 00 70 [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 62 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 62 00 7B 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 78 00 00 0E 04 04 00 74 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 5D [08:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 78 00 00 0E 04 04 00 74 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 [08:32:56]wFMCommunicate OK [08:32:56]SAM_PROTO_GetFieldsCounters done [08:32:56]requested_item shift.num is exist - process it [08:32:56]requested_item shift.opened is exist - process it [08:32:56]req_shift_opened [08:32:56]FM_GetShiftState [08:32:56]SAM_PROTO_GetShiftState [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 13 01 00 [08:32:56]Write to MH i2c: E2 08 00 7C 79 80 13 01 00 00 00 00 00 72 [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 7C 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4C [08:32:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:32:56]wFMCommunicate OK [08:32:56]SAM_PROTO_GetShiftState done [08:32:56]FM_GetShiftState done [08:32:56]req_shift_opened done [08:32:56]requested_item shift.open_date is exist - process it [08:32:56]req_shift_open_date [08:32:56]req_shift_open_date done [08:32:56]produce_requested_data done [08:32:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30810,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:32:56]process_action_free close_receipt [08:32:56]json_value_free [08:32:56]json_value_free done [08:32:56]process_json_proto returns [08:32:56]Send response to host [08:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30810,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:32:56]free response buf [08:32:56]execute_script done [08:32:56]execute_script returns [08:32:56]free content buf [08:32:56]Sock 9.Close socket [08:32:56]Sock 9.Thread stoped [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:08]accept exits with 7 [08:33:08]New connection [08:33:08]New thread 3067346276 created [08:33:08]Thread 3067489636 joined [08:33:08]Waiting for new connection... [08:33:08] Sock 7.Parse request [08:33:08]Sock 7.Check first char [08:33:08]Sock 7.First char is OK [08:33:08]request: POST /json_proto HTTP/1.0 [08:33:08]Method: POST [08:33:08]URL: /json_proto [08:33:08]Method is POST - this is cgi request [08:33:08]url: /json_proto [08:33:08]query_string will be loaded in cgi processing [08:33:08]execute_cgi json_proto POST (null) [08:33:08]execute_cgi path=json_proto method=POST [08:33:08]POST find Content-Length [08:33:08]Host: 172.17.51.3:8080 [08:33:08]Content-Length: 677 [08:33:08]Content-Type: application/json [08:33:08] [08:33:08]POST finish read [08:33:08]Found Content-Length = 677 [08:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]execute_script... [08:33: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)343229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]POST & json_proto [08:33:08]process_json_proto [08:33:08]json parsed OK: [08:33:08]protocol is kg_v1.0 [08:33:08]action value=close_receipt [08:33:08]process_action close_receipt [08:33:08]cmd_close_receipt [08:33:08]MH_GetDate [08:33:08]Write to MH i2c: F0 00 00 7D 79 E5 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 7D 79 00 4E 63 17 67 04 C1 95 66 DD [08:33:08]GetLastDocTimeStamp 1729585982 [08:33:08]current date 1729585998 [08:33:08]FM_GetShiftState [08:33:08]SAM_PROTO_GetShiftState [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 13 01 00 [08:33:08]Write to MH i2c: E2 08 00 7E 79 80 13 01 00 00 00 00 00 74 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 7E 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4E [08:33:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_GetShiftState done [08:33:08]FM_GetShiftState done [08:33:08]opened in 1729557342 [08:33:08]opened+sec_in_day 1729643742 [08:33:08]quantity*price = 50041 [08:33:08]sum+1 = 50042 [08:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 44 22.10.2024 08:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30811 ФПД: 90158129839438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083318&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30811&fm=90158129839438&tin=02508201610067®Number=0000000000186857&sum=50000 [08:33:10]StoreToDocumentArchive [08:33:10]shift 116 fd 30811 [08:33:10]save to /storage/0116/doc_00030811 [08:33:10]save last doc name /storage/0116/doc_00030811 to /storage/kkm_last_doc_name [08:33:10]save OK [08:33:10]Clear old archive folders... [08:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:10]tlvbuf is 01FDA180 [08:33:10]SAM_PROTO_ClearQueue [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 09 00 00 [08:33:10]Write to MH i2c: E2 08 00 8B 79 80 09 00 00 00 00 00 00 76 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 8B 79 00 90 00 78 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_ClearQueue done [08:33:10]KKMCreateOFDPacket [08:33:10]OFDProtocolAddRootSTLVToBuf [08:33:10]FM_MakeSignedData [08:33:10]FM_MakeSignedData [08:33:10]SAM_PROTO_SignData [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 01 02 [08:33:10]Write to MH i2c: E2 08 00 8C 79 80 0D 01 02 00 00 00 00 7E [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 8C 79 00 90 00 79 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=255 [08:33:10]MH_SAM_APDU [08:33: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 78 00 00 35 04 06 00 51 [08:33:10]Write to MH i2c: E2 02 01 8D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 78 00 00 35 04 06 00 51 00 00 02 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 8D 79 00 90 00 7A [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=10 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 02 02 05 FF 93 4D 7D 4E [08:33:10]Write to MH i2c: E2 0D 00 8E 79 80 0D 02 02 05 00 FF 93 4D 7D 4E 00 00 35 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 8E 79 00 90 00 7B [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 03 02 [08:33:10]Write to MH i2c: E2 08 00 8F 79 80 0D 03 02 00 00 00 00 83 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 8F 79 00 31 C7 02 88 AE 8E DE 27 90 00 47 [08:33:10]RAPDU: 31 C7 02 88 AE 8E DE 27 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_SignData done [08:33:10]FM_MakeSignedData done [08:33:10]CreateOFDProtocolMessage [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 11 00 00 [08:33:10]Write to MH i2c: E2 08 00 90 79 80 11 00 00 00 00 00 00 83 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 90 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [08:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:33:10]wFMCommunicate OK [08:33:10]CreateOFDProtocolMessage done [08:33:10]OFDSenderStorePacket 30811 [08:33:10]StoreOFDPacket docnum=30811 [08:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 FD 07 01 7A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 78 00 00 35 04 06 00 51 FF 93 4D 7D 4E 31 C7 02 88 AE 8E DE 27 [08:33:10]CheckFolder [08:33:10]dirname=/storage/ofd_packets [08:33:10]CheckFolder done [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00030811 [08:33:10]NVStorageSaveData ofd_packets/00030811 [08:33:10]File name is /storage/ofd_packets/00030811 [08:33:10]Write 301 bytes [08:33:10]NVStorageSaveData done [08:33:10]OFDSenderStorePacket done [08:33:10]KKMCreateOFDPacket done [08:33:10]NVStorageSaveData kkm_last_timestamp [08:33:10]File name is /storage/kkm_last_timestamp [08:33:10]Write 4 bytes [08:33:10]NVStorageSaveData done [08:33:10]ExternCall_PrintAddStr [08:33:10]wPrintStart [08:33:10]Write to MH i2c: 01 00 00 91 79 0A [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 91 79 00 00 00 00 00 FF 0F 1F [08:33:10]RasterBufferAndPrint [08:33:10]line Счет N : (1)343229 [08:33:10]line ИНН: 02508201610067 [08:33:10]line Контрольно-Кассовый Чек [08:33:10]line ПРОДАЖА [08:33:10]line ТРК (МРК, ГНК) : 43 [08:33:10]line Товар: 2710124130 [08:33:10]line Аи-92-К-2 [08:33:10]line 7.480 * 66.90 [08:33:10]line = 500.41 [08:33:10]line НДС 12% НСП 1% [08:33:10]line > о реализуемом товаре [08:33:10]line ОКРУГЛЕНИЕ: -0.41 [08:33:10]line ИТОГО: 500.00 [08:33:10]line Внесено: 500.00 [08:33:10]line СДАЧА: 0.00 [08:33:10]line НСП 1% : 4.43 [08:33:10]line НДС 12% : 53.14 [08:33:10]line Наличными: 500.00 [08:33:10]line Безнал.: 0.00 [08:33:10]line Место: АЗС № 78 "Партнер Нефть" [08:33:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:33:10]line СНО: Общий режим [08:33:10]line Чек 44 22.10.2024 08:33 [08:33:10]line Смена: 116 ФФД: 1.0 [08:33:10]line ЗНМ: 0300000137 [08:33:10]line РНМ: 0000000000186857 [08:33:10]line Версия ККМ: v1.0 [08:33:10]line ФМ: 0000000002094219 [08:33:10]line ФД: 30811 [08:33:10]line ФПД: 90158129839438 [08:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083318&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30811&fm=90158129839438&tin=02508201610067®Number=0000000000186857&sum=50000 [08:33:10]OFD Sender: Processing packet 30811 [packets to send 10, broken 9] [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00030811 [08:33:10]OFD Sender: To server: pG, [08:33:10]CommunicateWithHost lk.salyk.kg:30040 [08:33:10]ConnectInit lk.salyk.kg [08:33:10]written 0, free lines is 4095 [08:33:11]Connected sock=10 [08:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 FD 07 01 7A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4E 63 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 78 00 00 35 04 06 00 51 FF 93 4D 7D 4E 31 C7 02 88 AE 8E DE 27 [08:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 18 47 00 DA 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 32 30 39 34 32 31 39 10 04 04 00 5B 78 00 00 F4 03 04 00 CC 0D 17 67 B6 04 01 00 00 26 B6 7B AB DB 16 40 33 [08:33:11]CommunicateWithHost err = 0 [08:33:11]CheckOFDResponse [08:33:11]1017 (14) - 77093643461234 [08:33:11]1041 (16) - 0000000002094219 [08:33:11]1040 (4) - 30811 [08:33:11]1012 (4) - 22.10.2024 02:28 [08:33:11]1206 (1) - 0 [08:33:11]OFD Sender: Remove packet 30811 [08:33:11]ProducePacketName [08:33:11]name=ofd_packets/00030811 [08:33:11]NVStorageDeleteData [08:33:11]Write to MH i2c: 01 00 00 BC 79 35 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 BC 79 00 00 00 00 00 E0 0C 28 [08:33:11]RasterBufferAndPrint [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]written 0, free lines is 3304 [08:33:11]MH_Cut [08:33:11]Write to MH i2c: D1 01 00 C3 79 01 0E [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 C3 79 00 0D [08:33:11]Write to MH i2c: 01 00 00 C4 79 3D [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]OFD Sender: No OFD packet to send [08:33:12]*** Cut start [08:33:12]*** Partial cut [08:33:12]*** CUTSNS_PIN = 1 [08:33:12]*** CUTSNS_PIN = 0 [08:33:12]*** Brake cut motor [08:33:12]Read from MH i2c: 01 [08:33:12]MH_I2C_Read... [08:33:12]*** Stop cut motor [08:33:12]*** Cut end [08:33:12]Read from MH i2c: 01 07 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: 01 07 00 C4 79 00 00 00 00 00 FF 0F 52 [08:33:12]process_action close_receipt done [08:33:12]requested_data is exist [08:33:12]produce_requested_data [08:33:12]requested_item fm.sn is exist - process it [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 11 00 00 [08:33:12]Write to MH i2c: E2 08 00 C5 79 80 11 00 00 00 00 00 00 B8 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 C5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [08:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:33:12]wFMCommunicate OK [08:33:12]requested_item fd.num is exist - process it [08:33:12]SAM_PROTO_GetFieldsCounters [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 00 00 [08:33:12]Write to MH i2c: E2 08 00 C6 79 80 13 00 00 00 00 00 00 BB [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 C6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 78 00 00 0E 04 04 00 74 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 AC [08:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 78 00 00 0E 04 04 00 74 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 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetFieldsCounters done [08:33:12]requested_item shift.num is exist - process it [08:33:12]requested_item shift.opened is exist - process it [08:33:12]req_shift_opened [08:33:12]FM_GetShiftState [08:33:12]SAM_PROTO_GetShiftState [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 01 00 [08:33:12]Write to MH i2c: E2 08 00 C7 79 80 13 01 00 00 00 00 00 BD [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 C7 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 97 [08:33:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetShiftState done [08:33:12]FM_GetShiftState done [08:33:12]req_shift_opened done [08:33:12]requested_item shift.open_date is exist - process it [08:33:12]req_shift_open_date [08:33:12]req_shift_open_date done [08:33:12]produce_requested_data done [08:33:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30811,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:33:12]process_action_free close_receipt [08:33:12]json_value_free [08:33:12]json_value_free done [08:33:12]process_json_proto returns [08:33:12]Send response to host [08:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30811,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:33:12]free response buf [08:33:12]execute_script done [08:33:12]execute_script returns [08:33:12]free content buf [08:33:12]Sock 7.Close socket [08:33:12]Sock 7.Thread stoped [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:36:58]accept exits with 9 [08:36:58]New connection [08:36:58]New thread 3067489636 created [08:36:58]Thread 3067346276 joined [08:36:58]Waiting for new connection... [08:36:58] Sock 9.Parse request [08:36:58]Sock 9.Check first char [08:36:58]Sock 9.First char is OK [08:36:58]request: POST /json_proto HTTP/1.0 [08:36:58]Method: POST [08:36:58]URL: /json_proto [08:36:58]Method is POST - this is cgi request [08:36:58]url: /json_proto [08:36:58]query_string will be loaded in cgi processing [08:36:58]execute_cgi json_proto POST (null) [08:36:58]execute_cgi path=json_proto method=POST [08:36:58]POST find Content-Length [08:36:58]Host: 172.17.51.3:8080 [08:36:58]Content-Length: 682 [08:36:58]Content-Type: application/json [08:36:58] [08:36:58]POST finish read [08:36:58]Found Content-Length = 682 [08:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:58]execute_script... [08:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:58]POST & json_proto [08:36:58]process_json_proto [08:36:58]json parsed OK: [08:36:58]protocol is kg_v1.0 [08:36:58]action value=close_receipt [08:36:58]process_action close_receipt [08:36:58]cmd_close_receipt [08:36:58]MH_GetDate [08:36:58]Write to MH i2c: F0 00 00 C8 79 30 [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 09 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 09 00 C8 79 00 33 64 17 67 04 C1 95 66 0E [08:36:58]GetLastDocTimeStamp 1729585998 [08:36:58]current date 1729586227 [08:36:58]FM_GetShiftState [08:36:58]SAM_PROTO_GetShiftState [08:36:58]wFMCommunicate request_size=4 [08:36:58]MH_SAM_APDU [08:36:58]CAPDU: 80 13 01 00 [08:36:58]Write to MH i2c: E2 08 00 C9 79 80 13 01 00 00 00 00 00 BF [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:58]Read from MH i2c: E2 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 C9 79 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 99 [08:36:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:36:58]wFMCommunicate OK [08:36:58]SAM_PROTO_GetShiftState done [08:36:58]FM_GetShiftState done [08:36:58]opened in 1729557342 [08:36:58]opened+sec_in_day 1729643742 [08:36:58]quantity*price = 130072 [08:36:58]sum+1 = 130074 [08:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 45 22.10.2024 08:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30812 ФПД: 270130183925651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30812&fm=270130183925651&tin=02508201610067®Number=0000000000186857&sum=130000 [08:36:59]StoreToDocumentArchive [08:36:59]shift 116 fd 30812 [08:36:59]save to /storage/0116/doc_00030812 [08:36:59]save last doc name /storage/0116/doc_00030812 to /storage/kkm_last_doc_name [08:36:59]save OK [08:36:59]Clear old archive folders... [08:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:59]tlvbuf is 01DB64E0 [08:36:59]SAM_PROTO_ClearQueue [08:36:59]wFMCommunicate request_size=4 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 09 00 00 [08:36:59]Write to MH i2c: E2 08 00 D6 79 80 09 00 00 00 00 00 00 C1 [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 D6 79 00 90 00 C3 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]SAM_PROTO_ClearQueue done [08:36:59]KKMCreateOFDPacket [08:36:59]OFDProtocolAddRootSTLVToBuf [08:36:59]FM_MakeSignedData [08:36:59]FM_MakeSignedData [08:36:59]SAM_PROTO_SignData [08:36:59]wFMCommunicate request_size=4 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 0D 01 02 [08:36:59]Write to MH i2c: E2 08 00 D7 79 80 0D 01 02 00 00 00 00 C9 [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 D7 79 00 90 00 C4 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]wFMCommunicate request_size=255 [08:36:59]MH_SAM_APDU [08:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 33 64 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 78 00 00 35 04 06 00 F5 [08:36:59]Write to MH i2c: E2 02 01 D8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 33 64 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 78 00 00 35 04 06 00 F5 00 00 8A [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 D8 79 00 90 00 C5 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]wFMCommunicate request_size=10 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 0D 02 02 05 AE 95 A7 EF 93 [08:36:59]Write to MH i2c: E2 0D 00 D9 79 80 0D 02 02 05 00 AE 95 A7 EF 93 00 00 42 [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]wFMCommunicate request_size=4 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 0D 03 02 [08:36:59]Write to MH i2c: E2 08 00 DA 79 80 0D 03 02 00 00 00 00 CE [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0B 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0B 00 DA 79 00 84 9F 01 C2 AB 06 F5 93 90 00 EE [08:37:00]RAPDU: 84 9F 01 C2 AB 06 F5 93 90 00 [08:37:00]wFMCommunicate OK [08:37:00]SAM_PROTO_SignData done [08:37:00]FM_MakeSignedData done [08:37:00]CreateOFDProtocolMessage [08:37:00]wFMCommunicate request_size=4 [08:37:00]MH_SAM_APDU [08:37:00]CAPDU: 80 11 00 00 [08:37:00]Write to MH i2c: E2 08 00 DB 79 80 11 00 00 00 00 00 00 CE [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 17 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 17 00 DB 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [08:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:37:00]wFMCommunicate OK [08:37:00]CreateOFDProtocolMessage done [08:37:00]OFDSenderStorePacket 30812 [08:37:00]StoreOFDPacket docnum=30812 [08:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 A2 07 01 D2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 33 64 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 78 00 00 35 04 06 00 F5 AE 95 A7 EF 93 84 9F 01 C2 AB 06 F5 93 [08:37:00]CheckFolder [08:37:00]dirname=/storage/ofd_packets [08:37:00]CheckFolder done [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00030812 [08:37:00]NVStorageSaveData ofd_packets/00030812 [08:37:00]File name is /storage/ofd_packets/00030812 [08:37:00]Write 301 bytes [08:37:00]NVStorageSaveData done [08:37:00]OFDSenderStorePacket done [08:37:00]KKMCreateOFDPacket done [08:37:00]NVStorageSaveData kkm_last_timestamp [08:37:00]File name is /storage/kkm_last_timestamp [08:37:00]Write 4 bytes [08:37:00]NVStorageSaveData done [08:37:00]ExternCall_PrintAddStr [08:37:00]wPrintStart [08:37:00]Write to MH i2c: 01 00 00 DC 79 55 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 DC 79 00 00 00 00 00 FF 0F 6A [08:37:00]RasterBufferAndPrint [08:37:00]line Счет N : (1)343230 [08:37:00]line ИНН: 02508201610067 [08:37:00]line Контрольно-Кассовый Чек [08:37:00]line ПРОДАЖА [08:37:00]line ТРК (МРК, ГНК) : 32 [08:37:00]line Товар: 2710124500 [08:37:00]line Аи-95-К-3 [08:37:00]line 17.530 * 74.20 [08:37:00]line = 1300.73 [08:37:00]line НДС 12% НСП 1% [08:37:00]line > о реализуемом товаре [08:37:00]line ОКРУГЛЕНИЕ: -0.73 [08:37:00]line ИТОГО: 1300.00 [08:37:00]line Внесено: 1300.00 [08:37:00]line СДАЧА: 0.00 [08:37:00]line НСП 1% : 11.51 [08:37:00]line НДС 12% : 138.13 [08:37:00]line Наличными: 1300.00 [08:37:00]line Безнал.: 0.00 [08:37:00]line Место: АЗС № 78 "Партнер Нефть" [08:37:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:37:00]line СНО: Общий режим [08:37:00]line Чек 45 22.10.2024 08:37 [08:37:00]line Смена: 116 ФФД: 1.0 [08:37:00]line ЗНМ: 0300000137 [08:37:00]line РНМ: 0000000000186857 [08:37:00]line Версия ККМ: v1.0 [08:37:00]line ФМ: 0000000002094219 [08:37:00]line ФД: 30812 [08:37:00]line ФПД: 270130183925651 [08:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30812&fm=270130183925651&tin=02508201610067®Number=0000000000186857&sum=130000 [08:37:00]OFD Sender: Processing packet 30812 [packets to send 10, broken 9] [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00030812 [08:37:00]OFD Sender: To server: pG, [08:37:00]CommunicateWithHost lk.salyk.kg:30040 [08:37:00]ConnectInit lk.salyk.kg [08:37:00]written 0, free lines is 4095 [08:37:00]Connected sock=10 [08:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 A2 07 01 D2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 33 64 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 78 00 00 35 04 06 00 F5 AE 95 A7 EF 93 84 9F 01 C2 AB 06 F5 93 [08:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 93 33 47 00 35 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 32 30 39 34 32 31 39 10 04 04 00 5C 78 00 00 F4 03 04 00 B1 0E 17 67 B6 04 01 00 00 91 7F C9 8B CF 28 D5 A0 [08:37:00]CommunicateWithHost err = 0 [08:37:00]CheckOFDResponse [08:37:00]1017 (14) - 77093643461234 [08:37:00]1041 (16) - 0000000002094219 [08:37:00]1040 (4) - 30812 [08:37:00]1012 (4) - 22.10.2024 02:32 [08:37:00]1206 (1) - 0 [08:37:00]OFD Sender: Remove packet 30812 [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00030812 [08:37:00]NVStorageDeleteData [08:37:00]Write to MH i2c: 01 00 00 07 7A 81 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 07 7A 00 00 00 00 00 EC 0C 80 [08:37:00]RasterBufferAndPrint [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]written 0, free lines is 3314 [08:37:00]MH_Cut [08:37:00]Write to MH i2c: D1 01 00 0E 7A 01 5A [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 01 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 01 00 0E 7A 00 59 [08:37:00]Write to MH i2c: 01 00 00 0F 7A 89 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:01]OFD Sender: No OFD packet to send [08:37:01]*** Cut start [08:37:01]*** Partial cut [08:37:01]*** CUTSNS_PIN = 1 [08:37:01]*** CUTSNS_PIN = 0 [08:37:01]*** Brake cut motor [08:37:02]Read from MH i2c: 01 [08:37:02]MH_I2C_Read... [08:37:02]*** Stop cut motor [08:37:02]*** Cut end [08:37:02]Read from MH i2c: 01 07 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: 01 07 00 0F 7A 00 00 00 00 00 FF 0F 9E [08:37:02]process_action close_receipt done [08:37:02]requested_data is exist [08:37:02]produce_requested_data [08:37:02]requested_item fm.sn is exist - process it [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 11 00 00 [08:37:02]Write to MH i2c: E2 08 00 10 7A 80 11 00 00 00 00 00 00 04 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 10 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [08:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:37:02]wFMCommunicate OK [08:37:02]requested_item fd.num is exist - process it [08:37:02]SAM_PROTO_GetFieldsCounters [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 13 00 00 [08:37:02]Write to MH i2c: E2 08 00 11 7A 80 13 00 00 00 00 00 00 07 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 62 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 62 00 11 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 78 00 00 0E 04 04 00 74 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 FC [08:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 78 00 00 0E 04 04 00 74 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 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_GetFieldsCounters done [08:37:02]requested_item shift.num is exist - process it [08:37:02]requested_item shift.opened is exist - process it [08:37:02]req_shift_opened [08:37:02]FM_GetShiftState [08:37:02]SAM_PROTO_GetShiftState [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 13 01 00 [08:37:02]Write to MH i2c: E2 08 00 12 7A 80 13 01 00 00 00 00 00 09 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0E 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0E 00 12 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E3 [08:37:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_GetShiftState done [08:37:02]FM_GetShiftState done [08:37:02]req_shift_opened done [08:37:02]requested_item shift.open_date is exist - process it [08:37:02]req_shift_open_date [08:37:02]req_shift_open_date done [08:37:02]produce_requested_data done [08:37:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30812,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:37:02]process_action_free close_receipt [08:37:02]json_value_free [08:37:02]json_value_free done [08:37:02]process_json_proto returns [08:37:02]Send response to host [08:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30812,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:37:02]free response buf [08:37:02]execute_script done [08:37:02]execute_script returns [08:37:02]free content buf [08:37:02]Sock 9.Close socket [08:37:02]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:47]accept exits with 7 [08:42:47]New connection [08:42:47]New thread 3067346276 created [08:42:47]Thread 3067489636 joined [08:42:47]Waiting for new connection... [08:42:47] Sock 7.Parse request [08:42:47]Sock 7.Check first char [08:42:47]Sock 7.First char is OK [08:42:47]request: POST /json_proto HTTP/1.0 [08:42:47]Method: POST [08:42:47]URL: /json_proto [08:42:47]Method is POST - this is cgi request [08:42:47]url: /json_proto [08:42:47]query_string will be loaded in cgi processing [08:42:47]execute_cgi json_proto POST (null) [08:42:47]execute_cgi path=json_proto method=POST [08:42:47]POST find Content-Length [08:42:47]Host: 172.17.51.3:8080 [08:42:47]Content-Length: 677 [08:42:47]Content-Type: application/json [08:42:47] [08:42:47]POST finish read [08:42:47]Found Content-Length = 677 [08:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:47]execute_script... [08:42: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)343231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:47]POST & json_proto [08:42:47]process_json_proto [08:42:47]json parsed OK: [08:42:47]protocol is kg_v1.0 [08:42:47]action value=close_receipt [08:42:47]process_action close_receipt [08:42:47]cmd_close_receipt [08:42:47]MH_GetDate [08:42:47]Write to MH i2c: F0 00 00 13 7A 7C [08:42:47]Write i2c OK [08:42:47]MH_I2C_Read... [08:42:47]Read from MH i2c: F0 [08:42:47]MH_I2C_Read... [08:42:47]Read from MH i2c: F0 09 00 [08:42:47]MH_I2C_Read... [08:42:47]Read from MH i2c: F0 09 00 13 7A 00 91 65 17 67 04 C1 95 66 B9 [08:42:47]GetLastDocTimeStamp 1729586227 [08:42:47]current date 1729586577 [08:42:47]FM_GetShiftState [08:42:47]SAM_PROTO_GetShiftState [08:42:47]wFMCommunicate request_size=4 [08:42:47]MH_SAM_APDU [08:42:47]CAPDU: 80 13 01 00 [08:42:47]Write to MH i2c: E2 08 00 14 7A 80 13 01 00 00 00 00 00 0B [08:42:47]Write i2c OK [08:42:47]MH_I2C_Read... [08:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:47]Read from MH i2c: E2 [08:42:47]MH_I2C_Read... [08:42:47]Read from MH i2c: E2 0E 00 [08:42:47]MH_I2C_Read... [08:42:47]Read from MH i2c: E2 0E 00 14 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E5 [08:42:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:42:47]wFMCommunicate OK [08:42:47]SAM_PROTO_GetShiftState done [08:42:47]FM_GetShiftState done [08:42:47]opened in 1729557342 [08:42:47]opened+sec_in_day 1729643742 [08:42:47]quantity*price = 50041 [08:42:47]sum+1 = 50042 [08:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 46 22.10.2024 08:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30813 ФПД: 157941556382501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30813&fm=157941556382501&tin=02508201610067®Number=0000000000186857&sum=50000 [08:42:48]StoreToDocumentArchive [08:42:48]shift 116 fd 30813 [08:42:48]save to /storage/0116/doc_00030813 [08:42:48]save last doc name /storage/0116/doc_00030813 to /storage/kkm_last_doc_name [08:42:48]save OK [08:42:48]Clear old archive folders... [08:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:48]tlvbuf is 01DF6BA0 [08:42:48]SAM_PROTO_ClearQueue [08:42:48]wFMCommunicate request_size=4 [08:42:48]MH_SAM_APDU [08:42:48]CAPDU: 80 09 00 00 [08:42:48]Write to MH i2c: E2 08 00 21 7A 80 09 00 00 00 00 00 00 0D [08:42:48]Write i2c OK [08:42:48]MH_I2C_Read... [08:42:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:48]Read from MH i2c: E2 [08:42:48]MH_I2C_Read... [08:42:48]Read from MH i2c: E2 03 00 [08:42:48]MH_I2C_Read... [08:42:48]Read from MH i2c: E2 03 00 21 7A 00 90 00 0F [08:42:48]RAPDU: 90 00 [08:42:48]wFMCommunicate OK [08:42:48]SAM_PROTO_ClearQueue done [08:42:48]KKMCreateOFDPacket [08:42:48]OFDProtocolAddRootSTLVToBuf [08:42:48]FM_MakeSignedData [08:42:48]FM_MakeSignedData [08:42:48]SAM_PROTO_SignData [08:42:48]wFMCommunicate request_size=4 [08:42:48]MH_SAM_APDU [08:42:48]CAPDU: 80 0D 01 02 [08:42:48]Write to MH i2c: E2 08 00 22 7A 80 0D 01 02 00 00 00 00 15 [08:42:48]Write i2c OK [08:42:48]MH_I2C_Read... [08:42:48]Read from MH i2c: E2 [08:42:48]MH_I2C_Read... [08:42:48]Read from MH i2c: E2 03 00 [08:42:48]MH_I2C_Read... [08:42:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:48]Read from MH i2c: E2 03 00 22 7A 00 90 00 10 [08:42:48]RAPDU: 90 00 [08:42:48]wFMCommunicate OK [08:42:48]wFMCommunicate request_size=255 [08:42:48]MH_SAM_APDU [08:42: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 91 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 78 00 00 35 04 06 00 8F [08:42:48]Write to MH i2c: E2 02 01 23 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 91 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 78 00 00 35 04 06 00 8F 00 00 20 [08:42:48]Write i2c OK [08:42:48]MH_I2C_Read... [08:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:49]Read from MH i2c: E2 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 03 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 03 00 23 7A 00 90 00 11 [08:42:49]RAPDU: 90 00 [08:42:49]wFMCommunicate OK [08:42:49]wFMCommunicate request_size=10 [08:42:49]MH_SAM_APDU [08:42:49]CAPDU: 80 0D 02 02 05 A5 A2 5D 0B 25 [08:42:49]Write to MH i2c: E2 0D 00 24 7A 80 0D 02 02 05 00 A5 A2 5D 0B 25 00 00 F6 [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:49]Read from MH i2c: E2 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 03 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 03 00 24 7A 00 90 00 12 [08:42:49]RAPDU: 90 00 [08:42:49]wFMCommunicate OK [08:42:49]wFMCommunicate request_size=4 [08:42:49]MH_SAM_APDU [08:42:49]CAPDU: 80 0D 03 02 [08:42:49]Write to MH i2c: E2 08 00 25 7A 80 0D 03 02 00 00 00 00 1A [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:49]Read from MH i2c: E2 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 0B 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 0B 00 25 7A 00 7D E5 A6 74 2C 0C 7A DC 90 00 25 [08:42:49]RAPDU: 7D E5 A6 74 2C 0C 7A DC 90 00 [08:42:49]wFMCommunicate OK [08:42:49]SAM_PROTO_SignData done [08:42:49]FM_MakeSignedData done [08:42:49]CreateOFDProtocolMessage [08:42:49]wFMCommunicate request_size=4 [08:42:49]MH_SAM_APDU [08:42:49]CAPDU: 80 11 00 00 [08:42:49]Write to MH i2c: E2 08 00 26 7A 80 11 00 00 00 00 00 00 1A [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:49]Read from MH i2c: E2 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 17 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: E2 17 00 26 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [08:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:42:49]wFMCommunicate OK [08:42:49]CreateOFDProtocolMessage done [08:42:49]OFDSenderStorePacket 30813 [08:42:49]StoreOFDPacket docnum=30813 [08:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 BD 07 01 B0 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 91 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 78 00 00 35 04 06 00 8F A5 A2 5D 0B 25 7D E5 A6 74 2C 0C 7A DC [08:42:49]CheckFolder [08:42:49]dirname=/storage/ofd_packets [08:42:49]CheckFolder done [08:42:49]ProducePacketName [08:42:49]name=ofd_packets/00030813 [08:42:49]NVStorageSaveData ofd_packets/00030813 [08:42:49]File name is /storage/ofd_packets/00030813 [08:42:49]Write 301 bytes [08:42:49]NVStorageSaveData done [08:42:49]OFDSenderStorePacket done [08:42:49]KKMCreateOFDPacket done [08:42:49]NVStorageSaveData kkm_last_timestamp [08:42:49]File name is /storage/kkm_last_timestamp [08:42:49]Write 4 bytes [08:42:49]NVStorageSaveData done [08:42:49]ExternCall_PrintAddStr [08:42:49]wPrintStart [08:42:49]Write to MH i2c: 01 00 00 27 7A A1 [08:42:49]Write i2c OK [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 07 00 [08:42:49]MH_I2C_Read... [08:42:49]Read from MH i2c: 01 07 00 27 7A 00 00 00 00 00 FF 0F B6 [08:42:49]RasterBufferAndPrint [08:42:49]line Счет N : (1)343231 [08:42:49]line ИНН: 02508201610067 [08:42:49]line Контрольно-Кассовый Чек [08:42:49]line ПРОДАЖА [08:42:49]line ТРК (МРК, ГНК) : 53 [08:42:49]line Товар: 2710124130 [08:42:49]line Аи-92-К-2 [08:42:49]line 7.480 * 66.90 [08:42:49]line = 500.41 [08:42:49]line НДС 12% НСП 1% [08:42:49]line > о реализуемом товаре [08:42:49]line ОКРУГЛЕНИЕ: -0.41 [08:42:49]line ИТОГО: 500.00 [08:42:49]line Внесено: 500.00 [08:42:49]line СДАЧА: 0.00 [08:42:49]line НСП 1% : 4.43 [08:42:49]line НДС 12% : 53.14 [08:42:49]line Наличными: 500.00 [08:42:49]line Безнал.: 0.00 [08:42:49]line Место: АЗС № 78 "Партнер Нефть" [08:42:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:42:49]line СНО: Общий режим [08:42:49]line Чек 46 22.10.2024 08:42 [08:42:49]line Смена: 116 ФФД: 1.0 [08:42:49]line ЗНМ: 0300000137 [08:42:49]line РНМ: 0000000000186857 [08:42:49]line Версия ККМ: v1.0 [08:42:49]line ФМ: 0000000002094219 [08:42:49]line ФД: 30813 [08:42:49]line ФПД: 157941556382501 [08:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30813&fm=157941556382501&tin=02508201610067®Number=0000000000186857&sum=50000 [08:42:49]OFD Sender: Processing packet 30813 [packets to send 10, broken 9] [08:42:49]ProducePacketName [08:42:49]name=ofd_packets/00030813 [08:42:49]OFD Sender: To server: pG, [08:42:49]CommunicateWithHost lk.salyk.kg:30040 [08:42:49]ConnectInit lk.salyk.kg [08:42:49]written 0, free lines is 4095 [08:42:49]Connected sock=10 [08:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 BD 07 01 B0 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 91 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 78 00 00 35 04 06 00 8F A5 A2 5D 0B 25 7D E5 A6 74 2C 0C 7A DC [08:42:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 91 45 47 00 C5 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 78 00 00 F4 03 04 00 0F 10 17 67 B6 04 01 00 00 B8 63 36 0B A8 6B D6 CE [08:42:49]CommunicateWithHost err = 0 [08:42:49]CheckOFDResponse [08:42:49]1017 (14) - 77093643461234 [08:42:49]1041 (16) - 0000000002094219 [08:42:49]1040 (4) - 30813 [08:42:49]1012 (4) - 22.10.2024 02:38 [08:42:49]1206 (1) - 0 [08:42:49]OFD Sender: Remove packet 30813 [08:42:49]ProducePacketName [08:42:49]name=ofd_packets/00030813 [08:42:49]NVStorageDeleteData [08:42:50]Write to MH i2c: 01 00 00 52 7A CC [08:42:50]Write i2c OK [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: 01 [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: 01 07 00 [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: 01 07 00 52 7A 00 00 00 00 00 EE 0C CD [08:42:50]RasterBufferAndPrint [08:42:50]line [08:42:50]line [08:42:50]line [08:42:50]line [08:42:50]line [08:42:50]written 0, free lines is 3316 [08:42:50]MH_Cut [08:42:50]Write to MH i2c: D1 01 00 59 7A 01 A5 [08:42:50]Write i2c OK [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: D1 [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: D1 01 00 [08:42:50]MH_I2C_Read... [08:42:50]Read from MH i2c: D1 01 00 59 7A 00 A4 [08:42:50]Write to MH i2c: 01 00 00 5A 7A D4 [08:42:50]Write i2c OK [08:42:50]MH_I2C_Read... [08:42:50]OFD Sender: No OFD packet to send [08:42:50]*** Cut start [08:42:50]*** Partial cut [08:42:50]*** CUTSNS_PIN = 1 [08:42:50]*** CUTSNS_PIN = 0 [08:42:50]*** Brake cut motor [08:42:51]Read from MH i2c: 01 [08:42:51]MH_I2C_Read... [08:42:51]*** Stop cut motor [08:42:51]*** Cut end [08:42:51]Read from MH i2c: 01 07 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: 01 07 00 5A 7A 00 00 00 00 00 FF 0F E9 [08:42:51]process_action close_receipt done [08:42:51]requested_data is exist [08:42:51]produce_requested_data [08:42:51]requested_item fm.sn is exist - process it [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 11 00 00 [08:42:51]Write to MH i2c: E2 08 00 5B 7A 80 11 00 00 00 00 00 00 4F [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 17 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 17 00 5B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [08:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:42:51]wFMCommunicate OK [08:42:51]requested_item fd.num is exist - process it [08:42:51]SAM_PROTO_GetFieldsCounters [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 13 00 00 [08:42:51]Write to MH i2c: E2 08 00 5C 7A 80 13 00 00 00 00 00 00 52 [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 62 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 62 00 5C 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 78 00 00 0E 04 04 00 74 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 4B [08:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 78 00 00 0E 04 04 00 74 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 [08:42:51]wFMCommunicate OK [08:42:51]SAM_PROTO_GetFieldsCounters done [08:42:51]requested_item shift.num is exist - process it [08:42:51]requested_item shift.opened is exist - process it [08:42:51]req_shift_opened [08:42:51]FM_GetShiftState [08:42:51]SAM_PROTO_GetShiftState [08:42:51]wFMCommunicate request_size=4 [08:42:51]MH_SAM_APDU [08:42:51]CAPDU: 80 13 01 00 [08:42:51]Write to MH i2c: E2 08 00 5D 7A 80 13 01 00 00 00 00 00 54 [08:42:51]Write i2c OK [08:42:51]MH_I2C_Read... [08:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:51]Read from MH i2c: E2 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 0E 00 [08:42:51]MH_I2C_Read... [08:42:51]Read from MH i2c: E2 0E 00 5D 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2E [08:42:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:42:51]wFMCommunicate OK [08:42:51]SAM_PROTO_GetShiftState done [08:42:51]FM_GetShiftState done [08:42:51]req_shift_opened done [08:42:51]requested_item shift.open_date is exist - process it [08:42:51]req_shift_open_date [08:42:51]req_shift_open_date done [08:42:51]produce_requested_data done [08:42:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30813,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:42:51]process_action_free close_receipt [08:42:51]json_value_free [08:42:51]json_value_free done [08:42:51]process_json_proto returns [08:42:51]Send response to host [08:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30813,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:42:51]free response buf [08:42:51]execute_script done [08:42:51]execute_script returns [08:42:51]free content buf [08:42:51]Sock 7.Close socket [08:42:51]Sock 7.Thread stoped [08:42:52]accept exits with 9 [08:42:52]New connection [08:42:52]New thread 3067489636 created [08:42:52]Thread 3067346276 joined [08:42:52]Waiting for new connection... [08:42:52] Sock 9.Parse request [08:42:52]Sock 9.Check first char [08:42:52]Sock 9.First char is OK [08:42:52]request: POST /json_proto HTTP/1.0 [08:42:52]Method: POST [08:42:52]URL: /json_proto [08:42:52]Method is POST - this is cgi request [08:42:52]url: /json_proto [08:42:52]query_string will be loaded in cgi processing [08:42:52]execute_cgi json_proto POST (null) [08:42:52]execute_cgi path=json_proto method=POST [08:42:52]POST find Content-Length [08:42:52]Host: 172.17.51.3:8080 [08:42:52]Content-Length: 677 [08:42:52]Content-Type: application/json [08:42:52] [08:42:52]POST finish read [08:42:52]Found Content-Length = 677 [08:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:52]execute_script... [08:42: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)343232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:52]POST & json_proto [08:42:52]process_json_proto [08:42:52]json parsed OK: [08:42:52]protocol is kg_v1.0 [08:42:52]action value=close_receipt [08:42:52]process_action close_receipt [08:42:52]cmd_close_receipt [08:42:52]MH_GetDate [08:42:52]Write to MH i2c: F0 00 00 5E 7A C7 [08:42:52]Write i2c OK [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: F0 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: F0 09 00 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: F0 09 00 5E 7A 00 95 65 17 67 04 C1 95 66 08 [08:42:52]GetLastDocTimeStamp 1729586577 [08:42:52]current date 1729586581 [08:42:52]FM_GetShiftState [08:42:52]SAM_PROTO_GetShiftState [08:42:52]wFMCommunicate request_size=4 [08:42:52]MH_SAM_APDU [08:42:52]CAPDU: 80 13 01 00 [08:42:52]Write to MH i2c: E2 08 00 5F 7A 80 13 01 00 00 00 00 00 56 [08:42:52]Write i2c OK [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: E2 [08:42:52]MH_I2C_Read... [08:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:52]Read from MH i2c: E2 0E 00 [08:42:52]MH_I2C_Read... [08:42:52]Read from MH i2c: E2 0E 00 5F 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 30 [08:42:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:42:52]wFMCommunicate OK [08:42:52]SAM_PROTO_GetShiftState done [08:42:52]FM_GetShiftState done [08:42:52]opened in 1729557342 [08:42:52]opened+sec_in_day 1729643742 [08:42:52]quantity*price = 20003 [08:42:52]sum+1 = 20004 [08:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 47 22.10.2024 08:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30814 ФПД: 192323623129761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30814&fm=192323623129761&tin=02508201610067®Number=0000000000186857&sum=20000 [08:42:53]StoreToDocumentArchive [08:42:53]shift 116 fd 30814 [08:42:53]save to /storage/0116/doc_00030814 [08:42:53]save last doc name /storage/0116/doc_00030814 to /storage/kkm_last_doc_name [08:42:53]save OK [08:42:53]Clear old archive folders... [08:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:53]tlvbuf is 02015490 [08:42:53]SAM_PROTO_ClearQueue [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 09 00 00 [08:42:53]Write to MH i2c: E2 08 00 6C 7A 80 09 00 00 00 00 00 00 58 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 6C 7A 00 90 00 5A [08:42:53]RAPDU: 90 00 [08:42:53]wFMCommunicate OK [08:42:53]SAM_PROTO_ClearQueue done [08:42:53]KKMCreateOFDPacket [08:42:53]OFDProtocolAddRootSTLVToBuf [08:42:53]FM_MakeSignedData [08:42:53]FM_MakeSignedData [08:42:53]SAM_PROTO_SignData [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 0D 01 02 [08:42:53]Write to MH i2c: E2 08 00 6D 7A 80 0D 01 02 00 00 00 00 60 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 6D 7A 00 90 00 5B [08:42:53]RAPDU: 90 00 [08:42:53]wFMCommunicate OK [08:42:53]wFMCommunicate request_size=255 [08:42:53]MH_SAM_APDU [08:42: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 95 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 78 00 00 35 04 06 00 AE [08:42:53]Write to MH i2c: E2 02 01 6E 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 95 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 78 00 00 35 04 06 00 AE 00 00 52 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 6E 7A 00 90 00 5C [08:42:53]RAPDU: 90 00 [08:42:53]wFMCommunicate OK [08:42:53]wFMCommunicate request_size=10 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 0D 02 02 05 EA D5 3D 12 A1 [08:42:53]Write to MH i2c: E2 0D 00 6F 7A 80 0D 02 02 05 00 EA D5 3D 12 A1 00 00 1C [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 03 00 6F 7A 00 90 00 5D [08:42:53]RAPDU: 90 00 [08:42:53]wFMCommunicate OK [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 0D 03 02 [08:42:53]Write to MH i2c: E2 08 00 70 7A 80 0D 03 02 00 00 00 00 65 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0B 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0B 00 70 7A 00 EF 09 46 91 2A CE FF BB 90 00 E7 [08:42:53]RAPDU: EF 09 46 91 2A CE FF BB 90 00 [08:42:53]wFMCommunicate OK [08:42:53]SAM_PROTO_SignData done [08:42:53]FM_MakeSignedData done [08:42:53]CreateOFDProtocolMessage [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 11 00 00 [08:42:53]Write to MH i2c: E2 08 00 71 7A 80 11 00 00 00 00 00 00 65 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 17 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 17 00 71 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [08:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:42:53]wFMCommunicate OK [08:42:53]CreateOFDProtocolMessage done [08:42:53]OFDSenderStorePacket 30814 [08:42:53]StoreOFDPacket docnum=30814 [08:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 07 07 01 1C 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 95 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 78 00 00 35 04 06 00 AE EA D5 3D 12 A1 EF 09 46 91 2A CE FF BB [08:42:54]CheckFolder [08:42:54]dirname=/storage/ofd_packets [08:42:54]CheckFolder done [08:42:54]ProducePacketName [08:42:54]name=ofd_packets/00030814 [08:42:54]NVStorageSaveData ofd_packets/00030814 [08:42:54]File name is /storage/ofd_packets/00030814 [08:42:54]Write 301 bytes [08:42:54]NVStorageSaveData done [08:42:54]OFDSenderStorePacket done [08:42:54]KKMCreateOFDPacket done [08:42:54]NVStorageSaveData kkm_last_timestamp [08:42:54]File name is /storage/kkm_last_timestamp [08:42:54]Write 4 bytes [08:42:54]NVStorageSaveData done [08:42:54]ExternCall_PrintAddStr [08:42:54]wPrintStart [08:42:54]Write to MH i2c: 01 00 00 72 7A EC [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 72 7A 00 00 00 00 00 FF 0F 01 [08:42:54]RasterBufferAndPrint [08:42:54]line Счет N : (1)343232 [08:42:54]line ИНН: 02508201610067 [08:42:54]line Контрольно-Кассовый Чек [08:42:54]line ПРОДАЖА [08:42:54]line ТРК (МРК, ГНК) : 63 [08:42:54]line Товар: 2710124130 [08:42:54]line Аи-92-К-2 [08:42:54]line 2.990 * 66.90 [08:42:54]line = 200.03 [08:42:54]line НДС 12% НСП 1% [08:42:54]line > о реализуемом товаре [08:42:54]line ОКРУГЛЕНИЕ: -0.03 [08:42:54]line ИТОГО: 200.00 [08:42:54]line Внесено: 200.00 [08:42:54]line СДАЧА: 0.00 [08:42:54]line НСП 1% : 1.77 [08:42:54]line НДС 12% : 21.24 [08:42:54]line Наличными: 200.00 [08:42:54]line Безнал.: 0.00 [08:42:54]line Место: АЗС № 78 "Партнер Нефть" [08:42:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:42:54]line СНО: Общий режим [08:42:54]line Чек 47 22.10.2024 08:43 [08:42:54]line Смена: 116 ФФД: 1.0 [08:42:54]line ЗНМ: 0300000137 [08:42:54]line РНМ: 0000000000186857 [08:42:54]line Версия ККМ: v1.0 [08:42:54]line ФМ: 0000000002094219 [08:42:54]line ФД: 30814 [08:42:54]line ФПД: 192323623129761 [08:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30814&fm=192323623129761&tin=02508201610067®Number=0000000000186857&sum=20000 [08:42:54]OFD Sender: Processing packet 30814 [packets to send 10, broken 9] [08:42:54]ProducePacketName [08:42:54]name=ofd_packets/00030814 [08:42:54]OFD Sender: To server: pG, [08:42:54]CommunicateWithHost lk.salyk.kg:30040 [08:42:54]ConnectInit lk.salyk.kg [08:42:54]written 0, free lines is 4095 [08:42:54]Connected sock=10 [08:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 07 07 01 1C 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 95 65 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 78 00 00 35 04 06 00 AE EA D5 3D 12 A1 EF 09 46 91 2A CE FF BB [08:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 29 DA 47 00 22 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 78 00 00 F4 03 04 00 13 10 17 67 B6 04 01 00 00 C7 FA 7A 8E 4B B4 DB 7C [08:42:54]CommunicateWithHost err = 0 [08:42:54]CheckOFDResponse [08:42:54]1017 (14) - 77093643461234 [08:42:54]1041 (16) - 0000000002094219 [08:42:54]1040 (4) - 30814 [08:42:54]1012 (4) - 22.10.2024 02:38 [08:42:54]1206 (1) - 0 [08:42:54]OFD Sender: Remove packet 30814 [08:42:54]ProducePacketName [08:42:54]name=ofd_packets/00030814 [08:42:54]NVStorageDeleteData [08:42:54]Write to MH i2c: 01 00 00 9D 7A 17 [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: 01 07 00 9D 7A 00 00 00 00 00 F3 0C 1D [08:42:54]RasterBufferAndPrint [08:42:54]line [08:42:54]line [08:42:54]line [08:42:54]line [08:42:54]line [08:42:54]written 0, free lines is 3324 [08:42:54]MH_Cut [08:42:54]Write to MH i2c: D1 01 00 A4 7A 01 F0 [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: D1 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: D1 01 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: D1 01 00 A4 7A 00 EF [08:42:54]Write to MH i2c: 01 00 00 A5 7A 1F [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:55]OFD Sender: No OFD packet to send [08:42:55]*** Cut start [08:42:55]*** Partial cut [08:42:55]*** CUTSNS_PIN = 1 [08:42:55]*** CUTSNS_PIN = 0 [08:42:55]*** Brake cut motor [08:42:55]Read from MH i2c: 01 [08:42:55]MH_I2C_Read... [08:42:55]*** Stop cut motor [08:42:55]*** Cut end [08:42:55]Read from MH i2c: 01 07 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 07 00 A5 7A 00 00 00 00 00 FF 0F 34 [08:42:55]process_action close_receipt done [08:42:55]requested_data is exist [08:42:55]produce_requested_data [08:42:55]requested_item fm.sn is exist - process it [08:42:55]wFMCommunicate request_size=4 [08:42:55]MH_SAM_APDU [08:42:55]CAPDU: 80 11 00 00 [08:42:55]Write to MH i2c: E2 08 00 A6 7A 80 11 00 00 00 00 00 00 9A [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 A6 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [08:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:42:56]wFMCommunicate OK [08:42:56]requested_item fd.num is exist - process it [08:42:56]SAM_PROTO_GetFieldsCounters [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 13 00 00 [08:42:56]Write to MH i2c: E2 08 00 A7 7A 80 13 00 00 00 00 00 00 9D [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 62 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 62 00 A7 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 78 00 00 0E 04 04 00 74 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 9A [08:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 78 00 00 0E 04 04 00 74 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 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_GetFieldsCounters done [08:42:56]requested_item shift.num is exist - process it [08:42:56]requested_item shift.opened is exist - process it [08:42:56]req_shift_opened [08:42:56]FM_GetShiftState [08:42:56]SAM_PROTO_GetShiftState [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 13 01 00 [08:42:56]Write to MH i2c: E2 08 00 A8 7A 80 13 01 00 00 00 00 00 9F [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0E 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0E 00 A8 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 79 [08:42:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_GetShiftState done [08:42:56]FM_GetShiftState done [08:42:56]req_shift_opened done [08:42:56]requested_item shift.open_date is exist - process it [08:42:56]req_shift_open_date [08:42:56]req_shift_open_date done [08:42:56]produce_requested_data done [08:42:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30814,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:42:56]process_action_free close_receipt [08:42:56]json_value_free [08:42:56]json_value_free done [08:42:56]process_json_proto returns [08:42:56]Send response to host [08:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30814,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:42:56]free response buf [08:42:56]execute_script done [08:42:56]execute_script returns [08:42:56]free content buf [08:42:56]Sock 9.Close socket [08:42:56]Sock 9.Thread stoped [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:42]accept exits with 7 [08:44:42]New connection [08:44:42]New thread 3067346276 created [08:44:42]Thread 3067489636 joined [08:44:42]Waiting for new connection... [08:44:42] Sock 7.Parse request [08:44:42]Sock 7.Check first char [08:44:42]Sock 7.First char is OK [08:44:42]request: POST /json_proto HTTP/1.0 [08:44:42]Method: POST [08:44:42]URL: /json_proto [08:44:42]Method is POST - this is cgi request [08:44:42]url: /json_proto [08:44:42]query_string will be loaded in cgi processing [08:44:42]execute_cgi json_proto POST (null) [08:44:42]execute_cgi path=json_proto method=POST [08:44:42]POST find Content-Length [08:44:42]Host: 172.17.51.3:8080 [08:44:42]Content-Length: 682 [08:44:42]Content-Type: application/json [08:44:42] [08:44:42]POST finish read [08:44:42]Found Content-Length = 682 [08:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [08:44:42]execute_script... [08:44: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)343233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [08:44:42]POST & json_proto [08:44:42]process_json_proto [08:44:42]json parsed OK: [08:44:42]protocol is kg_v1.0 [08:44:42]action value=close_receipt [08:44:42]process_action close_receipt [08:44:42]cmd_close_receipt [08:44:42]MH_GetDate [08:44:42]Write to MH i2c: F0 00 00 A9 7A 12 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: F0 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: F0 09 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: F0 09 00 A9 7A 00 04 66 17 67 04 C1 95 66 C3 [08:44:42]GetLastDocTimeStamp 1729586581 [08:44:42]current date 1729586692 [08:44:42]FM_GetShiftState [08:44:42]SAM_PROTO_GetShiftState [08:44:42]wFMCommunicate request_size=4 [08:44:42]MH_SAM_APDU [08:44:42]CAPDU: 80 13 01 00 [08:44:42]Write to MH i2c: E2 08 00 AA 7A 80 13 01 00 00 00 00 00 A1 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:42]Read from MH i2c: E2 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: E2 0E 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: E2 0E 00 AA 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7B [08:44:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:44:42]wFMCommunicate OK [08:44:42]SAM_PROTO_GetShiftState done [08:44:42]FM_GetShiftState done [08:44:42]opened in 1729557342 [08:44:42]opened+sec_in_day 1729643742 [08:44:42]quantity*price = 150056 [08:44:42]sum+1 = 150058 [08:44:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 48 22.10.2024 08:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30815 ФПД: 239194124481319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30815&fm=239194124481319&tin=02508201610067®Number=0000000000186857&sum=150000 [08:44:44]StoreToDocumentArchive [08:44:44]shift 116 fd 30815 [08:44:44]save to /storage/0116/doc_00030815 [08:44:44]save last doc name /storage/0116/doc_00030815 to /storage/kkm_last_doc_name [08:44:44]save OK [08:44:44]Clear old archive folders... [08:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:44]tlvbuf is 0208E510 [08:44:44]SAM_PROTO_ClearQueue [08:44:44]wFMCommunicate request_size=4 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 09 00 00 [08:44:44]Write to MH i2c: E2 08 00 B7 7A 80 09 00 00 00 00 00 00 A3 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 B7 7A 00 90 00 A5 [08:44:44]RAPDU: 90 00 [08:44:44]wFMCommunicate OK [08:44:44]SAM_PROTO_ClearQueue done [08:44:44]KKMCreateOFDPacket [08:44:44]OFDProtocolAddRootSTLVToBuf [08:44:44]FM_MakeSignedData [08:44:44]FM_MakeSignedData [08:44:44]SAM_PROTO_SignData [08:44:44]wFMCommunicate request_size=4 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 0D 01 02 [08:44:44]Write to MH i2c: E2 08 00 B8 7A 80 0D 01 02 00 00 00 00 AB [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 B8 7A 00 90 00 A6 [08:44:44]RAPDU: 90 00 [08:44:44]wFMCommunicate OK [08:44:44]wFMCommunicate request_size=255 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 30 00 00 00 F4 03 04 00 04 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 78 00 00 35 04 06 00 D9 [08:44:44]Write to MH i2c: E2 02 01 B9 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 30 00 00 00 F4 03 04 00 04 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 78 00 00 35 04 06 00 D9 00 00 C1 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 B9 7A 00 90 00 A7 [08:44:44]RAPDU: 90 00 [08:44:44]wFMCommunicate OK [08:44:44]wFMCommunicate request_size=10 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 0D 02 02 05 8B B8 D2 73 27 [08:44:44]Write to MH i2c: E2 0D 00 BA 7A 80 0D 02 02 05 00 8B B8 D2 73 27 00 00 67 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 03 00 BA 7A 00 90 00 A8 [08:44:44]RAPDU: 90 00 [08:44:44]wFMCommunicate OK [08:44:44]wFMCommunicate request_size=4 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 0D 03 02 [08:44:44]Write to MH i2c: E2 08 00 BB 7A 80 0D 03 02 00 00 00 00 B0 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 0B 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 0B 00 BB 7A 00 A7 33 61 FD 7E D8 5A F6 90 00 8F [08:44:44]RAPDU: A7 33 61 FD 7E D8 5A F6 90 00 [08:44:44]wFMCommunicate OK [08:44:44]SAM_PROTO_SignData done [08:44:44]FM_MakeSignedData done [08:44:44]CreateOFDProtocolMessage [08:44:44]wFMCommunicate request_size=4 [08:44:44]MH_SAM_APDU [08:44:44]CAPDU: 80 11 00 00 [08:44:44]Write to MH i2c: E2 08 00 BC 7A 80 11 00 00 00 00 00 00 B0 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 17 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 17 00 BC 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [08:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:44:44]wFMCommunicate OK [08:44:44]CreateOFDProtocolMessage done [08:44:44]OFDSenderStorePacket 30815 [08:44:44]StoreOFDPacket docnum=30815 [08:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB CD 07 01 23 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 30 00 00 00 F4 03 04 00 04 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 78 00 00 35 04 06 00 D9 8B B8 D2 73 27 A7 33 61 FD 7E D8 5A F6 [08:44:44]CheckFolder [08:44:44]dirname=/storage/ofd_packets [08:44:44]CheckFolder done [08:44:44]ProducePacketName [08:44:44]name=ofd_packets/00030815 [08:44:44]NVStorageSaveData ofd_packets/00030815 [08:44:44]File name is /storage/ofd_packets/00030815 [08:44:44]Write 301 bytes [08:44:44]NVStorageSaveData done [08:44:44]OFDSenderStorePacket done [08:44:44]KKMCreateOFDPacket done [08:44:44]NVStorageSaveData kkm_last_timestamp [08:44:44]File name is /storage/kkm_last_timestamp [08:44:44]Write 4 bytes [08:44:44]NVStorageSaveData done [08:44:44]ExternCall_PrintAddStr [08:44:44]wPrintStart [08:44:44]Write to MH i2c: 01 00 00 BD 7A 37 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: 01 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: 01 07 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: 01 07 00 BD 7A 00 00 00 00 00 FF 0F 4C [08:44:44]RasterBufferAndPrint [08:44:44]line Счет N : (1)343233 [08:44:44]line ИНН: 02508201610067 [08:44:44]line Контрольно-Кассовый Чек [08:44:44]line ПРОДАЖА [08:44:44]line ТРК (МРК, ГНК) : 33 [08:44:44]line Товар: 2710124130 [08:44:44]line Аи-92-К-2 [08:44:44]line 22.430 * 66.90 [08:44:44]line = 1500.57 [08:44:44]line НДС 12% НСП 1% [08:44:44]line > о реализуемом товаре [08:44:44]line ОКРУГЛЕНИЕ: -0.57 [08:44:44]line ИТОГО: 1500.00 [08:44:44]line Внесено: 1500.00 [08:44:44]line СДАЧА: 0.00 [08:44:44]line НСП 1% : 13.28 [08:44:44]line НДС 12% : 159.35 [08:44:44]line Наличными: 1500.00 [08:44:44]line Безнал.: 0.00 [08:44:44]line Место: АЗС № 78 "Партнер Нефть" [08:44:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:44:44]line СНО: Общий режим [08:44:44]line Чек 48 22.10.2024 08:44 [08:44:44]line Смена: 116 ФФД: 1.0 [08:44:44]line ЗНМ: 0300000137 [08:44:44]line РНМ: 0000000000186857 [08:44:44]line Версия ККМ: v1.0 [08:44:44]line ФМ: 0000000002094219 [08:44:44]line ФД: 30815 [08:44:44]line ФПД: 239194124481319 [08:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30815&fm=239194124481319&tin=02508201610067®Number=0000000000186857&sum=150000 [08:44:44]OFD Sender: Processing packet 30815 [packets to send 10, broken 9] [08:44:44]ProducePacketName [08:44:44]name=ofd_packets/00030815 [08:44:44]OFD Sender: To server: pG, [08:44:44]CommunicateWithHost lk.salyk.kg:30040 [08:44:44]ConnectInit lk.salyk.kg [08:44:44]written 0, free lines is 4095 [08:44:45]Connected sock=10 [08:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB CD 07 01 23 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 30 00 00 00 F4 03 04 00 04 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 78 00 00 35 04 06 00 D9 8B B8 D2 73 27 A7 33 61 FD 7E D8 5A F6 [08:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EC 5E 47 00 DA 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 78 00 00 F4 03 04 00 82 10 17 67 B6 04 01 00 00 FD 91 45 08 EC 77 8C CB [08:44:45]CommunicateWithHost err = 0 [08:44:45]CheckOFDResponse [08:44:45]1017 (14) - 77093643461234 [08:44:45]1041 (16) - 0000000002094219 [08:44:45]1040 (4) - 30815 [08:44:45]1012 (4) - 22.10.2024 02:40 [08:44:45]1206 (1) - 0 [08:44:45]OFD Sender: Remove packet 30815 [08:44:45]ProducePacketName [08:44:45]name=ofd_packets/00030815 [08:44:45]NVStorageDeleteData [08:44:45]Write to MH i2c: 01 00 00 E8 7A 62 [08:44:45]Write i2c OK [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: 01 [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: 01 07 00 [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: 01 07 00 E8 7A 00 00 00 00 00 EA 0C 5F [08:44:45]RasterBufferAndPrint [08:44:45]line [08:44:45]line [08:44:45]line [08:44:45]line [08:44:45]line [08:44:45]written 0, free lines is 3313 [08:44:45]MH_Cut [08:44:45]Write to MH i2c: D1 01 00 EF 7A 01 3B [08:44:45]Write i2c OK [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: D1 [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: D1 01 00 [08:44:45]MH_I2C_Read... [08:44:45]Read from MH i2c: D1 01 00 EF 7A 00 3A [08:44:45]Write to MH i2c: 01 00 00 F0 7A 6A [08:44:45]Write i2c OK [08:44:45]MH_I2C_Read... [08:44:45]OFD Sender: No OFD packet to send [08:44:46]*** Cut start [08:44:46]*** Partial cut [08:44:46]*** CUTSNS_PIN = 1 [08:44:46]*** CUTSNS_PIN = 0 [08:44:46]*** Brake cut motor [08:44:46]Read from MH i2c: 01 [08:44:46]MH_I2C_Read... [08:44:46]*** Stop cut motor [08:44:46]*** Cut end [08:44:46]Read from MH i2c: 01 07 00 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: 01 07 00 F0 7A 00 00 00 00 00 FF 0F 7F [08:44:46]process_action close_receipt done [08:44:46]requested_data is exist [08:44:46]produce_requested_data [08:44:46]requested_item fm.sn is exist - process it [08:44:46]wFMCommunicate request_size=4 [08:44:46]MH_SAM_APDU [08:44:46]CAPDU: 80 11 00 00 [08:44:46]Write to MH i2c: E2 08 00 F1 7A 80 11 00 00 00 00 00 00 E5 [08:44:46]Write i2c OK [08:44:46]MH_I2C_Read... [08:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:46]Read from MH i2c: E2 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 17 00 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 17 00 F1 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [08:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:44:46]wFMCommunicate OK [08:44:46]requested_item fd.num is exist - process it [08:44:46]SAM_PROTO_GetFieldsCounters [08:44:46]wFMCommunicate request_size=4 [08:44:46]MH_SAM_APDU [08:44:46]CAPDU: 80 13 00 00 [08:44:46]Write to MH i2c: E2 08 00 F2 7A 80 13 00 00 00 00 00 00 E8 [08:44:46]Write i2c OK [08:44:46]MH_I2C_Read... [08:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:46]Read from MH i2c: E2 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 62 00 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 62 00 F2 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 78 00 00 0E 04 04 00 74 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 E9 [08:44:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 78 00 00 0E 04 04 00 74 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 [08:44:46]wFMCommunicate OK [08:44:46]SAM_PROTO_GetFieldsCounters done [08:44:46]requested_item shift.num is exist - process it [08:44:46]requested_item shift.opened is exist - process it [08:44:46]req_shift_opened [08:44:46]FM_GetShiftState [08:44:46]SAM_PROTO_GetShiftState [08:44:46]wFMCommunicate request_size=4 [08:44:46]MH_SAM_APDU [08:44:46]CAPDU: 80 13 01 00 [08:44:46]Write to MH i2c: E2 08 00 F3 7A 80 13 01 00 00 00 00 00 EA [08:44:46]Write i2c OK [08:44:46]MH_I2C_Read... [08:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:46]Read from MH i2c: E2 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 0E 00 [08:44:46]MH_I2C_Read... [08:44:46]Read from MH i2c: E2 0E 00 F3 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C4 [08:44:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:44:46]wFMCommunicate OK [08:44:46]SAM_PROTO_GetShiftState done [08:44:46]FM_GetShiftState done [08:44:46]req_shift_opened done [08:44:46]requested_item shift.open_date is exist - process it [08:44:46]req_shift_open_date [08:44:46]req_shift_open_date done [08:44:46]produce_requested_data done [08:44:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30815,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:44:46]process_action_free close_receipt [08:44:46]json_value_free [08:44:46]json_value_free done [08:44:46]process_json_proto returns [08:44:46]Send response to host [08:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30815,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:44:46]free response buf [08:44:46]execute_script done [08:44:46]execute_script returns [08:44:46]free content buf [08:44:46]Sock 7.Close socket [08:44:46]Sock 7.Thread stoped [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [08:48:04]New connection [08:48:04]New thread 3067489636 created [08:48:04]Thread 3067346276 joined [08:48:04]Waiting for new connection... [08:48:04] Sock 9.Parse request [08:48:04]Sock 9.Check first char [08:48:04]Sock 9.First char is OK [08:48:04]request: POST /json_proto HTTP/1.0 [08:48:04]Method: POST [08:48:04]URL: /json_proto [08:48:04]Method is POST - this is cgi request [08:48:04]url: /json_proto [08:48:04]query_string will be loaded in cgi processing [08:48:04]execute_cgi json_proto POST (null) [08:48:04]execute_cgi path=json_proto method=POST [08:48:04]POST find Content-Length [08:48:04]Host: 172.17.51.3:8080 [08:48:04]Content-Length: 682 [08:48:04]Content-Type: application/json [08:48:04] [08:48:04]POST finish read [08:48:04]Found Content-Length = 682 [08:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [08:48:04]execute_script... [08:48: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)343235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [08:48:04]POST & json_proto [08:48:04]process_json_proto [08:48:04]json parsed OK: [08:48:04]protocol is kg_v1.0 [08:48:04]action value=close_receipt [08:48:04]process_action close_receipt [08:48:04]cmd_close_receipt [08:48:04]MH_GetDate [08:48:04]Write to MH i2c: F0 00 00 F4 7A 5D [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: F0 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: F0 09 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: F0 09 00 F4 7A 00 CE 66 17 67 04 C1 95 66 D8 [08:48:04]GetLastDocTimeStamp 1729586692 [08:48:04]current date 1729586894 [08:48:04]FM_GetShiftState [08:48:04]SAM_PROTO_GetShiftState [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 13 01 00 [08:48:04]Write to MH i2c: E2 08 00 F5 7A 80 13 01 00 00 00 00 00 EC [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 0E 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 0E 00 F5 7A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C6 [08:48:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:48:04]wFMCommunicate OK [08:48:04]SAM_PROTO_GetShiftState done [08:48:04]FM_GetShiftState done [08:48:04]opened in 1729557342 [08:48:04]opened+sec_in_day 1729643742 [08:48:04]quantity*price = 250005 [08:48:04]sum+1 = 250006 [08:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 49 22.10.2024 08:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30816 ФПД: 151023451273946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084814&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30816&fm=151023451273946&tin=02508201610067®Number=0000000000186857&sum=250000 [08:48:05]StoreToDocumentArchive [08:48:05]shift 116 fd 30816 [08:48:05]save to /storage/0116/doc_00030816 [08:48:05]save last doc name /storage/0116/doc_00030816 to /storage/kkm_last_doc_name [08:48:05]save OK [08:48:05]Clear old archive folders... [08:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:05]tlvbuf is 01E50650 [08:48:05]SAM_PROTO_ClearQueue [08:48:05]wFMCommunicate request_size=4 [08:48:05]MH_SAM_APDU [08:48:05]CAPDU: 80 09 00 00 [08:48:05]Write to MH i2c: E2 08 00 02 7B 80 09 00 00 00 00 00 00 EF [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:05]Read from MH i2c: E2 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 03 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 03 00 02 7B 00 90 00 F1 [08:48:05]RAPDU: 90 00 [08:48:05]wFMCommunicate OK [08:48:05]SAM_PROTO_ClearQueue done [08:48:05]KKMCreateOFDPacket [08:48:05]OFDProtocolAddRootSTLVToBuf [08:48:05]FM_MakeSignedData [08:48:05]FM_MakeSignedData [08:48:05]SAM_PROTO_SignData [08:48:05]wFMCommunicate request_size=4 [08:48:05]MH_SAM_APDU [08:48:05]CAPDU: 80 0D 01 02 [08:48:05]Write to MH i2c: E2 08 00 03 7B 80 0D 01 02 00 00 00 00 F7 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:05]Read from MH i2c: E2 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 03 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 03 00 03 7B 00 90 00 F2 [08:48:05]RAPDU: 90 00 [08:48:05]wFMCommunicate OK [08:48:05]wFMCommunicate request_size=255 [08:48:05]MH_SAM_APDU [08:48: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 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 31 00 00 00 F4 03 04 00 CE 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 78 00 00 35 04 06 00 89 [08:48:05]Write to MH i2c: E2 02 01 04 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 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 31 00 00 00 F4 03 04 00 CE 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 78 00 00 35 04 06 00 89 00 00 78 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]OFD Sender: No OFD packet to send [08:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:06]Read from MH i2c: E2 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 03 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 03 00 04 7B 00 90 00 F3 [08:48:06]RAPDU: 90 00 [08:48:06]wFMCommunicate OK [08:48:06]wFMCommunicate request_size=10 [08:48:06]MH_SAM_APDU [08:48:06]CAPDU: 80 0D 02 02 05 5A E3 2A 7A DA [08:48:06]Write to MH i2c: E2 0D 00 05 7B 80 0D 02 02 05 00 5A E3 2A 7A DA 00 00 BF [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:06]Read from MH i2c: E2 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 03 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 03 00 05 7B 00 90 00 F4 [08:48:06]RAPDU: 90 00 [08:48:06]wFMCommunicate OK [08:48:06]wFMCommunicate request_size=4 [08:48:06]MH_SAM_APDU [08:48:06]CAPDU: 80 0D 03 02 [08:48:06]Write to MH i2c: E2 08 00 06 7B 80 0D 03 02 00 00 00 00 FC [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:06]Read from MH i2c: E2 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 0B 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 0B 00 06 7B 00 1E 46 9A 71 B4 01 93 2B 90 00 DF [08:48:06]RAPDU: 1E 46 9A 71 B4 01 93 2B 90 00 [08:48:06]wFMCommunicate OK [08:48:06]SAM_PROTO_SignData done [08:48:06]FM_MakeSignedData done [08:48:06]CreateOFDProtocolMessage [08:48:06]wFMCommunicate request_size=4 [08:48:06]MH_SAM_APDU [08:48:06]CAPDU: 80 11 00 00 [08:48:06]Write to MH i2c: E2 08 00 07 7B 80 11 00 00 00 00 00 00 FC [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:06]Read from MH i2c: E2 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 17 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: E2 17 00 07 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [08:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:06]wFMCommunicate OK [08:48:06]CreateOFDProtocolMessage done [08:48:06]OFDSenderStorePacket 30816 [08:48:06]StoreOFDPacket docnum=30816 [08:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 36 DB 07 01 91 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 31 00 00 00 F4 03 04 00 CE 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 78 00 00 35 04 06 00 89 5A E3 2A 7A DA 1E 46 9A 71 B4 01 93 2B [08:48:06]CheckFolder [08:48:06]dirname=/storage/ofd_packets [08:48:06]CheckFolder done [08:48:06]ProducePacketName [08:48:06]name=ofd_packets/00030816 [08:48:06]NVStorageSaveData ofd_packets/00030816 [08:48:06]File name is /storage/ofd_packets/00030816 [08:48:06]Write 301 bytes [08:48:06]NVStorageSaveData done [08:48:06]OFDSenderStorePacket done [08:48:06]KKMCreateOFDPacket done [08:48:06]NVStorageSaveData kkm_last_timestamp [08:48:06]File name is /storage/kkm_last_timestamp [08:48:06]Write 4 bytes [08:48:06]NVStorageSaveData done [08:48:06]ExternCall_PrintAddStr [08:48:06]wPrintStart [08:48:06]Write to MH i2c: 01 00 00 08 7B 83 [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 07 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 07 00 08 7B 00 00 00 00 00 FF 0F 98 [08:48:06]RasterBufferAndPrint [08:48:06]line Счет N : (1)343235 [08:48:06]line ИНН: 02508201610067 [08:48:06]line Контрольно-Кассовый Чек [08:48:06]line ПРОДАЖА [08:48:06]line ТРК (МРК, ГНК) : 63 [08:48:06]line Товар: 2710124130 [08:48:06]line Аи-92-К-2 [08:48:06]line 37.370 * 66.90 [08:48:06]line = 2500.05 [08:48:06]line НДС 12% НСП 1% [08:48:06]line > о реализуемом товаре [08:48:06]line ОКРУГЛЕНИЕ: -0.05 [08:48:06]line ИТОГО: 2500.00 [08:48:06]line Внесено: 2500.00 [08:48:06]line СДАЧА: 0.00 [08:48:06]line НСП 1% : 22.12 [08:48:06]line НДС 12% : 265.49 [08:48:06]line Наличными: 2500.00 [08:48:06]line Безнал.: 0.00 [08:48:06]line Место: АЗС № 78 "Партнер Нефть" [08:48:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:48:06]line СНО: Общий режим [08:48:06]line Чек 49 22.10.2024 08:48 [08:48:06]line Смена: 116 ФФД: 1.0 [08:48:06]line ЗНМ: 0300000137 [08:48:06]line РНМ: 0000000000186857 [08:48:06]line Версия ККМ: v1.0 [08:48:06]line ФМ: 0000000002094219 [08:48:06]line ФД: 30816 [08:48:06]line ФПД: 151023451273946 [08:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084814&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30816&fm=151023451273946&tin=02508201610067®Number=0000000000186857&sum=250000 [08:48:06]OFD Sender: Processing packet 30816 [packets to send 10, broken 9] [08:48:06]ProducePacketName [08:48:06]name=ofd_packets/00030816 [08:48:06]OFD Sender: To server: pG, [08:48:06]CommunicateWithHost lk.salyk.kg:30040 [08:48:06]ConnectInit lk.salyk.kg [08:48:06]written 0, free lines is 4095 [08:48:06]Connected sock=10 [08:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 36 DB 07 01 91 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 31 00 00 00 F4 03 04 00 CE 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 78 00 00 35 04 06 00 89 5A E3 2A 7A DA 1E 46 9A 71 B4 01 93 2B [08:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 64 98 47 00 96 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 78 00 00 F4 03 04 00 4C 11 17 67 B6 04 01 00 00 28 28 AF 79 16 C8 95 76 [08:48:06]CommunicateWithHost err = 0 [08:48:06]CheckOFDResponse [08:48:06]1017 (14) - 77093643461234 [08:48:06]1041 (16) - 0000000002094219 [08:48:06]1040 (4) - 30816 [08:48:06]1012 (4) - 22.10.2024 02:43 [08:48:06]1206 (1) - 0 [08:48:06]OFD Sender: Remove packet 30816 [08:48:06]ProducePacketName [08:48:06]name=ofd_packets/00030816 [08:48:06]NVStorageDeleteData [08:48:06]Write to MH i2c: 01 00 00 33 7B AE [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 07 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: 01 07 00 33 7B 00 00 00 00 00 F7 0C B8 [08:48:06]RasterBufferAndPrint [08:48:06]line [08:48:06]line [08:48:06]line [08:48:06]line [08:48:06]line [08:48:06]written 0, free lines is 3326 [08:48:06]MH_Cut [08:48:06]Write to MH i2c: D1 01 00 3A 7B 01 87 [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: D1 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: D1 01 00 [08:48:06]MH_I2C_Read... [08:48:06]Read from MH i2c: D1 01 00 3A 7B 00 86 [08:48:06]Write to MH i2c: 01 00 00 3B 7B B6 [08:48:06]Write i2c OK [08:48:06]MH_I2C_Read... [08:48:07]OFD Sender: No OFD packet to send [08:48:07]*** Cut start [08:48:07]*** Partial cut [08:48:07]*** CUTSNS_PIN = 1 [08:48:07]*** CUTSNS_PIN = 0 [08:48:07]*** Brake cut motor [08:48:08]Read from MH i2c: 01 [08:48:08]MH_I2C_Read... [08:48:08]*** Stop cut motor [08:48:08]*** Cut end [08:48:08]Read from MH i2c: 01 07 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: 01 07 00 3B 7B 00 00 00 00 00 FF 0F CB [08:48:08]process_action close_receipt done [08:48:08]requested_data is exist [08:48:08]produce_requested_data [08:48:08]requested_item fm.sn is exist - process it [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 11 00 00 [08:48:08]Write to MH i2c: E2 08 00 3C 7B 80 11 00 00 00 00 00 00 31 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:08]Read from MH i2c: E2 17 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 17 00 3C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [08:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:08]wFMCommunicate OK [08:48:08]requested_item fd.num is exist - process it [08:48:08]SAM_PROTO_GetFieldsCounters [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 13 00 00 [08:48:08]Write to MH i2c: E2 08 00 3D 7B 80 13 00 00 00 00 00 00 34 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 62 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 62 00 3D 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 78 00 00 0E 04 04 00 74 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 39 [08:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 78 00 00 0E 04 04 00 74 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 [08:48:08]wFMCommunicate OK [08:48:08]SAM_PROTO_GetFieldsCounters done [08:48:08]requested_item shift.num is exist - process it [08:48:08]requested_item shift.opened is exist - process it [08:48:08]req_shift_opened [08:48:08]FM_GetShiftState [08:48:08]SAM_PROTO_GetShiftState [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 13 01 00 [08:48:08]Write to MH i2c: E2 08 00 3E 7B 80 13 01 00 00 00 00 00 36 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 3E 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 10 [08:48:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:48:08]wFMCommunicate OK [08:48:08]SAM_PROTO_GetShiftState done [08:48:08]FM_GetShiftState done [08:48:08]req_shift_opened done [08:48:08]requested_item shift.open_date is exist - process it [08:48:08]req_shift_open_date [08:48:08]req_shift_open_date done [08:48:08]produce_requested_data done [08:48:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30816,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:48:08]process_action_free close_receipt [08:48:08]json_value_free [08:48:08]json_value_free done [08:48:08]process_json_proto returns [08:48:08]Send response to host [08:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30816,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:48:08]free response buf [08:48:08]execute_script done [08:48:08]execute_script returns [08:48:08]free content buf [08:48:08]Sock 9.Close socket [08:48:08]Sock 9.Thread stoped [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:18]accept exits with 7 [08:48:18]New connection [08:48:18]New thread 3067346276 created [08:48:18]Thread 3067489636 joined [08:48:18]Waiting for new connection... [08:48:18] Sock 7.Parse request [08:48:18]Sock 7.Check first char [08:48:18]Sock 7.First char is OK [08:48:18]request: POST /json_proto HTTP/1.0 [08:48:18]Method: POST [08:48:18]URL: /json_proto [08:48:18]Method is POST - this is cgi request [08:48:18]url: /json_proto [08:48:18]query_string will be loaded in cgi processing [08:48:18]execute_cgi json_proto POST (null) [08:48:18]execute_cgi path=json_proto method=POST [08:48:18]POST find Content-Length [08:48:18]Host: 172.17.51.3:8080 [08:48:18]Content-Length: 751 [08:48:18]Content-Type: application/json [08:48:18] [08:48:18]POST finish read [08:48:18]Found Content-Length = 751 [08:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:18]execute_script... [08:48: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)343234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:18]POST & json_proto [08:48:18]process_json_proto [08:48:18]json parsed OK: [08:48:18]protocol is kg_v1.0 [08:48:18]action value=close_receipt [08:48:18]process_action close_receipt [08:48:18]cmd_close_receipt [08:48:18]MH_GetDate [08:48:18]Write to MH i2c: F0 00 00 3F 7B A9 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: F0 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: F0 09 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: F0 09 00 3F 7B 00 DB 66 17 67 04 C1 95 66 31 [08:48:18]GetLastDocTimeStamp 1729586894 [08:48:18]current date 1729586907 [08:48:18]FM_GetShiftState [08:48:18]SAM_PROTO_GetShiftState [08:48:18]wFMCommunicate request_size=4 [08:48:18]MH_SAM_APDU [08:48:18]CAPDU: 80 13 01 00 [08:48:18]Write to MH i2c: E2 08 00 40 7B 80 13 01 00 00 00 00 00 38 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:18]Read from MH i2c: E2 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: E2 0E 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: E2 0E 00 40 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 12 [08:48:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:48:18]wFMCommunicate OK [08:48:18]SAM_PROTO_GetShiftState done [08:48:18]FM_GetShiftState done [08:48:18]opened in 1729557342 [08:48:18]opened+sec_in_day 1729643742 [08:48:18]quantity*price = 0 [08:48:18]sum+1 = 1 [08:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 50 22.10.2024 08:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30817 ФПД: 102035408168501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30817&fm=102035408168501&tin=02508201610067®Number=0000000000186857&sum=0 [08:48:19]StoreToDocumentArchive [08:48:19]shift 116 fd 30817 [08:48:19]save to /storage/0116/doc_00030817 [08:48:19]save last doc name /storage/0116/doc_00030817 to /storage/kkm_last_doc_name [08:48:19]save OK [08:48:19]Clear old archive folders... [08:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:19]tlvbuf is 0208E840 [08:48:19]SAM_PROTO_ClearQueue [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 09 00 00 [08:48:19]Write to MH i2c: E2 08 00 4D 7B 80 09 00 00 00 00 00 00 3A [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 4D 7B 00 90 00 3C [08:48:19]RAPDU: 90 00 [08:48:19]wFMCommunicate OK [08:48:19]SAM_PROTO_ClearQueue done [08:48:19]KKMCreateOFDPacket [08:48:19]OFDProtocolAddRootSTLVToBuf [08:48:19]FM_MakeSignedData [08:48:19]FM_MakeSignedData [08:48:19]SAM_PROTO_SignData [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 0D 01 02 [08:48:19]Write to MH i2c: E2 08 00 4E 7B 80 0D 01 02 00 00 00 00 42 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 4E 7B 00 90 00 3D [08:48:19]RAPDU: 90 00 [08:48:19]wFMCommunicate OK [08:48:19]wFMCommunicate request_size=255 [08:48:19]MH_SAM_APDU [08:48: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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DB 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 78 00 00 35 04 06 00 5C CC F8 42 [08:48:19]Write to MH i2c: E2 02 01 4F 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DB 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 78 00 00 35 04 06 00 5C CC F8 42 00 00 C3 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 4F 7B 00 90 00 3E [08:48:19]RAPDU: 90 00 [08:48:19]wFMCommunicate OK [08:48:19]wFMCommunicate request_size=7 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 0D 02 02 02 26 35 [08:48:19]Write to MH i2c: E2 0A 00 50 7B 80 0D 02 02 02 00 26 35 00 00 A4 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 03 00 50 7B 00 90 00 3F [08:48:19]RAPDU: 90 00 [08:48:19]wFMCommunicate OK [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 0D 03 02 [08:48:19]Write to MH i2c: E2 08 00 51 7B 80 0D 03 02 00 00 00 00 47 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 0B 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 0B 00 51 7B 00 1E B8 7F B6 F8 3D C6 63 90 00 B1 [08:48:19]RAPDU: 1E B8 7F B6 F8 3D C6 63 90 00 [08:48:19]wFMCommunicate OK [08:48:19]SAM_PROTO_SignData done [08:48:19]FM_MakeSignedData done [08:48:19]CreateOFDProtocolMessage [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 11 00 00 [08:48:19]Write to MH i2c: E2 08 00 52 7B 80 11 00 00 00 00 00 00 47 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 52 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [08:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:19]wFMCommunicate OK [08:48:19]CreateOFDProtocolMessage done [08:48:19]OFDSenderStorePacket 30817 [08:48:19]StoreOFDPacket docnum=30817 [08:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0C 4E 04 01 83 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DB 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 78 00 00 35 04 06 00 5C CC F8 42 26 35 1E B8 7F B6 F8 3D C6 63 [08:48:19]CheckFolder [08:48:19]dirname=/storage/ofd_packets [08:48:19]CheckFolder done [08:48:19]ProducePacketName [08:48:19]name=ofd_packets/00030817 [08:48:19]NVStorageSaveData ofd_packets/00030817 [08:48:19]File name is /storage/ofd_packets/00030817 [08:48:19]Write 298 bytes [08:48:19]NVStorageSaveData done [08:48:19]OFDSenderStorePacket done [08:48:19]KKMCreateOFDPacket done [08:48:19]NVStorageSaveData kkm_last_timestamp [08:48:19]File name is /storage/kkm_last_timestamp [08:48:19]Write 4 bytes [08:48:19]NVStorageSaveData done [08:48:19]ExternCall_PrintAddStr [08:48:19]wPrintStart [08:48:19]Write to MH i2c: 01 00 00 53 7B CE [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: 01 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: 01 07 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: 01 07 00 53 7B 00 00 00 00 00 FF 0F E3 [08:48:19]RasterBufferAndPrint [08:48:19]line Счет N : (1)343234 [08:48:19]line ИНН: 02508201610067 [08:48:19]line Контрольно-Кассовый Чек [08:48:19]line ПРОДАЖА [08:48:19]line ТРК (МРК, ГНК) : 54 [08:48:19]line Товар: 2710194210 [08:48:19]line ДТ-К-2 [08:48:19]line 70.000 * 0.00 [08:48:19]line = 0.00 [08:48:19]line НДС 12% НСП 1% [08:48:19]line > о реализуемом товаре [08:48:19]line ИТОГО: 0.00 [08:48:19]line НСП 1% : 0.00 [08:48:19]line НДС 12% : 0.00 [08:48:19]line Наличными: 0.00 [08:48:19]line Безнал.: 0.00 [08:48:19]line Место: АЗС № 78 "Партнер Нефть" [08:48:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:48:19]line СНО: Общий режим [08:48:19]line Чек 50 22.10.2024 08:48 [08:48:19]line Смена: 116 ФФД: 1.0 [08:48:19]line ЗНМ: 0300000137 [08:48:19]line РНМ: 0000000000186857 [08:48:19]line Версия ККМ: v1.0 [08:48:19]line Талоны: ТК ГПНА Online [08:48:19]line 30132031 [08:48:19]line ФМ: 0000000002094219 [08:48:19]line ФД: 30817 [08:48:19]line ФПД: 102035408168501 [08:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30817&fm=102035408168501&tin=02508201610067®Number=0000000000186857&sum=0 [08:48:20]OFD Sender: Processing packet 30817 [packets to send 10, broken 9] [08:48:20]ProducePacketName [08:48:20]name=ofd_packets/00030817 [08:48:20]OFD Sender: To server: pG, [08:48:20]CommunicateWithHost lk.salyk.kg:30040 [08:48:20]ConnectInit lk.salyk.kg [08:48:20]written 0, free lines is 4095 [08:48:20]Connected sock=10 [08:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0C 4E 04 01 83 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DB 66 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 78 00 00 35 04 06 00 5C CC F8 42 26 35 1E B8 7F B6 F8 3D C6 63 [08:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BB EB 47 00 42 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 32 30 39 34 32 31 39 10 04 04 00 61 78 00 00 F4 03 04 00 59 11 17 67 B6 04 01 00 00 E5 D5 71 4E 27 17 F0 16 [08:48:20]CommunicateWithHost err = 0 [08:48:20]CheckOFDResponse [08:48:20]1017 (14) - 77093643461234 [08:48:20]1041 (16) - 0000000002094219 [08:48:20]1040 (4) - 30817 [08:48:20]1012 (4) - 22.10.2024 02:43 [08:48:20]1206 (1) - 0 [08:48:20]OFD Sender: Remove packet 30817 [08:48:20]ProducePacketName [08:48:20]name=ofd_packets/00030817 [08:48:20]NVStorageDeleteData [08:48:20]Write to MH i2c: 01 00 00 7D 7B F8 [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: 01 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: 01 07 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: 01 07 00 7D 7B 00 00 00 00 00 FB 0C 06 [08:48:20]RasterBufferAndPrint [08:48:20]line [08:48:20]line [08:48:20]line [08:48:20]line [08:48:20]line [08:48:20]written 0, free lines is 3332 [08:48:20]MH_Cut [08:48:20]Write to MH i2c: D1 01 00 84 7B 01 D1 [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: D1 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: D1 01 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: D1 01 00 84 7B 00 D0 [08:48:20]Write to MH i2c: 01 00 00 85 7B 00 [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:20]OFD Sender: No OFD packet to send [08:48:21]*** Cut start [08:48:21]*** Partial cut [08:48:21]*** CUTSNS_PIN = 1 [08:48:21]*** CUTSNS_PIN = 0 [08:48:21]*** Brake cut motor [08:48:21]Read from MH i2c: 01 [08:48:21]MH_I2C_Read... [08:48:21]*** Stop cut motor [08:48:21]*** Cut end [08:48:21]Read from MH i2c: 01 07 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: 01 07 00 85 7B 00 00 00 00 00 FF 0F 15 [08:48:21]process_action close_receipt done [08:48:21]requested_data is exist [08:48:21]produce_requested_data [08:48:21]requested_item fm.sn is exist - process it [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 11 00 00 [08:48:21]Write to MH i2c: E2 08 00 86 7B 80 11 00 00 00 00 00 00 7B [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 17 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 17 00 86 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [08:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:21]wFMCommunicate OK [08:48:21]requested_item fd.num is exist - process it [08:48:21]SAM_PROTO_GetFieldsCounters [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 13 00 00 [08:48:21]Write to MH i2c: E2 08 00 87 7B 80 13 00 00 00 00 00 00 7E [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:22]Read from MH i2c: E2 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 62 00 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 62 00 87 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 78 00 00 0E 04 04 00 74 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 87 [08:48:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 78 00 00 0E 04 04 00 74 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 [08:48:22]wFMCommunicate OK [08:48:22]SAM_PROTO_GetFieldsCounters done [08:48:22]requested_item shift.num is exist - process it [08:48:22]requested_item shift.opened is exist - process it [08:48:22]req_shift_opened [08:48:22]FM_GetShiftState [08:48:22]SAM_PROTO_GetShiftState [08:48:22]wFMCommunicate request_size=4 [08:48:22]MH_SAM_APDU [08:48:22]CAPDU: 80 13 01 00 [08:48:22]Write to MH i2c: E2 08 00 88 7B 80 13 01 00 00 00 00 00 80 [08:48:22]Write i2c OK [08:48:22]MH_I2C_Read... [08:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:22]Read from MH i2c: E2 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 0E 00 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 0E 00 88 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5A [08:48:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:48:22]wFMCommunicate OK [08:48:22]SAM_PROTO_GetShiftState done [08:48:22]FM_GetShiftState done [08:48:22]req_shift_opened done [08:48:22]requested_item shift.open_date is exist - process it [08:48:22]req_shift_open_date [08:48:22]req_shift_open_date done [08:48:22]produce_requested_data done [08:48:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30817,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:48:22]process_action_free close_receipt [08:48:22]json_value_free [08:48:22]json_value_free done [08:48:22]process_json_proto returns [08:48:22]Send response to host [08:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30817,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:48:22]free response buf [08:48:22]execute_script done [08:48:22]execute_script returns [08:48:22]free content buf [08:48:22]Sock 7.Close socket [08:48:22]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:14]accept exits with 9 [08:54:14]New connection [08:54:14]New thread 3067489636 created [08:54:14]Thread 3067346276 joined [08:54:14]Waiting for new connection... [08:54:14] Sock 9.Parse request [08:54:14]Sock 9.Check first char [08:54:14]Sock 9.First char is OK [08:54:14]request: POST /json_proto HTTP/1.0 [08:54:14]Method: POST [08:54:14]URL: /json_proto [08:54:14]Method is POST - this is cgi request [08:54:14]url: /json_proto [08:54:14]query_string will be loaded in cgi processing [08:54:14]execute_cgi json_proto POST (null) [08:54:14]execute_cgi path=json_proto method=POST [08:54:14]POST find Content-Length [08:54:14]Host: 172.17.51.3:8080 [08:54:14]Content-Length: 682 [08:54:14]Content-Type: application/json [08:54:14] [08:54:14]POST finish read [08:54:14]Found Content-Length = 682 [08:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:14]execute_script... [08: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)343237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:14]POST & json_proto [08:54:14]process_json_proto [08:54:14]json parsed OK: [08:54:14]protocol is kg_v1.0 [08:54:14]action value=close_receipt [08:54:14]process_action close_receipt [08:54:14]cmd_close_receipt [08:54:14]MH_GetDate [08:54:14]Write to MH i2c: F0 00 00 89 7B F3 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: F0 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: F0 09 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: F0 09 00 89 7B 00 40 68 17 67 04 C1 95 66 E2 [08:54:14]GetLastDocTimeStamp 1729586907 [08:54:14]current date 1729587264 [08:54:14]FM_GetShiftState [08:54:14]SAM_PROTO_GetShiftState [08:54:14]wFMCommunicate request_size=4 [08:54:14]MH_SAM_APDU [08:54:14]CAPDU: 80 13 01 00 [08:54:14]Write to MH i2c: E2 08 00 8A 7B 80 13 01 00 00 00 00 00 82 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:14]Read from MH i2c: E2 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 0E 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 0E 00 8A 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5C [08:54:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:54:14]wFMCommunicate OK [08:54:14]SAM_PROTO_GetShiftState done [08:54:14]FM_GetShiftState done [08:54:14]opened in 1729557342 [08:54:14]opened+sec_in_day 1729643742 [08:54:14]quantity*price = 100021 [08:54:14]sum+1 = 100023 [08:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 51 22.10.2024 08:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30818 ФПД: 167033862536489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085424&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30818&fm=167033862536489&tin=02508201610067®Number=0000000000186857&sum=100000 [08:54:16]StoreToDocumentArchive [08:54:16]shift 116 fd 30818 [08:54:16]save to /storage/0116/doc_00030818 [08:54:16]save last doc name /storage/0116/doc_00030818 to /storage/kkm_last_doc_name [08:54:16]save OK [08:54:16]Clear old archive folders... [08:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:16]tlvbuf is 02079940 [08:54:16]SAM_PROTO_ClearQueue [08:54:16]wFMCommunicate request_size=4 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 09 00 00 [08:54:16]Write to MH i2c: E2 08 00 97 7B 80 09 00 00 00 00 00 00 84 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 97 7B 00 90 00 86 [08:54:16]RAPDU: 90 00 [08:54:16]wFMCommunicate OK [08:54:16]SAM_PROTO_ClearQueue done [08:54:16]KKMCreateOFDPacket [08:54:16]OFDProtocolAddRootSTLVToBuf [08:54:16]FM_MakeSignedData [08:54:16]FM_MakeSignedData [08:54:16]SAM_PROTO_SignData [08:54:16]wFMCommunicate request_size=4 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 0D 01 02 [08:54:16]Write to MH i2c: E2 08 00 98 7B 80 0D 01 02 00 00 00 00 8C [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 98 7B 00 90 00 87 [08:54:16]RAPDU: 90 00 [08:54:16]wFMCommunicate OK [08:54:16]wFMCommunicate request_size=255 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 40 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 78 00 00 35 04 06 00 97 [08:54:16]Write to MH i2c: E2 02 01 99 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 40 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 78 00 00 35 04 06 00 97 00 00 79 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]OFD Sender: No OFD packet to send [08:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 99 7B 00 90 00 88 [08:54:16]RAPDU: 90 00 [08:54:16]wFMCommunicate OK [08:54:16]wFMCommunicate request_size=10 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 0D 02 02 05 EA 9A 0A BD 29 [08:54:16]Write to MH i2c: E2 0D 00 9A 7B 80 0D 02 02 05 00 EA 9A 0A BD 29 00 00 0D [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 03 00 9A 7B 00 90 00 89 [08:54:16]RAPDU: 90 00 [08:54:16]wFMCommunicate OK [08:54:16]wFMCommunicate request_size=4 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 0D 03 02 [08:54:16]Write to MH i2c: E2 08 00 9B 7B 80 0D 03 02 00 00 00 00 91 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 0B 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 0B 00 9B 7B 00 55 33 0E 14 3F D1 FD 0A 90 00 53 [08:54:16]RAPDU: 55 33 0E 14 3F D1 FD 0A 90 00 [08:54:16]wFMCommunicate OK [08:54:16]SAM_PROTO_SignData done [08:54:16]FM_MakeSignedData done [08:54:16]CreateOFDProtocolMessage [08:54:16]wFMCommunicate request_size=4 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 11 00 00 [08:54:16]Write to MH i2c: E2 08 00 9C 7B 80 11 00 00 00 00 00 00 91 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 17 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 17 00 9C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [08:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:54:16]wFMCommunicate OK [08:54:16]CreateOFDProtocolMessage done [08:54:16]OFDSenderStorePacket 30818 [08:54:16]StoreOFDPacket docnum=30818 [08:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 6D 07 01 B0 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 40 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 78 00 00 35 04 06 00 97 EA 9A 0A BD 29 55 33 0E 14 3F D1 FD 0A [08:54:16]CheckFolder [08:54:16]dirname=/storage/ofd_packets [08:54:16]CheckFolder done [08:54:16]ProducePacketName [08:54:16]name=ofd_packets/00030818 [08:54:16]NVStorageSaveData ofd_packets/00030818 [08:54:16]File name is /storage/ofd_packets/00030818 [08:54:16]Write 301 bytes [08:54:16]NVStorageSaveData done [08:54:16]OFDSenderStorePacket done [08:54:16]KKMCreateOFDPacket done [08:54:16]NVStorageSaveData kkm_last_timestamp [08:54:16]File name is /storage/kkm_last_timestamp [08:54:16]Write 4 bytes [08:54:16]NVStorageSaveData done [08:54:16]ExternCall_PrintAddStr [08:54:16]wPrintStart [08:54:16]Write to MH i2c: 01 00 00 9D 7B 18 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 9D 7B 00 00 00 00 00 FF 0F 2D [08:54:16]RasterBufferAndPrint [08:54:16]line Счет N : (1)343237 [08:54:16]line ИНН: 02508201610067 [08:54:16]line Контрольно-Кассовый Чек [08:54:16]line ПРОДАЖА [08:54:16]line ТРК (МРК, ГНК) : 42 [08:54:16]line Товар: 2710124500 [08:54:16]line Аи-95-К-3 [08:54:16]line 13.480 * 74.20 [08:54:16]line = 1000.22 [08:54:16]line НДС 12% НСП 1% [08:54:16]line > о реализуемом товаре [08:54:16]line ОКРУГЛЕНИЕ: -0.22 [08:54:16]line ИТОГО: 1000.00 [08:54:16]line Внесено: 1000.00 [08:54:16]line СДАЧА: 0.00 [08:54:16]line НСП 1% : 8.85 [08:54:16]line НДС 12% : 106.22 [08:54:16]line Наличными: 1000.00 [08:54:16]line Безнал.: 0.00 [08:54:16]line Место: АЗС № 78 "Партнер Нефть" [08:54:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:54:16]line СНО: Общий режим [08:54:16]line Чек 51 22.10.2024 08:54 [08:54:16]line Смена: 116 ФФД: 1.0 [08:54:16]line ЗНМ: 0300000137 [08:54:16]line РНМ: 0000000000186857 [08:54:16]line Версия ККМ: v1.0 [08:54:16]line ФМ: 0000000002094219 [08:54:16]line ФД: 30818 [08:54:16]line ФПД: 167033862536489 [08:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085424&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30818&fm=167033862536489&tin=02508201610067®Number=0000000000186857&sum=100000 [08:54:16]OFD Sender: Processing packet 30818 [packets to send 10, broken 9] [08:54:16]ProducePacketName [08:54:16]name=ofd_packets/00030818 [08:54:16]OFD Sender: To server: pG, [08:54:16]CommunicateWithHost lk.salyk.kg:30040 [08:54:16]ConnectInit lk.salyk.kg [08:54:16]written 0, free lines is 4095 [08:54:17]Connected sock=7 [08:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 6D 07 01 B0 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 40 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 78 00 00 35 04 06 00 97 EA 9A 0A BD 29 55 33 0E 14 3F D1 FD 0A [08:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AF E2 47 00 3D 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 32 30 39 34 32 31 39 10 04 04 00 62 78 00 00 F4 03 04 00 BE 12 17 67 B6 04 01 00 00 19 88 D7 0A 30 32 BB 56 [08:54:17]CommunicateWithHost err = 0 [08:54:17]CheckOFDResponse [08:54:17]1017 (14) - 77093643461234 [08:54:17]1041 (16) - 0000000002094219 [08:54:17]1040 (4) - 30818 [08:54:17]1012 (4) - 22.10.2024 02:49 [08:54:17]1206 (1) - 0 [08:54:17]OFD Sender: Remove packet 30818 [08:54:17]ProducePacketName [08:54:17]name=ofd_packets/00030818 [08:54:17]NVStorageDeleteData [08:54:17]Write to MH i2c: 01 00 00 C8 7B 43 [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: 01 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: 01 07 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: 01 07 00 C8 7B 00 00 00 00 00 E6 0C 3C [08:54:17]RasterBufferAndPrint [08:54:17]line [08:54:17]line [08:54:17]line [08:54:17]line [08:54:17]line [08:54:17]written 0, free lines is 3309 [08:54:17]MH_Cut [08:54:17]Write to MH i2c: D1 01 00 CF 7B 01 1C [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: D1 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: D1 01 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: D1 01 00 CF 7B 00 1B [08:54:17]Write to MH i2c: 01 00 00 D0 7B 4B [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]OFD Sender: No OFD packet to send [08:54:18]*** Cut start [08:54:18]*** Partial cut [08:54:18]*** CUTSNS_PIN = 1 [08:54:18]*** CUTSNS_PIN = 0 [08:54:18]*** Brake cut motor [08:54:18]Read from MH i2c: 01 [08:54:18]MH_I2C_Read... [08:54:18]*** Stop cut motor [08:54:18]*** Cut end [08:54:18]Read from MH i2c: 01 07 00 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: 01 07 00 D0 7B 00 00 00 00 00 FF 0F 60 [08:54:18]process_action close_receipt done [08:54:18]requested_data is exist [08:54:18]produce_requested_data [08:54:18]requested_item fm.sn is exist - process it [08:54:18]wFMCommunicate request_size=4 [08:54:18]MH_SAM_APDU [08:54:18]CAPDU: 80 11 00 00 [08:54:18]Write to MH i2c: E2 08 00 D1 7B 80 11 00 00 00 00 00 00 C6 [08:54:18]Write i2c OK [08:54:18]MH_I2C_Read... [08:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:18]Read from MH i2c: E2 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 17 00 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 17 00 D1 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [08:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:54:18]wFMCommunicate OK [08:54:18]requested_item fd.num is exist - process it [08:54:18]SAM_PROTO_GetFieldsCounters [08:54:18]wFMCommunicate request_size=4 [08:54:18]MH_SAM_APDU [08:54:18]CAPDU: 80 13 00 00 [08:54:18]Write to MH i2c: E2 08 00 D2 7B 80 13 00 00 00 00 00 00 C9 [08:54:18]Write i2c OK [08:54:18]MH_I2C_Read... [08:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:18]Read from MH i2c: E2 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 62 00 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 62 00 D2 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 78 00 00 0E 04 04 00 74 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 D6 [08:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 78 00 00 0E 04 04 00 74 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 [08:54:18]wFMCommunicate OK [08:54:18]SAM_PROTO_GetFieldsCounters done [08:54:18]requested_item shift.num is exist - process it [08:54:18]requested_item shift.opened is exist - process it [08:54:18]req_shift_opened [08:54:18]FM_GetShiftState [08:54:18]SAM_PROTO_GetShiftState [08:54:18]wFMCommunicate request_size=4 [08:54:18]MH_SAM_APDU [08:54:18]CAPDU: 80 13 01 00 [08:54:18]Write to MH i2c: E2 08 00 D3 7B 80 13 01 00 00 00 00 00 CB [08:54:18]Write i2c OK [08:54:18]MH_I2C_Read... [08:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:18]Read from MH i2c: E2 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 0E 00 [08:54:18]MH_I2C_Read... [08:54:18]Read from MH i2c: E2 0E 00 D3 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A5 [08:54:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:54:18]wFMCommunicate OK [08:54:18]SAM_PROTO_GetShiftState done [08:54:18]FM_GetShiftState done [08:54:18]req_shift_opened done [08:54:18]requested_item shift.open_date is exist - process it [08:54:18]req_shift_open_date [08:54:18]req_shift_open_date done [08:54:18]produce_requested_data done [08:54:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30818,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:54:18]process_action_free close_receipt [08:54:18]json_value_free [08:54:18]json_value_free done [08:54:18]process_json_proto returns [08:54:18]Send response to host [08:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30818,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:54:18]free response buf [08:54:18]execute_script done [08:54:18]execute_script returns [08:54:18]free content buf [08:54:18]Sock 9.Close socket [08:54:18]Sock 9.Thread stoped [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:20]accept exits with 10 [08:55:20]New connection [08:55:20]New thread 3067346276 created [08:55:20]Thread 3067489636 joined [08:55:20]Waiting for new connection... [08:55:20] Sock 10.Parse request [08:55:20]Sock 10.Check first char [08:55:20]Sock 10.First char is OK [08:55:20]request: POST /json_proto HTTP/1.0 [08:55:20]Method: POST [08:55:20]URL: /json_proto [08:55:20]Method is POST - this is cgi request [08:55:20]url: /json_proto [08:55:20]query_string will be loaded in cgi processing [08:55:20]execute_cgi json_proto POST (null) [08:55:20]execute_cgi path=json_proto method=POST [08:55:20]POST find Content-Length [08:55:20]Host: 172.17.51.3:8080 [08:55:20]Content-Length: 754 [08:55:20]Content-Type: application/json [08:55:20] [08:55:20]POST finish read [08:55:20]Found Content-Length = 754 [08:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:20]execute_script... [08:55: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)343238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:20]POST & json_proto [08:55:20]process_json_proto [08:55:20]json parsed OK: [08:55:20]protocol is kg_v1.0 [08:55:20]action value=close_receipt [08:55:20]process_action close_receipt [08:55:20]cmd_close_receipt [08:55:20]MH_GetDate [08:55:20]Write to MH i2c: F0 00 00 D4 7B 3E [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 09 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 09 00 D4 7B 00 82 68 17 67 04 C1 95 66 6F [08:55:20]GetLastDocTimeStamp 1729587264 [08:55:20]current date 1729587330 [08:55:20]FM_GetShiftState [08:55:20]SAM_PROTO_GetShiftState [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 13 01 00 [08:55:20]Write to MH i2c: E2 08 00 D5 7B 80 13 01 00 00 00 00 00 CD [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 D5 7B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A7 [08:55:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_GetShiftState done [08:55:20]FM_GetShiftState done [08:55:20]opened in 1729557342 [08:55:20]opened+sec_in_day 1729643742 [08:55:20]quantity*price = 0 [08:55:20]sum+1 = 1 [08:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 52 22.10.2024 08:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118634 ФМ: 0000000002094219 ФД: 30819 ФПД: 200567488540373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085530&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30819&fm=200567488540373&tin=02508201610067®Number=0000000000186857&sum=0 [08:55:21]StoreToDocumentArchive [08:55:21]shift 116 fd 30819 [08:55:21]save to /storage/0116/doc_00030819 [08:55:21]save last doc name /storage/0116/doc_00030819 to /storage/kkm_last_doc_name [08:55:21]save OK [08:55:21]Clear old archive folders... [08:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:21]tlvbuf is 0202F330 [08:55:21]SAM_PROTO_ClearQueue [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 09 00 00 [08:55:21]Write to MH i2c: E2 08 00 E2 7B 80 09 00 00 00 00 00 00 CF [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 E2 7B 00 90 00 D1 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_ClearQueue done [08:55:22]KKMCreateOFDPacket [08:55:22]OFDProtocolAddRootSTLVToBuf [08:55:22]FM_MakeSignedData [08:55:22]FM_MakeSignedData [08:55:22]SAM_PROTO_SignData [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 01 02 [08:55:22]Write to MH i2c: E2 08 00 E3 7B 80 0D 01 02 00 00 00 00 D7 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 E3 7B 00 90 00 D2 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=255 [08:55:22]MH_SAM_APDU [08:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 82 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 78 00 00 35 04 06 00 B6 [08:55:22]Write to MH i2c: E2 02 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 82 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 78 00 00 35 04 06 00 B6 00 00 F7 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 E4 7B 00 90 00 D3 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=10 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 02 02 05 6A 41 E8 6E D5 [08:55:22]Write to MH i2c: E2 0D 00 E5 7B 80 0D 02 02 05 00 6A 41 E8 6E D5 00 00 BA [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 E5 7B 00 90 00 D4 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 03 02 [08:55:22]Write to MH i2c: E2 08 00 E6 7B 80 0D 03 02 00 00 00 00 DC [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0B 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0B 00 E6 7B 00 64 E8 88 01 F9 18 78 E6 90 00 21 [08:55:22]RAPDU: 64 E8 88 01 F9 18 78 E6 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_SignData done [08:55:22]FM_MakeSignedData done [08:55:22]CreateOFDProtocolMessage [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 11 00 00 [08:55:22]Write to MH i2c: E2 08 00 E7 7B 80 11 00 00 00 00 00 00 DC [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 E7 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [08:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:55:22]wFMCommunicate OK [08:55:22]CreateOFDProtocolMessage done [08:55:22]OFDSenderStorePacket 30819 [08:55:22]StoreOFDPacket docnum=30819 [08:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 29 07 01 52 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 82 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 78 00 00 35 04 06 00 B6 6A 41 E8 6E D5 64 E8 88 01 F9 18 78 E6 [08:55:22]CheckFolder [08:55:22]dirname=/storage/ofd_packets [08:55:22]CheckFolder done [08:55:22]ProducePacketName [08:55:22]name=ofd_packets/00030819 [08:55:22]NVStorageSaveData ofd_packets/00030819 [08:55:22]File name is /storage/ofd_packets/00030819 [08:55:22]Write 301 bytes [08:55:22]NVStorageSaveData done [08:55:22]OFDSenderStorePacket done [08:55:22]KKMCreateOFDPacket done [08:55:22]NVStorageSaveData kkm_last_timestamp [08:55:22]File name is /storage/kkm_last_timestamp [08:55:22]Write 4 bytes [08:55:22]NVStorageSaveData done [08:55:22]ExternCall_PrintAddStr [08:55:22]wPrintStart [08:55:22]Write to MH i2c: 01 00 00 E8 7B 63 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 07 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 07 00 E8 7B 00 00 00 00 00 FF 0F 78 [08:55:22]RasterBufferAndPrint [08:55:22]line Счет N : (1)343238 [08:55:22]line ИНН: 02508201610067 [08:55:22]line Контрольно-Кассовый Чек [08:55:22]line ПРОДАЖА [08:55:22]line ТРК (МРК, ГНК) : 62 [08:55:22]line Товар: 2710124500 [08:55:22]line Аи-95-К-3 [08:55:22]line 20.000 * 0.00 [08:55:22]line = 0.00 [08:55:22]line НДС 12% НСП 1% [08:55:22]line > о реализуемом товаре [08:55:22]line ИТОГО: 0.00 [08:55:22]line НСП 1% : 0.00 [08:55:22]line НДС 12% : 0.00 [08:55:22]line Наличными: 0.00 [08:55:22]line Безнал.: 0.00 [08:55:22]line Место: АЗС № 78 "Партнер Нефть" [08:55:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:55:22]line СНО: Общий режим [08:55:22]line Чек 52 22.10.2024 08:55 [08:55:22]line Смена: 116 ФФД: 1.0 [08:55:22]line ЗНМ: 0300000137 [08:55:22]line РНМ: 0000000000186857 [08:55:22]line Версия ККМ: v1.0 [08:55:22]line Талоны: ТК ГПНА Online [08:55:22]line 30118634 [08:55:22]line ФМ: 0000000002094219 [08:55:22]line ФД: 30819 [08:55:22]line ФПД: 200567488540373 [08:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085530&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30819&fm=200567488540373&tin=02508201610067®Number=0000000000186857&sum=0 [08:55:22]OFD Sender: Processing packet 30819 [packets to send 10, broken 9] [08:55:22]ProducePacketName [08:55:22]name=ofd_packets/00030819 [08:55:22]OFD Sender: To server: pG, [08:55:22]CommunicateWithHost lk.salyk.kg:30040 [08:55:22]ConnectInit lk.salyk.kg [08:55:22]written 0, free lines is 4095 [08:55:22]Connected sock=9 [08:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 29 07 01 52 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 82 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 78 00 00 35 04 06 00 B6 6A 41 E8 6E D5 64 E8 88 01 F9 18 78 E6 [08:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 35 82 47 00 A4 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 78 00 00 F4 03 04 00 00 13 17 67 B6 04 01 00 00 E2 D4 14 6B A7 C8 5F 90 [08:55:23]CommunicateWithHost err = 0 [08:55:23]CheckOFDResponse [08:55:23]1017 (14) - 77093643461234 [08:55:23]1041 (16) - 0000000002094219 [08:55:23]1040 (4) - 30819 [08:55:23]1012 (4) - 22.10.2024 02:50 [08:55:23]1206 (1) - 0 [08:55:23]OFD Sender: Remove packet 30819 [08:55:23]ProducePacketName [08:55:23]name=ofd_packets/00030819 [08:55:23]NVStorageDeleteData [08:55:23]Write to MH i2c: 01 00 00 12 7C 8E [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 12 7C 00 00 00 00 00 F1 0C 92 [08:55:23]RasterBufferAndPrint [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]written 0, free lines is 3322 [08:55:23]MH_Cut [08:55:23]Write to MH i2c: D1 01 00 19 7C 01 67 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 01 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 01 00 19 7C 00 66 [08:55:23]Write to MH i2c: 01 00 00 1A 7C 96 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]OFD Sender: No OFD packet to send [08:55:23]*** Cut start [08:55:23]*** Partial cut [08:55:23]*** CUTSNS_PIN = 1 [08:55:24]*** CUTSNS_PIN = 0 [08:55:24]*** Brake cut motor [08:55:24]Read from MH i2c: 01 [08:55:24]MH_I2C_Read... [08:55:24]*** Stop cut motor [08:55:24]*** Cut end [08:55:24]Read from MH i2c: 01 07 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 1A 7C 00 00 00 00 00 FF 0F AB [08:55:24]process_action close_receipt done [08:55:24]requested_data is exist [08:55:24]produce_requested_data [08:55:24]requested_item fm.sn is exist - process it [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 11 00 00 [08:55:24]Write to MH i2c: E2 08 00 1B 7C 80 11 00 00 00 00 00 00 11 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 1B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [08:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:55:24]wFMCommunicate OK [08:55:24]requested_item fd.num is exist - process it [08:55:24]SAM_PROTO_GetFieldsCounters [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 13 00 00 [08:55:24]Write to MH i2c: E2 08 00 1C 7C 80 13 00 00 00 00 00 00 14 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 62 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 62 00 1C 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 78 00 00 0E 04 04 00 74 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 25 [08:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 78 00 00 0E 04 04 00 74 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 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_GetFieldsCounters done [08:55:24]requested_item shift.num is exist - process it [08:55:24]requested_item shift.opened is exist - process it [08:55:24]req_shift_opened [08:55:24]FM_GetShiftState [08:55:24]SAM_PROTO_GetShiftState [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 13 01 00 [08:55:24]Write to MH i2c: E2 08 00 1D 7C 80 13 01 00 00 00 00 00 16 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0E 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0E 00 1D 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F0 [08:55:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_GetShiftState done [08:55:24]FM_GetShiftState done [08:55:24]req_shift_opened done [08:55:24]requested_item shift.open_date is exist - process it [08:55:24]req_shift_open_date [08:55:24]req_shift_open_date done [08:55:24]produce_requested_data done [08:55:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30819,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:55:24]process_action_free close_receipt [08:55:24]json_value_free [08:55:24]json_value_free done [08:55:24]process_json_proto returns [08:55:24]Send response to host [08:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30819,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:55:24]free response buf [08:55:24]execute_script done [08:55:24]execute_script returns [08:55:24]free content buf [08:55:24]Sock 10.Close socket [08:55:24]Sock 10.Thread stoped [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:47]accept exits with 7 [08:55:47]New connection [08:55:47]New thread 3067489636 created [08:55:47]Thread 3067346276 joined [08:55:47]Waiting for new connection... [08:55:47] Sock 7.Parse request [08:55:47]Sock 7.Check first char [08:55:47]Sock 7.First char is OK [08:55:47]request: POST /json_proto HTTP/1.0 [08:55:47]Method: POST [08:55:47]URL: /json_proto [08:55:47]Method is POST - this is cgi request [08:55:47]url: /json_proto [08:55:47]query_string will be loaded in cgi processing [08:55:47]execute_cgi json_proto POST (null) [08:55:47]execute_cgi path=json_proto method=POST [08:55:47]POST find Content-Length [08:55:47]Host: 172.17.51.3:8080 [08:55:47]Content-Length: 677 [08:55:47]Content-Type: application/json [08:55:47] [08:55:47]POST finish read [08:55:47]Found Content-Length = 677 [08:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:47]execute_script... [08:55: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)343239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:47]POST & json_proto [08:55:47]process_json_proto [08:55:47]json parsed OK: [08:55:47]protocol is kg_v1.0 [08:55:47]action value=close_receipt [08:55:47]process_action close_receipt [08:55:47]cmd_close_receipt [08:55:47]MH_GetDate [08:55:47]Write to MH i2c: F0 00 00 1E 7C 89 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: F0 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: F0 09 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: F0 09 00 1E 7C 00 9D 68 17 67 04 C1 95 66 D5 [08:55:47]GetLastDocTimeStamp 1729587330 [08:55:47]current date 1729587357 [08:55:47]FM_GetShiftState [08:55:47]SAM_PROTO_GetShiftState [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 13 01 00 [08:55:47]Write to MH i2c: E2 08 00 1F 7C 80 13 01 00 00 00 00 00 18 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0E 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0E 00 1F 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F2 [08:55:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:55:47]wFMCommunicate OK [08:55:47]SAM_PROTO_GetShiftState done [08:55:47]FM_GetShiftState done [08:55:47]opened in 1729557342 [08:55:47]opened+sec_in_day 1729643742 [08:55:47]quantity*price = 50041 [08:55:47]sum+1 = 50042 [08:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 53 22.10.2024 08:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30820 ФПД: 116122891928223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085557&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30820&fm=116122891928223&tin=02508201610067®Number=0000000000186857&sum=50000 [08:55:48]StoreToDocumentArchive [08:55:48]shift 116 fd 30820 [08:55:48]save to /storage/0116/doc_00030820 [08:55:48]save last doc name /storage/0116/doc_00030820 to /storage/kkm_last_doc_name [08:55:48]save OK [08:55:48]Clear old archive folders... [08:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:48]tlvbuf is B6FDB230 [08:55:48]SAM_PROTO_ClearQueue [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 09 00 00 [08:55:48]Write to MH i2c: E2 08 00 2C 7C 80 09 00 00 00 00 00 00 1A [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 03 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 03 00 2C 7C 00 90 00 1C [08:55:48]RAPDU: 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_ClearQueue done [08:55:48]KKMCreateOFDPacket [08:55:48]OFDProtocolAddRootSTLVToBuf [08:55:48]FM_MakeSignedData [08:55:48]FM_MakeSignedData [08:55:48]SAM_PROTO_SignData [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 0D 01 02 [08:55:48]Write to MH i2c: E2 08 00 2D 7C 80 0D 01 02 00 00 00 00 22 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 03 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 03 00 2D 7C 00 90 00 1D [08:55:48]RAPDU: 90 00 [08:55:48]wFMCommunicate OK [08:55:48]wFMCommunicate request_size=255 [08:55:48]MH_SAM_APDU [08:55: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 9D 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 78 00 00 35 04 06 00 69 [08:55:48]Write to MH i2c: E2 02 01 2E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 9D 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 78 00 00 35 04 06 00 69 00 00 24 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 2E 7C 00 90 00 1E [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]wFMCommunicate request_size=10 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 02 02 05 9C F7 B9 42 9F [08:55:49]Write to MH i2c: E2 0D 00 2F 7C 80 0D 02 02 05 00 9C F7 B9 42 9F 00 00 5C [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 2F 7C 00 90 00 1F [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 03 02 [08:55:49]Write to MH i2c: E2 08 00 30 7C 80 0D 03 02 00 00 00 00 27 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0B 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0B 00 30 7C 00 EA 94 00 71 D0 FD 78 A8 90 00 04 [08:55:49]RAPDU: EA 94 00 71 D0 FD 78 A8 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_SignData done [08:55:49]FM_MakeSignedData done [08:55:49]CreateOFDProtocolMessage [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 11 00 00 [08:55:49]Write to MH i2c: E2 08 00 31 7C 80 11 00 00 00 00 00 00 27 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 31 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [08:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:55:49]wFMCommunicate OK [08:55:49]CreateOFDProtocolMessage done [08:55:49]OFDSenderStorePacket 30820 [08:55:49]StoreOFDPacket docnum=30820 [08:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D6 79 07 01 D3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 9D 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 78 00 00 35 04 06 00 69 9C F7 B9 42 9F EA 94 00 71 D0 FD 78 A8 [08:55:49]CheckFolder [08:55:49]dirname=/storage/ofd_packets [08:55:49]CheckFolder done [08:55:49]ProducePacketName [08:55:49]name=ofd_packets/00030820 [08:55:49]NVStorageSaveData ofd_packets/00030820 [08:55:49]File name is /storage/ofd_packets/00030820 [08:55:49]Write 301 bytes [08:55:49]NVStorageSaveData done [08:55:49]OFDSenderStorePacket done [08:55:49]KKMCreateOFDPacket done [08:55:49]NVStorageSaveData kkm_last_timestamp [08:55:49]File name is /storage/kkm_last_timestamp [08:55:49]Write 4 bytes [08:55:49]NVStorageSaveData done [08:55:49]ExternCall_PrintAddStr [08:55:49]wPrintStart [08:55:49]Write to MH i2c: 01 00 00 32 7C AE [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 32 7C 00 00 00 00 00 FF 0F C3 [08:55:49]RasterBufferAndPrint [08:55:49]line Счет N : (1)343239 [08:55:49]line ИНН: 02508201610067 [08:55:49]line Контрольно-Кассовый Чек [08:55:49]line ПРОДАЖА [08:55:49]line ТРК (МРК, ГНК) : 43 [08:55:49]line Товар: 2710124130 [08:55:49]line Аи-92-К-2 [08:55:49]line 7.480 * 66.90 [08:55:49]line = 500.41 [08:55:49]line НДС 12% НСП 1% [08:55:49]line > о реализуемом товаре [08:55:49]line ОКРУГЛЕНИЕ: -0.41 [08:55:49]line ИТОГО: 500.00 [08:55:49]line Внесено: 500.00 [08:55:49]line СДАЧА: 0.00 [08:55:49]line НСП 1% : 4.43 [08:55:49]line НДС 12% : 53.14 [08:55:49]line Наличными: 500.00 [08:55:49]line Безнал.: 0.00 [08:55:49]line Место: АЗС № 78 "Партнер Нефть" [08:55:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:55:49]line СНО: Общий режим [08:55:49]line Чек 53 22.10.2024 08:55 [08:55:49]line Смена: 116 ФФД: 1.0 [08:55:49]line ЗНМ: 0300000137 [08:55:49]line РНМ: 0000000000186857 [08:55:49]line Версия ККМ: v1.0 [08:55:49]line ФМ: 0000000002094219 [08:55:49]line ФД: 30820 [08:55:49]line ФПД: 116122891928223 [08:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085557&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30820&fm=116122891928223&tin=02508201610067®Number=0000000000186857&sum=50000 [08:55:49]OFD Sender: Processing packet 30820 [packets to send 10, broken 9] [08:55:49]ProducePacketName [08:55:49]name=ofd_packets/00030820 [08:55:49]OFD Sender: To server: pG, [08:55:49]CommunicateWithHost lk.salyk.kg:30040 [08:55:49]ConnectInit lk.salyk.kg [08:55:49]written 0, free lines is 4095 [08:55:49]Connected sock=11 [08:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D6 79 07 01 D3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 9D 68 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 78 00 00 35 04 06 00 69 9C F7 B9 42 9F EA 94 00 71 D0 FD 78 A8 [08:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 02 CB 47 00 46 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 78 00 00 F4 03 04 00 1B 13 17 67 B6 04 01 00 00 87 3A 07 09 B2 17 46 D6 [08:55:50]CommunicateWithHost err = 0 [08:55:50]CheckOFDResponse [08:55:50]1017 (14) - 77093643461234 [08:55:50]1041 (16) - 0000000002094219 [08:55:50]1040 (4) - 30820 [08:55:50]1012 (4) - 22.10.2024 02:51 [08:55:50]1206 (1) - 0 [08:55:50]OFD Sender: Remove packet 30820 [08:55:50]ProducePacketName [08:55:50]name=ofd_packets/00030820 [08:55:50]NVStorageDeleteData [08:55:50]Write to MH i2c: 01 00 00 5D 7C D9 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 5D 7C 00 00 00 00 00 ED 0C D9 [08:55:50]RasterBufferAndPrint [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]written 0, free lines is 3315 [08:55:50]MH_Cut [08:55:50]Write to MH i2c: D1 01 00 64 7C 01 B2 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 01 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 01 00 64 7C 00 B1 [08:55:50]Write to MH i2c: 01 00 00 65 7C E1 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]OFD Sender: No OFD packet to send [08:55:50]*** Cut start [08:55:50]*** Partial cut [08:55:50]*** CUTSNS_PIN = 1 [08:55:50]*** CUTSNS_PIN = 0 [08:55:51]*** Brake cut motor [08:55:51]Read from MH i2c: 01 [08:55:51]MH_I2C_Read... [08:55:51]*** Stop cut motor [08:55:51]*** Cut end [08:55:51]Read from MH i2c: 01 07 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: 01 07 00 65 7C 00 00 00 00 00 FF 0F F6 [08:55:51]process_action close_receipt done [08:55:51]requested_data is exist [08:55:51]produce_requested_data [08:55:51]requested_item fm.sn is exist - process it [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 11 00 00 [08:55:51]Write to MH i2c: E2 08 00 66 7C 80 11 00 00 00 00 00 00 5C [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 17 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 17 00 66 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [08:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:55:51]wFMCommunicate OK [08:55:51]requested_item fd.num is exist - process it [08:55:51]SAM_PROTO_GetFieldsCounters [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 13 00 00 [08:55:51]Write to MH i2c: E2 08 00 67 7C 80 13 00 00 00 00 00 00 5F [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 62 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 62 00 67 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 78 00 00 0E 04 04 00 74 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 74 [08:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 78 00 00 0E 04 04 00 74 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 [08:55:51]wFMCommunicate OK [08:55:51]SAM_PROTO_GetFieldsCounters done [08:55:51]requested_item shift.num is exist - process it [08:55:51]requested_item shift.opened is exist - process it [08:55:51]req_shift_opened [08:55:51]FM_GetShiftState [08:55:51]SAM_PROTO_GetShiftState [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 13 01 00 [08:55:51]Write to MH i2c: E2 08 00 68 7C 80 13 01 00 00 00 00 00 61 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 0E 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 0E 00 68 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3B [08:55:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [08:55:51]wFMCommunicate OK [08:55:51]SAM_PROTO_GetShiftState done [08:55:51]FM_GetShiftState done [08:55:51]req_shift_opened done [08:55:51]requested_item shift.open_date is exist - process it [08:55:51]req_shift_open_date [08:55:51]req_shift_open_date done [08:55:51]produce_requested_data done [08:55:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30820,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [08:55:51]process_action_free close_receipt [08:55:51]json_value_free [08:55:51]json_value_free done [08:55:51]process_json_proto returns [08:55:51]Send response to host [08:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30820,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [08:55:51]free response buf [08:55:51]execute_script done [08:55:51]execute_script returns [08:55:51]free content buf [08:55:51]Sock 7.Close socket [08:55:51]Sock 7.Thread stoped [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [09:00:01]New connection [09:00:01]New thread 3067346276 created [09:00:01]Thread 3067489636 joined [09:00:01]Waiting for new connection... [09:00:01] Sock 9.Parse request [09:00:01]Sock 9.Check first char [09:00:01]Sock 9.First char is OK [09:00:01]request: POST /json_proto HTTP/1.0 [09:00:01]Method: POST [09:00:01]URL: /json_proto [09:00:01]Method is POST - this is cgi request [09:00:01]url: /json_proto [09:00:01]query_string will be loaded in cgi processing [09:00:01]execute_cgi json_proto POST (null) [09:00:01]execute_cgi path=json_proto method=POST [09:00:01]POST find Content-Length [09:00:01]Host: 172.17.51.3:8080 [09:00:01]Content-Length: 983 [09:00:01]Content-Type: application/json [09:00:01] [09:00:01]POST finish read [09:00:01]Found Content-Length = 983 [09:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 279.260, "sum" : 21000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 279.26 \u0441\u043E\u043C", "deposit" : 21000.00, "total" : 21000.00, "payments": [ { "type": 0, "sum" : 21000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:01]execute_script... [09: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)343236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 279.260, "sum" : 21000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 279.26 \u0441\u043E\u043C", "deposit" : 21000.00, "total" : 21000.00, "payments": [ { "type": 0, "sum" : 21000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:01]POST & json_proto [09:00:01]process_json_proto [09:00:01]json parsed OK: [09:00:01]protocol is kg_v1.0 [09:00:01]action value=close_receipt [09:00:01]process_action close_receipt [09:00:01]cmd_close_receipt [09:00:01]MH_GetDate [09:00:01]Write to MH i2c: F0 00 00 69 7C D4 [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 09 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 09 00 69 7C 00 9A 69 17 67 04 C1 95 66 1E [09:00:01]GetLastDocTimeStamp 1729587357 [09:00:01]current date 1729587610 [09:00:01]FM_GetShiftState [09:00:01]SAM_PROTO_GetShiftState [09:00:01]wFMCommunicate request_size=4 [09:00:01]MH_SAM_APDU [09:00:01]CAPDU: 80 13 01 00 [09:00:01]Write to MH i2c: E2 08 00 6A 7C 80 13 01 00 00 00 00 00 63 [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:01]Read from MH i2c: E2 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 6A 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3D [09:00:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:00:01]wFMCommunicate OK [09:00:01]SAM_PROTO_GetShiftState done [09:00:01]FM_GetShiftState done [09:00:01]opened in 1729557342 [09:00:01]opened+sec_in_day 1729643742 [09:00:01]quantity*price = 2100035 [09:00:01]sum+1 = 2100036 [09:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 21000.00 Внесено: 21000.00 СДАЧА: 0.00 НСП 1% : 185.84 НДС 12% : 2230.13 Наличными: 21000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 54 22.10.2024 09:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 279.26 сом ФМ: 0000000002094219 ФД: 30821 ФПД: 231522677292244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090010&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30821&fm=231522677292244&tin=02508201610067®Number=0000000000186857&sum=2100000 [09:00:02]StoreToDocumentArchive [09:00:02]shift 116 fd 30821 [09:00:02]save to /storage/0116/doc_00030821 [09:00:02]save last doc name /storage/0116/doc_00030821 to /storage/kkm_last_doc_name [09:00:02]save OK [09:00:02]Clear old archive folders... [09:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:00:02]tlvbuf is 01E492A0 [09:00:02]SAM_PROTO_ClearQueue [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 09 00 00 [09:00:02]Write to MH i2c: E2 08 00 77 7C 80 09 00 00 00 00 00 00 65 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 77 7C 00 90 00 67 [09:00:02]RAPDU: 90 00 [09:00:02]wFMCommunicate OK [09:00:02]SAM_PROTO_ClearQueue done [09:00:02]KKMCreateOFDPacket [09:00:02]OFDProtocolAddRootSTLVToBuf [09:00:02]FM_MakeSignedData [09:00:02]FM_MakeSignedData [09:00:02]SAM_PROTO_SignData [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 0D 01 02 [09:00:02]Write to MH i2c: E2 08 00 78 7C 80 0D 01 02 00 00 00 00 6D [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 78 7C 00 90 00 68 [09:00:02]RAPDU: 90 00 [09:00:02]wFMCommunicate OK [09:00:02]wFMCommunicate request_size=255 [09:00:02]MH_SAM_APDU [09:00: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 32 FF 03 08 00 03 DC 42 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 43 0B 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0B 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 48 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 67 03 00 00 00 07 04 06 00 20 0B 20 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 9A 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 78 00 00 35 04 06 00 D2 91 92 EF [09:00:02]Write to MH i2c: E2 02 01 79 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 32 FF 03 08 00 03 DC 42 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 43 0B 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0B 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 48 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 67 03 00 00 00 07 04 06 00 20 0B 20 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 9A 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 78 00 00 35 04 06 00 D2 91 92 EF 00 00 CA [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 79 7C 00 90 00 69 [09:00:02]RAPDU: 90 00 [09:00:02]wFMCommunicate OK [09:00:02]wFMCommunicate request_size=7 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 0D 02 02 02 FC D4 [09:00:02]Write to MH i2c: E2 0A 00 7A 7C 80 0D 02 02 02 00 FC D4 00 00 44 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 7A 7C 00 90 00 6A [09:00:02]RAPDU: 90 00 [09:00:02]wFMCommunicate OK [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 0D 03 02 [09:00:02]Write to MH i2c: E2 08 00 7B 7C 80 0D 03 02 00 00 00 00 72 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 0B 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 0B 00 7B 7C 00 D7 CF 12 93 7F CB 80 8F 90 00 17 [09:00:02]RAPDU: D7 CF 12 93 7F CB 80 8F 90 00 [09:00:02]wFMCommunicate OK [09:00:02]SAM_PROTO_SignData done [09:00:02]FM_MakeSignedData done [09:00:02]CreateOFDProtocolMessage [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 11 00 00 [09:00:02]Write to MH i2c: E2 08 00 7C 7C 80 11 00 00 00 00 00 00 72 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 17 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 17 00 7C 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [09:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:00:02]wFMCommunicate OK [09:00:02]CreateOFDProtocolMessage done [09:00:02]OFDSenderStorePacket 30821 [09:00:02]StoreOFDPacket docnum=30821 [09:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 28 1D 04 01 3A EC 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 32 FF 03 08 00 03 DC 42 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 43 0B 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0B 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 48 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 67 03 00 00 00 07 04 06 00 20 0B 20 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 9A 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 78 00 00 35 04 06 00 D2 91 92 EF FC D4 D7 CF 12 93 7F CB 80 8F [09:00:02]CheckFolder [09:00:02]dirname=/storage/ofd_packets [09:00:02]CheckFolder done [09:00:02]ProducePacketName [09:00:02]name=ofd_packets/00030821 [09:00:02]NVStorageSaveData ofd_packets/00030821 [09:00:02]File name is /storage/ofd_packets/00030821 [09:00:02]Write 298 bytes [09:00:02]NVStorageSaveData done [09:00:02]OFDSenderStorePacket done [09:00:02]KKMCreateOFDPacket done [09:00:02]NVStorageSaveData kkm_last_timestamp [09:00:02]File name is /storage/kkm_last_timestamp [09:00:02]Write 4 bytes [09:00:02]NVStorageSaveData done [09:00:02]ExternCall_PrintAddStr [09:00:02]wPrintStart [09:00:02]Write to MH i2c: 01 00 00 7D 7C F9 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: 01 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: 01 07 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: 01 07 00 7D 7C 00 00 00 00 00 FF 0F 0E [09:00:02]RasterBufferAndPrint [09:00:02]line Счет N : (1)343236 [09:00:02]line ИНН: 02508201610067 [09:00:02]line Контрольно-Кассовый Чек [09:00:02]line ПРОДАЖА [09:00:02]line ТРК (МРК, ГНК) : 54 [09:00:02]line Товар: 2710194210 [09:00:02]line ДТ-К-2 [09:00:02]line 279.260 * 75.20 [09:00:02]line = 21000.35 [09:00:02]line НДС 12% НСП 1% [09:00:02]line > о реализуемом товаре [09:00:02]line ОКРУГЛЕНИЕ: -0.35 [09:00:02]line ИТОГО: 21000.00 [09:00:02]line Внесено: 21000.00 [09:00:02]line СДАЧА: 0.00 [09:00:02]line НСП 1% : 185.84 [09:00:02]line НДС 12% : 2230.13 [09:00:02]line Наличными: 21000.00 [09:00:02]line Безнал.: 0.00 [09:00:02]line Место: АЗС № 78 "Партнер Нефть" [09:00:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:00:02]line СНО: Общий режим [09:00:02]line Чек 54 22.10.2024 09:00 [09:00:02]line Смена: 116 ФФД: 1.0 [09:00:02]line ЗНМ: 0300000137 [09:00:02]line РНМ: 0000000000186857 [09:00:02]line Версия ККМ: v1.0 [09:00:02]line [09:00:02]line Дисконтная программа [09:00:02]line ДТ [09:00:03]line номер 78 [09:00:03]line сэкономлено 279.26 сом [09:00:03]line ФМ: 0000000002094219 [09:00:03]line ФД: 30821 [09:00:03]line ФПД: 231522677292244 [09:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090010&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30821&fm=231522677292244&tin=02508201610067®Number=0000000000186857&sum=2100000 [09:00:03]OFD Sender: Processing packet 30821 [packets to send 10, broken 9] [09:00:03]ProducePacketName [09:00:03]name=ofd_packets/00030821 [09:00:03]OFD Sender: To server: pG, [09:00:03]CommunicateWithHost lk.salyk.kg:30040 [09:00:03]ConnectInit lk.salyk.kg [09:00:03]written 0, free lines is 4095 [09:00:03]Connected sock=11 [09:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 28 1D 04 01 3A EC 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 32 FF 03 08 00 03 DC 42 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 43 0B 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0B 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 48 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 67 03 00 00 00 07 04 06 00 20 0B 20 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 9A 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 78 00 00 35 04 06 00 D2 91 92 EF FC D4 D7 CF 12 93 7F CB 80 8F [09:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 22 D4 47 00 24 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 78 00 00 F4 03 04 00 18 14 17 67 B6 04 01 00 00 34 CD BC A3 2B 8B CE C9 [09:00:03]CommunicateWithHost err = 0 [09:00:03]CheckOFDResponse [09:00:03]1017 (14) - 77093643461234 [09:00:03]1041 (16) - 0000000002094219 [09:00:03]1040 (4) - 30821 [09:00:03]1012 (4) - 22.10.2024 02:55 [09:00:03]1206 (1) - 0 [09:00:03]OFD Sender: Remove packet 30821 [09:00:03]ProducePacketName [09:00:03]name=ofd_packets/00030821 [09:00:03]NVStorageDeleteData [09:00:03]Write to MH i2c: 01 00 00 AD 7C 29 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 07 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 07 00 AD 7C 00 00 00 00 00 98 0C D4 [09:00:03]RasterBufferAndPrint [09:00:03]line [09:00:03]line [09:00:03]line [09:00:03]line [09:00:03]line [09:00:03]written 0, free lines is 3230 [09:00:03]MH_Cut [09:00:03]Write to MH i2c: D1 01 00 B4 7C 01 02 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: D1 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: D1 01 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: D1 01 00 B4 7C 00 01 [09:00:03]Write to MH i2c: 01 00 00 B5 7C 31 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]OFD Sender: No OFD packet to send [09:00:04]*** Cut start [09:00:04]*** Partial cut [09:00:04]*** CUTSNS_PIN = 1 [09:00:04]*** CUTSNS_PIN = 0 [09:00:04]*** Brake cut motor [09:00:04]Read from MH i2c: 01 [09:00:04]MH_I2C_Read... [09:00:04]*** Stop cut motor [09:00:04]*** Cut end [09:00:04]Read from MH i2c: 01 07 00 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: 01 07 00 B5 7C 00 00 00 00 00 FF 0F 46 [09:00:04]process_action close_receipt done [09:00:04]requested_data is exist [09:00:04]produce_requested_data [09:00:04]requested_item fm.sn is exist - process it [09:00:04]wFMCommunicate request_size=4 [09:00:04]MH_SAM_APDU [09:00:04]CAPDU: 80 11 00 00 [09:00:04]Write to MH i2c: E2 08 00 B6 7C 80 11 00 00 00 00 00 00 AC [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 B6 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [09:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:00:05]wFMCommunicate OK [09:00:05]requested_item fd.num is exist - process it [09:00:05]SAM_PROTO_GetFieldsCounters [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 13 00 00 [09:00:05]Write to MH i2c: E2 08 00 B7 7C 80 13 00 00 00 00 00 00 AF [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 62 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 62 00 B7 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 78 00 00 0E 04 04 00 74 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 C8 [09:00:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 78 00 00 0E 04 04 00 74 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 [09:00:05]wFMCommunicate OK [09:00:05]SAM_PROTO_GetFieldsCounters done [09:00:05]requested_item shift.num is exist - process it [09:00:05]requested_item shift.opened is exist - process it [09:00:05]req_shift_opened [09:00:05]FM_GetShiftState [09:00:05]SAM_PROTO_GetShiftState [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 13 01 00 [09:00:05]Write to MH i2c: E2 08 00 B8 7C 80 13 01 00 00 00 00 00 B1 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0E 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0E 00 B8 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8B [09:00:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:00:05]wFMCommunicate OK [09:00:05]SAM_PROTO_GetShiftState done [09:00:05]FM_GetShiftState done [09:00:05]req_shift_opened done [09:00:05]requested_item shift.open_date is exist - process it [09:00:05]req_shift_open_date [09:00:05]req_shift_open_date done [09:00:05]produce_requested_data done [09:00:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30821,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:00:05]process_action_free close_receipt [09:00:05]json_value_free [09:00:05]json_value_free done [09:00:05]process_json_proto returns [09:00:05]Send response to host [09:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30821,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:00:05]free response buf [09:00:05]execute_script done [09:00:05]execute_script returns [09:00:05]free content buf [09:00:05]Sock 9.Close socket [09:00:05]Sock 9.Thread stoped [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]accept exits with 7 [09:00:23]New connection [09:00:23]New thread 3067489636 created [09:00:23]Thread 3067346276 joined [09:00:23]Waiting for new connection... [09:00:23] Sock 7.Parse request [09:00:23]Sock 7.Check first char [09:00:23]Sock 7.First char is OK [09:00:23]request: POST /json_proto HTTP/1.0 [09:00:23]Method: POST [09:00:23]URL: /json_proto [09:00:23]Method is POST - this is cgi request [09:00:23]url: /json_proto [09:00:23]query_string will be loaded in cgi processing [09:00:23]execute_cgi json_proto POST (null) [09:00:23]execute_cgi path=json_proto method=POST [09:00:23]POST find Content-Length [09:00:23]Host: 172.17.51.3:8080 [09:00:23]Content-Length: 751 [09:00:23]Content-Type: application/json [09:00:23] [09:00:23]POST finish read [09:00:23]Found Content-Length = 751 [09:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:23]execute_script... [09:00: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)343240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:23]POST & json_proto [09:00:23]process_json_proto [09:00:23]json parsed OK: [09:00:23]protocol is kg_v1.0 [09:00:23]action value=close_receipt [09:00:23]process_action close_receipt [09:00:23]cmd_close_receipt [09:00:23]MH_GetDate [09:00:23]Write to MH i2c: F0 00 00 B9 7C 24 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 09 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 09 00 B9 7C 00 B1 69 17 67 04 C1 95 66 85 [09:00:23]GetLastDocTimeStamp 1729587610 [09:00:23]current date 1729587633 [09:00:23]FM_GetShiftState [09:00:23]SAM_PROTO_GetShiftState [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 13 01 00 [09:00:23]Write to MH i2c: E2 08 00 BA 7C 80 13 01 00 00 00 00 00 B3 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0E 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0E 00 BA 7C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8D [09:00:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_GetShiftState done [09:00:23]FM_GetShiftState done [09:00:23]opened in 1729557342 [09:00:23]opened+sec_in_day 1729643742 [09:00:23]quantity*price = 0 [09:00:23]sum+1 = 1 [09:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 55 22.10.2024 09:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30822 ФПД: 255994644588360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090033&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30822&fm=255994644588360&tin=02508201610067®Number=0000000000186857&sum=0 [09:00:24]StoreToDocumentArchive [09:00:24]shift 116 fd 30822 [09:00:24]save to /storage/0116/doc_00030822 [09:00:24]save last doc name /storage/0116/doc_00030822 to /storage/kkm_last_doc_name [09:00:24]save OK [09:00:24]Clear old archive folders... [09:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:00:24]tlvbuf is 01E1A780 [09:00:24]SAM_PROTO_ClearQueue [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 09 00 00 [09:00:24]Write to MH i2c: E2 08 00 C7 7C 80 09 00 00 00 00 00 00 B5 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 C7 7C 00 90 00 B7 [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]SAM_PROTO_ClearQueue done [09:00:24]KKMCreateOFDPacket [09:00:24]OFDProtocolAddRootSTLVToBuf [09:00:24]FM_MakeSignedData [09:00:24]FM_MakeSignedData [09:00:24]SAM_PROTO_SignData [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 01 02 [09:00:24]Write to MH i2c: E2 08 00 C8 7C 80 0D 01 02 00 00 00 00 BD [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 C8 7C 00 90 00 B8 [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]wFMCommunicate request_size=255 [09:00:24]MH_SAM_APDU [09:00: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B1 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 78 00 00 35 04 06 00 E8 D3 65 DA [09:00:24]Write to MH i2c: E2 02 01 C9 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B1 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 78 00 00 35 04 06 00 E8 D3 65 DA 00 00 6E [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 C9 7C 00 90 00 B9 [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]wFMCommunicate request_size=7 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 02 02 02 E7 48 [09:00:24]Write to MH i2c: E2 0A 00 CA 7C 80 0D 02 02 02 00 E7 48 00 00 F3 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 03 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 03 00 CA 7C 00 90 00 BA [09:00:25]RAPDU: 90 00 [09:00:25]wFMCommunicate OK [09:00:25]wFMCommunicate request_size=4 [09:00:25]MH_SAM_APDU [09:00:25]CAPDU: 80 0D 03 02 [09:00:25]Write to MH i2c: E2 08 00 CB 7C 80 0D 03 02 00 00 00 00 C2 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 0B 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 0B 00 CB 7C 00 FF 35 51 8A F8 96 9D DB 90 00 D8 [09:00:25]RAPDU: FF 35 51 8A F8 96 9D DB 90 00 [09:00:25]wFMCommunicate OK [09:00:25]SAM_PROTO_SignData done [09:00:25]FM_MakeSignedData done [09:00:25]CreateOFDProtocolMessage [09:00:25]wFMCommunicate request_size=4 [09:00:25]MH_SAM_APDU [09:00:25]CAPDU: 80 11 00 00 [09:00:25]Write to MH i2c: E2 08 00 CC 7C 80 11 00 00 00 00 00 00 C2 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 17 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 17 00 CC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [09:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:00:25]wFMCommunicate OK [09:00:25]CreateOFDProtocolMessage done [09:00:25]OFDSenderStorePacket 30822 [09:00:25]StoreOFDPacket docnum=30822 [09:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 F5 04 01 6F C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B1 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 78 00 00 35 04 06 00 E8 D3 65 DA E7 48 FF 35 51 8A F8 96 9D DB [09:00:25]CheckFolder [09:00:25]dirname=/storage/ofd_packets [09:00:25]CheckFolder done [09:00:25]ProducePacketName [09:00:25]name=ofd_packets/00030822 [09:00:25]NVStorageSaveData ofd_packets/00030822 [09:00:25]File name is /storage/ofd_packets/00030822 [09:00:25]Write 298 bytes [09:00:25]NVStorageSaveData done [09:00:25]OFDSenderStorePacket done [09:00:25]KKMCreateOFDPacket done [09:00:25]NVStorageSaveData kkm_last_timestamp [09:00:25]File name is /storage/kkm_last_timestamp [09:00:25]Write 4 bytes [09:00:25]NVStorageSaveData done [09:00:25]ExternCall_PrintAddStr [09:00:25]wPrintStart [09:00:25]Write to MH i2c: 01 00 00 CD 7C 49 [09:00:25]OFD Sender: Processing packet 30822 [packets to send 10, broken 9] [09:00:25]ProducePacketName [09:00:25]name=ofd_packets/00030822 [09:00:25]OFD Sender: To server: pG, [09:00:25]CommunicateWithHost lk.salyk.kg:30040 [09:00:25]ConnectInit lk.salyk.kg [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 CD 7C 00 00 00 00 00 FF 0F 5E [09:00:25]RasterBufferAndPrint [09:00:25]line Счет N : (1)343240 [09:00:25]line ИНН: 02508201610067 [09:00:25]line Контрольно-Кассовый Чек [09:00:25]line ПРОДАЖА [09:00:25]line ТРК (МРК, ГНК) : 64 [09:00:25]line Товар: 2710194210 [09:00:25]line ДТ-К-2 [09:00:25]line 10.000 * 0.00 [09:00:25]line = 0.00 [09:00:25]line НДС 12% НСП 1% [09:00:25]line > о реализуемом товаре [09:00:25]line ИТОГО: 0.00 [09:00:25]line НСП 1% : 0.00 [09:00:25]line НДС 12% : 0.00 [09:00:25]line Наличными: 0.00 [09:00:25]line Безнал.: 0.00 [09:00:25]line Место: АЗС № 78 "Партнер Нефть" [09:00:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:00:25]line СНО: Общий режим [09:00:25]line Чек 55 22.10.2024 09:00 [09:00:25]line Смена: 116 ФФД: 1.0 [09:00:25]line ЗНМ: 0300000137 [09:00:25]line РНМ: 0000000000186857 [09:00:25]line Версия ККМ: v1.0 [09:00:25]line Талоны: ТК ГПНА Online [09:00:25]line 30132031 [09:00:25]line ФМ: 0000000002094219 [09:00:25]line ФД: 30822 [09:00:25]line ФПД: 255994644588360 [09:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090033&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30822&fm=255994644588360&tin=02508201610067®Number=0000000000186857&sum=0 [09:00:25]Connected sock=10 [09:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 F5 04 01 6F C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B1 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 78 00 00 35 04 06 00 E8 D3 65 DA E7 48 FF 35 51 8A F8 96 9D DB [09:00:25]written 0, free lines is 4095 [09:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0D 64 47 00 91 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 32 30 39 34 32 31 39 10 04 04 00 66 78 00 00 F4 03 04 00 2E 14 17 67 B6 04 01 00 00 0A 1C 64 A1 4F 48 55 45 [09:00:25]CommunicateWithHost err = 0 [09:00:25]CheckOFDResponse [09:00:25]1017 (14) - 77093643461234 [09:00:25]1041 (16) - 0000000002094219 [09:00:25]1040 (4) - 30822 [09:00:25]1012 (4) - 22.10.2024 02:55 [09:00:25]1206 (1) - 0 [09:00:25]OFD Sender: Remove packet 30822 [09:00:25]ProducePacketName [09:00:25]name=ofd_packets/00030822 [09:00:25]NVStorageDeleteData [09:00:25]Write to MH i2c: 01 00 00 F7 7C 73 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 F7 7C 00 00 00 00 00 F6 0C 7C [09:00:25]RasterBufferAndPrint [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]written 0, free lines is 3324 [09:00:25]MH_Cut [09:00:25]Write to MH i2c: D1 01 00 FE 7C 01 4C [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 01 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 01 00 FE 7C 00 4B [09:00:25]Write to MH i2c: 01 00 00 FF 7C 7B [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:26]OFD Sender: No OFD packet to send [09:00:26]*** Cut start [09:00:26]*** Partial cut [09:00:26]*** CUTSNS_PIN = 1 [09:00:26]*** CUTSNS_PIN = 0 [09:00:26]*** Brake cut motor [09:00:27]Read from MH i2c: 01 [09:00:27]MH_I2C_Read... [09:00:27]*** Stop cut motor [09:00:27]*** Cut end [09:00:27]Read from MH i2c: 01 07 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: 01 07 00 FF 7C 00 00 00 00 00 FF 0F 90 [09:00:27]process_action close_receipt done [09:00:27]requested_data is exist [09:00:27]produce_requested_data [09:00:27]requested_item fm.sn is exist - process it [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 11 00 00 [09:00:27]Write to MH i2c: E2 08 00 00 7D 80 11 00 00 00 00 00 00 F7 [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 17 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 17 00 00 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [09:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:00:27]wFMCommunicate OK [09:00:27]requested_item fd.num is exist - process it [09:00:27]SAM_PROTO_GetFieldsCounters [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 13 00 00 [09:00:27]Write to MH i2c: E2 08 00 01 7D 80 13 00 00 00 00 00 00 FA [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 62 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 62 00 01 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 78 00 00 0E 04 04 00 74 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 17 [09:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 78 00 00 0E 04 04 00 74 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 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetFieldsCounters done [09:00:27]requested_item shift.num is exist - process it [09:00:27]requested_item shift.opened is exist - process it [09:00:27]req_shift_opened [09:00:27]FM_GetShiftState [09:00:27]SAM_PROTO_GetShiftState [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 13 01 00 [09:00:27]Write to MH i2c: E2 08 00 02 7D 80 13 01 00 00 00 00 00 FC [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:27]Read from MH i2c: E2 0E 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 02 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D6 [09:00:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetShiftState done [09:00:27]FM_GetShiftState done [09:00:27]req_shift_opened done [09:00:27]requested_item shift.open_date is exist - process it [09:00:27]req_shift_open_date [09:00:27]req_shift_open_date done [09:00:27]produce_requested_data done [09:00:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30822,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:00:27]process_action_free close_receipt [09:00:27]json_value_free [09:00:27]json_value_free done [09:00:27]process_json_proto returns [09:00:27]Send response to host [09:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30822,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:00:27]free response buf [09:00:27]execute_script done [09:00:27]execute_script returns [09:00:27]free content buf [09:00:27]Sock 7.Close socket [09:00:27]Sock 7.Thread stoped [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:34]accept exits with 9 [09:01:34]New connection [09:01:34]New thread 3067346276 created [09:01:34]Thread 3067489636 joined [09:01:34]Waiting for new connection... [09:01:34] Sock 9.Parse request [09:01:34]Sock 9.Check first char [09:01:34]Sock 9.First char is OK [09:01:34]request: POST /json_proto HTTP/1.0 [09:01:34]Method: POST [09:01:34]URL: /json_proto [09:01:34]Method is POST - this is cgi request [09:01:34]url: /json_proto [09:01:34]query_string will be loaded in cgi processing [09:01:34]execute_cgi json_proto POST (null) [09:01:34]execute_cgi path=json_proto method=POST [09:01:34]POST find Content-Length [09:01:34]Host: 172.17.51.3:8080 [09:01:34]Content-Length: 679 [09:01:34]Content-Type: application/json [09:01:34] [09:01:34]POST finish read [09:01:34]Found Content-Length = 679 [09:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 16.250, "sum" : 1238.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1238.00, "total" : 1238.00, "payments": [ { "type": 0, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:34]execute_script... [09:01:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 16.250, "sum" : 1238.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1238.00, "total" : 1238.00, "payments": [ { "type": 0, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:34]POST & json_proto [09:01:34]process_json_proto [09:01:34]json parsed OK: [09:01:34]protocol is kg_v1.0 [09:01:34]action value=close_receipt [09:01:34]process_action close_receipt [09:01:34]cmd_close_receipt [09:01:34]MH_GetDate [09:01:34]Write to MH i2c: F0 00 00 03 7D 6F [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: F0 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: F0 09 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: F0 09 00 03 7D 00 F8 69 17 67 04 C1 95 66 17 [09:01:34]GetLastDocTimeStamp 1729587633 [09:01:34]current date 1729587704 [09:01:34]FM_GetShiftState [09:01:34]SAM_PROTO_GetShiftState [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 13 01 00 [09:01:34]Write to MH i2c: E2 08 00 04 7D 80 13 01 00 00 00 00 00 FE [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 0E 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 0E 00 04 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D8 [09:01:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:01:34]wFMCommunicate OK [09:01:34]SAM_PROTO_GetShiftState done [09:01:34]FM_GetShiftState done [09:01:34]opened in 1729557342 [09:01:34]opened+sec_in_day 1729643742 [09:01:34]quantity*price = 123825 [09:01:34]sum+1 = 123826 [09:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1238.00 Внесено: 1238.00 СДАЧА: 0.00 НСП 1% : 10.96 НДС 12% : 131.50 Наличными: 1238.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 56 22.10.2024 09:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30823 ФПД: 33628355549712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30823&fm=33628355549712&tin=02508201610067®Number=0000000000186857&sum=123800 [09:01:35]StoreToDocumentArchive [09:01:35]shift 116 fd 30823 [09:01:35]save to /storage/0116/doc_00030823 [09:01:35]save last doc name /storage/0116/doc_00030823 to /storage/kkm_last_doc_name [09:01:35]save OK [09:01:35]Clear old archive folders... [09:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:35]tlvbuf is 020A77B0 [09:01:35]SAM_PROTO_ClearQueue [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 09 00 00 [09:01:35]Write to MH i2c: E2 08 00 11 7D 80 09 00 00 00 00 00 00 00 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 11 7D 00 90 00 02 [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]SAM_PROTO_ClearQueue done [09:01:35]KKMCreateOFDPacket [09:01:35]OFDProtocolAddRootSTLVToBuf [09:01:35]FM_MakeSignedData [09:01:35]FM_MakeSignedData [09:01:35]SAM_PROTO_SignData [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 0D 01 02 [09:01:35]Write to MH i2c: E2 08 00 12 7D 80 0D 01 02 00 00 00 00 08 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 12 7D 00 90 00 03 [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]wFMCommunicate request_size=255 [09:01:35]MH_SAM_APDU [09:01:35]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 32 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 78 00 00 35 04 06 00 1E 95 B6 2F [09:01:35]Write to MH i2c: E2 02 01 13 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 32 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 78 00 00 35 04 06 00 1E 95 B6 2F 00 00 6D [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:36]Read from MH i2c: E2 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 03 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 03 00 13 7D 00 90 00 04 [09:01:36]RAPDU: 90 00 [09:01:36]wFMCommunicate OK [09:01:36]wFMCommunicate request_size=7 [09:01:36]MH_SAM_APDU [09:01:36]CAPDU: 80 0D 02 02 02 DA 10 [09:01:36]Write to MH i2c: E2 0A 00 14 7D 80 0D 02 02 02 00 DA 10 00 00 F9 [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:36]Read from MH i2c: E2 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 03 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 03 00 14 7D 00 90 00 05 [09:01:36]RAPDU: 90 00 [09:01:36]wFMCommunicate OK [09:01:36]wFMCommunicate request_size=4 [09:01:36]MH_SAM_APDU [09:01:36]CAPDU: 80 0D 03 02 [09:01:36]Write to MH i2c: E2 08 00 15 7D 80 0D 03 02 00 00 00 00 0D [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:36]Read from MH i2c: E2 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 0B 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 0B 00 15 7D 00 11 D6 48 AB 41 86 AE 6D 90 00 CA [09:01:36]RAPDU: 11 D6 48 AB 41 86 AE 6D 90 00 [09:01:36]wFMCommunicate OK [09:01:36]SAM_PROTO_SignData done [09:01:36]FM_MakeSignedData done [09:01:36]CreateOFDProtocolMessage [09:01:36]wFMCommunicate request_size=4 [09:01:36]MH_SAM_APDU [09:01:36]CAPDU: 80 11 00 00 [09:01:36]Write to MH i2c: E2 08 00 16 7D 80 11 00 00 00 00 00 00 0D [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]OFD Sender: No OFD packet to send [09:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:36]Read from MH i2c: E2 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 17 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 17 00 16 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [09:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:01:36]wFMCommunicate OK [09:01:36]CreateOFDProtocolMessage done [09:01:36]OFDSenderStorePacket 30823 [09:01:36]StoreOFDPacket docnum=30823 [09:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7B EB 04 01 D2 1B 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 32 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 78 00 00 35 04 06 00 1E 95 B6 2F DA 10 11 D6 48 AB 41 86 AE 6D [09:01:36]CheckFolder [09:01:36]dirname=/storage/ofd_packets [09:01:36]CheckFolder done [09:01:36]ProducePacketName [09:01:36]name=ofd_packets/00030823 [09:01:36]NVStorageSaveData ofd_packets/00030823 [09:01:36]File name is /storage/ofd_packets/00030823 [09:01:36]Write 298 bytes [09:01:36]NVStorageSaveData done [09:01:36]OFDSenderStorePacket done [09:01:36]KKMCreateOFDPacket done [09:01:36]NVStorageSaveData kkm_last_timestamp [09:01:36]File name is /storage/kkm_last_timestamp [09:01:36]Write 4 bytes [09:01:36]NVStorageSaveData done [09:01:36]ExternCall_PrintAddStr [09:01:36]wPrintStart [09:01:36]Write to MH i2c: 01 00 00 17 7D 94 [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: 01 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: 01 07 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: 01 07 00 17 7D 00 00 00 00 00 FF 0F A9 [09:01:36]RasterBufferAndPrint [09:01:36]line Счет N : (1)343241 [09:01:36]line ИНН: 02508201610067 [09:01:36]line Контрольно-Кассовый Чек [09:01:36]line ПРОДАЖА [09:01:36]line ТРК (МРК, ГНК) : 64 [09:01:36]line Товар: 2710194210 [09:01:36]line ДТ-К-2 [09:01:36]line 16.250 * 76.20 [09:01:36]line = 1238.25 [09:01:36]line НДС 12% НСП 1% [09:01:36]line > о реализуемом товаре [09:01:36]line ОКРУГЛЕНИЕ: -0.25 [09:01:36]line ИТОГО: 1238.00 [09:01:36]line Внесено: 1238.00 [09:01:36]line СДАЧА: 0.00 [09:01:36]line НСП 1% : 10.96 [09:01:36]line НДС 12% : 131.50 [09:01:36]line Наличными: 1238.00 [09:01:36]line Безнал.: 0.00 [09:01:36]line Место: АЗС № 78 "Партнер Нефть" [09:01:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:01:36]line СНО: Общий режим [09:01:36]line Чек 56 22.10.2024 09:01 [09:01:36]line Смена: 116 ФФД: 1.0 [09:01:36]line ЗНМ: 0300000137 [09:01:36]line РНМ: 0000000000186857 [09:01:36]line Версия ККМ: v1.0 [09:01:36]line ФМ: 0000000002094219 [09:01:36]line ФД: 30823 [09:01:36]line ФПД: 33628355549712 [09:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30823&fm=33628355549712&tin=02508201610067®Number=0000000000186857&sum=123800 [09:01:36]OFD Sender: Processing packet 30823 [packets to send 10, broken 9] [09:01:36]ProducePacketName [09:01:36]name=ofd_packets/00030823 [09:01:36]OFD Sender: To server: pG, [09:01:36]CommunicateWithHost lk.salyk.kg:30040 [09:01:36]ConnectInit lk.salyk.kg [09:01:36]written 0, free lines is 4095 [09:01:36]Connected sock=10 [09:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7B EB 04 01 D2 1B 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 32 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 69 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 78 00 00 35 04 06 00 1E 95 B6 2F DA 10 11 D6 48 AB 41 86 AE 6D [09:01:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2C 16 47 00 23 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 78 00 00 F4 03 04 00 76 14 17 67 B6 04 01 00 00 26 A3 88 2E 50 02 7B C2 [09:01:36]CommunicateWithHost err = 0 [09:01:36]CheckOFDResponse [09:01:36]1017 (14) - 77093643461234 [09:01:36]1041 (16) - 0000000002094219 [09:01:36]1040 (4) - 30823 [09:01:36]1012 (4) - 22.10.2024 02:56 [09:01:36]1206 (1) - 0 [09:01:36]OFD Sender: Remove packet 30823 [09:01:36]ProducePacketName [09:01:36]name=ofd_packets/00030823 [09:01:36]NVStorageDeleteData [09:01:37]Write to MH i2c: 01 00 00 42 7D BF [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: 01 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: 01 07 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: 01 07 00 42 7D 00 00 00 00 00 FE 0C D0 [09:01:37]RasterBufferAndPrint [09:01:37]line [09:01:37]line [09:01:37]line [09:01:37]line [09:01:37]line [09:01:37]written 0, free lines is 3335 [09:01:37]MH_Cut [09:01:37]Write to MH i2c: D1 01 00 49 7D 01 98 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: D1 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: D1 01 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: D1 01 00 49 7D 00 97 [09:01:37]Write to MH i2c: 01 00 00 4A 7D C7 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]OFD Sender: No OFD packet to send [09:01:37]*** Cut start [09:01:37]*** Partial cut [09:01:37]*** CUTSNS_PIN = 1 [09:01:37]*** CUTSNS_PIN = 0 [09:01:38]*** Brake cut motor [09:01:38]Read from MH i2c: 01 [09:01:38]MH_I2C_Read... [09:01:38]*** Stop cut motor [09:01:38]Read from MH i2c: 01 07 00 [09:01:38]MH_I2C_Read... [09:01:38]*** Cut end [09:01:38]Read from MH i2c: 01 07 00 4A 7D 00 00 00 00 00 FF 0F DC [09:01:38]process_action close_receipt done [09:01:38]requested_data is exist [09:01:38]produce_requested_data [09:01:38]requested_item fm.sn is exist - process it [09:01:38]wFMCommunicate request_size=4 [09:01:38]MH_SAM_APDU [09:01:38]CAPDU: 80 11 00 00 [09:01:38]Write to MH i2c: E2 08 00 4B 7D 80 11 00 00 00 00 00 00 42 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:38]Read from MH i2c: E2 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 17 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 17 00 4B 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [09:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:01:38]wFMCommunicate OK [09:01:38]requested_item fd.num is exist - process it [09:01:38]SAM_PROTO_GetFieldsCounters [09:01:38]wFMCommunicate request_size=4 [09:01:38]MH_SAM_APDU [09:01:38]CAPDU: 80 13 00 00 [09:01:38]Write to MH i2c: E2 08 00 4C 7D 80 13 00 00 00 00 00 00 45 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:38]Read from MH i2c: E2 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 62 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 62 00 4C 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 78 00 00 0E 04 04 00 74 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 66 [09:01:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 78 00 00 0E 04 04 00 74 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 [09:01:38]wFMCommunicate OK [09:01:38]SAM_PROTO_GetFieldsCounters done [09:01:38]requested_item shift.num is exist - process it [09:01:38]requested_item shift.opened is exist - process it [09:01:38]req_shift_opened [09:01:38]FM_GetShiftState [09:01:38]SAM_PROTO_GetShiftState [09:01:38]wFMCommunicate request_size=4 [09:01:38]MH_SAM_APDU [09:01:38]CAPDU: 80 13 01 00 [09:01:38]Write to MH i2c: E2 08 00 4D 7D 80 13 01 00 00 00 00 00 47 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:38]Read from MH i2c: E2 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 0E 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 0E 00 4D 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 21 [09:01:38]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:01:38]wFMCommunicate OK [09:01:38]SAM_PROTO_GetShiftState done [09:01:38]FM_GetShiftState done [09:01:38]req_shift_opened done [09:01:38]requested_item shift.open_date is exist - process it [09:01:38]req_shift_open_date [09:01:38]req_shift_open_date done [09:01:38]produce_requested_data done [09:01:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30823,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:01:38]process_action_free close_receipt [09:01:38]json_value_free [09:01:38]json_value_free done [09:01:38]process_json_proto returns [09:01:38]Send response to host [09:01:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30823,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:01:38]free response buf [09:01:38]execute_script done [09:01:38]execute_script returns [09:01:38]free content buf [09:01:38]Sock 9.Close socket [09:01:38]Sock 9.Thread stoped [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:14]accept exits with 7 [09:07:14]New connection [09:07:14]New thread 3067489636 created [09:07:14]Thread 3067346276 joined [09:07:14]Waiting for new connection... [09:07:14] Sock 7.Parse request [09:07:14]Sock 7.Check first char [09:07:14]Sock 7.First char is OK [09:07:14]request: POST /json_proto HTTP/1.0 [09:07:14]Method: POST [09:07:14]URL: /json_proto [09:07:14]Method is POST - this is cgi request [09:07:14]url: /json_proto [09:07:14]query_string will be loaded in cgi processing [09:07:14]execute_cgi json_proto POST (null) [09:07:14]execute_cgi path=json_proto method=POST [09:07:14]POST find Content-Length [09:07:14]Host: 172.17.51.3:8080 [09:07:14]Content-Length: 677 [09:07:14]Content-Type: application/json [09:07:14] [09:07:14]POST finish read [09:07:14]Found Content-Length = 677 [09:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "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" ] } } [09:07:14]execute_script... [09:07: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)343242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "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" ] } } [09:07:14]POST & json_proto [09:07:14]process_json_proto [09:07:14]json parsed OK: [09:07:14]protocol is kg_v1.0 [09:07:14]action value=close_receipt [09:07:14]process_action close_receipt [09:07:14]cmd_close_receipt [09:07:14]MH_GetDate [09:07:14]Write to MH i2c: F0 00 00 4E 7D BA [09:07:14]Write i2c OK [09:07:14]MH_I2C_Read... [09:07:14]Read from MH i2c: F0 [09:07:14]MH_I2C_Read... [09:07:14]Read from MH i2c: F0 09 00 [09:07:14]MH_I2C_Read... [09:07:14]Read from MH i2c: F0 09 00 4E 7D 00 4C 6B 17 67 04 C1 95 66 B8 [09:07:14]GetLastDocTimeStamp 1729587704 [09:07:14]current date 1729588044 [09:07:14]FM_GetShiftState [09:07:14]SAM_PROTO_GetShiftState [09:07:14]wFMCommunicate request_size=4 [09:07:14]MH_SAM_APDU [09:07:14]CAPDU: 80 13 01 00 [09:07:14]Write to MH i2c: E2 08 00 4F 7D 80 13 01 00 00 00 00 00 49 [09:07:14]Write i2c OK [09:07:14]MH_I2C_Read... [09:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:14]Read from MH i2c: E2 [09:07:14]MH_I2C_Read... [09:07:14]Read from MH i2c: E2 0E 00 [09:07:14]MH_I2C_Read... [09:07:14]Read from MH i2c: E2 0E 00 4F 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 23 [09:07:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:07:14]wFMCommunicate OK [09:07:14]SAM_PROTO_GetShiftState done [09:07:14]FM_GetShiftState done [09:07:14]opened in 1729557342 [09:07:14]opened+sec_in_day 1729643742 [09:07:14]quantity*price = 46027 [09:07:14]sum+1 = 46028 [09:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.88 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 57 22.10.2024 09:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30824 ФПД: 232785879507702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30824&fm=232785879507702&tin=02508201610067®Number=0000000000186857&sum=46000 [09:07:15]StoreToDocumentArchive [09:07:15]shift 116 fd 30824 [09:07:15]save to /storage/0116/doc_00030824 [09:07:15]save last doc name /storage/0116/doc_00030824 to /storage/kkm_last_doc_name [09:07:15]save OK [09:07:15]Clear old archive folders... [09:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:15]tlvbuf is 01E18770 [09:07:15]SAM_PROTO_ClearQueue [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 09 00 00 [09:07:15]Write to MH i2c: E2 08 00 5C 7D 80 09 00 00 00 00 00 00 4B [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 03 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 03 00 5C 7D 00 90 00 4D [09:07:15]RAPDU: 90 00 [09:07:15]wFMCommunicate OK [09:07:15]SAM_PROTO_ClearQueue done [09:07:15]KKMCreateOFDPacket [09:07:15]OFDProtocolAddRootSTLVToBuf [09:07:15]FM_MakeSignedData [09:07:15]FM_MakeSignedData [09:07:15]SAM_PROTO_SignData [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 0D 01 02 [09:07:15]Write to MH i2c: E2 08 00 5D 7D 80 0D 01 02 00 00 00 00 53 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 03 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 03 00 5D 7D 00 90 00 4E [09:07:15]RAPDU: 90 00 [09:07:15]wFMCommunicate OK [09:07:15]wFMCommunicate request_size=255 [09:07:15]MH_SAM_APDU [09:07: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 32 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB 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 18 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 39 00 00 00 F4 03 04 00 4C 6B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 78 00 00 35 04 06 00 D3 [09:07:15]Write to MH i2c: E2 02 01 5E 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 32 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB 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 18 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 39 00 00 00 F4 03 04 00 4C 6B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 78 00 00 35 04 06 00 D3 00 00 31 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 5E 7D 00 90 00 4F [09:07:16]RAPDU: 90 00 [09:07:16]wFMCommunicate OK [09:07:16]wFMCommunicate request_size=10 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 0D 02 02 05 B7 AF A8 22 F6 [09:07:16]Write to MH i2c: E2 0D 00 5F 7D 80 0D 02 02 05 00 B7 AF A8 22 F6 00 00 86 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 5F 7D 00 90 00 50 [09:07:16]RAPDU: 90 00 [09:07:16]wFMCommunicate OK [09:07:16]wFMCommunicate request_size=4 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 0D 03 02 [09:07:16]Write to MH i2c: E2 08 00 60 7D 80 0D 03 02 00 00 00 00 58 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 0B 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 0B 00 60 7D 00 B7 18 CE 22 97 11 28 D7 90 00 BF [09:07:16]RAPDU: B7 18 CE 22 97 11 28 D7 90 00 [09:07:16]wFMCommunicate OK [09:07:16]SAM_PROTO_SignData done [09:07:16]FM_MakeSignedData done [09:07:16]CreateOFDProtocolMessage [09:07:16]wFMCommunicate request_size=4 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 11 00 00 [09:07:16]Write to MH i2c: E2 08 00 61 7D 80 11 00 00 00 00 00 00 58 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 17 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 17 00 61 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [09:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:07:16]wFMCommunicate OK [09:07:16]CreateOFDProtocolMessage done [09:07:16]OFDSenderStorePacket 30824 [09:07:16]StoreOFDPacket docnum=30824 [09:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A 05 07 01 32 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 32 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB 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 18 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 39 00 00 00 F4 03 04 00 4C 6B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 78 00 00 35 04 06 00 D3 B7 AF A8 22 F6 B7 18 CE 22 97 11 28 D7 [09:07:16]CheckFolder [09:07:16]dirname=/storage/ofd_packets [09:07:16]CheckFolder done [09:07:16]ProducePacketName [09:07:16]name=ofd_packets/00030824 [09:07:16]NVStorageSaveData ofd_packets/00030824 [09:07:16]File name is /storage/ofd_packets/00030824 [09:07:16]Write 301 bytes [09:07:16]NVStorageSaveData done [09:07:16]OFDSenderStorePacket done [09:07:16]KKMCreateOFDPacket done [09:07:16]NVStorageSaveData kkm_last_timestamp [09:07:16]File name is /storage/kkm_last_timestamp [09:07:16]Write 4 bytes [09:07:16]NVStorageSaveData done [09:07:16]ExternCall_PrintAddStr [09:07:16]wPrintStart [09:07:16]Write to MH i2c: 01 00 00 62 7D DF [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: 01 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: 01 07 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: 01 07 00 62 7D 00 00 00 00 00 FF 0F F4 [09:07:16]RasterBufferAndPrint [09:07:16]line Счет N : (1)343242 [09:07:16]line ИНН: 02508201610067 [09:07:16]line Контрольно-Кассовый Чек [09:07:16]line ПРОДАЖА [09:07:16]line ТРК (МРК, ГНК) : 63 [09:07:16]line Товар: 2710124130 [09:07:16]line Аи-92-К-2 [09:07:16]line 6.880 * 66.90 [09:07:16]line = 460.27 [09:07:16]line НДС 12% НСП 1% [09:07:16]line > о реализуемом товаре [09:07:16]line ОКРУГЛЕНИЕ: -0.27 [09:07:16]line ИТОГО: 460.00 [09:07:16]line Внесено: 460.00 [09:07:16]line СДАЧА: 0.00 [09:07:16]line НСП 1% : 4.07 [09:07:16]line НДС 12% : 48.88 [09:07:16]line Наличными: 460.00 [09:07:16]line Безнал.: 0.00 [09:07:16]line Место: АЗС № 78 "Партнер Нефть" [09:07:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:07:16]line СНО: Общий режим [09:07:16]line Чек 57 22.10.2024 09:07 [09:07:16]line Смена: 116 ФФД: 1.0 [09:07:16]line ЗНМ: 0300000137 [09:07:16]line РНМ: 0000000000186857 [09:07:16]line Версия ККМ: v1.0 [09:07:16]line ФМ: 0000000002094219 [09:07:16]line ФД: 30824 [09:07:16]line ФПД: 232785879507702 [09:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30824&fm=232785879507702&tin=02508201610067®Number=0000000000186857&sum=46000 [09:07:16]OFD Sender: Processing packet 30824 [packets to send 10, broken 9] [09:07:16]ProducePacketName [09:07:16]name=ofd_packets/00030824 [09:07:16]OFD Sender: To server: pG, [09:07:16]CommunicateWithHost lk.salyk.kg:30040 [09:07:16]ConnectInit lk.salyk.kg [09:07:16]written 0, free lines is 4095 [09:07:16]Connected sock=10 [09:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A 05 07 01 32 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 32 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB 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 18 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 39 00 00 00 F4 03 04 00 4C 6B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 78 00 00 35 04 06 00 D3 B7 AF A8 22 F6 B7 18 CE 22 97 11 28 D7 [09:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 31 13 47 00 19 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 32 30 39 34 32 31 39 10 04 04 00 68 78 00 00 F4 03 04 00 CA 15 17 67 B6 04 01 00 00 5D 4B CC 63 AC 29 6A 08 [09:07:16]CommunicateWithHost err = 0 [09:07:16]CheckOFDResponse [09:07:16]1017 (14) - 77093643461234 [09:07:16]1041 (16) - 0000000002094219 [09:07:16]1040 (4) - 30824 [09:07:16]1012 (4) - 22.10.2024 03:02 [09:07:16]1206 (1) - 0 [09:07:16]OFD Sender: Remove packet 30824 [09:07:16]ProducePacketName [09:07:16]name=ofd_packets/00030824 [09:07:16]NVStorageDeleteData [09:07:17]Write to MH i2c: 01 00 00 8D 7D 0A [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 8D 7D 00 00 00 00 00 F0 0C 0D [09:07:17]RasterBufferAndPrint [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]written 0, free lines is 3318 [09:07:17]MH_Cut [09:07:17]Write to MH i2c: D1 01 00 94 7D 01 E3 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 01 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 01 00 94 7D 00 E2 [09:07:17]Write to MH i2c: 01 00 00 95 7D 12 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]OFD Sender: No OFD packet to send [09:07:17]*** Cut start [09:07:17]*** Partial cut [09:07:17]*** CUTSNS_PIN = 1 [09:07:17]*** CUTSNS_PIN = 0 [09:07:17]*** Brake cut motor [09:07:18]Read from MH i2c: 01 [09:07:18]MH_I2C_Read... [09:07:18]*** Stop cut motor [09:07:18]*** Cut end [09:07:18]Read from MH i2c: 01 07 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: 01 07 00 95 7D 00 00 00 00 00 FF 0F 27 [09:07:18]process_action close_receipt done [09:07:18]requested_data is exist [09:07:18]produce_requested_data [09:07:18]requested_item fm.sn is exist - process it [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 11 00 00 [09:07:18]Write to MH i2c: E2 08 00 96 7D 80 11 00 00 00 00 00 00 8D [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 17 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 17 00 96 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [09:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:07:18]wFMCommunicate OK [09:07:18]requested_item fd.num is exist - process it [09:07:18]SAM_PROTO_GetFieldsCounters [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 13 00 00 [09:07:18]Write to MH i2c: E2 08 00 97 7D 80 13 00 00 00 00 00 00 90 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 62 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 62 00 97 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 78 00 00 0E 04 04 00 74 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 B5 [09:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 78 00 00 0E 04 04 00 74 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 [09:07:18]wFMCommunicate OK [09:07:18]SAM_PROTO_GetFieldsCounters done [09:07:18]requested_item shift.num is exist - process it [09:07:18]requested_item shift.opened is exist - process it [09:07:18]req_shift_opened [09:07:18]FM_GetShiftState [09:07:18]SAM_PROTO_GetShiftState [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 13 01 00 [09:07:18]Write to MH i2c: E2 08 00 98 7D 80 13 01 00 00 00 00 00 92 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 0E 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 0E 00 98 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6C [09:07:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:07:18]wFMCommunicate OK [09:07:18]SAM_PROTO_GetShiftState done [09:07:18]FM_GetShiftState done [09:07:18]req_shift_opened done [09:07:18]requested_item shift.open_date is exist - process it [09:07:18]req_shift_open_date [09:07:18]req_shift_open_date done [09:07:18]produce_requested_data done [09:07:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30824,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:07:18]process_action_free close_receipt [09:07:18]json_value_free [09:07:18]json_value_free done [09:07:18]process_json_proto returns [09:07:18]Send response to host [09:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30824,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:07:18]free response buf [09:07:18]execute_script done [09:07:18]execute_script returns [09:07:18]free content buf [09:07:18]Sock 7.Close socket [09:07:18]Sock 7.Thread stoped [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:32]accept exits with 9 [09:12:32]New connection [09:12:32]New thread 3067346276 created [09:12:32]Thread 3067489636 joined [09:12:32]Waiting for new connection... [09:12:32] Sock 9.Parse request [09:12:32]Sock 9.Check first char [09:12:32]Sock 9.First char is OK [09:12:32]request: POST /json_proto HTTP/1.0 [09:12:32]Method: POST [09:12:32]URL: /json_proto [09:12:32]Method is POST - this is cgi request [09:12:32]url: /json_proto [09:12:32]query_string will be loaded in cgi processing [09:12:32]execute_cgi json_proto POST (null) [09:12:32]execute_cgi path=json_proto method=POST [09:12:32]POST find Content-Length [09:12:32]Host: 172.17.51.3:8080 [09:12:32]Content-Length: 754 [09:12:32]Content-Type: application/json [09:12:32] [09:12:32]POST finish read [09:12:32]Found Content-Length = 754 [09:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:32]execute_script... [09:12: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)343243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:32]POST & json_proto [09:12:32]process_json_proto [09:12:32]json parsed OK: [09:12:32]protocol is kg_v1.0 [09:12:32]action value=close_receipt [09:12:32]process_action close_receipt [09:12:32]cmd_close_receipt [09:12:32]MH_GetDate [09:12:32]Write to MH i2c: F0 00 00 99 7D 05 [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 09 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: F0 09 00 99 7D 00 8A 6C 17 67 04 C1 95 66 42 [09:12:32]GetLastDocTimeStamp 1729588044 [09:12:32]current date 1729588362 [09:12:32]FM_GetShiftState [09:12:32]SAM_PROTO_GetShiftState [09:12:32]wFMCommunicate request_size=4 [09:12:32]MH_SAM_APDU [09:12:32]CAPDU: 80 13 01 00 [09:12:32]Write to MH i2c: E2 08 00 9A 7D 80 13 01 00 00 00 00 00 94 [09:12:32]Write i2c OK [09:12:32]MH_I2C_Read... [09:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:32]Read from MH i2c: E2 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 [09:12:32]MH_I2C_Read... [09:12:32]Read from MH i2c: E2 0E 00 9A 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6E [09:12:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:12:32]wFMCommunicate OK [09:12:32]SAM_PROTO_GetShiftState done [09:12:32]FM_GetShiftState done [09:12:32]opened in 1729557342 [09:12:32]opened+sec_in_day 1729643742 [09:12:32]quantity*price = 0 [09:12:32]sum+1 = 1 [09:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 58 22.10.2024 09:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30018396 ФМ: 0000000002094219 ФД: 30825 ФПД: 29408421841864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091242&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30825&fm=29408421841864&tin=02508201610067®Number=0000000000186857&sum=0 [09:12:34]StoreToDocumentArchive [09:12:34]shift 116 fd 30825 [09:12:34]save to /storage/0116/doc_00030825 [09:12:34]save last doc name /storage/0116/doc_00030825 to /storage/kkm_last_doc_name [09:12:34]save OK [09:12:34]Clear old archive folders... [09:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:34]tlvbuf is 01E11680 [09:12:34]SAM_PROTO_ClearQueue [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 09 00 00 [09:12:34]Write to MH i2c: E2 08 00 A7 7D 80 09 00 00 00 00 00 00 96 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 A7 7D 00 90 00 98 [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]SAM_PROTO_ClearQueue done [09:12:34]KKMCreateOFDPacket [09:12:34]OFDProtocolAddRootSTLVToBuf [09:12:34]FM_MakeSignedData [09:12:34]FM_MakeSignedData [09:12:34]SAM_PROTO_SignData [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 0D 01 02 [09:12:34]Write to MH i2c: E2 08 00 A8 7D 80 0D 01 02 00 00 00 00 9E [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 A8 7D 00 90 00 99 [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]wFMCommunicate request_size=255 [09:12:34]MH_SAM_APDU [09:12: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 32 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8A 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 78 00 00 35 04 06 00 1A [09:12:34]Write to MH i2c: E2 02 01 A9 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 32 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8A 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 78 00 00 35 04 06 00 1A 00 00 3E [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 A9 7D 00 90 00 9A [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]wFMCommunicate request_size=10 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 0D 02 02 05 BF 2E 89 8B C8 [09:12:34]Write to MH i2c: E2 0D 00 AA 7D 80 0D 02 02 05 00 BF 2E 89 8B C8 00 00 74 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 AA 7D 00 90 00 9B [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 0D 03 02 [09:12:34]Write to MH i2c: E2 08 00 AB 7D 80 0D 03 02 00 00 00 00 A3 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 0B 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 0B 00 AB 7D 00 6B 30 B1 31 F3 15 DA 9D 90 00 A0 [09:12:34]RAPDU: 6B 30 B1 31 F3 15 DA 9D 90 00 [09:12:34]wFMCommunicate OK [09:12:34]SAM_PROTO_SignData done [09:12:34]FM_MakeSignedData done [09:12:34]CreateOFDProtocolMessage [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 11 00 00 [09:12:34]Write to MH i2c: E2 08 00 AC 7D 80 11 00 00 00 00 00 00 A3 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 17 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 17 00 AC 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [09:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:12:34]wFMCommunicate OK [09:12:34]CreateOFDProtocolMessage done [09:12:34]OFDSenderStorePacket 30825 [09:12:34]StoreOFDPacket docnum=30825 [09:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 11 07 01 5B 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 32 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8A 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 78 00 00 35 04 06 00 1A BF 2E 89 8B C8 6B 30 B1 31 F3 15 DA 9D [09:12:34]CheckFolder [09:12:34]dirname=/storage/ofd_packets [09:12:34]CheckFolder done [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00030825 [09:12:34]NVStorageSaveData ofd_packets/00030825 [09:12:34]File name is /storage/ofd_packets/00030825 [09:12:34]Write 301 bytes [09:12:34]NVStorageSaveData done [09:12:34]OFDSenderStorePacket done [09:12:34]KKMCreateOFDPacket done [09:12:34]NVStorageSaveData kkm_last_timestamp [09:12:34]File name is /storage/kkm_last_timestamp [09:12:34]Write 4 bytes [09:12:34]NVStorageSaveData done [09:12:34]ExternCall_PrintAddStr [09:12:34]wPrintStart [09:12:34]Write to MH i2c: 01 00 00 AD 7D 2A [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 AD 7D 00 00 00 00 00 FF 0F 3F [09:12:34]RasterBufferAndPrint [09:12:34]line Счет N : (1)343243 [09:12:34]line ИНН: 02508201610067 [09:12:34]line Контрольно-Кассовый Чек [09:12:34]line ПРОДАЖА [09:12:34]line ТРК (МРК, ГНК) : 53 [09:12:34]line Товар: 2710124130 [09:12:34]line Аи-92-К-2 [09:12:34]line 45.000 * 0.00 [09:12:34]line = 0.00 [09:12:34]line НДС 12% НСП 1% [09:12:34]line > о реализуемом товаре [09:12:34]line ИТОГО: 0.00 [09:12:34]line НСП 1% : 0.00 [09:12:34]line НДС 12% : 0.00 [09:12:34]line Наличными: 0.00 [09:12:34]line Безнал.: 0.00 [09:12:34]line Место: АЗС № 78 "Партнер Нефть" [09:12:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:12:34]line СНО: Общий режим [09:12:34]line Чек 58 22.10.2024 09:12 [09:12:34]line Смена: 116 ФФД: 1.0 [09:12:34]line ЗНМ: 0300000137 [09:12:34]line РНМ: 0000000000186857 [09:12:34]line Версия ККМ: v1.0 [09:12:34]line Талоны: ТК ГПНА Online [09:12:34]line 30018396 [09:12:34]line ФМ: 0000000002094219 [09:12:34]line ФД: 30825 [09:12:34]line ФПД: 29408421841864 [09:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091242&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30825&fm=29408421841864&tin=02508201610067®Number=0000000000186857&sum=0 [09:12:34]OFD Sender: Processing packet 30825 [packets to send 10, broken 9] [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00030825 [09:12:34]OFD Sender: To server: pG, [09:12:34]CommunicateWithHost lk.salyk.kg:30040 [09:12:34]ConnectInit lk.salyk.kg [09:12:34]written 0, free lines is 4095 [09:12:35]Connected sock=10 [09:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 11 07 01 5B 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 32 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8A 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 78 00 00 35 04 06 00 1A BF 2E 89 8B C8 6B 30 B1 31 F3 15 DA 9D [09:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 68 E9 47 00 CD 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 32 30 39 34 32 31 39 10 04 04 00 69 78 00 00 F4 03 04 00 08 17 17 67 B6 04 01 00 00 FC F7 BE 32 7A 77 DC 0D [09:12:35]CommunicateWithHost err = 0 [09:12:35]CheckOFDResponse [09:12:35]1017 (14) - 77093643461234 [09:12:35]1041 (16) - 0000000002094219 [09:12:35]1040 (4) - 30825 [09:12:35]1012 (4) - 22.10.2024 03:07 [09:12:35]1206 (1) - 0 [09:12:35]OFD Sender: Remove packet 30825 [09:12:35]ProducePacketName [09:12:35]name=ofd_packets/00030825 [09:12:35]NVStorageDeleteData [09:12:35]Write to MH i2c: 01 00 00 D7 7D 54 [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: 01 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: 01 07 00 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: 01 07 00 D7 7D 00 00 00 00 00 F3 0C 5A [09:12:35]RasterBufferAndPrint [09:12:35]line [09:12:35]line [09:12:35]line [09:12:35]line [09:12:35]line [09:12:35]written 0, free lines is 3323 [09:12:35]MH_Cut [09:12:35]Write to MH i2c: D1 01 00 DE 7D 01 2D [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 01 00 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 01 00 DE 7D 00 2C [09:12:35]Write to MH i2c: 01 00 00 DF 7D 5C [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]OFD Sender: No OFD packet to send [09:12:36]*** Cut start [09:12:36]*** Partial cut [09:12:36]*** CUTSNS_PIN = 1 [09:12:36]*** CUTSNS_PIN = 0 [09:12:36]*** Brake cut motor [09:12:36]Read from MH i2c: 01 [09:12:36]MH_I2C_Read... [09:12:36]*** Stop cut motor [09:12:36]*** Cut end [09:12:36]Read from MH i2c: 01 07 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: 01 07 00 DF 7D 00 00 00 00 00 FF 0F 71 [09:12:36]process_action close_receipt done [09:12:36]requested_data is exist [09:12:36]produce_requested_data [09:12:36]requested_item fm.sn is exist - process it [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 11 00 00 [09:12:36]Write to MH i2c: E2 08 00 E0 7D 80 11 00 00 00 00 00 00 D7 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:36]Read from MH i2c: E2 17 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 17 00 E0 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [09:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:12:36]wFMCommunicate OK [09:12:36]requested_item fd.num is exist - process it [09:12:36]SAM_PROTO_GetFieldsCounters [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 00 00 [09:12:36]Write to MH i2c: E2 08 00 E1 7D 80 13 00 00 00 00 00 00 DA [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 62 00 [09:12:36]MH_I2C_Read... [09:12:36]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 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 78 00 00 0E 04 04 00 74 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 03 [09:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 78 00 00 0E 04 04 00 74 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 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetFieldsCounters done [09:12:36]requested_item shift.num is exist - process it [09:12:36]requested_item shift.opened is exist - process it [09:12:36]req_shift_opened [09:12:36]FM_GetShiftState [09:12:36]SAM_PROTO_GetShiftState [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 01 00 [09:12:36]Write to MH i2c: E2 08 00 E2 7D 80 13 01 00 00 00 00 00 DC [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 E2 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B6 [09:12:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetShiftState done [09:12:36]FM_GetShiftState done [09:12:36]req_shift_opened done [09:12:36]requested_item shift.open_date is exist - process it [09:12:36]req_shift_open_date [09:12:36]req_shift_open_date done [09:12:36]produce_requested_data done [09:12:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30825,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:12:36]process_action_free close_receipt [09:12:36]json_value_free [09:12:36]json_value_free done [09:12:36]process_json_proto returns [09:12:36]Send response to host [09:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30825,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:12:36]free response buf [09:12:36]execute_script done [09:12:36]execute_script returns [09:12:36]free content buf [09:12:36]Sock 9.Close socket [09:12:36]Sock 9.Thread stoped [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:19]accept exits with 7 [09:13:19]New connection [09:13:19]New thread 3067489636 created [09:13:19]Thread 3067346276 joined [09:13:19]Waiting for new connection... [09:13:19] Sock 7.Parse request [09:13:19]Sock 7.Check first char [09:13:19]Sock 7.First char is OK [09:13:19]request: POST /json_proto HTTP/1.0 [09:13:19]Method: POST [09:13:19]URL: /json_proto [09:13:19]Method is POST - this is cgi request [09:13:19]url: /json_proto [09:13:19]query_string will be loaded in cgi processing [09:13:19]execute_cgi json_proto POST (null) [09:13:19]execute_cgi path=json_proto method=POST [09:13:19]POST find Content-Length [09:13:19]Host: 172.17.51.3:8080 [09:13:19]Content-Length: 688 [09:13:19]Content-Type: application/json [09:13:19] [09:13:19]POST finish read [09:13:19]Found Content-Length = 688 [09:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:19]execute_script... [09:13: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)343244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:19]POST & json_proto [09:13:19]process_json_proto [09:13:19]json parsed OK: [09:13:19]protocol is kg_v1.0 [09:13:19]action value=close_receipt [09:13:19]process_action close_receipt [09:13:19]cmd_close_receipt [09:13:19]MH_GetDate [09:13:19]Write to MH i2c: F0 00 00 E3 7D 4F [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: F0 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: F0 09 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: F0 09 00 E3 7D 00 B9 6C 17 67 04 C1 95 66 BB [09:13:19]GetLastDocTimeStamp 1729588362 [09:13:19]current date 1729588409 [09:13:19]FM_GetShiftState [09:13:19]SAM_PROTO_GetShiftState [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 13 01 00 [09:13:19]Write to MH i2c: E2 08 00 E4 7D 80 13 01 00 00 00 00 00 DE [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0E 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0E 00 E4 7D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B8 [09:13:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:13:19]wFMCommunicate OK [09:13:19]SAM_PROTO_GetShiftState done [09:13:19]FM_GetShiftState done [09:13:19]opened in 1729557342 [09:13:19]opened+sec_in_day 1729643742 [09:13:19]quantity*price = 400050 [09:13:19]sum+1 = 400051 [09:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 59 22.10.2024 09:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30826 ФПД: 58009081771743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30826&fm=58009081771743&tin=02508201610067®Number=0000000000186857&sum=400000 [09:13:20]StoreToDocumentArchive [09:13:20]shift 116 fd 30826 [09:13:20]save to /storage/0116/doc_00030826 [09:13:20]save last doc name /storage/0116/doc_00030826 to /storage/kkm_last_doc_name [09:13:20]save OK [09:13:20]Clear old archive folders... [09:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:13:20]tlvbuf is 01DFF560 [09:13:20]SAM_PROTO_ClearQueue [09:13:20]wFMCommunicate request_size=4 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 09 00 00 [09:13:20]Write to MH i2c: E2 08 00 F1 7D 80 09 00 00 00 00 00 00 E0 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:20]Read from MH i2c: E2 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 03 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 03 00 F1 7D 00 90 00 E2 [09:13:20]RAPDU: 90 00 [09:13:20]wFMCommunicate OK [09:13:20]SAM_PROTO_ClearQueue done [09:13:20]KKMCreateOFDPacket [09:13:20]OFDProtocolAddRootSTLVToBuf [09:13:20]FM_MakeSignedData [09:13:20]FM_MakeSignedData [09:13:20]SAM_PROTO_SignData [09:13:20]wFMCommunicate request_size=4 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 0D 01 02 [09:13:20]Write to MH i2c: E2 08 00 F2 7D 80 0D 01 02 00 00 00 00 E8 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:20]Read from MH i2c: E2 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 03 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 03 00 F2 7D 00 90 00 E3 [09:13:20]RAPDU: 90 00 [09:13:20]wFMCommunicate OK [09:13:20]wFMCommunicate request_size=255 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 B9 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 78 00 [09:13:20]Write to MH i2c: E2 02 01 F3 7D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 B9 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 78 00 00 00 9B [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]OFD Sender: No OFD packet to send [09:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 03 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 03 00 F3 7D 00 90 00 E4 [09:13:21]RAPDU: 90 00 [09:13:21]wFMCommunicate OK [09:13:21]wFMCommunicate request_size=16 [09:13:21]MH_SAM_APDU [09:13:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 34 C2 4A B6 76 DF [09:13:21]Write to MH i2c: E2 13 00 F4 7D 80 0D 02 02 0B 00 00 35 04 06 00 34 C2 4A B6 76 DF 00 00 8B [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 03 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 03 00 F4 7D 00 90 00 E5 [09:13:21]RAPDU: 90 00 [09:13:21]wFMCommunicate OK [09:13:21]wFMCommunicate request_size=4 [09:13:21]MH_SAM_APDU [09:13:21]CAPDU: 80 0D 03 02 [09:13:21]Write to MH i2c: E2 08 00 F5 7D 80 0D 03 02 00 00 00 00 ED [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 0B 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 0B 00 F5 7D 00 FD 5D 3B 92 E3 68 76 34 90 00 0A [09:13:21]RAPDU: FD 5D 3B 92 E3 68 76 34 90 00 [09:13:21]wFMCommunicate OK [09:13:21]SAM_PROTO_SignData done [09:13:21]FM_MakeSignedData done [09:13:21]CreateOFDProtocolMessage [09:13:21]wFMCommunicate request_size=4 [09:13:21]MH_SAM_APDU [09:13:21]CAPDU: 80 11 00 00 [09:13:21]Write to MH i2c: E2 08 00 F6 7D 80 11 00 00 00 00 00 00 ED [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 17 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 17 00 F6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [09:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:13:21]wFMCommunicate OK [09:13:21]CreateOFDProtocolMessage done [09:13:21]OFDSenderStorePacket 30826 [09:13:21]StoreOFDPacket docnum=30826 [09:13:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 FA 07 0D 01 98 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 B9 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 78 00 00 35 04 06 00 34 C2 4A B6 76 DF FD 5D 3B 92 E3 68 76 34 [09:13:21]CheckFolder [09:13:21]dirname=/storage/ofd_packets [09:13:21]CheckFolder done [09:13:21]ProducePacketName [09:13:21]name=ofd_packets/00030826 [09:13:21]NVStorageSaveData ofd_packets/00030826 [09:13:21]File name is /storage/ofd_packets/00030826 [09:13:21]Write 307 bytes [09:13:21]NVStorageSaveData done [09:13:21]OFDSenderStorePacket done [09:13:21]KKMCreateOFDPacket done [09:13:21]NVStorageSaveData kkm_last_timestamp [09:13:21]File name is /storage/kkm_last_timestamp [09:13:21]Write 4 bytes [09:13:21]NVStorageSaveData done [09:13:21]ExternCall_PrintAddStr [09:13:21]wPrintStart [09:13:21]Write to MH i2c: 01 00 00 F7 7D 74 [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: 01 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: 01 07 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: 01 07 00 F7 7D 00 00 00 00 00 FF 0F 89 [09:13:21]RasterBufferAndPrint [09:13:21]line Счет N : (1)343244 [09:13:21]line ИНН: 02508201610067 [09:13:21]line Контрольно-Кассовый Чек [09:13:21]line ПРОДАЖА [09:13:21]line ТРК (МРК, ГНК) : 61 [09:13:21]line Товар: 2710194210 [09:13:21]line D-ENERGY Дт-К-2 [09:13:21]line 51.820 * 77.20 [09:13:21]line = 4000.50 [09:13:21]line НДС 12% НСП 1% [09:13:21]line > о реализуемом товаре [09:13:21]line ОКРУГЛЕНИЕ: -0.50 [09:13:21]line ИТОГО: 4000.00 [09:13:21]line Внесено: 4000.00 [09:13:21]line СДАЧА: 0.00 [09:13:21]line НСП 1% : 35.40 [09:13:21]line НДС 12% : 424.83 [09:13:21]line Наличными: 4000.00 [09:13:21]line Безнал.: 0.00 [09:13:21]line Место: АЗС № 78 "Партнер Нефть" [09:13:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:13:21]line СНО: Общий режим [09:13:21]line Чек 59 22.10.2024 09:13 [09:13:21]line Смена: 116 ФФД: 1.0 [09:13:21]line ЗНМ: 0300000137 [09:13:21]line РНМ: 0000000000186857 [09:13:21]line Версия ККМ: v1.0 [09:13:21]line ФМ: 0000000002094219 [09:13:21]line ФД: 30826 [09:13:21]line ФПД: 58009081771743 [09:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30826&fm=58009081771743&tin=02508201610067®Number=0000000000186857&sum=400000 [09:13:21]OFD Sender: Processing packet 30826 [packets to send 10, broken 9] [09:13:21]ProducePacketName [09:13:21]name=ofd_packets/00030826 [09:13:21]OFD Sender: To server: pG, [09:13:21]CommunicateWithHost lk.salyk.kg:30040 [09:13:21]ConnectInit lk.salyk.kg [09:13:21]written 0, free lines is 4095 [09:13:21]Connected sock=10 [09:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 FA 07 0D 01 98 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 B9 6C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 78 00 00 35 04 06 00 34 C2 4A B6 76 DF FD 5D 3B 92 E3 68 76 34 [09:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A6 53 47 00 5F 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 32 30 39 34 32 31 39 10 04 04 00 6A 78 00 00 F4 03 04 00 37 17 17 67 B6 04 01 00 00 D8 AA 80 D7 D3 0D DE 19 [09:13:21]CommunicateWithHost err = 0 [09:13:21]CheckOFDResponse [09:13:21]1017 (14) - 77093643461234 [09:13:21]1041 (16) - 0000000002094219 [09:13:21]1040 (4) - 30826 [09:13:21]1012 (4) - 22.10.2024 03:08 [09:13:21]1206 (1) - 0 [09:13:21]OFD Sender: Remove packet 30826 [09:13:21]ProducePacketName [09:13:21]name=ofd_packets/00030826 [09:13:21]NVStorageDeleteData [09:13:22]Write to MH i2c: 01 00 00 22 7E A0 [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: 01 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: 01 07 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: 01 07 00 22 7E 00 00 00 00 00 ED 0C A0 [09:13:22]RasterBufferAndPrint [09:13:22]line [09:13:22]line [09:13:22]line [09:13:22]line [09:13:22]line [09:13:22]written 0, free lines is 3315 [09:13:22]MH_Cut [09:13:22]Write to MH i2c: D1 01 00 29 7E 01 79 [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: D1 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: D1 01 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: D1 01 00 29 7E 00 78 [09:13:22]Write to MH i2c: 01 00 00 2A 7E A8 [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]OFD Sender: No OFD packet to send [09:13:22]*** Cut start [09:13:22]*** Partial cut [09:13:22]*** CUTSNS_PIN = 1 [09:13:22]*** CUTSNS_PIN = 0 [09:13:22]*** Brake cut motor [09:13:23]Read from MH i2c: 01 [09:13:23]MH_I2C_Read... [09:13:23]*** Stop cut motor [09:13:23]*** Cut end [09:13:23]Read from MH i2c: 01 07 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: 01 07 00 2A 7E 00 00 00 00 00 FF 0F BD [09:13:23]process_action close_receipt done [09:13:23]requested_data is exist [09:13:23]produce_requested_data [09:13:23]requested_item fm.sn is exist - process it [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 11 00 00 [09:13:23]Write to MH i2c: E2 08 00 2B 7E 80 11 00 00 00 00 00 00 23 [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 17 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 17 00 2B 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [09:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:13:23]wFMCommunicate OK [09:13:23]requested_item fd.num is exist - process it [09:13:23]SAM_PROTO_GetFieldsCounters [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 13 00 00 [09:13:23]Write to MH i2c: E2 08 00 2C 7E 80 13 00 00 00 00 00 00 26 [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 62 00 [09:13:23]MH_I2C_Read... [09:13:23]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 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 78 00 00 0E 04 04 00 74 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 53 [09:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 78 00 00 0E 04 04 00 74 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 [09:13:23]wFMCommunicate OK [09:13:23]SAM_PROTO_GetFieldsCounters done [09:13:23]requested_item shift.num is exist - process it [09:13:23]requested_item shift.opened is exist - process it [09:13:23]req_shift_opened [09:13:23]FM_GetShiftState [09:13:23]SAM_PROTO_GetShiftState [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 13 01 00 [09:13:23]Write to MH i2c: E2 08 00 2D 7E 80 13 01 00 00 00 00 00 28 [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 0E 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 0E 00 2D 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 02 [09:13:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:13:23]wFMCommunicate OK [09:13:23]SAM_PROTO_GetShiftState done [09:13:23]FM_GetShiftState done [09:13:23]req_shift_opened done [09:13:23]requested_item shift.open_date is exist - process it [09:13:23]req_shift_open_date [09:13:23]req_shift_open_date done [09:13:23]produce_requested_data done [09:13:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30826,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:13:23]process_action_free close_receipt [09:13:23]json_value_free [09:13:23]json_value_free done [09:13:23]process_json_proto returns [09:13:23]Send response to host [09:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30826,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:13:23]free response buf [09:13:23]execute_script done [09:13:23]execute_script returns [09:13:23]free content buf [09:13:23]Sock 7.Close socket [09:13:23]Sock 7.Thread stoped [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]accept exits with 9 [09:18:52]New connection [09:18:52]New thread 3067346276 created [09:18:52]Thread 3067489636 joined [09:18:52]Waiting for new connection... [09:18:52] Sock 9.Parse request [09:18:52]Sock 9.Check first char [09:18:52]Sock 9.First char is OK [09:18:52]request: POST /json_proto HTTP/1.0 [09:18:52]Method: POST [09:18:52]URL: /json_proto [09:18:52]Method is POST - this is cgi request [09:18:52]url: /json_proto [09:18:52]query_string will be loaded in cgi processing [09:18:52]execute_cgi json_proto POST (null) [09:18:52]execute_cgi path=json_proto method=POST [09:18:52]POST find Content-Length [09:18:52]Host: 172.17.51.3:8080 [09:18:52]Content-Length: 843 [09:18:52]Content-Type: application/json [09:18:52] [09:18:52]POST finish read [09:18:52]Found Content-Length = 843 [09:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:52]execute_script... [09:18: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)343245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:52]POST & json_proto [09:18:52]process_json_proto [09:18:52]json parsed OK: [09:18:52]protocol is kg_v1.0 [09:18:52]action value=close_receipt [09:18:52]process_action close_receipt [09:18:52]cmd_close_receipt [09:18:52]MH_GetDate [09:18:52]Write to MH i2c: F0 00 00 2E 7E 9B [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: F0 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: F0 09 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: F0 09 00 2E 7E 00 05 6E 17 67 04 C1 95 66 55 [09:18:52]GetLastDocTimeStamp 1729588409 [09:18:52]current date 1729588741 [09:18:52]FM_GetShiftState [09:18:52]SAM_PROTO_GetShiftState [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 13 01 00 [09:18:52]Write to MH i2c: E2 08 00 2F 7E 80 13 01 00 00 00 00 00 2A [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 2F 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 04 [09:18:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:18:52]wFMCommunicate OK [09:18:52]SAM_PROTO_GetShiftState done [09:18:52]FM_GetShiftState done [09:18:52]opened in 1729557342 [09:18:52]opened+sec_in_day 1729643742 [09:18:52]quantity*price = 100015 [09:18:52]sum+1 = 100017 [09:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 60 22.10.2024 09:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30827 ФПД: 14087080064507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091901&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30827&fm=14087080064507&tin=02508201610067®Number=0000000000186857&sum=100016 [09:18:53]StoreToDocumentArchive [09:18:53]shift 116 fd 30827 [09:18:53]save to /storage/0116/doc_00030827 [09:18:53]save last doc name /storage/0116/doc_00030827 to /storage/kkm_last_doc_name [09:18:53]save OK [09:18:53]Clear old archive folders... [09:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:53]tlvbuf is 0208E000 [09:18:53]SAM_PROTO_ClearQueue [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 09 00 00 [09:18:53]Write to MH i2c: E2 08 00 3C 7E 80 09 00 00 00 00 00 00 2C [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 3C 7E 00 90 00 2E [09:18:53]RAPDU: 90 00 [09:18:53]wFMCommunicate OK [09:18:53]SAM_PROTO_ClearQueue done [09:18:53]KKMCreateOFDPacket [09:18:53]OFDProtocolAddRootSTLVToBuf [09:18:53]FM_MakeSignedData [09:18:53]FM_MakeSignedData [09:18:53]SAM_PROTO_SignData [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 0D 01 02 [09:18:53]Write to MH i2c: E2 08 00 3D 7E 80 0D 01 02 00 00 00 00 34 [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 3D 7E 00 90 00 2F [09:18:53]RAPDU: 90 00 [09:18:53]wFMCommunicate OK [09:18:53]wFMCommunicate request_size=255 [09:18:53]MH_SAM_APDU [09:18: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 05 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 78 00 00 35 04 06 00 0C [09:18:53]Write to MH i2c: E2 02 01 3E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 05 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 78 00 00 35 04 06 00 0C 00 00 6F [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 3E 7E 00 90 00 30 [09:18:53]RAPDU: 90 00 [09:18:53]wFMCommunicate OK [09:18:53]wFMCommunicate request_size=10 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 0D 02 02 05 CF E7 67 35 FB [09:18:53]Write to MH i2c: E2 0D 00 3F 7E 80 0D 02 02 05 00 CF E7 67 35 FB 00 00 8E [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 03 00 3F 7E 00 90 00 31 [09:18:53]RAPDU: 90 00 [09:18:53]wFMCommunicate OK [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 0D 03 02 [09:18:53]Write to MH i2c: E2 08 00 40 7E 80 0D 03 02 00 00 00 00 39 [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 0B 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 0B 00 40 7E 00 67 09 4B 6C 02 8D AB EF 90 00 8A [09:18:53]RAPDU: 67 09 4B 6C 02 8D AB EF 90 00 [09:18:53]wFMCommunicate OK [09:18:53]SAM_PROTO_SignData done [09:18:53]FM_MakeSignedData done [09:18:53]CreateOFDProtocolMessage [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 11 00 00 [09:18:53]Write to MH i2c: E2 08 00 41 7E 80 11 00 00 00 00 00 00 39 [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 17 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 17 00 41 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [09:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:18:53]wFMCommunicate OK [09:18:53]CreateOFDProtocolMessage done [09:18:53]OFDSenderStorePacket 30827 [09:18:53]StoreOFDPacket docnum=30827 [09:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C7 04 07 01 9E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 05 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 78 00 00 35 04 06 00 0C CF E7 67 35 FB 67 09 4B 6C 02 8D AB EF [09:18:53]CheckFolder [09:18:53]dirname=/storage/ofd_packets [09:18:53]CheckFolder done [09:18:53]ProducePacketName [09:18:53]name=ofd_packets/00030827 [09:18:53]NVStorageSaveData ofd_packets/00030827 [09:18:53]File name is /storage/ofd_packets/00030827 [09:18:53]Write 301 bytes [09:18:53]NVStorageSaveData done [09:18:53]OFDSenderStorePacket done [09:18:53]KKMCreateOFDPacket done [09:18:53]NVStorageSaveData kkm_last_timestamp [09:18:53]File name is /storage/kkm_last_timestamp [09:18:53]Write 4 bytes [09:18:53]NVStorageSaveData done [09:18:53]ExternCall_PrintAddStr [09:18:53]wPrintStart [09:18:53]Write to MH i2c: 01 00 00 42 7E C0 [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: 01 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: 01 07 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: 01 07 00 42 7E 00 00 00 00 00 FF 0F D5 [09:18:53]RasterBufferAndPrint [09:18:53]line Счет N : (1)343245 [09:18:53]line ИНН: 02508201610067 [09:18:53]line Контрольно-Кассовый Чек [09:18:53]line ПРОДАЖА [09:18:53]line ТРК (МРК, ГНК) : 53 [09:18:53]line Товар: 2710124130 [09:18:53]line Аи-92-К-2 [09:18:53]line 14.950 * 66.90 [09:18:53]line = 1000.16 [09:18:53]line НДС 12% НСП 1% [09:18:53]line > о реализуемом товаре [09:18:53]line ИТОГО: 1000.16 [09:18:53]line НСП 1% : 8.85 [09:18:53]line НДС 12% : 106.21 [09:18:53]line Наличными: 0.00 [09:18:53]line Безнал.: 1000.16 [09:18:53]line Место: АЗС № 78 "Партнер Нефть" [09:18:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:18:53]line СНО: Общий режим [09:18:53]line Чек 60 22.10.2024 09:19 [09:18:53]line Смена: 116 ФФД: 1.0 [09:18:53]line ЗНМ: 0300000137 [09:18:53]line РНМ: 0000000000186857 [09:18:53]line Версия ККМ: v1.0 [09:18:53]line Платежная система: АКБ Кыргызстан [09:18:53]line ФМ: 0000000002094219 [09:18:53]line ФД: 30827 [09:18:53]line ФПД: 14087080064507 [09:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091901&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30827&fm=14087080064507&tin=02508201610067®Number=0000000000186857&sum=100016 [09:18:54]OFD Sender: Processing packet 30827 [packets to send 10, broken 9] [09:18:54]ProducePacketName [09:18:54]name=ofd_packets/00030827 [09:18:54]OFD Sender: To server: pG, [09:18:54]CommunicateWithHost lk.salyk.kg:30040 [09:18:54]ConnectInit lk.salyk.kg [09:18:54]written 0, free lines is 4095 [09:18:54]Connected sock=10 [09:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C7 04 07 01 9E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 05 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 78 00 00 35 04 06 00 0C CF E7 67 35 FB 67 09 4B 6C 02 8D AB EF [09:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 64 26 47 00 66 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 32 30 39 34 32 31 39 10 04 04 00 6B 78 00 00 F4 03 04 00 83 18 17 67 B6 04 01 00 00 27 C8 14 D8 B6 75 EF 59 [09:18:54]CommunicateWithHost err = 0 [09:18:54]CheckOFDResponse [09:18:54]1017 (14) - 77093643461234 [09:18:54]1041 (16) - 0000000002094219 [09:18:54]1040 (4) - 30827 [09:18:54]1012 (4) - 22.10.2024 03:14 [09:18:54]1206 (1) - 0 [09:18:54]OFD Sender: Remove packet 30827 [09:18:54]ProducePacketName [09:18:54]name=ofd_packets/00030827 [09:18:54]NVStorageDeleteData [09:18:54]Write to MH i2c: 01 00 00 6C 7E EA [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: 01 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: 01 07 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: 01 07 00 6C 7E 00 00 00 00 00 09 0D 07 [09:18:54]RasterBufferAndPrint [09:18:54]line [09:18:54]line [09:18:54]line [09:18:54]line [09:18:54]line [09:18:54]written 0, free lines is 3344 [09:18:54]MH_Cut [09:18:54]Write to MH i2c: D1 01 00 73 7E 01 C3 [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: D1 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: D1 01 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: D1 01 00 73 7E 00 C2 [09:18:54]Write to MH i2c: 01 00 00 74 7E F2 [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]OFD Sender: No OFD packet to send [09:18:55]*** Cut start [09:18:55]*** Partial cut [09:18:55]*** CUTSNS_PIN = 1 [09:18:55]*** CUTSNS_PIN = 0 [09:18:55]*** Brake cut motor [09:18:55]Read from MH i2c: 01 [09:18:55]MH_I2C_Read... [09:18:55]*** Stop cut motor [09:18:55]*** Cut end [09:18:55]Read from MH i2c: 01 07 00 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: 01 07 00 74 7E 00 00 00 00 00 FF 0F 07 [09:18:55]process_action close_receipt done [09:18:55]requested_data is exist [09:18:55]produce_requested_data [09:18:55]requested_item fm.sn is exist - process it [09:18:55]wFMCommunicate request_size=4 [09:18:55]MH_SAM_APDU [09:18:55]CAPDU: 80 11 00 00 [09:18:55]Write to MH i2c: E2 08 00 75 7E 80 11 00 00 00 00 00 00 6D [09:18:55]Write i2c OK [09:18:55]MH_I2C_Read... [09:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:55]Read from MH i2c: E2 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: E2 17 00 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: E2 17 00 75 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [09:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:18:55]wFMCommunicate OK [09:18:55]requested_item fd.num is exist - process it [09:18:55]SAM_PROTO_GetFieldsCounters [09:18:55]wFMCommunicate request_size=4 [09:18:55]MH_SAM_APDU [09:18:55]CAPDU: 80 13 00 00 [09:18:55]Write to MH i2c: E2 08 00 76 7E 80 13 00 00 00 00 00 00 70 [09:18:55]Write i2c OK [09:18:55]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 62 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 62 00 76 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 78 00 00 0E 04 04 00 74 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 A1 [09:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 78 00 00 0E 04 04 00 74 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 [09:18:56]wFMCommunicate OK [09:18:56]SAM_PROTO_GetFieldsCounters done [09:18:56]requested_item shift.num is exist - process it [09:18:56]requested_item shift.opened is exist - process it [09:18:56]req_shift_opened [09:18:56]FM_GetShiftState [09:18:56]SAM_PROTO_GetShiftState [09:18:56]wFMCommunicate request_size=4 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 13 01 00 [09:18:56]Write to MH i2c: E2 08 00 77 7E 80 13 01 00 00 00 00 00 72 [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 0E 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 0E 00 77 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4C [09:18:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:18:56]wFMCommunicate OK [09:18:56]SAM_PROTO_GetShiftState done [09:18:56]FM_GetShiftState done [09:18:56]req_shift_opened done [09:18:56]requested_item shift.open_date is exist - process it [09:18:56]req_shift_open_date [09:18:56]req_shift_open_date done [09:18:56]produce_requested_data done [09:18:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30827,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:18:56]process_action_free close_receipt [09:18:56]json_value_free [09:18:56]json_value_free done [09:18:56]process_json_proto returns [09:18:56]Send response to host [09:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30827,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:18:56]free response buf [09:18:56]execute_script done [09:18:56]execute_script returns [09:18:56]free content buf [09:18:56]Sock 9.Close socket [09:18:56]Sock 9.Thread stoped [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:31]accept exits with 7 [09:22:31]New connection [09:22:31]New thread 3067489636 created [09:22:31]Thread 3067346276 joined [09:22:31]Waiting for new connection... [09:22:31] Sock 7.Parse request [09:22:31]Sock 7.Check first char [09:22:31]Sock 7.First char is OK [09:22:31]request: POST /json_proto HTTP/1.0 [09:22:31]Method: POST [09:22:31]URL: /json_proto [09:22:31]Method is POST - this is cgi request [09:22:31]url: /json_proto [09:22:31]query_string will be loaded in cgi processing [09:22:31]execute_cgi json_proto POST (null) [09:22:31]execute_cgi path=json_proto method=POST [09:22:31]POST find Content-Length [09:22:31]Host: 172.17.51.3:8080 [09:22:31]Content-Length: 677 [09:22:31]Content-Type: application/json [09:22:31] [09:22:31]POST finish read [09:22:31]Found Content-Length = 677 [09:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]execute_script... [09:22: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)343246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]POST & json_proto [09:22:31]process_json_proto [09:22:31]json parsed OK: [09:22:31]protocol is kg_v1.0 [09:22:31]action value=close_receipt [09:22:31]process_action close_receipt [09:22:31]cmd_close_receipt [09:22:31]MH_GetDate [09:22:31]Write to MH i2c: F0 00 00 78 7E E5 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 09 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 09 00 78 7E 00 E1 6E 17 67 04 C1 95 66 7B [09:22:31]GetLastDocTimeStamp 1729588741 [09:22:31]current date 1729588961 [09:22:31]FM_GetShiftState [09:22:31]SAM_PROTO_GetShiftState [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 13 01 00 [09:22:31]Write to MH i2c: E2 08 00 79 7E 80 13 01 00 00 00 00 00 74 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 79 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4E [09:22:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_GetShiftState done [09:22:31]FM_GetShiftState done [09:22:31]opened in 1729557342 [09:22:31]opened+sec_in_day 1729643742 [09:22:31]quantity*price = 50041 [09:22:31]sum+1 = 50042 [09:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 61 22.10.2024 09:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30828 ФПД: 272248434660519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30828&fm=272248434660519&tin=02508201610067®Number=0000000000186857&sum=50000 [09:22:32]StoreToDocumentArchive [09:22:32]shift 116 fd 30828 [09:22:32]save to /storage/0116/doc_00030828 [09:22:32]save last doc name /storage/0116/doc_00030828 to /storage/kkm_last_doc_name [09:22:32]save OK [09:22:32]Clear old archive folders... [09:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:32]tlvbuf is 01ED8770 [09:22:32]SAM_PROTO_ClearQueue [09:22:32]wFMCommunicate request_size=4 [09:22:32]MH_SAM_APDU [09:22:32]CAPDU: 80 09 00 00 [09:22:32]Write to MH i2c: E2 08 00 86 7E 80 09 00 00 00 00 00 00 76 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 86 7E 00 90 00 78 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_ClearQueue done [09:22:33]KKMCreateOFDPacket [09:22:33]OFDProtocolAddRootSTLVToBuf [09:22:33]FM_MakeSignedData [09:22:33]FM_MakeSignedData [09:22:33]SAM_PROTO_SignData [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 01 02 [09:22:33]Write to MH i2c: E2 08 00 87 7E 80 0D 01 02 00 00 00 00 7E [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 87 7E 00 90 00 79 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=255 [09:22:33]MH_SAM_APDU [09:22: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E1 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 78 00 00 35 04 06 00 F7 [09:22:33]Write to MH i2c: E2 02 01 88 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E1 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 78 00 00 35 04 06 00 F7 00 00 68 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 88 7E 00 90 00 7A [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=10 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 02 02 05 9B C7 3D 14 A7 [09:22:33]Write to MH i2c: E2 0D 00 89 7E 80 0D 02 02 05 00 9B C7 3D 14 A7 00 00 E5 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 89 7E 00 90 00 7B [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 03 02 [09:22:33]Write to MH i2c: E2 08 00 8A 7E 80 0D 03 02 00 00 00 00 83 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 8A 7E 00 CF E9 A9 63 F7 FE AB 94 90 00 7C [09:22:33]RAPDU: CF E9 A9 63 F7 FE AB 94 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_SignData done [09:22:33]FM_MakeSignedData done [09:22:33]CreateOFDProtocolMessage [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 11 00 00 [09:22:33]Write to MH i2c: E2 08 00 8B 7E 80 11 00 00 00 00 00 00 83 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 8B 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [09:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:22:33]wFMCommunicate OK [09:22:33]CreateOFDProtocolMessage done [09:22:33]OFDSenderStorePacket 30828 [09:22:33]StoreOFDPacket docnum=30828 [09:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3C 6A 07 01 B4 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E1 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 78 00 00 35 04 06 00 F7 9B C7 3D 14 A7 CF E9 A9 63 F7 FE AB 94 [09:22:33]CheckFolder [09:22:33]dirname=/storage/ofd_packets [09:22:33]CheckFolder done [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00030828 [09:22:33]NVStorageSaveData ofd_packets/00030828 [09:22:33]File name is /storage/ofd_packets/00030828 [09:22:33]Write 301 bytes [09:22:33]NVStorageSaveData done [09:22:33]OFDSenderStorePacket done [09:22:33]KKMCreateOFDPacket done [09:22:33]NVStorageSaveData kkm_last_timestamp [09:22:33]File name is /storage/kkm_last_timestamp [09:22:33]Write 4 bytes [09:22:33]NVStorageSaveData done [09:22:33]ExternCall_PrintAddStr [09:22:33]wPrintStart [09:22:33]Write to MH i2c: 01 00 00 8C 7E 0A [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 8C 7E 00 00 00 00 00 FF 0F 1F [09:22:33]RasterBufferAndPrint [09:22:33]line Счет N : (1)343246 [09:22:33]line ИНН: 02508201610067 [09:22:33]line Контрольно-Кассовый Чек [09:22:33]line ПРОДАЖА [09:22:33]line ТРК (МРК, ГНК) : 53 [09:22:33]line Товар: 2710124130 [09:22:33]line Аи-92-К-2 [09:22:33]line 7.480 * 66.90 [09:22:33]line = 500.41 [09:22:33]line НДС 12% НСП 1% [09:22:33]line > о реализуемом товаре [09:22:33]line ОКРУГЛЕНИЕ: -0.41 [09:22:33]line ИТОГО: 500.00 [09:22:33]line Внесено: 500.00 [09:22:33]line СДАЧА: 0.00 [09:22:33]line НСП 1% : 4.43 [09:22:33]line НДС 12% : 53.14 [09:22:33]line Наличными: 500.00 [09:22:33]line Безнал.: 0.00 [09:22:33]line Место: АЗС № 78 "Партнер Нефть" [09:22:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:22:33]line СНО: Общий режим [09:22:33]line Чек 61 22.10.2024 09:22 [09:22:33]line Смена: 116 ФФД: 1.0 [09:22:33]line ЗНМ: 0300000137 [09:22:33]line РНМ: 0000000000186857 [09:22:33]line Версия ККМ: v1.0 [09:22:33]line ФМ: 0000000002094219 [09:22:33]line ФД: 30828 [09:22:33]line ФПД: 272248434660519 [09:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30828&fm=272248434660519&tin=02508201610067®Number=0000000000186857&sum=50000 [09:22:33]OFD Sender: Processing packet 30828 [packets to send 10, broken 9] [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00030828 [09:22:33]OFD Sender: To server: pG, [09:22:33]CommunicateWithHost lk.salyk.kg:30040 [09:22:33]ConnectInit lk.salyk.kg [09:22:33]written 0, free lines is 4095 [09:22:33]Connected sock=10 [09:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3C 6A 07 01 B4 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E1 6E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 78 00 00 35 04 06 00 F7 9B C7 3D 14 A7 CF E9 A9 63 F7 FE AB 94 [09:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2E 3F 47 00 88 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 32 30 39 34 32 31 39 10 04 04 00 6C 78 00 00 F4 03 04 00 5F 19 17 67 B6 04 01 00 00 F1 4D 5B 7A 4E 4C 6E 18 [09:22:34]CommunicateWithHost err = 0 [09:22:34]CheckOFDResponse [09:22:34]1017 (14) - 77093643461234 [09:22:34]1041 (16) - 0000000002094219 [09:22:34]1040 (4) - 30828 [09:22:34]1012 (4) - 22.10.2024 03:17 [09:22:34]1206 (1) - 0 [09:22:34]OFD Sender: Remove packet 30828 [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00030828 [09:22:34]NVStorageDeleteData [09:22:34]Write to MH i2c: 01 00 00 B7 7E 35 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 B7 7E 00 00 00 00 00 EF 0C 37 [09:22:34]RasterBufferAndPrint [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]written 0, free lines is 3317 [09:22:34]MH_Cut [09:22:34]Write to MH i2c: D1 01 00 BE 7E 01 0E [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 01 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 01 00 BE 7E 00 0D [09:22:34]Write to MH i2c: 01 00 00 BF 7E 3D [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]OFD Sender: No OFD packet to send [09:22:34]*** Cut start [09:22:34]*** Partial cut [09:22:34]*** CUTSNS_PIN = 1 [09:22:35]*** CUTSNS_PIN = 0 [09:22:35]*** Brake cut motor [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]*** Stop cut motor [09:22:35]*** Cut end [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 BF 7E 00 00 00 00 00 FF 0F 52 [09:22:35]process_action close_receipt done [09:22:35]requested_data is exist [09:22:35]produce_requested_data [09:22:35]requested_item fm.sn is exist - process it [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 11 00 00 [09:22:35]Write to MH i2c: E2 08 00 C0 7E 80 11 00 00 00 00 00 00 B8 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 C0 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [09:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:22:35]wFMCommunicate OK [09:22:35]requested_item fd.num is exist - process it [09:22:35]SAM_PROTO_GetFieldsCounters [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 13 00 00 [09:22:35]Write to MH i2c: E2 08 00 C1 7E 80 13 00 00 00 00 00 00 BB [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 62 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 62 00 C1 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 78 00 00 0E 04 04 00 74 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 F0 [09:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 78 00 00 0E 04 04 00 74 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 [09:22:35]wFMCommunicate OK [09:22:35]SAM_PROTO_GetFieldsCounters done [09:22:35]requested_item shift.num is exist - process it [09:22:35]requested_item shift.opened is exist - process it [09:22:35]req_shift_opened [09:22:35]FM_GetShiftState [09:22:35]SAM_PROTO_GetShiftState [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 13 01 00 [09:22:35]Write to MH i2c: E2 08 00 C2 7E 80 13 01 00 00 00 00 00 BD [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 0E 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 0E 00 C2 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 97 [09:22:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:22:35]wFMCommunicate OK [09:22:35]SAM_PROTO_GetShiftState done [09:22:35]FM_GetShiftState done [09:22:35]req_shift_opened done [09:22:35]requested_item shift.open_date is exist - process it [09:22:35]req_shift_open_date [09:22:35]req_shift_open_date done [09:22:35]produce_requested_data done [09:22:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30828,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:22:35]process_action_free close_receipt [09:22:35]json_value_free [09:22:35]json_value_free done [09:22:35]process_json_proto returns [09:22:35]Send response to host [09:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30828,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:22:35]free response buf [09:22:35]execute_script done [09:22:35]execute_script returns [09:22:35]free content buf [09:22:35]Sock 7.Close socket [09:22:35]Sock 7.Thread stoped [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:16]accept exits with 9 [09:27:16]New connection [09:27:16]New thread 3067346276 created [09:27:16]Thread 3067489636 joined [09:27:16]Waiting for new connection... [09:27:16] Sock 9.Parse request [09:27:16]Sock 9.Check first char [09:27:16]Sock 9.First char is OK [09:27:16]request: POST /json_proto HTTP/1.0 [09:27:16]Method: POST [09:27:16]URL: /json_proto [09:27:16]Method is POST - this is cgi request [09:27:16]url: /json_proto [09:27:16]query_string will be loaded in cgi processing [09:27:16]execute_cgi json_proto POST (null) [09:27:16]execute_cgi path=json_proto method=POST [09:27:16]POST find Content-Length [09:27:16]Host: 172.17.51.3:8080 [09:27:16]Content-Length: 789 [09:27:16]Content-Type: application/json [09:27:16] [09:27:16]POST finish read [09:27:16]Found Content-Length = 789 [09:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:16]execute_script... [09:27: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)343247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:16]POST & json_proto [09:27:16]process_json_proto [09:27:16]json parsed OK: [09:27:16]protocol is kg_v1.0 [09:27:16]action value=close_receipt [09:27:16]process_action close_receipt [09:27:16]cmd_close_receipt [09:27:16]MH_GetDate [09:27:16]Write to MH i2c: F0 00 00 C3 7E 30 [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: F0 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: F0 09 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: F0 09 00 C3 7E 00 FE 6F 17 67 04 C1 95 66 E4 [09:27:16]GetLastDocTimeStamp 1729588961 [09:27:16]current date 1729589246 [09:27:16]FM_GetShiftState [09:27:16]SAM_PROTO_GetShiftState [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 13 01 00 [09:27:16]Write to MH i2c: E2 08 00 C4 7E 80 13 01 00 00 00 00 00 BF [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 0E 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 0E 00 C4 7E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 99 [09:27:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:27:16]wFMCommunicate OK [09:27:16]SAM_PROTO_GetShiftState done [09:27:16]FM_GetShiftState done [09:27:16]opened in 1729557342 [09:27:16]opened+sec_in_day 1729643742 [09:27:16]quantity*price = 0 [09:27:16]sum+1 = 1 [09:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 62 22.10.2024 09:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 99924 ФМ: 0000000002094219 ФД: 30829 ФПД: 169350297014556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092726&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30829&fm=169350297014556&tin=02508201610067®Number=0000000000186857&sum=0 [09:27:17]StoreToDocumentArchive [09:27:17]shift 116 fd 30829 [09:27:17]save to /storage/0116/doc_00030829 [09:27:17]save last doc name /storage/0116/doc_00030829 to /storage/kkm_last_doc_name [09:27:17]save OK [09:27:17]Clear old archive folders... [09:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:17]tlvbuf is 020A7710 [09:27:17]SAM_PROTO_ClearQueue [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 09 00 00 [09:27:17]Write to MH i2c: E2 08 00 D1 7E 80 09 00 00 00 00 00 00 C1 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 D1 7E 00 90 00 C3 [09:27:17]RAPDU: 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_ClearQueue done [09:27:17]KKMCreateOFDPacket [09:27:17]OFDProtocolAddRootSTLVToBuf [09:27:17]FM_MakeSignedData [09:27:17]FM_MakeSignedData [09:27:17]SAM_PROTO_SignData [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 0D 01 02 [09:27:17]Write to MH i2c: E2 08 00 D2 7E 80 0D 01 02 00 00 00 00 C9 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 D2 7E 00 90 00 C4 [09:27:18]RAPDU: 90 00 [09:27:18]wFMCommunicate OK [09:27:18]wFMCommunicate request_size=255 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FE 6F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 78 00 00 35 04 06 00 9A 05 F0 4B [09:27:18]Write to MH i2c: E2 02 01 D3 7E 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FE 6F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 78 00 00 35 04 06 00 9A 05 F0 4B 00 00 06 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:18]Read from MH i2c: E2 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 D3 7E 00 90 00 C5 [09:27:18]RAPDU: 90 00 [09:27:18]wFMCommunicate OK [09:27:18]wFMCommunicate request_size=7 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 0D 02 02 02 D1 1C [09:27:18]Write to MH i2c: E2 0A 00 D4 7E 80 0D 02 02 02 00 D1 1C 00 00 BD [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:18]Read from MH i2c: E2 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 03 00 D4 7E 00 90 00 C6 [09:27:18]RAPDU: 90 00 [09:27:18]wFMCommunicate OK [09:27:18]wFMCommunicate request_size=4 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 0D 03 02 [09:27:18]Write to MH i2c: E2 08 00 D5 7E 80 0D 03 02 00 00 00 00 CE [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:18]Read from MH i2c: E2 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 0B 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 0B 00 D5 7E 00 BA 0B DF 76 F0 DE A1 5E 90 00 B6 [09:27:18]RAPDU: BA 0B DF 76 F0 DE A1 5E 90 00 [09:27:18]wFMCommunicate OK [09:27:18]SAM_PROTO_SignData done [09:27:18]FM_MakeSignedData done [09:27:18]CreateOFDProtocolMessage [09:27:18]wFMCommunicate request_size=4 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 11 00 00 [09:27:18]Write to MH i2c: E2 08 00 D6 7E 80 11 00 00 00 00 00 00 CE [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:18]Read from MH i2c: E2 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 17 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 17 00 D6 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [09:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:27:18]wFMCommunicate OK [09:27:18]CreateOFDProtocolMessage done [09:27:18]OFDSenderStorePacket 30829 [09:27:18]StoreOFDPacket docnum=30829 [09:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F2 DF 04 01 1D 17 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FE 6F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 78 00 00 35 04 06 00 9A 05 F0 4B D1 1C BA 0B DF 76 F0 DE A1 5E [09:27:18]CheckFolder [09:27:18]dirname=/storage/ofd_packets [09:27:18]CheckFolder done [09:27:18]ProducePacketName [09:27:18]name=ofd_packets/00030829 [09:27:18]NVStorageSaveData ofd_packets/00030829 [09:27:18]File name is /storage/ofd_packets/00030829 [09:27:18]Write 298 bytes [09:27:18]NVStorageSaveData done [09:27:18]OFDSenderStorePacket done [09:27:18]KKMCreateOFDPacket done [09:27:18]NVStorageSaveData kkm_last_timestamp [09:27:18]File name is /storage/kkm_last_timestamp [09:27:18]Write 4 bytes [09:27:18]NVStorageSaveData done [09:27:18]ExternCall_PrintAddStr [09:27:18]wPrintStart [09:27:18]Write to MH i2c: 01 00 00 D7 7E 55 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 07 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 07 00 D7 7E 00 00 00 00 00 FF 0F 6A [09:27:18]RasterBufferAndPrint [09:27:18]line Счет N : (1)343247 [09:27:18]line ИНН: 02508201610067 [09:27:18]line Контрольно-Кассовый Чек [09:27:18]line ПРОДАЖА [09:27:18]line ТРК (МРК, ГНК) : 64 [09:27:18]line Товар: 2710194210 [09:27:18]line ДТ-К-2 [09:27:18]line 70.000 * 0.00 [09:27:18]line = 0.00 [09:27:18]line НДС 12% НСП 1% [09:27:18]line > о реализуемом товаре [09:27:18]line ИТОГО: 0.00 [09:27:18]line НСП 1% : 0.00 [09:27:18]line НДС 12% : 0.00 [09:27:18]line Наличными: 0.00 [09:27:18]line Безнал.: 0.00 [09:27:18]line Место: АЗС № 78 "Партнер Нефть" [09:27:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:27:18]line СНО: Общий режим [09:27:18]line Чек 62 22.10.2024 09:27 [09:27:18]line Смена: 116 ФФД: 1.0 [09:27:18]line ЗНМ: 0300000137 [09:27:18]line РНМ: 0000000000186857 [09:27:18]line Версия ККМ: v1.0 [09:27:18]line Талоны: Топливная Карта [09:27:18]line 99924 [09:27:18]line ФМ: 0000000002094219 [09:27:18]line ФД: 30829 [09:27:18]line ФПД: 169350297014556 [09:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092726&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30829&fm=169350297014556&tin=02508201610067®Number=0000000000186857&sum=0 [09:27:18]OFD Sender: Processing packet 30829 [packets to send 10, broken 9] [09:27:18]ProducePacketName [09:27:18]name=ofd_packets/00030829 [09:27:18]OFD Sender: To server: pG, [09:27:18]CommunicateWithHost lk.salyk.kg:30040 [09:27:18]ConnectInit lk.salyk.kg [09:27:18]written 0, free lines is 4095 [09:27:18]Connected sock=10 [09:27:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F2 DF 04 01 1D 17 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 32 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FE 6F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 78 00 00 35 04 06 00 9A 05 F0 4B D1 1C BA 0B DF 76 F0 DE A1 5E [09:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 02 BC 47 00 64 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 32 30 39 34 32 31 39 10 04 04 00 6D 78 00 00 F4 03 04 00 7C 1A 17 67 B6 04 01 00 00 8D 0A D0 1A 24 DE 90 C7 [09:27:19]CommunicateWithHost err = 0 [09:27:19]CheckOFDResponse [09:27:19]1017 (14) - 77093643461234 [09:27:19]1041 (16) - 0000000002094219 [09:27:19]1040 (4) - 30829 [09:27:19]1012 (4) - 22.10.2024 03:22 [09:27:19]1206 (1) - 0 [09:27:19]OFD Sender: Remove packet 30829 [09:27:19]ProducePacketName [09:27:19]name=ofd_packets/00030829 [09:27:19]NVStorageDeleteData [09:27:19]Write to MH i2c: 01 00 00 01 7F 80 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 07 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 07 00 01 7F 00 00 00 00 00 F6 0C 89 [09:27:19]RasterBufferAndPrint [09:27:19]line [09:27:19]line [09:27:19]line [09:27:19]line [09:27:19]line [09:27:19]written 0, free lines is 3327 [09:27:19]MH_Cut [09:27:19]Write to MH i2c: D1 01 00 08 7F 01 59 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: D1 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: D1 01 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: D1 01 00 08 7F 00 58 [09:27:19]Write to MH i2c: 01 00 00 09 7F 88 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]OFD Sender: No OFD packet to send [09:27:19]*** Cut start [09:27:19]*** Partial cut [09:27:19]*** CUTSNS_PIN = 1 [09:27:19]*** CUTSNS_PIN = 0 [09:27:20]*** Brake cut motor [09:27:20]Read from MH i2c: 01 [09:27:20]MH_I2C_Read... [09:27:20]*** Stop cut motor [09:27:20]*** Cut end [09:27:20]Read from MH i2c: 01 07 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 09 7F 00 00 00 00 00 FF 0F 9D [09:27:20]process_action close_receipt done [09:27:20]requested_data is exist [09:27:20]produce_requested_data [09:27:20]requested_item fm.sn is exist - process it [09:27:20]wFMCommunicate request_size=4 [09:27:20]MH_SAM_APDU [09:27:20]CAPDU: 80 11 00 00 [09:27:20]Write to MH i2c: E2 08 00 0A 7F 80 11 00 00 00 00 00 00 03 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:20]Read from MH i2c: E2 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 17 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 17 00 0A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [09:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:27:20]wFMCommunicate OK [09:27:20]requested_item fd.num is exist - process it [09:27:20]SAM_PROTO_GetFieldsCounters [09:27:20]wFMCommunicate request_size=4 [09:27:20]MH_SAM_APDU [09:27:20]CAPDU: 80 13 00 00 [09:27:20]Write to MH i2c: E2 08 00 0B 7F 80 13 00 00 00 00 00 00 06 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:20]Read from MH i2c: E2 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 62 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 62 00 0B 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 78 00 00 0E 04 04 00 74 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 3F [09:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 78 00 00 0E 04 04 00 74 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 [09:27:20]wFMCommunicate OK [09:27:20]SAM_PROTO_GetFieldsCounters done [09:27:20]requested_item shift.num is exist - process it [09:27:20]requested_item shift.opened is exist - process it [09:27:20]req_shift_opened [09:27:20]FM_GetShiftState [09:27:20]SAM_PROTO_GetShiftState [09:27:20]wFMCommunicate request_size=4 [09:27:20]MH_SAM_APDU [09:27:20]CAPDU: 80 13 01 00 [09:27:20]Write to MH i2c: E2 08 00 0C 7F 80 13 01 00 00 00 00 00 08 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:20]Read from MH i2c: E2 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 0E 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 0E 00 0C 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E2 [09:27:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:27:20]wFMCommunicate OK [09:27:20]SAM_PROTO_GetShiftState done [09:27:20]FM_GetShiftState done [09:27:20]req_shift_opened done [09:27:20]requested_item shift.open_date is exist - process it [09:27:20]req_shift_open_date [09:27:20]req_shift_open_date done [09:27:20]produce_requested_data done [09:27:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30829,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:27:20]process_action_free close_receipt [09:27:20]json_value_free [09:27:20]json_value_free done [09:27:20]process_json_proto returns [09:27:20]Send response to host [09:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30829,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:27:20]free response buf [09:27:20]execute_script done [09:27:20]execute_script returns [09:27:20]free content buf [09:27:20]Sock 9.Close socket [09:27:20]Sock 9.Thread stoped [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:41]accept exits with 7 [09:28:41]New connection [09:28:41]New thread 3067489636 created [09:28:41]Thread 3067346276 joined [09:28:41]Waiting for new connection... [09:28:41] Sock 7.Parse request [09:28:41]Sock 7.Check first char [09:28:41]Sock 7.First char is OK [09:28:41]request: POST /json_proto HTTP/1.0 [09:28:41]Method: POST [09:28:41]URL: /json_proto [09:28:41]Method is POST - this is cgi request [09:28:41]url: /json_proto [09:28:41]query_string will be loaded in cgi processing [09:28:41]execute_cgi json_proto POST (null) [09:28:41]execute_cgi path=json_proto method=POST [09:28:41]POST find Content-Length [09:28:41]Host: 172.17.51.3:8080 [09:28:41]Content-Length: 789 [09:28:41]Content-Type: application/json [09:28:41] [09:28:41]POST finish read [09:28:41]Found Content-Length = 789 [09:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.830, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:41]execute_script... [09:28: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)343248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.830, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:41]POST & json_proto [09:28:41]process_json_proto [09:28:41]json parsed OK: [09:28:41]protocol is kg_v1.0 [09:28:41]action value=close_receipt [09:28:41]process_action close_receipt [09:28:41]cmd_close_receipt [09:28:41]MH_GetDate [09:28:41]Write to MH i2c: F0 00 00 0D 7F 7B [09:28:41]Write i2c OK [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 09 00 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 09 00 0D 7F 00 53 70 17 67 04 C1 95 66 85 [09:28:41]GetLastDocTimeStamp 1729589246 [09:28:41]current date 1729589331 [09:28:41]FM_GetShiftState [09:28:41]SAM_PROTO_GetShiftState [09:28:41]wFMCommunicate request_size=4 [09:28:41]MH_SAM_APDU [09:28:41]CAPDU: 80 13 01 00 [09:28:41]Write to MH i2c: E2 08 00 0E 7F 80 13 01 00 00 00 00 00 0A [09:28:41]Write i2c OK [09:28:41]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 0E 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E4 [09:28:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetShiftState done [09:28:42]FM_GetShiftState done [09:28:42]opened in 1729557342 [09:28:42]opened+sec_in_day 1729643742 [09:28:42]quantity*price = 0 [09:28:42]sum+1 = 1 [09:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 63 22.10.2024 09:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 99924 ФМ: 0000000002094219 ФД: 30830 ФПД: 210187693542979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30830&fm=210187693542979&tin=02508201610067®Number=0000000000186857&sum=0 [09:28:43]StoreToDocumentArchive [09:28:43]shift 116 fd 30830 [09:28:43]save to /storage/0116/doc_00030830 [09:28:43]save last doc name /storage/0116/doc_00030830 to /storage/kkm_last_doc_name [09:28:43]save OK [09:28:43]Clear old archive folders... [09:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:28:43]tlvbuf is 01F4B980 [09:28:43]SAM_PROTO_ClearQueue [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 09 00 00 [09:28:43]Write to MH i2c: E2 08 00 1B 7F 80 09 00 00 00 00 00 00 0C [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 1B 7F 00 90 00 0E [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]SAM_PROTO_ClearQueue done [09:28:43]KKMCreateOFDPacket [09:28:43]OFDProtocolAddRootSTLVToBuf [09:28:43]FM_MakeSignedData [09:28:43]FM_MakeSignedData [09:28:43]SAM_PROTO_SignData [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 0D 01 02 [09:28:43]Write to MH i2c: E2 08 00 1C 7F 80 0D 01 02 00 00 00 00 14 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 1C 7F 00 90 00 0F [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]wFMCommunicate request_size=255 [09:28:43]MH_SAM_APDU [09:28:43]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 32 FF 03 08 00 03 D6 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 53 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 78 00 00 35 04 06 00 BF 2A 22 CF [09:28:43]Write to MH i2c: E2 02 01 1D 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 32 FF 03 08 00 03 D6 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 53 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 78 00 00 35 04 06 00 BF 2A 22 CF 00 00 3A [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 1D 7F 00 90 00 10 [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]wFMCommunicate request_size=7 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 0D 02 02 02 4E 43 [09:28:43]Write to MH i2c: E2 0A 00 1E 7F 80 0D 02 02 02 00 4E 43 00 00 AC [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 1E 7F 00 90 00 11 [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 0D 03 02 [09:28:43]Write to MH i2c: E2 08 00 1F 7F 80 0D 03 02 00 00 00 00 19 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0B 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0B 00 1F 7F 00 0A 5D 2A E6 A5 85 EA 9B 90 00 40 [09:28:43]RAPDU: 0A 5D 2A E6 A5 85 EA 9B 90 00 [09:28:43]wFMCommunicate OK [09:28:43]SAM_PROTO_SignData done [09:28:43]FM_MakeSignedData done [09:28:43]CreateOFDProtocolMessage [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 11 00 00 [09:28:43]Write to MH i2c: E2 08 00 20 7F 80 11 00 00 00 00 00 00 19 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 17 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 17 00 20 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [09:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:28:43]wFMCommunicate OK [09:28:43]CreateOFDProtocolMessage done [09:28:43]OFDSenderStorePacket 30830 [09:28:43]StoreOFDPacket docnum=30830 [09:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2C 46 04 01 90 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 32 FF 03 08 00 03 D6 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 53 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 78 00 00 35 04 06 00 BF 2A 22 CF 4E 43 0A 5D 2A E6 A5 85 EA 9B [09:28:43]CheckFolder [09:28:43]dirname=/storage/ofd_packets [09:28:43]CheckFolder done [09:28:43]ProducePacketName [09:28:43]name=ofd_packets/00030830 [09:28:43]NVStorageSaveData ofd_packets/00030830 [09:28:43]File name is /storage/ofd_packets/00030830 [09:28:43]Write 298 bytes [09:28:43]NVStorageSaveData done [09:28:43]OFDSenderStorePacket done [09:28:43]KKMCreateOFDPacket done [09:28:43]NVStorageSaveData kkm_last_timestamp [09:28:43]File name is /storage/kkm_last_timestamp [09:28:43]Write 4 bytes [09:28:43]NVStorageSaveData done [09:28:43]ExternCall_PrintAddStr [09:28:43]wPrintStart [09:28:43]Write to MH i2c: 01 00 00 21 7F A0 [09:28:43]OFD Sender: Processing packet 30830 [packets to send 10, broken 9] [09:28:43]ProducePacketName [09:28:43]name=ofd_packets/00030830 [09:28:43]OFD Sender: To server: pG, [09:28:43]CommunicateWithHost lk.salyk.kg:30040 [09:28:43]ConnectInit lk.salyk.kg [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 21 7F 00 00 00 00 00 FF 0F B5 [09:28:43]RasterBufferAndPrint [09:28:43]line Счет N : (1)343248 [09:28:43]line ИНН: 02508201610067 [09:28:43]line Контрольно-Кассовый Чек [09:28:43]line ПРОДАЖА [09:28:43]line ТРК (МРК, ГНК) : 64 [09:28:43]line Товар: 2710194210 [09:28:43]line ДТ-К-2 [09:28:43]line 15.830 * 0.00 [09:28:43]line = 0.00 [09:28:43]line НДС 12% НСП 1% [09:28:43]line > о реализуемом товаре [09:28:43]line ИТОГО: 0.00 [09:28:43]line НСП 1% : 0.00 [09:28:43]line НДС 12% : 0.00 [09:28:43]line Наличными: 0.00 [09:28:43]line Безнал.: 0.00 [09:28:43]line Место: АЗС № 78 "Партнер Нефть" [09:28:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:28:43]line СНО: Общий режим [09:28:43]line Чек 63 22.10.2024 09:28 [09:28:43]line Смена: 116 ФФД: 1.0 [09:28:43]line ЗНМ: 0300000137 [09:28:43]line РНМ: 0000000000186857 [09:28:43]line Версия ККМ: v1.0 [09:28:43]line Талоны: Топливная Карта [09:28:43]line 99924 [09:28:43]line ФМ: 0000000002094219 [09:28:43]line ФД: 30830 [09:28:43]line ФПД: 210187693542979 [09:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30830&fm=210187693542979&tin=02508201610067®Number=0000000000186857&sum=0 [09:28:44]Connected sock=10 [09:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2C 46 04 01 90 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 32 FF 03 08 00 03 D6 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 53 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 78 00 00 35 04 06 00 BF 2A 22 CF 4E 43 0A 5D 2A E6 A5 85 EA 9B [09:28:44]written 0, free lines is 4095 [09:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B9 67 47 00 BE D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 78 00 00 F4 03 04 00 D1 1A 17 67 B6 04 01 00 00 99 A9 DF D3 B6 98 56 8E [09:28:44]CommunicateWithHost err = 0 [09:28:44]CheckOFDResponse [09:28:44]1017 (14) - 77093643461234 [09:28:44]1041 (16) - 0000000002094219 [09:28:44]1040 (4) - 30830 [09:28:44]1012 (4) - 22.10.2024 03:24 [09:28:44]1206 (1) - 0 [09:28:44]OFD Sender: Remove packet 30830 [09:28:44]ProducePacketName [09:28:44]name=ofd_packets/00030830 [09:28:44]NVStorageDeleteData [09:28:44]Write to MH i2c: 01 00 00 4B 7F CA [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 07 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 07 00 4B 7F 00 00 00 00 00 F6 0C D3 [09:28:44]RasterBufferAndPrint [09:28:44]line [09:28:44]line [09:28:44]line [09:28:44]line [09:28:44]line [09:28:44]written 0, free lines is 3324 [09:28:44]MH_Cut [09:28:44]Write to MH i2c: D1 01 00 52 7F 01 A3 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: D1 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: D1 01 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: D1 01 00 52 7F 00 A2 [09:28:44]Write to MH i2c: 01 00 00 53 7F D2 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]OFD Sender: No OFD packet to send [09:28:45]*** Cut start [09:28:45]*** Partial cut [09:28:45]*** CUTSNS_PIN = 1 [09:28:45]*** CUTSNS_PIN = 0 [09:28:45]*** Brake cut motor [09:28:45]Read from MH i2c: 01 [09:28:45]MH_I2C_Read... [09:28:45]*** Stop cut motor [09:28:45]*** Cut end [09:28:45]Read from MH i2c: 01 07 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 07 00 53 7F 00 00 00 00 00 FF 0F E7 [09:28:45]process_action close_receipt done [09:28:45]requested_data is exist [09:28:45]produce_requested_data [09:28:45]requested_item fm.sn is exist - process it [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 11 00 00 [09:28:45]Write to MH i2c: E2 08 00 54 7F 80 11 00 00 00 00 00 00 4D [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 54 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9B [09:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:28:45]wFMCommunicate OK [09:28:45]requested_item fd.num is exist - process it [09:28:45]SAM_PROTO_GetFieldsCounters [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 00 00 [09:28:45]Write to MH i2c: E2 08 00 55 7F 80 13 00 00 00 00 00 00 50 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 55 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 78 00 00 0E 04 04 00 74 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 8D [09:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 78 00 00 0E 04 04 00 74 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 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_GetFieldsCounters done [09:28:45]requested_item shift.num is exist - process it [09:28:45]requested_item shift.opened is exist - process it [09:28:45]req_shift_opened [09:28:45]FM_GetShiftState [09:28:45]SAM_PROTO_GetShiftState [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 01 00 [09:28:45]Write to MH i2c: E2 08 00 56 7F 80 13 01 00 00 00 00 00 52 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0E 00 [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: E2 0E 00 56 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2C [09:28:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:28:46]wFMCommunicate OK [09:28:46]SAM_PROTO_GetShiftState done [09:28:46]FM_GetShiftState done [09:28:46]req_shift_opened done [09:28:46]requested_item shift.open_date is exist - process it [09:28:46]req_shift_open_date [09:28:46]req_shift_open_date done [09:28:46]produce_requested_data done [09:28:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30830,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:28:46]process_action_free close_receipt [09:28:46]json_value_free [09:28:46]json_value_free done [09:28:46]process_json_proto returns [09:28:46]Send response to host [09:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30830,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:28:46]free response buf [09:28:46]execute_script done [09:28:46]execute_script returns [09:28:46]free content buf [09:28:46]Sock 7.Close socket [09:28:46]Sock 7.Thread stoped [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:37]accept exits with 9 [09:29:37]New connection [09:29:37]New thread 3067346276 created [09:29:37]Thread 3067489636 joined [09:29:37]Waiting for new connection... [09:29:37] Sock 9.Parse request [09:29:37]Sock 9.Check first char [09:29:37]Sock 9.First char is OK [09:29:37]request: POST /json_proto HTTP/1.0 [09:29:37]Method: POST [09:29:37]URL: /json_proto [09:29:37]Method is POST - this is cgi request [09:29:37]url: /json_proto [09:29:37]query_string will be loaded in cgi processing [09:29:37]execute_cgi json_proto POST (null) [09:29:37]execute_cgi path=json_proto method=POST [09:29:37]POST find Content-Length [09:29:37]Host: 172.17.51.3:8080 [09:29:37]Content-Length: 674 [09:29:37]Content-Type: application/json [09:29:37] [09:29:37]POST finish read [09:29:37]Found Content-Length = 674 [09:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]execute_script... [09:29: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)343249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]POST & json_proto [09:29:37]process_json_proto [09:29:37]json parsed OK: [09:29:37]protocol is kg_v1.0 [09:29:37]action value=close_receipt [09:29:37]process_action close_receipt [09:29:37]cmd_close_receipt [09:29:37]MH_GetDate [09:29:37]Write to MH i2c: F0 00 00 57 7F C5 [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 57 7F 00 8A 70 17 67 04 C1 95 66 06 [09:29:37]GetLastDocTimeStamp 1729589331 [09:29:37]current date 1729589386 [09:29:37]FM_GetShiftState [09:29:37]SAM_PROTO_GetShiftState [09:29:37]wFMCommunicate request_size=4 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 13 01 00 [09:29:37]Write to MH i2c: E2 08 00 58 7F 80 13 01 00 00 00 00 00 54 [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:37]Read from MH i2c: E2 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 58 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2E [09:29:37]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:29:37]wFMCommunicate OK [09:29:37]SAM_PROTO_GetShiftState done [09:29:37]FM_GetShiftState done [09:29:37]opened in 1729557342 [09:29:37]opened+sec_in_day 1729643742 [09:29:37]quantity*price = 50063 [09:29:37]sum+1 = 50064 [09:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 64 22.10.2024 09:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30831 ФПД: 554438115217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30831&fm=554438115217&tin=02508201610067®Number=0000000000186857&sum=50000 [09:29:38]StoreToDocumentArchive [09:29:38]shift 116 fd 30831 [09:29:38]save to /storage/0116/doc_00030831 [09:29:38]save last doc name /storage/0116/doc_00030831 to /storage/kkm_last_doc_name [09:29:38]save OK [09:29:38]Clear old archive folders... [09:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:38]tlvbuf is 01DB6510 [09:29:38]SAM_PROTO_ClearQueue [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 09 00 00 [09:29:38]Write to MH i2c: E2 08 00 65 7F 80 09 00 00 00 00 00 00 56 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 65 7F 00 90 00 58 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_ClearQueue done [09:29:38]KKMCreateOFDPacket [09:29:38]OFDProtocolAddRootSTLVToBuf [09:29:38]FM_MakeSignedData [09:29:38]FM_MakeSignedData [09:29:38]SAM_PROTO_SignData [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 01 02 [09:29:38]Write to MH i2c: E2 08 00 66 7F 80 0D 01 02 00 00 00 00 5E [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 66 7F 00 90 00 59 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=255 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8A 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 78 00 00 35 04 06 00 00 81 17 16 [09:29:38]Write to MH i2c: E2 02 01 67 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8A 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 78 00 00 35 04 06 00 00 81 17 16 00 00 2E [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 67 7F 00 90 00 5A [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=7 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 02 3F 91 [09:29:38]Write to MH i2c: E2 0A 00 68 7F 80 0D 02 02 02 00 3F 91 00 00 35 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 68 7F 00 90 00 5B [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 03 02 [09:29:38]Write to MH i2c: E2 08 00 69 7F 80 0D 03 02 00 00 00 00 63 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 69 7F 00 BB C6 7C 18 9D F7 F1 56 90 00 54 [09:29:38]RAPDU: BB C6 7C 18 9D F7 F1 56 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_SignData done [09:29:38]FM_MakeSignedData done [09:29:38]CreateOFDProtocolMessage [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 6A 7F 80 11 00 00 00 00 00 00 63 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 6A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B1 [09:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:29:38]wFMCommunicate OK [09:29:38]CreateOFDProtocolMessage done [09:29:38]OFDSenderStorePacket 30831 [09:29:38]StoreOFDPacket docnum=30831 [09:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F5 F0 04 01 AE 94 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8A 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 78 00 00 35 04 06 00 00 81 17 16 3F 91 BB C6 7C 18 9D F7 F1 56 [09:29:38]CheckFolder [09:29:38]dirname=/storage/ofd_packets [09:29:38]CheckFolder done [09:29:38]ProducePacketName [09:29:38]name=ofd_packets/00030831 [09:29:38]NVStorageSaveData ofd_packets/00030831 [09:29:38]File name is /storage/ofd_packets/00030831 [09:29:38]Write 298 bytes [09:29:38]NVStorageSaveData done [09:29:38]OFDSenderStorePacket done [09:29:38]KKMCreateOFDPacket done [09:29:38]NVStorageSaveData kkm_last_timestamp [09:29:38]File name is /storage/kkm_last_timestamp [09:29:38]Write 4 bytes [09:29:38]NVStorageSaveData done [09:29:38]ExternCall_PrintAddStr [09:29:38]wPrintStart [09:29:38]Write to MH i2c: 01 00 00 6B 7F EA [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 6B 7F 00 00 00 00 00 FF 0F FF [09:29:38]RasterBufferAndPrint [09:29:38]line Счет N : (1)343249 [09:29:38]line ИНН: 02508201610067 [09:29:38]line Контрольно-Кассовый Чек [09:29:38]line ПРОДАЖА [09:29:38]line ТРК (МРК, ГНК) : 44 [09:29:38]line Товар: 2710194210 [09:29:38]line ДТ-К-2 [09:29:38]line 6.570 * 76.20 [09:29:38]line = 500.63 [09:29:38]line НДС 12% НСП 1% [09:29:38]line > о реализуемом товаре [09:29:38]line ОКРУГЛЕНИЕ: -0.63 [09:29:38]line ИТОГО: 500.00 [09:29:38]line Внесено: 500.00 [09:29:38]line СДАЧА: 0.00 [09:29:38]line НСП 1% : 4.43 [09:29:38]line НДС 12% : 53.16 [09:29:38]line Наличными: 500.00 [09:29:38]line Безнал.: 0.00 [09:29:38]line Место: АЗС № 78 "Партнер Нефть" [09:29:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:29:38]line СНО: Общий режим [09:29:38]line Чек 64 22.10.2024 09:29 [09:29:38]line Смена: 116 ФФД: 1.0 [09:29:38]line ЗНМ: 0300000137 [09:29:38]line РНМ: 0000000000186857 [09:29:38]line Версия ККМ: v1.0 [09:29:38]line ФМ: 0000000002094219 [09:29:38]line ФД: 30831 [09:29:38]line ФПД: 554438115217 [09:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30831&fm=554438115217&tin=02508201610067®Number=0000000000186857&sum=50000 [09:29:39]OFD Sender: Processing packet 30831 [packets to send 10, broken 9] [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00030831 [09:29:39]OFD Sender: To server: pG, [09:29:39]CommunicateWithHost lk.salyk.kg:30040 [09:29:39]ConnectInit lk.salyk.kg [09:29:39]written 0, free lines is 4095 [09:29:39]Connected sock=10 [09:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F5 F0 04 01 AE 94 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8A 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 78 00 00 35 04 06 00 00 81 17 16 3F 91 BB C6 7C 18 9D F7 F1 56 [09:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 42 F5 47 00 C4 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 32 30 39 34 32 31 39 10 04 04 00 6F 78 00 00 F4 03 04 00 08 1B 17 67 B6 04 01 00 00 39 16 3B 70 73 BE 61 2F [09:29:39]CommunicateWithHost err = 0 [09:29:39]CheckOFDResponse [09:29:39]1017 (14) - 77093643461234 [09:29:39]1041 (16) - 0000000002094219 [09:29:39]1040 (4) - 30831 [09:29:39]1012 (4) - 22.10.2024 03:24 [09:29:39]1206 (1) - 0 [09:29:39]OFD Sender: Remove packet 30831 [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00030831 [09:29:39]NVStorageDeleteData [09:29:39]Write to MH i2c: 01 00 00 96 7F 15 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 96 7F 00 00 00 00 00 E4 0C 0C [09:29:39]RasterBufferAndPrint [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]written 0, free lines is 3306 [09:29:39]MH_Cut [09:29:39]Write to MH i2c: D1 01 00 9D 7F 01 EE [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 9D 7F 00 ED [09:29:39]Write to MH i2c: 01 00 00 9E 7F 1D [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]OFD Sender: No OFD packet to send [09:29:40]*** Cut start [09:29:40]*** Partial cut [09:29:40]*** CUTSNS_PIN = 1 [09:29:40]*** CUTSNS_PIN = 0 [09:29:40]*** Brake cut motor [09:29:40]Read from MH i2c: 01 [09:29:40]MH_I2C_Read... [09:29:40]*** Stop cut motor [09:29:40]*** Cut end [09:29:40]Read from MH i2c: 01 07 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: 01 07 00 9E 7F 00 00 00 00 00 FF 0F 32 [09:29:40]process_action close_receipt done [09:29:40]requested_data is exist [09:29:40]produce_requested_data [09:29:40]requested_item fm.sn is exist - process it [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 11 00 00 [09:29:40]Write to MH i2c: E2 08 00 9F 7F 80 11 00 00 00 00 00 00 98 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:40]Read from MH i2c: E2 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 17 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 17 00 9F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E6 [09:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:29:40]wFMCommunicate OK [09:29:40]requested_item fd.num is exist - process it [09:29:40]SAM_PROTO_GetFieldsCounters [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 13 00 00 [09:29:40]Write to MH i2c: E2 08 00 A0 7F 80 13 00 00 00 00 00 00 9B [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:40]Read from MH i2c: E2 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 62 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 62 00 A0 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 78 00 00 0E 04 04 00 74 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 DC [09:29:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 78 00 00 0E 04 04 00 74 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 [09:29:40]wFMCommunicate OK [09:29:40]SAM_PROTO_GetFieldsCounters done [09:29:40]requested_item shift.num is exist - process it [09:29:40]requested_item shift.opened is exist - process it [09:29:40]req_shift_opened [09:29:40]FM_GetShiftState [09:29:40]SAM_PROTO_GetShiftState [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 13 01 00 [09:29:40]Write to MH i2c: E2 08 00 A1 7F 80 13 01 00 00 00 00 00 9D [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 A1 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 77 [09:29:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_GetShiftState done [09:29:41]FM_GetShiftState done [09:29:41]req_shift_opened done [09:29:41]requested_item shift.open_date is exist - process it [09:29:41]req_shift_open_date [09:29:41]req_shift_open_date done [09:29:41]produce_requested_data done [09:29:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30831,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:29:41]process_action_free close_receipt [09:29:41]json_value_free [09:29:41]json_value_free done [09:29:41]process_json_proto returns [09:29:41]Send response to host [09:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30831,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:29:41]free response buf [09:29:41]execute_script done [09:29:41]execute_script returns [09:29:41]free content buf [09:29:41]Sock 9.Close socket [09:29:41]Sock 9.Thread stoped [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:57]accept exits with 7 [09:29:57]New connection [09:29:57]New thread 3067489636 created [09:29:57]Thread 3067346276 joined [09:29:57]Waiting for new connection... [09:29:57] Sock 7.Parse request [09:29:57]Sock 7.Check first char [09:29:57]Sock 7.First char is OK [09:29:57]request: POST /json_proto HTTP/1.0 [09:29:57]Method: POST [09:29:57]URL: /json_proto [09:29:57]Method is POST - this is cgi request [09:29:57]url: /json_proto [09:29:57]query_string will be loaded in cgi processing [09:29:57]execute_cgi json_proto POST (null) [09:29:57]execute_cgi path=json_proto method=POST [09:29:57]POST find Content-Length [09:29:57]Host: 172.17.51.3:8080 [09:29:57]Content-Length: 677 [09:29:57]Content-Type: application/json [09:29:57] [09:29:57]POST finish read [09:29:57]Found Content-Length = 677 [09:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:57]execute_script... [09:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:57]POST & json_proto [09:29:57]process_json_proto [09:29:57]json parsed OK: [09:29:57]protocol is kg_v1.0 [09:29:57]action value=close_receipt [09:29:57]process_action close_receipt [09:29:57]cmd_close_receipt [09:29:57]MH_GetDate [09:29:57]Write to MH i2c: F0 00 00 A2 7F 10 [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: F0 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: F0 09 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: F0 09 00 A2 7F 00 9F 70 17 67 04 C1 95 66 66 [09:29:57]GetLastDocTimeStamp 1729589386 [09:29:57]current date 1729589407 [09:29:57]FM_GetShiftState [09:29:57]SAM_PROTO_GetShiftState [09:29:57]wFMCommunicate request_size=4 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 13 01 00 [09:29:57]Write to MH i2c: E2 08 00 A3 7F 80 13 01 00 00 00 00 00 9F [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 0E 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 0E 00 A3 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 79 [09:29:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:29:57]wFMCommunicate OK [09:29:57]SAM_PROTO_GetShiftState done [09:29:57]FM_GetShiftState done [09:29:57]opened in 1729557342 [09:29:57]opened+sec_in_day 1729643742 [09:29:57]quantity*price = 60009 [09:29:57]sum+1 = 60010 [09:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 65 22.10.2024 09:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30832 ФПД: 270452017737506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093007&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30832&fm=270452017737506&tin=02508201610067®Number=0000000000186857&sum=60000 [09:29:58]StoreToDocumentArchive [09:29:58]shift 116 fd 30832 [09:29:58]save to /storage/0116/doc_00030832 [09:29:58]save last doc name /storage/0116/doc_00030832 to /storage/kkm_last_doc_name [09:29:58]save OK [09:29:58]Clear old archive folders... [09:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:58]tlvbuf is 02037D30 [09:29:58]SAM_PROTO_ClearQueue [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 09 00 00 [09:29:58]Write to MH i2c: E2 08 00 B0 7F 80 09 00 00 00 00 00 00 A1 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 B0 7F 00 90 00 A3 [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]SAM_PROTO_ClearQueue done [09:29:58]KKMCreateOFDPacket [09:29:58]OFDProtocolAddRootSTLVToBuf [09:29:58]FM_MakeSignedData [09:29:58]FM_MakeSignedData [09:29:58]SAM_PROTO_SignData [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 01 02 [09:29:58]Write to MH i2c: E2 08 00 B1 7F 80 0D 01 02 00 00 00 00 A9 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 B1 7F 00 90 00 A4 [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=255 [09:29:58]MH_SAM_APDU [09:29: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9F 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 78 00 00 35 04 06 00 F5 [09:29:58]Write to MH i2c: E2 02 01 B2 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9F 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 78 00 00 35 04 06 00 F5 00 00 36 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 B2 7F 00 90 00 A5 [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=10 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 02 02 05 F9 84 72 2F 22 [09:29:58]Write to MH i2c: E2 0D 00 B3 7F 80 0D 02 02 05 00 F9 84 72 2F 22 00 00 F6 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 B3 7F 00 90 00 A6 [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 03 02 [09:29:58]Write to MH i2c: E2 08 00 B4 7F 80 0D 03 02 00 00 00 00 AE [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 0B 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 0B 00 B4 7F 00 16 90 0D 5D 86 C4 15 83 90 00 A1 [09:29:59]RAPDU: 16 90 0D 5D 86 C4 15 83 90 00 [09:29:59]wFMCommunicate OK [09:29:59]SAM_PROTO_SignData done [09:29:59]FM_MakeSignedData done [09:29:59]CreateOFDProtocolMessage [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 11 00 00 [09:29:59]Write to MH i2c: E2 08 00 B5 7F 80 11 00 00 00 00 00 00 AE [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 17 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 17 00 B5 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [09:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:29:59]wFMCommunicate OK [09:29:59]CreateOFDProtocolMessage done [09:29:59]OFDSenderStorePacket 30832 [09:29:59]StoreOFDPacket docnum=30832 [09:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 80 86 07 01 C9 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9F 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 78 00 00 35 04 06 00 F5 F9 84 72 2F 22 16 90 0D 5D 86 C4 15 83 [09:29:59]CheckFolder [09:29:59]dirname=/storage/ofd_packets [09:29:59]CheckFolder done [09:29:59]ProducePacketName [09:29:59]name=ofd_packets/00030832 [09:29:59]NVStorageSaveData ofd_packets/00030832 [09:29:59]File name is /storage/ofd_packets/00030832 [09:29:59]Write 301 bytes [09:29:59]NVStorageSaveData done [09:29:59]OFDSenderStorePacket done [09:29:59]KKMCreateOFDPacket done [09:29:59]NVStorageSaveData kkm_last_timestamp [09:29:59]File name is /storage/kkm_last_timestamp [09:29:59]Write 4 bytes [09:29:59]NVStorageSaveData done [09:29:59]ExternCall_PrintAddStr [09:29:59]wPrintStart [09:29:59]Write to MH i2c: 01 00 00 B6 7F 35 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 B6 7F 00 00 00 00 00 FF 0F 4A [09:29:59]RasterBufferAndPrint [09:29:59]line Счет N : (1)343250 [09:29:59]line ИНН: 02508201610067 [09:29:59]line Контрольно-Кассовый Чек [09:29:59]line ПРОДАЖА [09:29:59]line ТРК (МРК, ГНК) : 33 [09:29:59]line Товар: 2710124130 [09:29:59]line Аи-92-К-2 [09:29:59]line 8.970 * 66.90 [09:29:59]line = 600.09 [09:29:59]line НДС 12% НСП 1% [09:29:59]line > о реализуемом товаре [09:29:59]line ОКРУГЛЕНИЕ: -0.09 [09:29:59]line ИТОГО: 600.00 [09:29:59]line Внесено: 600.00 [09:29:59]line СДАЧА: 0.00 [09:29:59]line НСП 1% : 5.31 [09:29:59]line НДС 12% : 63.73 [09:29:59]line Наличными: 600.00 [09:29:59]line Безнал.: 0.00 [09:29:59]line Место: АЗС № 78 "Партнер Нефть" [09:29:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:29:59]line СНО: Общий режим [09:29:59]line Чек 65 22.10.2024 09:30 [09:29:59]line Смена: 116 ФФД: 1.0 [09:29:59]line ЗНМ: 0300000137 [09:29:59]line РНМ: 0000000000186857 [09:29:59]line Версия ККМ: v1.0 [09:29:59]line ФМ: 0000000002094219 [09:29:59]line ФД: 30832 [09:29:59]line ФПД: 270452017737506 [09:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093007&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30832&fm=270452017737506&tin=02508201610067®Number=0000000000186857&sum=60000 [09:29:59]OFD Sender: Processing packet 30832 [packets to send 10, broken 9] [09:29:59]ProducePacketName [09:29:59]name=ofd_packets/00030832 [09:29:59]OFD Sender: To server: pG, [09:29:59]CommunicateWithHost lk.salyk.kg:30040 [09:29:59]ConnectInit lk.salyk.kg [09:29:59]written 0, free lines is 4095 [09:29:59]Connected sock=10 [09:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 80 86 07 01 C9 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9F 70 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 78 00 00 35 04 06 00 F5 F9 84 72 2F 22 16 90 0D 5D 86 C4 15 83 [09:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B 57 47 00 FC B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 78 00 00 F4 03 04 00 1D 1B 17 67 B6 04 01 00 00 B3 74 4D E4 35 B4 07 6E [09:29:59]CommunicateWithHost err = 0 [09:29:59]CheckOFDResponse [09:29:59]1017 (14) - 77093643461234 [09:29:59]1041 (16) - 0000000002094219 [09:29:59]1040 (4) - 30832 [09:29:59]1012 (4) - 22.10.2024 03:25 [09:29:59]1206 (1) - 0 [09:29:59]OFD Sender: Remove packet 30832 [09:29:59]ProducePacketName [09:29:59]name=ofd_packets/00030832 [09:29:59]NVStorageDeleteData [09:29:59]Write to MH i2c: 01 00 00 E1 7F 60 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 E1 7F 00 00 00 00 00 E4 0C 57 [09:29:59]RasterBufferAndPrint [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]written 0, free lines is 3306 [09:29:59]MH_Cut [09:29:59]Write to MH i2c: D1 01 00 E8 7F 01 39 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 01 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 01 00 E8 7F 00 38 [09:29:59]Write to MH i2c: 01 00 00 E9 7F 68 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:30:00]OFD Sender: No OFD packet to send [09:30:00]*** Cut start [09:30:00]*** Partial cut [09:30:00]*** CUTSNS_PIN = 1 [09:30:00]*** CUTSNS_PIN = 0 [09:30:00]*** Brake cut motor [09:30:01]Read from MH i2c: 01 [09:30:01]MH_I2C_Read... [09:30:01]*** Stop cut motor [09:30:01]*** Cut end [09:30:01]Read from MH i2c: 01 07 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 E9 7F 00 00 00 00 00 FF 0F 7D [09:30:01]process_action close_receipt done [09:30:01]requested_data is exist [09:30:01]produce_requested_data [09:30:01]requested_item fm.sn is exist - process it [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 11 00 00 [09:30:01]Write to MH i2c: E2 08 00 EA 7F 80 11 00 00 00 00 00 00 E3 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 EA 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [09:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:30:01]wFMCommunicate OK [09:30:01]requested_item fd.num is exist - process it [09:30:01]SAM_PROTO_GetFieldsCounters [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 13 00 00 [09:30:01]Write to MH i2c: E2 08 00 EB 7F 80 13 00 00 00 00 00 00 E6 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 62 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 62 00 EB 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 78 00 00 0E 04 04 00 74 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 2B [09:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 78 00 00 0E 04 04 00 74 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 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_GetFieldsCounters done [09:30:01]requested_item shift.num is exist - process it [09:30:01]requested_item shift.opened is exist - process it [09:30:01]req_shift_opened [09:30:01]FM_GetShiftState [09:30:01]SAM_PROTO_GetShiftState [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 13 01 00 [09:30:01]Write to MH i2c: E2 08 00 EC 7F 80 13 01 00 00 00 00 00 E8 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:01]Read from MH i2c: E2 0E 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 0E 00 EC 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C2 [09:30:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_GetShiftState done [09:30:01]FM_GetShiftState done [09:30:01]req_shift_opened done [09:30:01]requested_item shift.open_date is exist - process it [09:30:01]req_shift_open_date [09:30:01]req_shift_open_date done [09:30:01]produce_requested_data done [09:30:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30832,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:30:01]process_action_free close_receipt [09:30:01]json_value_free [09:30:01]json_value_free done [09:30:01]process_json_proto returns [09:30:01]Send response to host [09:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30832,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:30:01]free response buf [09:30:01]execute_script done [09:30:01]execute_script returns [09:30:01]free content buf [09:30:01]Sock 7.Close socket [09:30:01]Sock 7.Thread stoped [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:04]accept exits with 9 [09:33:04]New connection [09:33:04]New thread 3067346276 created [09:33:04]Thread 3067489636 joined [09:33:04]Waiting for new connection... [09:33:04] Sock 9.Parse request [09:33:04]Sock 9.Check first char [09:33:04]Sock 9.First char is OK [09:33:04]request: POST /json_proto HTTP/1.0 [09:33:04]Method: POST [09:33:04]URL: /json_proto [09:33:04]Method is POST - this is cgi request [09:33:04]url: /json_proto [09:33:04]query_string will be loaded in cgi processing [09:33:04]execute_cgi json_proto POST (null) [09:33:04]execute_cgi path=json_proto method=POST [09:33:04]POST find Content-Length [09:33:04]Host: 172.17.51.3:8080 [09:33:04]Content-Length: 840 [09:33:04]Content-Type: application/json [09:33:04] [09:33:04]POST finish read [09:33:04]Found Content-Length = 840 [09:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:04]execute_script... [09:33: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)343252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:04]POST & json_proto [09:33:04]process_json_proto [09:33:04]json parsed OK: [09:33:04]protocol is kg_v1.0 [09:33:04]action value=close_receipt [09:33:04]process_action close_receipt [09:33:04]cmd_close_receipt [09:33:04]MH_GetDate [09:33:04]Write to MH i2c: F0 00 00 ED 7F 5B [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 09 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 09 00 ED 7F 00 59 71 17 67 04 C1 95 66 6C [09:33:04]GetLastDocTimeStamp 1729589407 [09:33:04]current date 1729589593 [09:33:04]FM_GetShiftState [09:33:04]SAM_PROTO_GetShiftState [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 13 01 00 [09:33:04]Write to MH i2c: E2 08 00 EE 7F 80 13 01 00 00 00 00 00 EA [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:04]Read from MH i2c: E2 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 0E 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 0E 00 EE 7F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C4 [09:33:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:33:04]wFMCommunicate OK [09:33:04]SAM_PROTO_GetShiftState done [09:33:04]FM_GetShiftState done [09:33:04]opened in 1729557342 [09:33:04]opened+sec_in_day 1729643742 [09:33:04]quantity*price = 500024 [09:33:04]sum+1 = 500025 [09:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 66 22.10.2024 09:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30833 ФПД: 117026436481069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30833&fm=117026436481069&tin=02508201610067®Number=0000000000186857&sum=500024 [09:33:05]StoreToDocumentArchive [09:33:05]shift 116 fd 30833 [09:33:05]save to /storage/0116/doc_00030833 [09:33:05]save last doc name /storage/0116/doc_00030833 to /storage/kkm_last_doc_name [09:33:05]save OK [09:33:05]Clear old archive folders... [09:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:05]tlvbuf is 01DC5E90 [09:33:05]SAM_PROTO_ClearQueue [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 09 00 00 [09:33:05]Write to MH i2c: E2 08 00 FB 7F 80 09 00 00 00 00 00 00 EC [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FB 7F 00 90 00 EE [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_ClearQueue done [09:33:05]KKMCreateOFDPacket [09:33:05]OFDProtocolAddRootSTLVToBuf [09:33:05]FM_MakeSignedData [09:33:05]FM_MakeSignedData [09:33:05]SAM_PROTO_SignData [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 01 02 [09:33:05]Write to MH i2c: E2 08 00 FC 7F 80 0D 01 02 00 00 00 00 F4 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FC 7F 00 90 00 EF [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=255 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 59 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 78 00 00 35 04 06 00 6A 6F 57 2D [09:33:05]Write to MH i2c: E2 02 01 FD 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 59 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 78 00 00 35 04 06 00 6A 6F 57 2D 00 00 02 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]OFD Sender: No OFD packet to send [09:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FD 7F 00 90 00 F0 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=7 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 02 02 02 00 2D [09:33:05]Write to MH i2c: E2 0A 00 FE 7F 80 0D 02 02 02 00 00 2D 00 00 28 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FE 7F 00 90 00 F1 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 03 02 [09:33:05]Write to MH i2c: E2 08 00 FF 7F 80 0D 03 02 00 00 00 00 F9 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0B 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0B 00 FF 7F 00 26 D4 9E 7B 89 6F 57 04 90 00 60 [09:33:05]RAPDU: 26 D4 9E 7B 89 6F 57 04 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_SignData done [09:33:05]FM_MakeSignedData done [09:33:05]CreateOFDProtocolMessage [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 11 00 00 [09:33:05]Write to MH i2c: E2 08 00 00 80 80 11 00 00 00 00 00 00 FA [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 00 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 48 [09:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:05]wFMCommunicate OK [09:33:05]CreateOFDProtocolMessage done [09:33:05]OFDSenderStorePacket 30833 [09:33:05]StoreOFDPacket docnum=30833 [09:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E7 81 04 01 6D BE 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 59 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 78 00 00 35 04 06 00 6A 6F 57 2D 00 2D 26 D4 9E 7B 89 6F 57 04 [09:33:05]CheckFolder [09:33:05]dirname=/storage/ofd_packets [09:33:05]CheckFolder done [09:33:05]ProducePacketName [09:33:05]name=ofd_packets/00030833 [09:33:05]NVStorageSaveData ofd_packets/00030833 [09:33:05]File name is /storage/ofd_packets/00030833 [09:33:05]Write 298 bytes [09:33:05]NVStorageSaveData done [09:33:05]OFDSenderStorePacket done [09:33:05]KKMCreateOFDPacket done [09:33:05]NVStorageSaveData kkm_last_timestamp [09:33:05]File name is /storage/kkm_last_timestamp [09:33:05]Write 4 bytes [09:33:05]NVStorageSaveData done [09:33:05]ExternCall_PrintAddStr [09:33:05]wPrintStart [09:33:05]Write to MH i2c: 01 00 00 01 80 81 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 01 80 00 00 00 00 00 FF 0F 96 [09:33:05]RasterBufferAndPrint [09:33:05]line Счет N : (1)343252 [09:33:05]line ИНН: 02508201610067 [09:33:05]line Контрольно-Кассовый Чек [09:33:05]line ПРОДАЖА [09:33:05]line ТРК (МРК, ГНК) : 54 [09:33:05]line Товар: 2710194210 [09:33:05]line ДТ-К-2 [09:33:05]line 65.620 * 76.20 [09:33:05]line = 5000.24 [09:33:05]line НДС 12% НСП 1% [09:33:05]line > о реализуемом товаре [09:33:05]line ИТОГО: 5000.24 [09:33:05]line НСП 1% : 44.25 [09:33:05]line НДС 12% : 531.00 [09:33:05]line Наличными: 0.00 [09:33:05]line Безнал.: 5000.24 [09:33:05]line Место: АЗС № 78 "Партнер Нефть" [09:33:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:33:05]line СНО: Общий режим [09:33:05]line Чек 66 22.10.2024 09:33 [09:33:05]line Смена: 116 ФФД: 1.0 [09:33:05]line ЗНМ: 0300000137 [09:33:05]line РНМ: 0000000000186857 [09:33:06]line Версия ККМ: v1.0 [09:33:06]line Платежная система: АКБ Кыргызстан [09:33:06]line ФМ: 0000000002094219 [09:33:06]line ФД: 30833 [09:33:06]line ФПД: 117026436481069 [09:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30833&fm=117026436481069&tin=02508201610067®Number=0000000000186857&sum=500024 [09:33:06]OFD Sender: Processing packet 30833 [packets to send 10, broken 9] [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00030833 [09:33:06]OFD Sender: To server: pG, [09:33:06]CommunicateWithHost lk.salyk.kg:30040 [09:33:06]ConnectInit lk.salyk.kg [09:33:06]written 0, free lines is 4095 [09:33:06]Connected sock=10 [09:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E7 81 04 01 6D BE 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 59 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 78 00 00 35 04 06 00 6A 6F 57 2D 00 2D 26 D4 9E 7B 89 6F 57 04 [09:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 55 B8 47 00 C0 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 78 00 00 F4 03 04 00 D7 1B 17 67 B6 04 01 00 00 B3 1F 1B 10 95 05 6A 07 [09:33:06]CommunicateWithHost err = 0 [09:33:06]CheckOFDResponse [09:33:06]1017 (14) - 77093643461234 [09:33:06]1041 (16) - 0000000002094219 [09:33:06]1040 (4) - 30833 [09:33:06]1012 (4) - 22.10.2024 03:28 [09:33:06]1206 (1) - 0 [09:33:06]OFD Sender: Remove packet 30833 [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00030833 [09:33:06]NVStorageDeleteData [09:33:06]Write to MH i2c: 01 00 00 2B 80 AB [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 2B 80 00 00 00 00 00 0F 0D CE [09:33:06]RasterBufferAndPrint [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]written 0, free lines is 3350 [09:33:06]MH_Cut [09:33:06]Write to MH i2c: D1 01 00 32 80 01 84 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 01 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 01 00 32 80 00 83 [09:33:06]Write to MH i2c: 01 00 00 33 80 B3 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]OFD Sender: No OFD packet to send [09:33:07]*** Cut start [09:33:07]*** Partial cut [09:33:07]*** CUTSNS_PIN = 1 [09:33:07]*** CUTSNS_PIN = 0 [09:33:07]*** Brake cut motor [09:33:07]Read from MH i2c: 01 [09:33:07]MH_I2C_Read... [09:33:07]*** Stop cut motor [09:33:07]*** Cut end [09:33:07]Read from MH i2c: 01 07 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: 01 07 00 33 80 00 00 00 00 00 FF 0F C8 [09:33:07]process_action close_receipt done [09:33:07]requested_data is exist [09:33:07]produce_requested_data [09:33:07]requested_item fm.sn is exist - process it [09:33:07]wFMCommunicate request_size=4 [09:33:07]MH_SAM_APDU [09:33:07]CAPDU: 80 11 00 00 [09:33:07]Write to MH i2c: E2 08 00 34 80 80 11 00 00 00 00 00 00 2E [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:07]Read from MH i2c: E2 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 17 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 17 00 34 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [09:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:07]wFMCommunicate OK [09:33:07]requested_item fd.num is exist - process it [09:33:07]SAM_PROTO_GetFieldsCounters [09:33:07]wFMCommunicate request_size=4 [09:33:07]MH_SAM_APDU [09:33:07]CAPDU: 80 13 00 00 [09:33:07]Write to MH i2c: E2 08 00 35 80 80 13 00 00 00 00 00 00 31 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:07]Read from MH i2c: E2 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 62 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 62 00 35 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 78 00 00 0E 04 04 00 74 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 7A [09:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 78 00 00 0E 04 04 00 74 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 [09:33:07]wFMCommunicate OK [09:33:07]SAM_PROTO_GetFieldsCounters done [09:33:07]requested_item shift.num is exist - process it [09:33:07]requested_item shift.opened is exist - process it [09:33:07]req_shift_opened [09:33:07]FM_GetShiftState [09:33:07]SAM_PROTO_GetShiftState [09:33:07]wFMCommunicate request_size=4 [09:33:07]MH_SAM_APDU [09:33:07]CAPDU: 80 13 01 00 [09:33:07]Write to MH i2c: E2 08 00 36 80 80 13 01 00 00 00 00 00 33 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 36 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0D [09:33:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:33:08]wFMCommunicate OK [09:33:08]SAM_PROTO_GetShiftState done [09:33:08]FM_GetShiftState done [09:33:08]req_shift_opened done [09:33:08]requested_item shift.open_date is exist - process it [09:33:08]req_shift_open_date [09:33:08]req_shift_open_date done [09:33:08]produce_requested_data done [09:33:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30833,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:33:08]process_action_free close_receipt [09:33:08]json_value_free [09:33:08]json_value_free done [09:33:08]process_json_proto returns [09:33:08]Send response to host [09:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30833,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:33:08]free response buf [09:33:08]execute_script done [09:33:08]execute_script returns [09:33:08]free content buf [09:33:08]Sock 9.Close socket [09:33:08]Sock 9.Thread stoped [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:43]accept exits with 7 [09:35:43]New connection [09:35:43]New thread 3067489636 created [09:35:43]Thread 3067346276 joined [09:35:43]Waiting for new connection... [09:35:43] Sock 7.Parse request [09:35:43]Sock 7.Check first char [09:35:43]Sock 7.First char is OK [09:35:43]request: POST /json_proto HTTP/1.0 [09:35:43]Method: POST [09:35:43]URL: /json_proto [09:35:43]Method is POST - this is cgi request [09:35:43]url: /json_proto [09:35:43]query_string will be loaded in cgi processing [09:35:43]execute_cgi json_proto POST (null) [09:35:43]execute_cgi path=json_proto method=POST [09:35:43]POST find Content-Length [09:35:43]Host: 172.17.51.3:8080 [09:35:43]Content-Length: 677 [09:35:43]Content-Type: application/json [09:35:43] [09:35:43]POST finish read [09:35:43]Found Content-Length = 677 [09:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:43]execute_script... [09:35:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:43]POST & json_proto [09:35:43]process_json_proto [09:35:43]json parsed OK: [09:35:43]protocol is kg_v1.0 [09:35:43]action value=close_receipt [09:35:43]process_action close_receipt [09:35:43]cmd_close_receipt [09:35:43]MH_GetDate [09:35:43]Write to MH i2c: F0 00 00 37 80 A6 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: F0 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: F0 09 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: F0 09 00 37 80 00 F9 71 17 67 04 C1 95 66 57 [09:35:43]GetLastDocTimeStamp 1729589593 [09:35:43]current date 1729589753 [09:35:43]FM_GetShiftState [09:35:43]SAM_PROTO_GetShiftState [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 13 01 00 [09:35:43]Write to MH i2c: E2 08 00 38 80 80 13 01 00 00 00 00 00 35 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0E 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0E 00 38 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0F [09:35:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:35:43]wFMCommunicate OK [09:35:43]SAM_PROTO_GetShiftState done [09:35:43]FM_GetShiftState done [09:35:43]opened in 1729557342 [09:35:43]opened+sec_in_day 1729643742 [09:35:43]quantity*price = 30038 [09:35:43]sum+1 = 30039 [09:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 67 22.10.2024 09:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30834 ФПД: 41481451193246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30834&fm=41481451193246&tin=02508201610067®Number=0000000000186857&sum=30000 [09:35:44]StoreToDocumentArchive [09:35:44]shift 116 fd 30834 [09:35:44]save to /storage/0116/doc_00030834 [09:35:44]save last doc name /storage/0116/doc_00030834 to /storage/kkm_last_doc_name [09:35:44]save OK [09:35:44]Clear old archive folders... [09:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:44]tlvbuf is 01E2B990 [09:35:44]SAM_PROTO_ClearQueue [09:35:44]wFMCommunicate request_size=4 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 09 00 00 [09:35:44]Write to MH i2c: E2 08 00 45 80 80 09 00 00 00 00 00 00 37 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 45 80 00 90 00 39 [09:35:44]RAPDU: 90 00 [09:35:44]wFMCommunicate OK [09:35:44]SAM_PROTO_ClearQueue done [09:35:44]KKMCreateOFDPacket [09:35:44]OFDProtocolAddRootSTLVToBuf [09:35:44]FM_MakeSignedData [09:35:44]FM_MakeSignedData [09:35:44]SAM_PROTO_SignData [09:35:44]wFMCommunicate request_size=4 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 0D 01 02 [09:35:44]Write to MH i2c: E2 08 00 46 80 80 0D 01 02 00 00 00 00 3F [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 46 80 00 90 00 3A [09:35:44]RAPDU: 90 00 [09:35:44]wFMCommunicate OK [09:35:44]wFMCommunicate request_size=255 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F9 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 78 00 00 35 04 06 00 25 [09:35:44]Write to MH i2c: E2 02 01 47 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F9 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 78 00 00 35 04 06 00 25 00 00 72 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 03 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 03 00 47 80 00 90 00 3B [09:35:45]RAPDU: 90 00 [09:35:45]wFMCommunicate OK [09:35:45]wFMCommunicate request_size=10 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 0D 02 02 05 BA 27 29 C3 9E [09:35:45]Write to MH i2c: E2 0D 00 48 80 80 0D 02 02 05 00 BA 27 29 C3 9E 00 00 B7 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 03 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 03 00 48 80 00 90 00 3C [09:35:45]RAPDU: 90 00 [09:35:45]wFMCommunicate OK [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 0D 03 02 [09:35:45]Write to MH i2c: E2 08 00 49 80 80 0D 03 02 00 00 00 00 44 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0B 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0B 00 49 80 00 DF 7C 27 49 82 BB 18 17 90 00 7C [09:35:45]RAPDU: DF 7C 27 49 82 BB 18 17 90 00 [09:35:45]wFMCommunicate OK [09:35:45]SAM_PROTO_SignData done [09:35:45]FM_MakeSignedData done [09:35:45]CreateOFDProtocolMessage [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 11 00 00 [09:35:45]Write to MH i2c: E2 08 00 4A 80 80 11 00 00 00 00 00 00 44 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 4A 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [09:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:35:45]wFMCommunicate OK [09:35:45]CreateOFDProtocolMessage done [09:35:45]OFDSenderStorePacket 30834 [09:35:45]StoreOFDPacket docnum=30834 [09:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 AD 07 01 B3 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F9 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 78 00 00 35 04 06 00 25 BA 27 29 C3 9E DF 7C 27 49 82 BB 18 17 [09:35:45]CheckFolder [09:35:45]dirname=/storage/ofd_packets [09:35:45]CheckFolder done [09:35:45]ProducePacketName [09:35:45]name=ofd_packets/00030834 [09:35:45]NVStorageSaveData ofd_packets/00030834 [09:35:45]File name is /storage/ofd_packets/00030834 [09:35:45]Write 301 bytes [09:35:45]NVStorageSaveData done [09:35:45]OFDSenderStorePacket done [09:35:45]KKMCreateOFDPacket done [09:35:45]NVStorageSaveData kkm_last_timestamp [09:35:45]File name is /storage/kkm_last_timestamp [09:35:45]Write 4 bytes [09:35:45]NVStorageSaveData done [09:35:45]ExternCall_PrintAddStr [09:35:45]wPrintStart [09:35:45]Write to MH i2c: 01 00 00 4B 80 CB [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 4B 80 00 00 00 00 00 FF 0F E0 [09:35:45]RasterBufferAndPrint [09:35:45]line Счет N : (1)343253 [09:35:45]line ИНН: 02508201610067 [09:35:45]line Контрольно-Кассовый Чек [09:35:45]line ПРОДАЖА [09:35:45]line ТРК (МРК, ГНК) : 53 [09:35:45]line Товар: 2710124130 [09:35:45]line Аи-92-К-2 [09:35:45]line 4.490 * 66.90 [09:35:45]line = 300.38 [09:35:45]line НДС 12% НСП 1% [09:35:45]line > о реализуемом товаре [09:35:45]line ОКРУГЛЕНИЕ: -0.38 [09:35:45]line ИТОГО: 300.00 [09:35:45]line Внесено: 300.00 [09:35:45]line СДАЧА: 0.00 [09:35:45]line НСП 1% : 2.66 [09:35:45]line НДС 12% : 31.90 [09:35:45]line Наличными: 300.00 [09:35:45]line Безнал.: 0.00 [09:35:45]line Место: АЗС № 78 "Партнер Нефть" [09:35:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:35:45]line СНО: Общий режим [09:35:45]line Чек 67 22.10.2024 09:35 [09:35:45]line Смена: 116 ФФД: 1.0 [09:35:45]line ЗНМ: 0300000137 [09:35:45]line РНМ: 0000000000186857 [09:35:45]line Версия ККМ: v1.0 [09:35:45]line ФМ: 0000000002094219 [09:35:45]line ФД: 30834 [09:35:45]line ФПД: 41481451193246 [09:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30834&fm=41481451193246&tin=02508201610067®Number=0000000000186857&sum=30000 [09:35:45]OFD Sender: Processing packet 30834 [packets to send 10, broken 9] [09:35:45]ProducePacketName [09:35:45]name=ofd_packets/00030834 [09:35:45]OFD Sender: To server: pG, [09:35:45]CommunicateWithHost lk.salyk.kg:30040 [09:35:45]ConnectInit lk.salyk.kg [09:35:45]written 0, free lines is 4095 [09:35:45]Connected sock=9 [09:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 AD 07 01 B3 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F9 71 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 78 00 00 35 04 06 00 25 BA 27 29 C3 9E DF 7C 27 49 82 BB 18 17 [09:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A1 C1 47 00 F4 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 78 00 00 F4 03 04 00 77 1C 17 67 B6 04 01 00 00 A1 8D 83 D8 A8 20 EF 68 [09:35:45]CommunicateWithHost err = 0 [09:35:45]CheckOFDResponse [09:35:45]1017 (14) - 77093643461234 [09:35:45]1041 (16) - 0000000002094219 [09:35:45]1040 (4) - 30834 [09:35:45]1012 (4) - 22.10.2024 03:31 [09:35:45]1206 (1) - 0 [09:35:45]OFD Sender: Remove packet 30834 [09:35:45]ProducePacketName [09:35:45]name=ofd_packets/00030834 [09:35:45]NVStorageDeleteData [09:35:45]Write to MH i2c: 01 00 00 76 80 F6 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 76 80 00 00 00 00 00 F5 0C FE [09:35:45]RasterBufferAndPrint [09:35:45]line [09:35:45]line [09:35:45]line [09:35:45]line [09:35:45]line [09:35:45]written 0, free lines is 3327 [09:35:45]MH_Cut [09:35:45]Write to MH i2c: D1 01 00 7D 80 01 CF [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: D1 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: D1 01 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: D1 01 00 7D 80 00 CE [09:35:45]Write to MH i2c: 01 00 00 7E 80 FE [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:46]OFD Sender: No OFD packet to send [09:35:46]*** Cut start [09:35:46]*** Partial cut [09:35:46]*** CUTSNS_PIN = 1 [09:35:46]*** CUTSNS_PIN = 0 [09:35:46]*** Brake cut motor [09:35:47]Read from MH i2c: 01 [09:35:47]MH_I2C_Read... [09:35:47]*** Stop cut motor [09:35:47]*** Cut end [09:35:47]Read from MH i2c: 01 07 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 7E 80 00 00 00 00 00 FF 0F 13 [09:35:47]process_action close_receipt done [09:35:47]requested_data is exist [09:35:47]produce_requested_data [09:35:47]requested_item fm.sn is exist - process it [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 11 00 00 [09:35:47]Write to MH i2c: E2 08 00 7F 80 80 11 00 00 00 00 00 00 79 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 17 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 17 00 7F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [09:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:35:47]wFMCommunicate OK [09:35:47]requested_item fd.num is exist - process it [09:35:47]SAM_PROTO_GetFieldsCounters [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 13 00 00 [09:35:47]Write to MH i2c: E2 08 00 80 80 80 13 00 00 00 00 00 00 7C [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 62 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 62 00 80 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 78 00 00 0E 04 04 00 74 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 C9 [09:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 78 00 00 0E 04 04 00 74 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 [09:35:47]wFMCommunicate OK [09:35:47]SAM_PROTO_GetFieldsCounters done [09:35:47]requested_item shift.num is exist - process it [09:35:47]requested_item shift.opened is exist - process it [09:35:47]req_shift_opened [09:35:47]FM_GetShiftState [09:35:47]SAM_PROTO_GetShiftState [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 13 01 00 [09:35:47]Write to MH i2c: E2 08 00 81 80 80 13 01 00 00 00 00 00 7E [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0E 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0E 00 81 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 58 [09:35:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:35:47]wFMCommunicate OK [09:35:47]SAM_PROTO_GetShiftState done [09:35:47]FM_GetShiftState done [09:35:47]req_shift_opened done [09:35:47]requested_item shift.open_date is exist - process it [09:35:47]req_shift_open_date [09:35:47]req_shift_open_date done [09:35:47]produce_requested_data done [09:35:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30834,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:35:47]process_action_free close_receipt [09:35:47]json_value_free [09:35:47]json_value_free done [09:35:47]process_json_proto returns [09:35:47]Send response to host [09:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30834,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:35:47]free response buf [09:35:47]execute_script done [09:35:47]execute_script returns [09:35:47]free content buf [09:35:47]Sock 7.Close socket [09:35:47]Sock 7.Thread stoped [09:35:51]OFD Sender: No OFD packet to send [09:35:51]accept exits with 10 [09:35:51]New connection [09:35:51]New thread 3067346276 created [09:35:51]Thread 3067489636 joined [09:35:51]Waiting for new connection... [09:35:51] Sock 10.Parse request [09:35:51]Sock 10.Check first char [09:35:51]Sock 10.First char is OK [09:35:51]request: POST /json_proto HTTP/1.0 [09:35:51]Method: POST [09:35:51]URL: /json_proto [09:35:51]Method is POST - this is cgi request [09:35:51]url: /json_proto [09:35:51]query_string will be loaded in cgi processing [09:35:51]execute_cgi json_proto POST (null) [09:35:51]execute_cgi path=json_proto method=POST [09:35:51]POST find Content-Length [09:35:51]Host: 172.17.51.3:8080 [09:35:51]Content-Length: 677 [09:35:51]Content-Type: application/json [09:35:51] [09:35:51]POST finish read [09:35:51]Found Content-Length = 677 [09:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:51]execute_script... [09:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:51]POST & json_proto [09:35:51]process_json_proto [09:35:51]json parsed OK: [09:35:51]protocol is kg_v1.0 [09:35:51]action value=close_receipt [09:35:51]process_action close_receipt [09:35:51]cmd_close_receipt [09:35:51]MH_GetDate [09:35:51]Write to MH i2c: F0 00 00 82 80 F1 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: F0 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: F0 09 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: F0 09 00 82 80 00 01 72 17 67 04 C1 95 66 AB [09:35:51]GetLastDocTimeStamp 1729589753 [09:35:51]current date 1729589761 [09:35:51]FM_GetShiftState [09:35:51]SAM_PROTO_GetShiftState [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 13 01 00 [09:35:51]Write to MH i2c: E2 08 00 83 80 80 13 01 00 00 00 00 00 80 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:51]Read from MH i2c: E2 0E 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 0E 00 83 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5A [09:35:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_GetShiftState done [09:35:51]FM_GetShiftState done [09:35:51]opened in 1729557342 [09:35:51]opened+sec_in_day 1729643742 [09:35:51]quantity*price = 40006 [09:35:51]sum+1 = 40007 [09:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 68 22.10.2024 09:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30835 ФПД: 207476970666734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30835&fm=207476970666734&tin=02508201610067®Number=0000000000186857&sum=40000 [09:35:52]StoreToDocumentArchive [09:35:52]shift 116 fd 30835 [09:35:52]save to /storage/0116/doc_00030835 [09:35:52]save last doc name /storage/0116/doc_00030835 to /storage/kkm_last_doc_name [09:35:52]save OK [09:35:52]Clear old archive folders... [09:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:52]tlvbuf is 01DD47A0 [09:35:52]SAM_PROTO_ClearQueue [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 09 00 00 [09:35:52]Write to MH i2c: E2 08 00 90 80 80 09 00 00 00 00 00 00 82 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 90 80 00 90 00 84 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_ClearQueue done [09:35:52]KKMCreateOFDPacket [09:35:52]OFDProtocolAddRootSTLVToBuf [09:35:52]FM_MakeSignedData [09:35:52]FM_MakeSignedData [09:35:52]SAM_PROTO_SignData [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 01 02 [09:35:52]Write to MH i2c: E2 08 00 91 80 80 0D 01 02 00 00 00 00 8A [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 03 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 03 00 91 80 00 90 00 85 [09:35:53]RAPDU: 90 00 [09:35:53]wFMCommunicate OK [09:35:53]wFMCommunicate request_size=255 [09:35:53]MH_SAM_APDU [09:35: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 01 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 78 00 00 35 04 06 00 BC [09:35:53]Write to MH i2c: E2 02 01 92 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 01 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 78 00 00 35 04 06 00 BC 00 00 3A [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:53]Read from MH i2c: E2 03 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 03 00 92 80 00 90 00 86 [09:35:53]RAPDU: 90 00 [09:35:53]wFMCommunicate OK [09:35:53]wFMCommunicate request_size=10 [09:35:53]MH_SAM_APDU [09:35:53]CAPDU: 80 0D 02 02 05 B2 FF 22 BA EE [09:35:53]Write to MH i2c: E2 0D 00 93 80 80 0D 02 02 05 00 B2 FF 22 BA EE 00 00 12 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 03 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 03 00 93 80 00 90 00 87 [09:35:53]RAPDU: 90 00 [09:35:53]wFMCommunicate OK [09:35:53]wFMCommunicate request_size=4 [09:35:53]MH_SAM_APDU [09:35:53]CAPDU: 80 0D 03 02 [09:35:53]Write to MH i2c: E2 08 00 94 80 80 0D 03 02 00 00 00 00 8F [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 0B 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 0B 00 94 80 00 17 ED 53 E7 40 B5 CD 13 90 00 A3 [09:35:53]RAPDU: 17 ED 53 E7 40 B5 CD 13 90 00 [09:35:53]wFMCommunicate OK [09:35:53]SAM_PROTO_SignData done [09:35:53]FM_MakeSignedData done [09:35:53]CreateOFDProtocolMessage [09:35:53]wFMCommunicate request_size=4 [09:35:53]MH_SAM_APDU [09:35:53]CAPDU: 80 11 00 00 [09:35:53]Write to MH i2c: E2 08 00 95 80 80 11 00 00 00 00 00 00 8F [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 17 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 17 00 95 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [09:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:35:53]wFMCommunicate OK [09:35:53]CreateOFDProtocolMessage done [09:35:53]OFDSenderStorePacket 30835 [09:35:53]StoreOFDPacket docnum=30835 [09:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 65 07 01 35 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 01 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 78 00 00 35 04 06 00 BC B2 FF 22 BA EE 17 ED 53 E7 40 B5 CD 13 [09:35:53]CheckFolder [09:35:53]dirname=/storage/ofd_packets [09:35:53]CheckFolder done [09:35:53]ProducePacketName [09:35:53]name=ofd_packets/00030835 [09:35:53]NVStorageSaveData ofd_packets/00030835 [09:35:53]File name is /storage/ofd_packets/00030835 [09:35:53]Write 301 bytes [09:35:53]NVStorageSaveData done [09:35:53]OFDSenderStorePacket done [09:35:53]KKMCreateOFDPacket done [09:35:53]NVStorageSaveData kkm_last_timestamp [09:35:53]File name is /storage/kkm_last_timestamp [09:35:53]Write 4 bytes [09:35:53]NVStorageSaveData done [09:35:53]ExternCall_PrintAddStr [09:35:53]wPrintStart [09:35:53]Write to MH i2c: 01 00 00 96 80 16 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 96 80 00 00 00 00 00 FF 0F 2B [09:35:53]RasterBufferAndPrint [09:35:53]line Счет N : (1)343254 [09:35:53]line ИНН: 02508201610067 [09:35:53]line Контрольно-Кассовый Чек [09:35:53]line ПРОДАЖА [09:35:53]line ТРК (МРК, ГНК) : 63 [09:35:53]line Товар: 2710124130 [09:35:53]line Аи-92-К-2 [09:35:53]line 5.980 * 66.90 [09:35:53]line = 400.06 [09:35:53]line НДС 12% НСП 1% [09:35:53]line > о реализуемом товаре [09:35:53]line ОКРУГЛЕНИЕ: -0.06 [09:35:53]line ИТОГО: 400.00 [09:35:53]line Внесено: 400.00 [09:35:53]line СДАЧА: 0.00 [09:35:53]line НСП 1% : 3.54 [09:35:53]line НДС 12% : 42.48 [09:35:53]line Наличными: 400.00 [09:35:53]line Безнал.: 0.00 [09:35:53]line Место: АЗС № 78 "Партнер Нефть" [09:35:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:35:53]line СНО: Общий режим [09:35:53]line Чек 68 22.10.2024 09:36 [09:35:53]line Смена: 116 ФФД: 1.0 [09:35:53]line ЗНМ: 0300000137 [09:35:53]line РНМ: 0000000000186857 [09:35:53]line Версия ККМ: v1.0 [09:35:53]line ФМ: 0000000002094219 [09:35:53]line ФД: 30835 [09:35:53]line ФПД: 207476970666734 [09:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30835&fm=207476970666734&tin=02508201610067®Number=0000000000186857&sum=40000 [09:35:53]written 0, free lines is 4095 [09:35:53]OFD Sender: Processing packet 30835 [packets to send 10, broken 9] [09:35:53]ProducePacketName [09:35:53]name=ofd_packets/00030835 [09:35:53]OFD Sender: To server: pG, [09:35:53]CommunicateWithHost lk.salyk.kg:30040 [09:35:53]ConnectInit lk.salyk.kg [09:35:53]Connected sock=9 [09:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 65 07 01 35 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 01 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 78 00 00 35 04 06 00 BC B2 FF 22 BA EE 17 ED 53 E7 40 B5 CD 13 [09:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF A3 47 00 05 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 78 00 00 F4 03 04 00 7F 1C 17 67 B6 04 01 00 00 FC 6C 77 61 B2 E4 E3 77 [09:35:53]CommunicateWithHost err = 0 [09:35:53]CheckOFDResponse [09:35:53]1017 (14) - 77093643461234 [09:35:53]1041 (16) - 0000000002094219 [09:35:53]1040 (4) - 30835 [09:35:53]1012 (4) - 22.10.2024 03:31 [09:35:53]1206 (1) - 0 [09:35:53]OFD Sender: Remove packet 30835 [09:35:53]ProducePacketName [09:35:53]name=ofd_packets/00030835 [09:35:53]NVStorageDeleteData [09:35:53]Write to MH i2c: 01 00 00 C1 80 41 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 C1 80 00 00 00 00 00 FA 0C 4E [09:35:53]RasterBufferAndPrint [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]written 0, free lines is 3334 [09:35:54]MH_Cut [09:35:54]Write to MH i2c: D1 01 00 C8 80 01 1A [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: D1 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: D1 01 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: D1 01 00 C8 80 00 19 [09:35:54]Write to MH i2c: 01 00 00 C9 80 49 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]OFD Sender: No OFD packet to send [09:35:54]*** Cut start [09:35:54]*** Partial cut [09:35:54]*** CUTSNS_PIN = 1 [09:35:54]*** CUTSNS_PIN = 0 [09:35:54]*** Brake cut motor [09:35:55]Read from MH i2c: 01 [09:35:55]MH_I2C_Read... [09:35:55]*** Stop cut motor [09:35:55]*** Cut end [09:35:55]Read from MH i2c: 01 07 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: 01 07 00 C9 80 00 00 00 00 00 FF 0F 5E [09:35:55]process_action close_receipt done [09:35:55]requested_data is exist [09:35:55]produce_requested_data [09:35:55]requested_item fm.sn is exist - process it [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 11 00 00 [09:35:55]Write to MH i2c: E2 08 00 CA 80 80 11 00 00 00 00 00 00 C4 [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 17 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 17 00 CA 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [09:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:35:55]wFMCommunicate OK [09:35:55]requested_item fd.num is exist - process it [09:35:55]SAM_PROTO_GetFieldsCounters [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 13 00 00 [09:35:55]Write to MH i2c: E2 08 00 CB 80 80 13 00 00 00 00 00 00 C7 [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 62 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 62 00 CB 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 78 00 00 0E 04 04 00 74 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 18 [09:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 78 00 00 0E 04 04 00 74 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 [09:35:55]wFMCommunicate OK [09:35:55]SAM_PROTO_GetFieldsCounters done [09:35:55]requested_item shift.num is exist - process it [09:35:55]requested_item shift.opened is exist - process it [09:35:55]req_shift_opened [09:35:55]FM_GetShiftState [09:35:55]SAM_PROTO_GetShiftState [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 13 01 00 [09:35:55]Write to MH i2c: E2 08 00 CC 80 80 13 01 00 00 00 00 00 C9 [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 0E 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 0E 00 CC 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A3 [09:35:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:35:55]wFMCommunicate OK [09:35:55]SAM_PROTO_GetShiftState done [09:35:55]FM_GetShiftState done [09:35:55]req_shift_opened done [09:35:55]requested_item shift.open_date is exist - process it [09:35:55]req_shift_open_date [09:35:55]req_shift_open_date done [09:35:55]produce_requested_data done [09:35:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30835,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:35:55]process_action_free close_receipt [09:35:55]json_value_free [09:35:55]json_value_free done [09:35:55]process_json_proto returns [09:35:55]Send response to host [09:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30835,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:35:55]free response buf [09:35:55]execute_script done [09:35:55]execute_script returns [09:35:55]free content buf [09:35:55]Sock 10.Close socket [09:35:55]Sock 10.Thread stoped [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:48]accept exits with 7 [09:37:48]New connection [09:37:48]New thread 3067489636 created [09:37:48]Thread 3067346276 joined [09:37:48]Waiting for new connection... [09:37:48] Sock 7.Parse request [09:37:48]Sock 7.Check first char [09:37:48]Sock 7.First char is OK [09:37:48]request: POST /json_proto HTTP/1.0 [09:37:48]Method: POST [09:37:48]URL: /json_proto [09:37:48]Method is POST - this is cgi request [09:37:48]url: /json_proto [09:37:48]query_string will be loaded in cgi processing [09:37:48]execute_cgi json_proto POST (null) [09:37:48]execute_cgi path=json_proto method=POST [09:37:48]POST find Content-Length [09:37:48]Host: 172.17.51.3:8080 [09:37:48]Content-Length: 677 [09:37:48]Content-Type: application/json [09:37:48] [09:37:48]POST finish read [09:37:48]Found Content-Length = 677 [09:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:48]execute_script... [09:37: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)343255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:48]POST & json_proto [09:37:48]process_json_proto [09:37:48]json parsed OK: [09:37:48]protocol is kg_v1.0 [09:37:48]action value=close_receipt [09:37:48]process_action close_receipt [09:37:48]cmd_close_receipt [09:37:48]MH_GetDate [09:37:48]Write to MH i2c: F0 00 00 CD 80 3C [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: F0 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: F0 09 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: F0 09 00 CD 80 00 76 72 17 67 04 C1 95 66 6B [09:37:48]GetLastDocTimeStamp 1729589761 [09:37:48]current date 1729589878 [09:37:48]FM_GetShiftState [09:37:48]SAM_PROTO_GetShiftState [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 01 00 [09:37:48]Write to MH i2c: E2 08 00 CE 80 80 13 01 00 00 00 00 00 CB [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 CE 80 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A5 [09:37:48]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]opened in 1729557342 [09:37:48]opened+sec_in_day 1729643742 [09:37:48]quantity*price = 30038 [09:37:48]sum+1 = 30039 [09:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 69 22.10.2024 09:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30836 ФПД: 39198337364768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093758&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30836&fm=39198337364768&tin=02508201610067®Number=0000000000186857&sum=30000 [09:37:49]StoreToDocumentArchive [09:37:49]shift 116 fd 30836 [09:37:49]save to /storage/0116/doc_00030836 [09:37:49]save last doc name /storage/0116/doc_00030836 to /storage/kkm_last_doc_name [09:37:49]save OK [09:37:49]Clear old archive folders... [09:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:49]tlvbuf is 01FD9E20 [09:37:49]SAM_PROTO_ClearQueue [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 09 00 00 [09:37:49]Write to MH i2c: E2 08 00 DB 80 80 09 00 00 00 00 00 00 CD [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 DB 80 00 90 00 CF [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]SAM_PROTO_ClearQueue done [09:37:49]KKMCreateOFDPacket [09:37:49]OFDProtocolAddRootSTLVToBuf [09:37:49]FM_MakeSignedData [09:37:49]FM_MakeSignedData [09:37:49]SAM_PROTO_SignData [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 0D 01 02 [09:37:49]Write to MH i2c: E2 08 00 DC 80 80 0D 01 02 00 00 00 00 D5 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 DC 80 00 90 00 D0 [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]wFMCommunicate request_size=255 [09:37:49]MH_SAM_APDU [09:37: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 78 00 00 35 04 06 00 23 [09:37:49]Write to MH i2c: E2 02 01 DD 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 78 00 00 35 04 06 00 23 00 00 88 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 DD 80 00 90 00 D1 [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]wFMCommunicate request_size=10 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 0D 02 02 05 A6 92 F9 73 20 [09:37:50]Write to MH i2c: E2 0D 00 DE 80 80 0D 02 02 05 00 A6 92 F9 73 20 00 00 A6 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 03 00 DE 80 00 90 00 D2 [09:37:50]RAPDU: 90 00 [09:37:50]wFMCommunicate OK [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 0D 03 02 [09:37:50]Write to MH i2c: E2 08 00 DF 80 80 0D 03 02 00 00 00 00 DA [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0B 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0B 00 DF 80 00 F9 AB 0D B9 45 14 12 0B 90 00 BB [09:37:50]RAPDU: F9 AB 0D B9 45 14 12 0B 90 00 [09:37:50]wFMCommunicate OK [09:37:50]SAM_PROTO_SignData done [09:37:50]FM_MakeSignedData done [09:37:50]CreateOFDProtocolMessage [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 11 00 00 [09:37:50]Write to MH i2c: E2 08 00 E0 80 80 11 00 00 00 00 00 00 DA [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 17 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 17 00 E0 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [09:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:50]wFMCommunicate OK [09:37:50]CreateOFDProtocolMessage done [09:37:50]OFDSenderStorePacket 30836 [09:37:50]StoreOFDPacket docnum=30836 [09:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A1 7F 07 01 B6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 78 00 00 35 04 06 00 23 A6 92 F9 73 20 F9 AB 0D B9 45 14 12 0B [09:37:50]CheckFolder [09:37:50]dirname=/storage/ofd_packets [09:37:50]CheckFolder done [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00030836 [09:37:50]NVStorageSaveData ofd_packets/00030836 [09:37:50]File name is /storage/ofd_packets/00030836 [09:37:50]Write 301 bytes [09:37:50]NVStorageSaveData done [09:37:50]OFDSenderStorePacket done [09:37:50]KKMCreateOFDPacket done [09:37:50]NVStorageSaveData kkm_last_timestamp [09:37:50]File name is /storage/kkm_last_timestamp [09:37:50]Write 4 bytes [09:37:50]NVStorageSaveData done [09:37:50]ExternCall_PrintAddStr [09:37:50]wPrintStart [09:37:50]Write to MH i2c: 01 00 00 E1 80 61 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 E1 80 00 00 00 00 00 FF 0F 76 [09:37:50]RasterBufferAndPrint [09:37:50]line Счет N : (1)343255 [09:37:50]line ИНН: 02508201610067 [09:37:50]line Контрольно-Кассовый Чек [09:37:50]line ПРОДАЖА [09:37:50]line ТРК (МРК, ГНК) : 63 [09:37:50]line Товар: 2710124130 [09:37:50]line Аи-92-К-2 [09:37:50]line 4.490 * 66.90 [09:37:50]line = 300.38 [09:37:50]line НДС 12% НСП 1% [09:37:50]line > о реализуемом товаре [09:37:50]line ОКРУГЛЕНИЕ: -0.38 [09:37:50]line ИТОГО: 300.00 [09:37:50]line Внесено: 300.00 [09:37:50]line СДАЧА: 0.00 [09:37:50]line НСП 1% : 2.66 [09:37:50]line НДС 12% : 31.90 [09:37:50]line Наличными: 300.00 [09:37:50]line Безнал.: 0.00 [09:37:50]line Место: АЗС № 78 "Партнер Нефть" [09:37:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:37:50]line СНО: Общий режим [09:37:50]line Чек 69 22.10.2024 09:37 [09:37:50]line Смена: 116 ФФД: 1.0 [09:37:50]line ЗНМ: 0300000137 [09:37:50]line РНМ: 0000000000186857 [09:37:50]line Версия ККМ: v1.0 [09:37:50]line ФМ: 0000000002094219 [09:37:50]line ФД: 30836 [09:37:50]line ФПД: 39198337364768 [09:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093758&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30836&fm=39198337364768&tin=02508201610067®Number=0000000000186857&sum=30000 [09:37:50]OFD Sender: Processing packet 30836 [packets to send 10, broken 9] [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00030836 [09:37:50]OFD Sender: To server: pG, [09:37:50]CommunicateWithHost lk.salyk.kg:30040 [09:37:50]ConnectInit lk.salyk.kg [09:37:50]written 0, free lines is 4095 [09:37:50]Connected sock=10 [09:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A1 7F 07 01 B6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 78 00 00 35 04 06 00 23 A6 92 F9 73 20 F9 AB 0D B9 45 14 12 0B [09:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 77 8E 47 00 2A A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 78 00 00 F4 03 04 00 F4 1C 17 67 B6 04 01 00 00 B8 BC 14 6C 6C 6B 29 BB [09:37:50]CommunicateWithHost err = 0 [09:37:50]CheckOFDResponse [09:37:50]1017 (14) - 77093643461234 [09:37:50]1041 (16) - 0000000002094219 [09:37:50]1040 (4) - 30836 [09:37:50]1012 (4) - 22.10.2024 03:33 [09:37:50]1206 (1) - 0 [09:37:50]OFD Sender: Remove packet 30836 [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00030836 [09:37:50]NVStorageDeleteData [09:37:51]Write to MH i2c: 01 00 00 0C 81 8D [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 0C 81 00 00 00 00 00 F5 0C 95 [09:37:51]RasterBufferAndPrint [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]line [09:37:51]written 0, free lines is 3323 [09:37:51]MH_Cut [09:37:51]Write to MH i2c: D1 01 00 13 81 01 66 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: D1 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: D1 01 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: D1 01 00 13 81 00 65 [09:37:51]Write to MH i2c: 01 00 00 14 81 95 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]OFD Sender: No OFD packet to send [09:37:51]*** Cut start [09:37:51]*** Partial cut [09:37:51]*** CUTSNS_PIN = 1 [09:37:51]*** CUTSNS_PIN = 0 [09:37:52]*** Brake cut motor [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]*** Stop cut motor [09:37:52]*** Cut end [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 14 81 00 00 00 00 00 FF 0F AA [09:37:52]process_action close_receipt done [09:37:52]requested_data is exist [09:37:52]produce_requested_data [09:37:52]requested_item fm.sn is exist - process it [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 11 00 00 [09:37:52]Write to MH i2c: E2 08 00 15 81 80 11 00 00 00 00 00 00 10 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 15 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [09:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:52]wFMCommunicate OK [09:37:52]requested_item fd.num is exist - process it [09:37:52]SAM_PROTO_GetFieldsCounters [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 13 00 00 [09:37:52]Write to MH i2c: E2 08 00 16 81 80 13 00 00 00 00 00 00 13 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 62 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 62 00 16 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 78 00 00 0E 04 04 00 74 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 68 [09:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 78 00 00 0E 04 04 00 74 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 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_GetFieldsCounters done [09:37:52]requested_item shift.num is exist - process it [09:37:52]requested_item shift.opened is exist - process it [09:37:52]req_shift_opened [09:37:52]FM_GetShiftState [09:37:52]SAM_PROTO_GetShiftState [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 13 01 00 [09:37:52]Write to MH i2c: E2 08 00 17 81 80 13 01 00 00 00 00 00 15 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 17 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EF [09:37:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_GetShiftState done [09:37:52]FM_GetShiftState done [09:37:52]req_shift_opened done [09:37:52]requested_item shift.open_date is exist - process it [09:37:52]req_shift_open_date [09:37:52]req_shift_open_date done [09:37:52]produce_requested_data done [09:37:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30836,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:37:52]process_action_free close_receipt [09:37:52]json_value_free [09:37:52]json_value_free done [09:37:52]process_json_proto returns [09:37:52]Send response to host [09:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30836,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:37:52]free response buf [09:37:52]execute_script done [09:37:52]execute_script returns [09:37:52]free content buf [09:37:52]Sock 7.Close socket [09:37:52]Sock 7.Thread stoped [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:40]accept exits with 9 [09:38:40]New connection [09:38:40]New thread 3067346276 created [09:38:40]Thread 3067489636 joined [09:38:40]Waiting for new connection... [09:38:40] Sock 9.Parse request [09:38:40]Sock 9.Check first char [09:38:40]Sock 9.First char is OK [09:38:40]request: POST /json_proto HTTP/1.0 [09:38:40]Method: POST [09:38:40]URL: /json_proto [09:38:40]Method is POST - this is cgi request [09:38:40]url: /json_proto [09:38:40]query_string will be loaded in cgi processing [09:38:40]execute_cgi json_proto POST (null) [09:38:40]execute_cgi path=json_proto method=POST [09:38:40]POST find Content-Length [09:38:40]Host: 172.17.51.3:8080 [09:38:40]Content-Length: 677 [09:38:40]Content-Type: application/json [09:38:40] [09:38:40]POST finish read [09:38:40]Found Content-Length = 677 [09:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:40]execute_script... [09:38: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)343256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:40]POST & json_proto [09:38:40]process_json_proto [09:38:40]json parsed OK: [09:38:40]protocol is kg_v1.0 [09:38:40]action value=close_receipt [09:38:40]process_action close_receipt [09:38:40]cmd_close_receipt [09:38:40]MH_GetDate [09:38:40]Write to MH i2c: F0 00 00 18 81 88 [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: F0 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: F0 09 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: F0 09 00 18 81 00 A9 72 17 67 04 C1 95 66 EA [09:38:40]GetLastDocTimeStamp 1729589878 [09:38:40]current date 1729589929 [09:38:40]FM_GetShiftState [09:38:40]SAM_PROTO_GetShiftState [09:38:40]wFMCommunicate request_size=4 [09:38:40]MH_SAM_APDU [09:38:40]CAPDU: 80 13 01 00 [09:38:40]Write to MH i2c: E2 08 00 19 81 80 13 01 00 00 00 00 00 17 [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:40]Read from MH i2c: E2 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 0E 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 0E 00 19 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F1 [09:38:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:38:40]wFMCommunicate OK [09:38:40]SAM_PROTO_GetShiftState done [09:38:40]FM_GetShiftState done [09:38:40]opened in 1729557342 [09:38:40]opened+sec_in_day 1729643742 [09:38:40]quantity*price = 50041 [09:38:40]sum+1 = 50042 [09:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 70 22.10.2024 09:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30837 ФПД: 85384117102159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30837&fm=85384117102159&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:41]StoreToDocumentArchive [09:38:41]shift 116 fd 30837 [09:38:41]save to /storage/0116/doc_00030837 [09:38:41]save last doc name /storage/0116/doc_00030837 to /storage/kkm_last_doc_name [09:38:41]save OK [09:38:41]Clear old archive folders... [09:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:41]tlvbuf is 01DF6650 [09:38:41]SAM_PROTO_ClearQueue [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 09 00 00 [09:38:41]Write to MH i2c: E2 08 00 26 81 80 09 00 00 00 00 00 00 19 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 26 81 00 90 00 1B [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]SAM_PROTO_ClearQueue done [09:38:41]KKMCreateOFDPacket [09:38:41]OFDProtocolAddRootSTLVToBuf [09:38:41]FM_MakeSignedData [09:38:41]FM_MakeSignedData [09:38:41]SAM_PROTO_SignData [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 01 02 [09:38:41]Write to MH i2c: E2 08 00 27 81 80 0D 01 02 00 00 00 00 21 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 27 81 00 90 00 1C [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]wFMCommunicate request_size=255 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 78 00 00 35 04 06 00 4D [09:38:41]Write to MH i2c: E2 02 01 28 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 78 00 00 35 04 06 00 4D 00 00 3F [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]OFD Sender: No OFD packet to send [09:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 28 81 00 90 00 1D [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]wFMCommunicate request_size=10 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 02 02 05 A8 09 F8 26 4F [09:38:41]Write to MH i2c: E2 0D 00 29 81 80 0D 02 02 05 00 A8 09 F8 26 4F 00 00 4C [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 29 81 00 90 00 1E [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 03 02 [09:38:41]Write to MH i2c: E2 08 00 2A 81 80 0D 03 02 00 00 00 00 26 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0B 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0B 00 2A 81 00 1E A2 45 D5 82 5F 83 EB 90 00 50 [09:38:41]RAPDU: 1E A2 45 D5 82 5F 83 EB 90 00 [09:38:41]wFMCommunicate OK [09:38:41]SAM_PROTO_SignData done [09:38:41]FM_MakeSignedData done [09:38:41]CreateOFDProtocolMessage [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 2B 81 80 11 00 00 00 00 00 00 26 [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 2B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [09:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:38:41]wFMCommunicate OK [09:38:41]CreateOFDProtocolMessage done [09:38:41]OFDSenderStorePacket 30837 [09:38:41]StoreOFDPacket docnum=30837 [09:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 16 07 01 31 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 78 00 00 35 04 06 00 4D A8 09 F8 26 4F 1E A2 45 D5 82 5F 83 EB [09:38:41]CheckFolder [09:38:41]dirname=/storage/ofd_packets [09:38:41]CheckFolder done [09:38:41]ProducePacketName [09:38:41]name=ofd_packets/00030837 [09:38:41]NVStorageSaveData ofd_packets/00030837 [09:38:41]File name is /storage/ofd_packets/00030837 [09:38:41]Write 301 bytes [09:38:41]NVStorageSaveData done [09:38:41]OFDSenderStorePacket done [09:38:41]KKMCreateOFDPacket done [09:38:41]NVStorageSaveData kkm_last_timestamp [09:38:41]File name is /storage/kkm_last_timestamp [09:38:41]Write 4 bytes [09:38:41]NVStorageSaveData done [09:38:41]ExternCall_PrintAddStr [09:38:41]wPrintStart [09:38:41]Write to MH i2c: 01 00 00 2C 81 AD [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 [09:38:41]MH_I2C_Read... [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 2C 81 00 00 00 00 00 FF 0F C2 [09:38:41]RasterBufferAndPrint [09:38:41]line Счет N : (1)343256 [09:38:41]line ИНН: 02508201610067 [09:38:41]line Контрольно-Кассовый Чек [09:38:41]line ПРОДАЖА [09:38:41]line ТРК (МРК, ГНК) : 43 [09:38:41]line Товар: 2710124130 [09:38:41]line Аи-92-К-2 [09:38:41]line 7.480 * 66.90 [09:38:41]line = 500.41 [09:38:41]line НДС 12% НСП 1% [09:38:41]line > о реализуемом товаре [09:38:41]line ОКРУГЛЕНИЕ: -0.41 [09:38:41]line ИТОГО: 500.00 [09:38:41]line Внесено: 500.00 [09:38:41]line СДАЧА: 0.00 [09:38:41]line НСП 1% : 4.43 [09:38:41]line НДС 12% : 53.14 [09:38:41]line Наличными: 500.00 [09:38:41]line Безнал.: 0.00 [09:38:41]line Место: АЗС № 78 "Партнер Нефть" [09:38:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:38:41]line СНО: Общий режим [09:38:41]line Чек 70 22.10.2024 09:38 [09:38:41]line Смена: 116 ФФД: 1.0 [09:38:41]line ЗНМ: 0300000137 [09:38:41]line РНМ: 0000000000186857 [09:38:41]line Версия ККМ: v1.0 [09:38:41]line ФМ: 0000000002094219 [09:38:41]line ФД: 30837 [09:38:41]line ФПД: 85384117102159 [09:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30837&fm=85384117102159&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:42]OFD Sender: Processing packet 30837 [packets to send 10, broken 9] [09:38:42]ProducePacketName [09:38:42]name=ofd_packets/00030837 [09:38:42]OFD Sender: To server: pG, [09:38:42]CommunicateWithHost lk.salyk.kg:30040 [09:38:42]ConnectInit lk.salyk.kg [09:38:42]written 0, free lines is 4095 [09:38:42]Connected sock=10 [09:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 16 07 01 31 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 72 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 78 00 00 35 04 06 00 4D A8 09 F8 26 4F 1E A2 45 D5 82 5F 83 EB [09:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B C1 47 00 33 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 32 30 39 34 32 31 39 10 04 04 00 75 78 00 00 F4 03 04 00 27 1D 17 67 B6 04 01 00 00 31 32 D9 57 5E F4 EB F9 [09:38:42]CommunicateWithHost err = 0 [09:38:42]CheckOFDResponse [09:38:42]1017 (14) - 77093643461234 [09:38:42]1041 (16) - 0000000002094219 [09:38:42]1040 (4) - 30837 [09:38:42]1012 (4) - 22.10.2024 03:33 [09:38:42]1206 (1) - 0 [09:38:42]OFD Sender: Remove packet 30837 [09:38:42]ProducePacketName [09:38:42]name=ofd_packets/00030837 [09:38:42]NVStorageDeleteData [09:38:42]Write to MH i2c: 01 00 00 57 81 D8 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 07 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 07 00 57 81 00 00 00 00 00 EC 0C D7 [09:38:42]RasterBufferAndPrint [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]written 0, free lines is 3317 [09:38:42]MH_Cut [09:38:42]Write to MH i2c: D1 01 00 5E 81 01 B1 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 01 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 01 00 5E 81 00 B0 [09:38:42]Write to MH i2c: 01 00 00 5F 81 E0 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]OFD Sender: No OFD packet to send [09:38:43]*** Cut start [09:38:43]*** Partial cut [09:38:43]*** CUTSNS_PIN = 1 [09:38:43]*** CUTSNS_PIN = 0 [09:38:43]*** Brake cut motor [09:38:43]Read from MH i2c: 01 [09:38:43]MH_I2C_Read... [09:38:43]*** Stop cut motor [09:38:43]*** Cut end [09:38:43]Read from MH i2c: 01 07 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 5F 81 00 00 00 00 00 FF 0F F5 [09:38:43]process_action close_receipt done [09:38:43]requested_data is exist [09:38:43]produce_requested_data [09:38:43]requested_item fm.sn is exist - process it [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 11 00 00 [09:38:43]Write to MH i2c: E2 08 00 60 81 80 11 00 00 00 00 00 00 5B [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 17 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 17 00 60 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [09:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:38:43]wFMCommunicate OK [09:38:43]requested_item fd.num is exist - process it [09:38:43]SAM_PROTO_GetFieldsCounters [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 13 00 00 [09:38:43]Write to MH i2c: E2 08 00 61 81 80 13 00 00 00 00 00 00 5E [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 62 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 62 00 61 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 78 00 00 0E 04 04 00 74 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 B7 [09:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 78 00 00 0E 04 04 00 74 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 [09:38:44]wFMCommunicate OK [09:38:44]SAM_PROTO_GetFieldsCounters done [09:38:44]requested_item shift.num is exist - process it [09:38:44]requested_item shift.opened is exist - process it [09:38:44]req_shift_opened [09:38:44]FM_GetShiftState [09:38:44]SAM_PROTO_GetShiftState [09:38:44]wFMCommunicate request_size=4 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 13 01 00 [09:38:44]Write to MH i2c: E2 08 00 62 81 80 13 01 00 00 00 00 00 60 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0E 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0E 00 62 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3A [09:38:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:38:44]wFMCommunicate OK [09:38:44]SAM_PROTO_GetShiftState done [09:38:44]FM_GetShiftState done [09:38:44]req_shift_opened done [09:38:44]requested_item shift.open_date is exist - process it [09:38:44]req_shift_open_date [09:38:44]req_shift_open_date done [09:38:44]produce_requested_data done [09:38:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30837,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:38:44]process_action_free close_receipt [09:38:44]json_value_free [09:38:44]json_value_free done [09:38:44]process_json_proto returns [09:38:44]Send response to host [09:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30837,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:38:44]free response buf [09:38:44]execute_script done [09:38:44]execute_script returns [09:38:44]free content buf [09:38:44]Sock 9.Close socket [09:38:44]Sock 9.Thread stoped [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:13]accept exits with 7 [09:41:13]New connection [09:41:13]New thread 3067489636 created [09:41:13]Thread 3067346276 joined [09:41:13]Waiting for new connection... [09:41:13] Sock 7.Parse request [09:41:13]Sock 7.Check first char [09:41:13]Sock 7.First char is OK [09:41:13]request: POST /json_proto HTTP/1.0 [09:41:13]Method: POST [09:41:13]URL: /json_proto [09:41:13]Method is POST - this is cgi request [09:41:13]url: /json_proto [09:41:13]query_string will be loaded in cgi processing [09:41:13]execute_cgi json_proto POST (null) [09:41:13]execute_cgi path=json_proto method=POST [09:41:13]POST find Content-Length [09:41:13]Host: 172.17.51.3:8080 [09:41:13]Content-Length: 682 [09:41:13]Content-Type: application/json [09:41:13] [09:41:13]POST finish read [09:41:13]Found Content-Length = 682 [09:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:13]execute_script... [09:41: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)343257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:13]POST & json_proto [09:41:13]process_json_proto [09:41:13]json parsed OK: [09:41:13]protocol is kg_v1.0 [09:41:13]action value=close_receipt [09:41:13]process_action close_receipt [09:41:13]cmd_close_receipt [09:41:13]MH_GetDate [09:41:13]Write to MH i2c: F0 00 00 63 81 D3 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: F0 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: F0 09 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: F0 09 00 63 81 00 43 73 17 67 04 C1 95 66 D0 [09:41:13]GetLastDocTimeStamp 1729589929 [09:41:13]current date 1729590083 [09:41:13]FM_GetShiftState [09:41:13]SAM_PROTO_GetShiftState [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 13 01 00 [09:41:13]Write to MH i2c: E2 08 00 64 81 80 13 01 00 00 00 00 00 62 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0E 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0E 00 64 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3C [09:41:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_GetShiftState done [09:41:13]FM_GetShiftState done [09:41:13]opened in 1729557342 [09:41:13]opened+sec_in_day 1729643742 [09:41:13]quantity*price = 100015 [09:41:13]sum+1 = 100017 [09:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 71 22.10.2024 09:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30838 ФПД: 99154502822745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094123&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30838&fm=99154502822745&tin=02508201610067®Number=0000000000186857&sum=100000 [09:41:14]StoreToDocumentArchive [09:41:14]shift 116 fd 30838 [09:41:14]save to /storage/0116/doc_00030838 [09:41:14]save last doc name /storage/0116/doc_00030838 to /storage/kkm_last_doc_name [09:41:14]save OK [09:41:14]Clear old archive folders... [09:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:14]tlvbuf is 01ED9120 [09:41:14]SAM_PROTO_ClearQueue [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 09 00 00 [09:41:14]Write to MH i2c: E2 08 00 71 81 80 09 00 00 00 00 00 00 64 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 71 81 00 90 00 66 [09:41:14]RAPDU: 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_ClearQueue done [09:41:14]KKMCreateOFDPacket [09:41:14]OFDProtocolAddRootSTLVToBuf [09:41:14]FM_MakeSignedData [09:41:14]FM_MakeSignedData [09:41:14]SAM_PROTO_SignData [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 0D 01 02 [09:41:14]Write to MH i2c: E2 08 00 72 81 80 0D 01 02 00 00 00 00 6C [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 72 81 00 90 00 67 [09:41:14]RAPDU: 90 00 [09:41:14]wFMCommunicate OK [09:41:14]wFMCommunicate request_size=255 [09:41:14]MH_SAM_APDU [09:41: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 43 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 78 00 00 35 04 06 00 5A [09:41:14]Write to MH i2c: E2 02 01 73 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 43 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 78 00 00 35 04 06 00 5A 00 00 2E [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 03 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 03 00 73 81 00 90 00 68 [09:41:15]RAPDU: 90 00 [09:41:15]wFMCommunicate OK [09:41:15]wFMCommunicate request_size=10 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 0D 02 02 05 2E 34 EB 2B 59 [09:41:15]Write to MH i2c: E2 0D 00 74 81 80 0D 02 02 05 00 2E 34 EB 2B 59 00 00 4A [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 03 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 03 00 74 81 00 90 00 69 [09:41:15]RAPDU: 90 00 [09:41:15]wFMCommunicate OK [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 0D 03 02 [09:41:15]Write to MH i2c: E2 08 00 75 81 80 0D 03 02 00 00 00 00 71 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0B 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0B 00 75 81 00 B0 01 B9 5C 65 2D 54 56 90 00 74 [09:41:15]RAPDU: B0 01 B9 5C 65 2D 54 56 90 00 [09:41:15]wFMCommunicate OK [09:41:15]SAM_PROTO_SignData done [09:41:15]FM_MakeSignedData done [09:41:15]CreateOFDProtocolMessage [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 11 00 00 [09:41:15]Write to MH i2c: E2 08 00 76 81 80 11 00 00 00 00 00 00 71 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 76 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [09:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:41:15]wFMCommunicate OK [09:41:15]CreateOFDProtocolMessage done [09:41:15]OFDSenderStorePacket 30838 [09:41:15]StoreOFDPacket docnum=30838 [09:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 95 07 01 AF 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 43 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 78 00 00 35 04 06 00 5A 2E 34 EB 2B 59 B0 01 B9 5C 65 2D 54 56 [09:41:15]CheckFolder [09:41:15]dirname=/storage/ofd_packets [09:41:15]CheckFolder done [09:41:15]ProducePacketName [09:41:15]name=ofd_packets/00030838 [09:41:15]NVStorageSaveData ofd_packets/00030838 [09:41:15]File name is /storage/ofd_packets/00030838 [09:41:15]Write 301 bytes [09:41:15]NVStorageSaveData done [09:41:15]OFDSenderStorePacket done [09:41:15]KKMCreateOFDPacket done [09:41:15]NVStorageSaveData kkm_last_timestamp [09:41:15]File name is /storage/kkm_last_timestamp [09:41:15]Write 4 bytes [09:41:15]NVStorageSaveData done [09:41:15]ExternCall_PrintAddStr [09:41:15]wPrintStart [09:41:15]Write to MH i2c: 01 00 00 77 81 F8 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 77 81 00 00 00 00 00 FF 0F 0D [09:41:15]RasterBufferAndPrint [09:41:15]line Счет N : (1)343257 [09:41:15]line ИНН: 02508201610067 [09:41:15]line Контрольно-Кассовый Чек [09:41:15]line ПРОДАЖА [09:41:15]line ТРК (МРК, ГНК) : 53 [09:41:15]line Товар: 2710124130 [09:41:15]line Аи-92-К-2 [09:41:15]line 14.950 * 66.90 [09:41:15]line = 1000.16 [09:41:15]line НДС 12% НСП 1% [09:41:15]line > о реализуемом товаре [09:41:15]line ОКРУГЛЕНИЕ: -0.16 [09:41:15]line ИТОГО: 1000.00 [09:41:15]line Внесено: 1000.00 [09:41:15]line СДАЧА: 0.00 [09:41:15]line НСП 1% : 8.85 [09:41:15]line НДС 12% : 106.21 [09:41:15]line Наличными: 1000.00 [09:41:15]line Безнал.: 0.00 [09:41:15]line Место: АЗС № 78 "Партнер Нефть" [09:41:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:41:15]line СНО: Общий режим [09:41:15]line Чек 71 22.10.2024 09:41 [09:41:15]line Смена: 116 ФФД: 1.0 [09:41:15]line ЗНМ: 0300000137 [09:41:15]line РНМ: 0000000000186857 [09:41:15]line Версия ККМ: v1.0 [09:41:15]line ФМ: 0000000002094219 [09:41:15]line ФД: 30838 [09:41:15]line ФПД: 99154502822745 [09:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094123&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30838&fm=99154502822745&tin=02508201610067®Number=0000000000186857&sum=100000 [09:41:15]OFD Sender: Processing packet 30838 [packets to send 10, broken 9] [09:41:15]ProducePacketName [09:41:15]name=ofd_packets/00030838 [09:41:15]OFD Sender: To server: pG, [09:41:15]CommunicateWithHost lk.salyk.kg:30040 [09:41:15]ConnectInit lk.salyk.kg [09:41:15]written 0, free lines is 4095 [09:41:15]Connected sock=10 [09:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 95 07 01 AF 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 43 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 78 00 00 35 04 06 00 5A 2E 34 EB 2B 59 B0 01 B9 5C 65 2D 54 56 [09:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A6 ED 47 00 AF 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 78 00 00 F4 03 04 00 C1 1D 17 67 B6 04 01 00 00 84 98 B8 B3 A4 41 5D AC [09:41:15]CommunicateWithHost err = 0 [09:41:15]CheckOFDResponse [09:41:15]1017 (14) - 77093643461234 [09:41:15]1041 (16) - 0000000002094219 [09:41:15]1040 (4) - 30838 [09:41:15]1012 (4) - 22.10.2024 03:36 [09:41:15]1206 (1) - 0 [09:41:15]OFD Sender: Remove packet 30838 [09:41:15]ProducePacketName [09:41:15]name=ofd_packets/00030838 [09:41:15]NVStorageDeleteData [09:41:16]Write to MH i2c: 01 00 00 A2 81 23 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 A2 81 00 00 00 00 00 FD 0C 33 [09:41:16]RasterBufferAndPrint [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]written 0, free lines is 3331 [09:41:16]MH_Cut [09:41:16]Write to MH i2c: D1 01 00 A9 81 01 FC [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: D1 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: D1 01 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: D1 01 00 A9 81 00 FB [09:41:16]Write to MH i2c: 01 00 00 AA 81 2B [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]OFD Sender: No OFD packet to send [09:41:16]*** Cut start [09:41:16]*** Partial cut [09:41:16]*** CUTSNS_PIN = 1 [09:41:16]*** CUTSNS_PIN = 0 [09:41:17]*** Brake cut motor [09:41:17]Read from MH i2c: 01 [09:41:17]MH_I2C_Read... [09:41:17]*** Stop cut motor [09:41:17]*** Cut end [09:41:17]Read from MH i2c: 01 07 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: 01 07 00 AA 81 00 00 00 00 00 FF 0F 40 [09:41:17]process_action close_receipt done [09:41:17]requested_data is exist [09:41:17]produce_requested_data [09:41:17]requested_item fm.sn is exist - process it [09:41:17]wFMCommunicate request_size=4 [09:41:17]MH_SAM_APDU [09:41:17]CAPDU: 80 11 00 00 [09:41:17]Write to MH i2c: E2 08 00 AB 81 80 11 00 00 00 00 00 00 A6 [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:17]Read from MH i2c: E2 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 17 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 17 00 AB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [09:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:41:17]wFMCommunicate OK [09:41:17]requested_item fd.num is exist - process it [09:41:17]SAM_PROTO_GetFieldsCounters [09:41:17]wFMCommunicate request_size=4 [09:41:17]MH_SAM_APDU [09:41:17]CAPDU: 80 13 00 00 [09:41:17]Write to MH i2c: E2 08 00 AC 81 80 13 00 00 00 00 00 00 A9 [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:17]Read from MH i2c: E2 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 62 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 62 00 AC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 78 00 00 0E 04 04 00 74 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 06 [09:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 78 00 00 0E 04 04 00 74 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 [09:41:17]wFMCommunicate OK [09:41:17]SAM_PROTO_GetFieldsCounters done [09:41:17]requested_item shift.num is exist - process it [09:41:17]requested_item shift.opened is exist - process it [09:41:17]req_shift_opened [09:41:17]FM_GetShiftState [09:41:17]SAM_PROTO_GetShiftState [09:41:17]wFMCommunicate request_size=4 [09:41:17]MH_SAM_APDU [09:41:17]CAPDU: 80 13 01 00 [09:41:17]Write to MH i2c: E2 08 00 AD 81 80 13 01 00 00 00 00 00 AB [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:17]Read from MH i2c: E2 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 0E 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 0E 00 AD 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 85 [09:41:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:41:17]wFMCommunicate OK [09:41:17]SAM_PROTO_GetShiftState done [09:41:17]FM_GetShiftState done [09:41:17]req_shift_opened done [09:41:17]requested_item shift.open_date is exist - process it [09:41:17]req_shift_open_date [09:41:17]req_shift_open_date done [09:41:17]produce_requested_data done [09:41:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30838,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:41:17]process_action_free close_receipt [09:41:17]json_value_free [09:41:17]json_value_free done [09:41:17]process_json_proto returns [09:41:17]Send response to host [09:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30838,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:41:17]free response buf [09:41:17]execute_script done [09:41:17]execute_script returns [09:41:17]free content buf [09:41:17]Sock 7.Close socket [09:41:17]Sock 7.Thread stoped [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:27]accept exits with 9 [09:42:27]New connection [09:42:27]New thread 3067346276 created [09:42:27]Thread 3067489636 joined [09:42:27]Waiting for new connection... [09:42:27] Sock 9.Parse request [09:42:27]Sock 9.Check first char [09:42:27]Sock 9.First char is OK [09:42:27]request: POST /json_proto HTTP/1.0 [09:42:27]Method: POST [09:42:27]URL: /json_proto [09:42:27]Method is POST - this is cgi request [09:42:27]url: /json_proto [09:42:27]query_string will be loaded in cgi processing [09:42:27]execute_cgi json_proto POST (null) [09:42:27]execute_cgi path=json_proto method=POST [09:42:27]POST find Content-Length [09:42:27]Host: 172.17.51.3:8080 [09:42:27]Content-Length: 677 [09:42:27]Content-Type: application/json [09:42:27] [09:42:27]POST finish read [09:42:27]Found Content-Length = 677 [09:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:27]execute_script... [09:42: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)343258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:27]POST & json_proto [09:42:27]process_json_proto [09:42:27]json parsed OK: [09:42:27]protocol is kg_v1.0 [09:42:27]action value=close_receipt [09:42:27]process_action close_receipt [09:42:27]cmd_close_receipt [09:42:27]MH_GetDate [09:42:27]Write to MH i2c: F0 00 00 AE 81 1E [09:42:27]Write i2c OK [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: F0 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: F0 09 00 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: F0 09 00 AE 81 00 8C 73 17 67 04 C1 95 66 64 [09:42:27]GetLastDocTimeStamp 1729590083 [09:42:27]current date 1729590156 [09:42:27]FM_GetShiftState [09:42:27]SAM_PROTO_GetShiftState [09:42:27]wFMCommunicate request_size=4 [09:42:27]MH_SAM_APDU [09:42:27]CAPDU: 80 13 01 00 [09:42:27]Write to MH i2c: E2 08 00 AF 81 80 13 01 00 00 00 00 00 AD [09:42:27]Write i2c OK [09:42:27]MH_I2C_Read... [09:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:27]Read from MH i2c: E2 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 0E 00 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 0E 00 AF 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 87 [09:42:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:42:27]wFMCommunicate OK [09:42:27]SAM_PROTO_GetShiftState done [09:42:27]FM_GetShiftState done [09:42:27]opened in 1729557342 [09:42:27]opened+sec_in_day 1729643742 [09:42:27]quantity*price = 22010 [09:42:27]sum+1 = 22011 [09:42:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 72 22.10.2024 09:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30839 ФПД: 247466719101286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30839&fm=247466719101286&tin=02508201610067®Number=0000000000186857&sum=22000 [09:42:28]StoreToDocumentArchive [09:42:28]shift 116 fd 30839 [09:42:28]save to /storage/0116/doc_00030839 [09:42:28]save last doc name /storage/0116/doc_00030839 to /storage/kkm_last_doc_name [09:42:28]save OK [09:42:28]Clear old archive folders... [09:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:28]tlvbuf is 01DB8BA0 [09:42:28]SAM_PROTO_ClearQueue [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 09 00 00 [09:42:28]Write to MH i2c: E2 08 00 BC 81 80 09 00 00 00 00 00 00 AF [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 BC 81 00 90 00 B1 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]SAM_PROTO_ClearQueue done [09:42:28]KKMCreateOFDPacket [09:42:28]OFDProtocolAddRootSTLVToBuf [09:42:28]FM_MakeSignedData [09:42:28]FM_MakeSignedData [09:42:28]SAM_PROTO_SignData [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 0D 01 02 [09:42:28]Write to MH i2c: E2 08 00 BD 81 80 0D 01 02 00 00 00 00 B7 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 BD 81 00 90 00 B2 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]wFMCommunicate request_size=255 [09:42:28]MH_SAM_APDU [09:42: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 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8C 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 78 00 00 35 04 06 00 E1 [09:42:28]Write to MH i2c: E2 02 01 BE 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 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8C 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 78 00 00 35 04 06 00 E1 00 00 B4 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 BE 81 00 90 00 B3 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]wFMCommunicate request_size=10 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 0D 02 02 05 11 D5 E2 C1 66 [09:42:28]Write to MH i2c: E2 0D 00 BF 81 80 0D 02 02 05 00 11 D5 E2 C1 66 00 00 B3 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 BF 81 00 90 00 B4 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 0D 03 02 [09:42:28]Write to MH i2c: E2 08 00 C0 81 80 0D 03 02 00 00 00 00 BC [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0B 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0B 00 C0 81 00 E7 73 CE 60 86 D9 C6 F4 90 00 5E [09:42:28]RAPDU: E7 73 CE 60 86 D9 C6 F4 90 00 [09:42:28]wFMCommunicate OK [09:42:28]SAM_PROTO_SignData done [09:42:28]FM_MakeSignedData done [09:42:28]CreateOFDProtocolMessage [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 11 00 00 [09:42:28]Write to MH i2c: E2 08 00 C1 81 80 11 00 00 00 00 00 00 BC [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 17 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 17 00 C1 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [09:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:42:28]wFMCommunicate OK [09:42:28]CreateOFDProtocolMessage done [09:42:28]OFDSenderStorePacket 30839 [09:42:28]StoreOFDPacket docnum=30839 [09:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 03 D4 07 01 1E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8C 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 78 00 00 35 04 06 00 E1 11 D5 E2 C1 66 E7 73 CE 60 86 D9 C6 F4 [09:42:28]CheckFolder [09:42:28]dirname=/storage/ofd_packets [09:42:28]CheckFolder done [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00030839 [09:42:28]NVStorageSaveData ofd_packets/00030839 [09:42:28]File name is /storage/ofd_packets/00030839 [09:42:28]Write 301 bytes [09:42:28]NVStorageSaveData done [09:42:28]OFDSenderStorePacket done [09:42:28]KKMCreateOFDPacket done [09:42:28]NVStorageSaveData kkm_last_timestamp [09:42:28]File name is /storage/kkm_last_timestamp [09:42:28]Write 4 bytes [09:42:28]NVStorageSaveData done [09:42:28]ExternCall_PrintAddStr [09:42:28]wPrintStart [09:42:28]Write to MH i2c: 01 00 00 C2 81 43 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 07 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 07 00 C2 81 00 00 00 00 00 FF 0F 58 [09:42:28]RasterBufferAndPrint [09:42:28]line Счет N : (1)343258 [09:42:28]line ИНН: 02508201610067 [09:42:28]line Контрольно-Кассовый Чек [09:42:28]line ПРОДАЖА [09:42:28]line ТРК (МРК, ГНК) : 43 [09:42:28]line Товар: 2710124130 [09:42:28]line Аи-92-К-2 [09:42:28]line 3.290 * 66.90 [09:42:28]line = 220.10 [09:42:28]line НДС 12% НСП 1% [09:42:28]line > о реализуемом товаре [09:42:28]line ОКРУГЛЕНИЕ: -0.10 [09:42:28]line ИТОГО: 220.00 [09:42:28]line Внесено: 220.00 [09:42:28]line СДАЧА: 0.00 [09:42:28]line НСП 1% : 1.95 [09:42:28]line НДС 12% : 23.37 [09:42:28]line Наличными: 220.00 [09:42:28]line Безнал.: 0.00 [09:42:28]line Место: АЗС № 78 "Партнер Нефть" [09:42:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:42:28]line СНО: Общий режим [09:42:28]line Чек 72 22.10.2024 09:42 [09:42:28]line Смена: 116 ФФД: 1.0 [09:42:28]line ЗНМ: 0300000137 [09:42:28]line РНМ: 0000000000186857 [09:42:28]line Версия ККМ: v1.0 [09:42:28]line ФМ: 0000000002094219 [09:42:28]line ФД: 30839 [09:42:28]line ФПД: 247466719101286 [09:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30839&fm=247466719101286&tin=02508201610067®Number=0000000000186857&sum=22000 [09:42:29]OFD Sender: Processing packet 30839 [packets to send 10, broken 9] [09:42:29]ProducePacketName [09:42:29]name=ofd_packets/00030839 [09:42:29]OFD Sender: To server: pG, [09:42:29]CommunicateWithHost lk.salyk.kg:30040 [09:42:29]ConnectInit lk.salyk.kg [09:42:29]written 0, free lines is 4095 [09:42:29]Connected sock=10 [09:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 03 D4 07 01 1E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8C 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 78 00 00 35 04 06 00 E1 11 D5 E2 C1 66 E7 73 CE 60 86 D9 C6 F4 [09:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 82 60 47 00 A7 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 32 30 39 34 32 31 39 10 04 04 00 77 78 00 00 F4 03 04 00 0A 1E 17 67 B6 04 01 00 00 1F C5 AC 53 32 5A A2 E6 [09:42:29]CommunicateWithHost err = 0 [09:42:29]CheckOFDResponse [09:42:29]1017 (14) - 77093643461234 [09:42:29]1041 (16) - 0000000002094219 [09:42:29]1040 (4) - 30839 [09:42:29]1012 (4) - 22.10.2024 03:37 [09:42:29]1206 (1) - 0 [09:42:29]OFD Sender: Remove packet 30839 [09:42:29]ProducePacketName [09:42:29]name=ofd_packets/00030839 [09:42:29]NVStorageDeleteData [09:42:29]Write to MH i2c: 01 00 00 ED 81 6E [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 07 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: 01 07 00 ED 81 00 00 00 00 00 FE 0C 7F [09:42:29]RasterBufferAndPrint [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]written 0, free lines is 3335 [09:42:29]MH_Cut [09:42:29]Write to MH i2c: D1 01 00 F4 81 01 47 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 01 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 01 00 F4 81 00 46 [09:42:29]Write to MH i2c: 01 00 00 F5 81 76 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]OFD Sender: No OFD packet to send [09:42:30]*** Cut start [09:42:30]*** Partial cut [09:42:30]*** CUTSNS_PIN = 1 [09:42:30]*** CUTSNS_PIN = 0 [09:42:30]*** Brake cut motor [09:42:30]Read from MH i2c: 01 [09:42:30]MH_I2C_Read... [09:42:30]*** Stop cut motor [09:42:30]*** Cut end [09:42:30]Read from MH i2c: 01 07 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 07 00 F5 81 00 00 00 00 00 FF 0F 8B [09:42:30]process_action close_receipt done [09:42:30]requested_data is exist [09:42:30]produce_requested_data [09:42:30]requested_item fm.sn is exist - process it [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 11 00 00 [09:42:30]Write to MH i2c: E2 08 00 F6 81 80 11 00 00 00 00 00 00 F1 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 F6 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [09:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:42:30]wFMCommunicate OK [09:42:30]requested_item fd.num is exist - process it [09:42:30]SAM_PROTO_GetFieldsCounters [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 13 00 00 [09:42:30]Write to MH i2c: E2 08 00 F7 81 80 13 00 00 00 00 00 00 F4 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:31]Read from MH i2c: E2 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: E2 62 00 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: E2 62 00 F7 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 78 00 00 0E 04 04 00 74 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 55 [09:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 78 00 00 0E 04 04 00 74 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 [09:42:31]wFMCommunicate OK [09:42:31]SAM_PROTO_GetFieldsCounters done [09:42:31]requested_item shift.num is exist - process it [09:42:31]requested_item shift.opened is exist - process it [09:42:31]req_shift_opened [09:42:31]FM_GetShiftState [09:42:31]SAM_PROTO_GetShiftState [09:42:31]wFMCommunicate request_size=4 [09:42:31]MH_SAM_APDU [09:42:31]CAPDU: 80 13 01 00 [09:42:31]Write to MH i2c: E2 08 00 F8 81 80 13 01 00 00 00 00 00 F6 [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:31]Read from MH i2c: E2 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: E2 0E 00 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: E2 0E 00 F8 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D0 [09:42:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:42:31]wFMCommunicate OK [09:42:31]SAM_PROTO_GetShiftState done [09:42:31]FM_GetShiftState done [09:42:31]req_shift_opened done [09:42:31]requested_item shift.open_date is exist - process it [09:42:31]req_shift_open_date [09:42:31]req_shift_open_date done [09:42:31]produce_requested_data done [09:42:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30839,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:42:31]process_action_free close_receipt [09:42:31]json_value_free [09:42:31]json_value_free done [09:42:31]process_json_proto returns [09:42:31]Send response to host [09:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30839,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:42:31]free response buf [09:42:31]execute_script done [09:42:31]execute_script returns [09:42:31]free content buf [09:42:31]Sock 9.Close socket [09:42:31]Sock 9.Thread stoped [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]accept exits with 7 [09:43:04]New connection [09:43:04]New thread 3067489636 created [09:43:04]Thread 3067346276 joined [09:43:04]Waiting for new connection... [09:43:04] Sock 7.Parse request [09:43:04]Sock 7.Check first char [09:43:04]Sock 7.First char is OK [09:43:04]request: POST /json_proto HTTP/1.0 [09:43:04]Method: POST [09:43:04]URL: /json_proto [09:43:04]Method is POST - this is cgi request [09:43:04]url: /json_proto [09:43:04]query_string will be loaded in cgi processing [09:43:04]execute_cgi json_proto POST (null) [09:43:04]execute_cgi path=json_proto method=POST [09:43:04]POST find Content-Length [09:43:04]Host: 172.17.51.3:8080 [09:43:04]Content-Length: 682 [09:43:04]Content-Type: application/json [09:43:04] [09:43:04]POST finish read [09:43:04]Found Content-Length = 682 [09:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 26.820, "sum" : 1794.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1794.00, "total" : 1794.00, "payments": [ { "type": 0, "sum" : 1794.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:04]execute_script... [09:43: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)343259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 26.820, "sum" : 1794.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1794.00, "total" : 1794.00, "payments": [ { "type": 0, "sum" : 1794.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:04]POST & json_proto [09:43:04]process_json_proto [09:43:04]json parsed OK: [09:43:04]protocol is kg_v1.0 [09:43:04]action value=close_receipt [09:43:04]process_action close_receipt [09:43:04]cmd_close_receipt [09:43:04]MH_GetDate [09:43:04]Write to MH i2c: F0 00 00 F9 81 69 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 09 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 09 00 F9 81 00 B2 73 17 67 04 C1 95 66 D5 [09:43:04]GetLastDocTimeStamp 1729590156 [09:43:04]current date 1729590194 [09:43:04]FM_GetShiftState [09:43:04]SAM_PROTO_GetShiftState [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 13 01 00 [09:43:04]Write to MH i2c: E2 08 00 FA 81 80 13 01 00 00 00 00 00 F8 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 FA 81 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D2 [09:43:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_GetShiftState done [09:43:04]FM_GetShiftState done [09:43:04]opened in 1729557342 [09:43:04]opened+sec_in_day 1729643742 [09:43:04]quantity*price = 179425 [09:43:04]sum+1 = 179427 [09:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1794.00 Внесено: 1794.00 СДАЧА: 0.00 НСП 1% : 15.88 НДС 12% : 190.54 Наличными: 1794.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 73 22.10.2024 09:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30840 ФПД: 217838543321168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094314&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30840&fm=217838543321168&tin=02508201610067®Number=0000000000186857&sum=179400 [09:43:05]StoreToDocumentArchive [09:43:05]shift 116 fd 30840 [09:43:05]save to /storage/0116/doc_00030840 [09:43:05]save last doc name /storage/0116/doc_00030840 to /storage/kkm_last_doc_name [09:43:05]save OK [09:43:05]Clear old archive folders... [09:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:05]tlvbuf is 0202AF30 [09:43:05]SAM_PROTO_ClearQueue [09:43:05]wFMCommunicate request_size=4 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 09 00 00 [09:43:05]Write to MH i2c: E2 08 00 07 82 80 09 00 00 00 00 00 00 FB [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:05]Read from MH i2c: E2 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 07 82 00 90 00 FD [09:43:05]RAPDU: 90 00 [09:43:05]wFMCommunicate OK [09:43:05]SAM_PROTO_ClearQueue done [09:43:05]KKMCreateOFDPacket [09:43:05]OFDProtocolAddRootSTLVToBuf [09:43:05]FM_MakeSignedData [09:43:05]FM_MakeSignedData [09:43:05]SAM_PROTO_SignData [09:43:05]wFMCommunicate request_size=4 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 0D 01 02 [09:43:05]Write to MH i2c: E2 08 00 08 82 80 0D 01 02 00 00 00 00 03 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:05]Read from MH i2c: E2 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 08 82 00 90 00 FE [09:43:05]RAPDU: 90 00 [09:43:05]wFMCommunicate OK [09:43:05]wFMCommunicate request_size=255 [09:43:05]MH_SAM_APDU [09:43: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 32 FF 03 08 00 03 C4 68 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E2 BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 4A 00 00 00 00 07 04 06 00 C8 BC 02 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 B2 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 78 00 00 35 04 06 00 C6 [09:43:05]Write to MH i2c: E2 02 01 09 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 32 FF 03 08 00 03 C4 68 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E2 BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 4A 00 00 00 00 07 04 06 00 C8 BC 02 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 B2 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 78 00 00 35 04 06 00 C6 00 00 2B [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:05]Read from MH i2c: E2 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 03 00 09 82 00 90 00 FF [09:43:05]RAPDU: 90 00 [09:43:05]wFMCommunicate OK [09:43:05]wFMCommunicate request_size=10 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 0D 02 02 05 1F 7C FE 38 50 [09:43:05]Write to MH i2c: E2 0D 00 0A 82 80 0D 02 02 05 00 1F 7C FE 38 50 00 00 31 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 0A 82 00 90 00 00 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 03 02 [09:43:06]Write to MH i2c: E2 08 00 0B 82 80 0D 03 02 00 00 00 00 08 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 0B 82 00 9A 75 9D F8 24 12 FB DB 90 00 B9 [09:43:06]RAPDU: 9A 75 9D F8 24 12 FB DB 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_SignData done [09:43:06]FM_MakeSignedData done [09:43:06]CreateOFDProtocolMessage [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 11 00 00 [09:43:06]Write to MH i2c: E2 08 00 0C 82 80 11 00 00 00 00 00 00 08 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 0C 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [09:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:43:06]wFMCommunicate OK [09:43:06]CreateOFDProtocolMessage done [09:43:06]OFDSenderStorePacket 30840 [09:43:06]StoreOFDPacket docnum=30840 [09:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB AA 07 01 24 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 68 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E2 BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 4A 00 00 00 00 07 04 06 00 C8 BC 02 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 B2 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 78 00 00 35 04 06 00 C6 1F 7C FE 38 50 9A 75 9D F8 24 12 FB DB [09:43:06]CheckFolder [09:43:06]dirname=/storage/ofd_packets [09:43:06]CheckFolder done [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00030840 [09:43:06]NVStorageSaveData ofd_packets/00030840 [09:43:06]File name is /storage/ofd_packets/00030840 [09:43:06]Write 301 bytes [09:43:06]NVStorageSaveData done [09:43:06]OFDSenderStorePacket done [09:43:06]KKMCreateOFDPacket done [09:43:06]NVStorageSaveData kkm_last_timestamp [09:43:06]File name is /storage/kkm_last_timestamp [09:43:06]Write 4 bytes [09:43:06]NVStorageSaveData done [09:43:06]ExternCall_PrintAddStr [09:43:06]wPrintStart [09:43:06]Write to MH i2c: 01 00 00 0D 82 8F [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 0D 82 00 00 00 00 00 FF 0F A4 [09:43:06]RasterBufferAndPrint [09:43:06]line Счет N : (1)343259 [09:43:06]line ИНН: 02508201610067 [09:43:06]line Контрольно-Кассовый Чек [09:43:06]line ПРОДАЖА [09:43:06]line ТРК (МРК, ГНК) : 63 [09:43:06]line Товар: 2710124130 [09:43:06]line Аи-92-К-2 [09:43:06]line 26.820 * 66.90 [09:43:06]line = 1794.26 [09:43:06]line НДС 12% НСП 1% [09:43:06]line > о реализуемом товаре [09:43:06]line ОКРУГЛЕНИЕ: -0.26 [09:43:06]line ИТОГО: 1794.00 [09:43:06]line Внесено: 1794.00 [09:43:06]line СДАЧА: 0.00 [09:43:06]line НСП 1% : 15.88 [09:43:06]line НДС 12% : 190.54 [09:43:06]line Наличными: 1794.00 [09:43:06]line Безнал.: 0.00 [09:43:06]line Место: АЗС № 78 "Партнер Нефть" [09:43:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:43:06]line СНО: Общий режим [09:43:06]line Чек 73 22.10.2024 09:43 [09:43:06]line Смена: 116 ФФД: 1.0 [09:43:06]line ЗНМ: 0300000137 [09:43:06]line РНМ: 0000000000186857 [09:43:06]line Версия ККМ: v1.0 [09:43:06]line ФМ: 0000000002094219 [09:43:06]line ФД: 30840 [09:43:06]line ФПД: 217838543321168 [09:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094314&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30840&fm=217838543321168&tin=02508201610067®Number=0000000000186857&sum=179400 [09:43:06]OFD Sender: Processing packet 30840 [packets to send 10, broken 9] [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00030840 [09:43:06]OFD Sender: To server: pG, [09:43:06]CommunicateWithHost lk.salyk.kg:30040 [09:43:06]ConnectInit lk.salyk.kg [09:43:06]written 0, free lines is 4095 [09:43:06]Connected sock=10 [09:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB AA 07 01 24 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 68 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E2 BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 4A 00 00 00 00 07 04 06 00 C8 BC 02 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 B2 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 78 00 00 35 04 06 00 C6 1F 7C FE 38 50 9A 75 9D F8 24 12 FB DB [09:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D7 35 47 00 65 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 78 00 00 F4 03 04 00 30 1E 17 67 B6 04 01 00 00 9F 09 5D 86 EC 71 6E 56 [09:43:06]CommunicateWithHost err = 0 [09:43:06]CheckOFDResponse [09:43:06]1017 (14) - 77093643461234 [09:43:06]1041 (16) - 0000000002094219 [09:43:06]1040 (4) - 30840 [09:43:06]1012 (4) - 22.10.2024 03:38 [09:43:06]1206 (1) - 0 [09:43:06]OFD Sender: Remove packet 30840 [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00030840 [09:43:06]NVStorageDeleteData [09:43:06]Write to MH i2c: 01 00 00 38 82 BA [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 38 82 00 00 00 00 00 EF 0C BC [09:43:06]RasterBufferAndPrint [09:43:06]line [09:43:06]line [09:43:06]line [09:43:06]line [09:43:06]line [09:43:06]written 0, free lines is 3317 [09:43:06]MH_Cut [09:43:06]Write to MH i2c: D1 01 00 3F 82 01 93 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: D1 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: D1 01 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: D1 01 00 3F 82 00 92 [09:43:06]Write to MH i2c: 01 00 00 40 82 C2 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:07]OFD Sender: No OFD packet to send [09:43:07]*** Cut start [09:43:07]*** Partial cut [09:43:07]*** CUTSNS_PIN = 1 [09:43:07]*** CUTSNS_PIN = 0 [09:43:07]*** Brake cut motor [09:43:08]Read from MH i2c: 01 [09:43:08]MH_I2C_Read... [09:43:08]*** Stop cut motor [09:43:08]*** Cut end [09:43:08]Read from MH i2c: 01 07 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: 01 07 00 40 82 00 00 00 00 00 FF 0F D7 [09:43:08]process_action close_receipt done [09:43:08]requested_data is exist [09:43:08]produce_requested_data [09:43:08]requested_item fm.sn is exist - process it [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 11 00 00 [09:43:08]Write to MH i2c: E2 08 00 41 82 80 11 00 00 00 00 00 00 3D [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 17 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 17 00 41 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [09:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:43:08]wFMCommunicate OK [09:43:08]requested_item fd.num is exist - process it [09:43:08]SAM_PROTO_GetFieldsCounters [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 00 00 [09:43:08]Write to MH i2c: E2 08 00 42 82 80 13 00 00 00 00 00 00 40 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 62 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 62 00 42 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 78 00 00 0E 04 04 00 74 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 A5 [09:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 78 00 00 0E 04 04 00 74 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 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetFieldsCounters done [09:43:08]requested_item shift.num is exist - process it [09:43:08]requested_item shift.opened is exist - process it [09:43:08]req_shift_opened [09:43:08]FM_GetShiftState [09:43:08]SAM_PROTO_GetShiftState [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 01 00 [09:43:08]Write to MH i2c: E2 08 00 43 82 80 13 01 00 00 00 00 00 42 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 43 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1C [09:43:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetShiftState done [09:43:08]FM_GetShiftState done [09:43:08]req_shift_opened done [09:43:08]requested_item shift.open_date is exist - process it [09:43:08]req_shift_open_date [09:43:08]req_shift_open_date done [09:43:08]produce_requested_data done [09:43:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30840,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:43:08]process_action_free close_receipt [09:43:08]json_value_free [09:43:08]json_value_free done [09:43:08]process_json_proto returns [09:43:08]Send response to host [09:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30840,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:43:08]free response buf [09:43:08]execute_script done [09:43:08]execute_script returns [09:43:08]free content buf [09:43:08]Sock 7.Close socket [09:43:08]Sock 7.Thread stoped [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:17]accept exits with 9 [09:44:17]New connection [09:44:17]New thread 3067346276 created [09:44:17]Thread 3067489636 joined [09:44:17]Waiting for new connection... [09:44:17] Sock 9.Parse request [09:44:17]Sock 9.Check first char [09:44:17]Sock 9.First char is OK [09:44:17]request: POST /json_proto HTTP/1.0 [09:44:17]Method: POST [09:44:17]URL: /json_proto [09:44:17]Method is POST - this is cgi request [09:44:17]url: /json_proto [09:44:17]query_string will be loaded in cgi processing [09:44:17]execute_cgi json_proto POST (null) [09:44:17]execute_cgi path=json_proto method=POST [09:44:17]POST find Content-Length [09:44:17]Host: 172.17.51.3:8080 [09:44:17]Content-Length: 682 [09:44:17]Content-Type: application/json [09:44:17] [09:44:17]POST finish read [09:44:17]Found Content-Length = 682 [09:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:17]execute_script... [09:44: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)343260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:17]POST & json_proto [09:44:17]process_json_proto [09:44:17]json parsed OK: [09:44:17]protocol is kg_v1.0 [09:44:17]action value=close_receipt [09:44:17]process_action close_receipt [09:44:17]cmd_close_receipt [09:44:17]MH_GetDate [09:44:17]Write to MH i2c: F0 00 00 44 82 B5 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 09 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 09 00 44 82 00 FB 73 17 67 04 C1 95 66 6A [09:44:17]GetLastDocTimeStamp 1729590194 [09:44:17]current date 1729590267 [09:44:17]FM_GetShiftState [09:44:17]SAM_PROTO_GetShiftState [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 13 01 00 [09:44:17]Write to MH i2c: E2 08 00 45 82 80 13 01 00 00 00 00 00 44 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0E 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0E 00 45 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1E [09:44:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_GetShiftState done [09:44:17]FM_GetShiftState done [09:44:17]opened in 1729557342 [09:44:17]opened+sec_in_day 1729643742 [09:44:17]quantity*price = 130072 [09:44:17]sum+1 = 130074 [09:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 74 22.10.2024 09:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30841 ФПД: 200393685470684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30841&fm=200393685470684&tin=02508201610067®Number=0000000000186857&sum=130000 [09:44:19]StoreToDocumentArchive [09:44:19]shift 116 fd 30841 [09:44:19]save to /storage/0116/doc_00030841 [09:44:19]save last doc name /storage/0116/doc_00030841 to /storage/kkm_last_doc_name [09:44:19]save OK [09:44:19]Clear old archive folders... [09:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:19]tlvbuf is 01E0C5F0 [09:44:19]SAM_PROTO_ClearQueue [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 09 00 00 [09:44:19]Write to MH i2c: E2 08 00 52 82 80 09 00 00 00 00 00 00 46 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 52 82 00 90 00 48 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_ClearQueue done [09:44:19]KKMCreateOFDPacket [09:44:19]OFDProtocolAddRootSTLVToBuf [09:44:19]FM_MakeSignedData [09:44:19]FM_MakeSignedData [09:44:19]SAM_PROTO_SignData [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 01 02 [09:44:19]Write to MH i2c: E2 08 00 53 82 80 0D 01 02 00 00 00 00 4E [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 53 82 00 90 00 49 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=255 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FB 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 78 00 00 35 04 06 00 B6 [09:44:19]Write to MH i2c: E2 02 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FB 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 78 00 00 35 04 06 00 B6 00 00 E1 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 54 82 00 90 00 4A [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=10 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 02 02 05 41 CA 70 0D DC [09:44:19]Write to MH i2c: E2 0D 00 55 82 80 0D 02 02 05 00 41 CA 70 0D DC 00 00 BF [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 55 82 00 90 00 4B [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 03 02 [09:44:19]Write to MH i2c: E2 08 00 56 82 80 0D 03 02 00 00 00 00 53 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0B 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0B 00 56 82 00 4D 32 AD D9 2F 27 9A 7E 90 00 C7 [09:44:19]RAPDU: 4D 32 AD D9 2F 27 9A 7E 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_SignData done [09:44:19]FM_MakeSignedData done [09:44:19]CreateOFDProtocolMessage [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 11 00 00 [09:44:19]Write to MH i2c: E2 08 00 57 82 80 11 00 00 00 00 00 00 53 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 17 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 17 00 57 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [09:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:19]wFMCommunicate OK [09:44:19]CreateOFDProtocolMessage done [09:44:19]OFDSenderStorePacket 30841 [09:44:19]StoreOFDPacket docnum=30841 [09:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 48 07 01 D2 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FB 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 78 00 00 35 04 06 00 B6 41 CA 70 0D DC 4D 32 AD D9 2F 27 9A 7E [09:44:19]CheckFolder [09:44:19]dirname=/storage/ofd_packets [09:44:19]CheckFolder done [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00030841 [09:44:19]NVStorageSaveData ofd_packets/00030841 [09:44:19]File name is /storage/ofd_packets/00030841 [09:44:19]Write 301 bytes [09:44:19]NVStorageSaveData done [09:44:19]OFDSenderStorePacket done [09:44:19]KKMCreateOFDPacket done [09:44:19]NVStorageSaveData kkm_last_timestamp [09:44:19]File name is /storage/kkm_last_timestamp [09:44:19]Write 4 bytes [09:44:19]NVStorageSaveData done [09:44:19]ExternCall_PrintAddStr [09:44:19]wPrintStart [09:44:19]Write to MH i2c: 01 00 00 58 82 DA [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 58 82 00 00 00 00 00 FF 0F EF [09:44:19]RasterBufferAndPrint [09:44:19]line Счет N : (1)343260 [09:44:19]line ИНН: 02508201610067 [09:44:19]line Контрольно-Кассовый Чек [09:44:19]line ПРОДАЖА [09:44:19]line ТРК (МРК, ГНК) : 52 [09:44:19]line Товар: 2710124500 [09:44:19]line Аи-95-К-3 [09:44:19]line 17.530 * 74.20 [09:44:19]line = 1300.73 [09:44:19]line НДС 12% НСП 1% [09:44:19]line > о реализуемом товаре [09:44:19]line ОКРУГЛЕНИЕ: -0.73 [09:44:19]line ИТОГО: 1300.00 [09:44:19]line Внесено: 1300.00 [09:44:19]line СДАЧА: 0.00 [09:44:19]line НСП 1% : 11.51 [09:44:19]line НДС 12% : 138.13 [09:44:19]line Наличными: 1300.00 [09:44:19]line Безнал.: 0.00 [09:44:19]line Место: АЗС № 78 "Партнер Нефть" [09:44:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:44:19]line СНО: Общий режим [09:44:19]line Чек 74 22.10.2024 09:44 [09:44:19]line Смена: 116 ФФД: 1.0 [09:44:19]line ЗНМ: 0300000137 [09:44:19]line РНМ: 0000000000186857 [09:44:19]line Версия ККМ: v1.0 [09:44:19]line ФМ: 0000000002094219 [09:44:19]line ФД: 30841 [09:44:19]line ФПД: 200393685470684 [09:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30841&fm=200393685470684&tin=02508201610067®Number=0000000000186857&sum=130000 [09:44:19]OFD Sender: Processing packet 30841 [packets to send 10, broken 9] [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00030841 [09:44:19]OFD Sender: To server: pG, [09:44:19]CommunicateWithHost lk.salyk.kg:30040 [09:44:19]ConnectInit lk.salyk.kg [09:44:19]written 0, free lines is 4095 [09:44:20]Connected sock=10 [09:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 48 07 01 D2 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FB 73 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 78 00 00 35 04 06 00 B6 41 CA 70 0D DC 4D 32 AD D9 2F 27 9A 7E [09:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 52 DF 47 00 ED F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 78 00 00 F4 03 04 00 79 1E 17 67 B6 04 01 00 00 54 98 69 4A 0A 73 3E 35 [09:44:20]CommunicateWithHost err = 0 [09:44:20]CheckOFDResponse [09:44:20]1017 (14) - 77093643461234 [09:44:20]1041 (16) - 0000000002094219 [09:44:20]1040 (4) - 30841 [09:44:20]1012 (4) - 22.10.2024 03:39 [09:44:20]1206 (1) - 0 [09:44:20]OFD Sender: Remove packet 30841 [09:44:20]ProducePacketName [09:44:20]name=ofd_packets/00030841 [09:44:20]NVStorageDeleteData [09:44:20]Write to MH i2c: 01 00 00 83 82 05 [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 07 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 07 00 83 82 00 00 00 00 00 E8 0C 00 [09:44:20]RasterBufferAndPrint [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]written 0, free lines is 3310 [09:44:20]MH_Cut [09:44:20]Write to MH i2c: D1 01 00 8A 82 01 DE [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 01 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 01 00 8A 82 00 DD [09:44:20]Write to MH i2c: 01 00 00 8B 82 0D [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]OFD Sender: No OFD packet to send [09:44:21]*** Cut start [09:44:21]*** Partial cut [09:44:21]*** CUTSNS_PIN = 1 [09:44:21]*** CUTSNS_PIN = 0 [09:44:21]*** Brake cut motor [09:44:21]Read from MH i2c: 01 [09:44:21]MH_I2C_Read... [09:44:21]*** Stop cut motor [09:44:21]*** Cut end [09:44:21]Read from MH i2c: 01 07 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 07 00 8B 82 00 00 00 00 00 FF 0F 22 [09:44:21]process_action close_receipt done [09:44:21]requested_data is exist [09:44:21]produce_requested_data [09:44:21]requested_item fm.sn is exist - process it [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 11 00 00 [09:44:21]Write to MH i2c: E2 08 00 8C 82 80 11 00 00 00 00 00 00 88 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 8C 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [09:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:21]wFMCommunicate OK [09:44:21]requested_item fd.num is exist - process it [09:44:21]SAM_PROTO_GetFieldsCounters [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 00 00 [09:44:21]Write to MH i2c: E2 08 00 8D 82 80 13 00 00 00 00 00 00 8B [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 62 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 62 00 8D 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 78 00 00 0E 04 04 00 74 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 F4 [09:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 78 00 00 0E 04 04 00 74 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 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetFieldsCounters done [09:44:21]requested_item shift.num is exist - process it [09:44:21]requested_item shift.opened is exist - process it [09:44:21]req_shift_opened [09:44:21]FM_GetShiftState [09:44:21]SAM_PROTO_GetShiftState [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 01 00 [09:44:21]Write to MH i2c: E2 08 00 8E 82 80 13 01 00 00 00 00 00 8D [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 8E 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 67 [09:44:21]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetShiftState done [09:44:21]FM_GetShiftState done [09:44:21]req_shift_opened done [09:44:21]requested_item shift.open_date is exist - process it [09:44:21]req_shift_open_date [09:44:21]req_shift_open_date done [09:44:21]produce_requested_data done [09:44:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30841,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:44:21]process_action_free close_receipt [09:44:21]json_value_free [09:44:21]json_value_free done [09:44:21]process_json_proto returns [09:44:21]Send response to host [09:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30841,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:44:21]free response buf [09:44:21]execute_script done [09:44:21]execute_script returns [09:44:21]free content buf [09:44:21]Sock 9.Close socket [09:44:21]Sock 9.Thread stoped [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]accept exits with 7 [09:52:41]New connection [09:52:41]New thread 3067489636 created [09:52:41]Thread 3067346276 joined [09:52:41]Waiting for new connection... [09:52:41] Sock 7.Parse request [09:52:41]Sock 7.Check first char [09:52:41]Sock 7.First char is OK [09:52:41]request: POST /json_proto HTTP/1.0 [09:52:41]Method: POST [09:52:41]URL: /json_proto [09:52:41]Method is POST - this is cgi request [09:52:41]url: /json_proto [09:52:41]query_string will be loaded in cgi processing [09:52:41]execute_cgi json_proto POST (null) [09:52:41]execute_cgi path=json_proto method=POST [09:52:41]POST find Content-Length [09:52:41]Host: 172.17.51.3:8080 [09:52:41]Content-Length: 677 [09:52:41]Content-Type: application/json [09:52:41] [09:52:41]POST finish read [09:52:41]Found Content-Length = 677 [09:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:41]execute_script... [09:52: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)343261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:41]POST & json_proto [09:52:41]process_json_proto [09:52:41]json parsed OK: [09:52:41]protocol is kg_v1.0 [09:52:41]action value=close_receipt [09:52:41]process_action close_receipt [09:52:41]cmd_close_receipt [09:52:41]MH_GetDate [09:52:41]Write to MH i2c: F0 00 00 8F 82 00 [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: F0 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: F0 09 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: F0 09 00 8F 82 00 F2 75 17 67 04 C1 95 66 AE [09:52:41]GetLastDocTimeStamp 1729590267 [09:52:41]current date 1729590770 [09:52:41]FM_GetShiftState [09:52:41]SAM_PROTO_GetShiftState [09:52:41]wFMCommunicate request_size=4 [09:52:41]MH_SAM_APDU [09:52:41]CAPDU: 80 13 01 00 [09:52:41]Write to MH i2c: E2 08 00 90 82 80 13 01 00 00 00 00 00 8F [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:41]Read from MH i2c: E2 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 0E 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 0E 00 90 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 69 [09:52:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:52:41]wFMCommunicate OK [09:52:41]SAM_PROTO_GetShiftState done [09:52:41]FM_GetShiftState done [09:52:41]opened in 1729557342 [09:52:41]opened+sec_in_day 1729643742 [09:52:41]quantity*price = 50041 [09:52:41]sum+1 = 50042 [09:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 75 22.10.2024 09:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30842 ФПД: 273601711129079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30842&fm=273601711129079&tin=02508201610067®Number=0000000000186857&sum=50000 [09:52:42]StoreToDocumentArchive [09:52:42]shift 116 fd 30842 [09:52:42]save to /storage/0116/doc_00030842 [09:52:42]save last doc name /storage/0116/doc_00030842 to /storage/kkm_last_doc_name [09:52:42]save OK [09:52:42]Clear old archive folders... [09:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:42]tlvbuf is 01DEA1E0 [09:52:42]SAM_PROTO_ClearQueue [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 09 00 00 [09:52:42]Write to MH i2c: E2 08 00 9D 82 80 09 00 00 00 00 00 00 91 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 9D 82 00 90 00 93 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]SAM_PROTO_ClearQueue done [09:52:42]KKMCreateOFDPacket [09:52:42]OFDProtocolAddRootSTLVToBuf [09:52:42]FM_MakeSignedData [09:52:42]FM_MakeSignedData [09:52:42]SAM_PROTO_SignData [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 0D 01 02 [09:52:42]Write to MH i2c: E2 08 00 9E 82 80 0D 01 02 00 00 00 00 99 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 9E 82 00 90 00 94 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]wFMCommunicate request_size=255 [09:52:42]MH_SAM_APDU [09:52: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 75 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 78 00 00 35 04 06 00 F8 [09:52:42]Write to MH i2c: E2 02 01 9F 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 75 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 78 00 00 35 04 06 00 F8 00 00 B8 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 9F 82 00 90 00 95 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]wFMCommunicate request_size=10 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 0D 02 02 05 D6 DC CD 41 F7 [09:52:42]Write to MH i2c: E2 0D 00 A0 82 80 0D 02 02 05 00 D6 DC CD 41 F7 00 00 5D [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 A0 82 00 90 00 96 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 0D 03 02 [09:52:42]Write to MH i2c: E2 08 00 A1 82 80 0D 03 02 00 00 00 00 9E [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0B 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0B 00 A1 82 00 AE 90 45 05 29 CE E4 F6 90 00 F8 [09:52:42]RAPDU: AE 90 45 05 29 CE E4 F6 90 00 [09:52:42]wFMCommunicate OK [09:52:42]SAM_PROTO_SignData done [09:52:42]FM_MakeSignedData done [09:52:42]CreateOFDProtocolMessage [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 11 00 00 [09:52:42]Write to MH i2c: E2 08 00 A2 82 80 11 00 00 00 00 00 00 9E [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 A2 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [09:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:52:42]wFMCommunicate OK [09:52:42]CreateOFDProtocolMessage done [09:52:42]OFDSenderStorePacket 30842 [09:52:42]StoreOFDPacket docnum=30842 [09:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 12 07 01 29 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 75 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 78 00 00 35 04 06 00 F8 D6 DC CD 41 F7 AE 90 45 05 29 CE E4 F6 [09:52:42]CheckFolder [09:52:42]dirname=/storage/ofd_packets [09:52:42]CheckFolder done [09:52:42]ProducePacketName [09:52:42]name=ofd_packets/00030842 [09:52:42]NVStorageSaveData ofd_packets/00030842 [09:52:42]File name is /storage/ofd_packets/00030842 [09:52:42]Write 301 bytes [09:52:42]NVStorageSaveData done [09:52:42]OFDSenderStorePacket done [09:52:42]KKMCreateOFDPacket done [09:52:42]NVStorageSaveData kkm_last_timestamp [09:52:42]File name is /storage/kkm_last_timestamp [09:52:42]Write 4 bytes [09:52:42]NVStorageSaveData done [09:52:42]ExternCall_PrintAddStr [09:52:42]wPrintStart [09:52:42]Write to MH i2c: 01 00 00 A3 82 25 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 A3 82 00 00 00 00 00 FF 0F 3A [09:52:42]RasterBufferAndPrint [09:52:42]line Счет N : (1)343261 [09:52:42]line ИНН: 02508201610067 [09:52:42]line Контрольно-Кассовый Чек [09:52:42]line ПРОДАЖА [09:52:42]line ТРК (МРК, ГНК) : 53 [09:52:42]line Товар: 2710124130 [09:52:42]line Аи-92-К-2 [09:52:42]line 7.480 * 66.90 [09:52:42]line = 500.41 [09:52:42]line НДС 12% НСП 1% [09:52:42]line > о реализуемом товаре [09:52:42]line ОКРУГЛЕНИЕ: -0.41 [09:52:42]line ИТОГО: 500.00 [09:52:42]line Внесено: 500.00 [09:52:42]line СДАЧА: 0.00 [09:52:42]line НСП 1% : 4.43 [09:52:42]line НДС 12% : 53.14 [09:52:42]line Наличными: 500.00 [09:52:42]line Безнал.: 0.00 [09:52:42]line Место: АЗС № 78 "Партнер Нефть" [09:52:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:52:42]line СНО: Общий режим [09:52:42]line Чек 75 22.10.2024 09:52 [09:52:42]line Смена: 116 ФФД: 1.0 [09:52:42]line ЗНМ: 0300000137 [09:52:42]line РНМ: 0000000000186857 [09:52:42]line Версия ККМ: v1.0 [09:52:42]line ФМ: 0000000002094219 [09:52:42]line ФД: 30842 [09:52:43]line ФПД: 273601711129079 [09:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30842&fm=273601711129079&tin=02508201610067®Number=0000000000186857&sum=50000 [09:52:43]OFD Sender: Processing packet 30842 [packets to send 10, broken 9] [09:52:43]ProducePacketName [09:52:43]name=ofd_packets/00030842 [09:52:43]OFD Sender: To server: pG, [09:52:43]CommunicateWithHost lk.salyk.kg:30040 [09:52:43]ConnectInit lk.salyk.kg [09:52:43]written 0, free lines is 4095 [09:52:43]Connected sock=10 [09:52:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 12 07 01 29 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 75 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 78 00 00 35 04 06 00 F8 D6 DC CD 41 F7 AE 90 45 05 29 CE E4 F6 [09:52:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BD 5C 47 00 DE 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 78 00 00 F4 03 04 00 70 20 17 67 B6 04 01 00 00 C5 72 9B ED 64 2A E8 D7 [09:52:43]CommunicateWithHost err = 0 [09:52:43]CheckOFDResponse [09:52:43]1017 (14) - 77093643461234 [09:52:43]1041 (16) - 0000000002094219 [09:52:43]1040 (4) - 30842 [09:52:43]1012 (4) - 22.10.2024 03:48 [09:52:43]1206 (1) - 0 [09:52:43]OFD Sender: Remove packet 30842 [09:52:43]ProducePacketName [09:52:43]name=ofd_packets/00030842 [09:52:43]NVStorageDeleteData [09:52:43]Write to MH i2c: 01 00 00 CE 82 50 [09:52:43]Write i2c OK [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: 01 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: 01 07 00 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: 01 07 00 CE 82 00 00 00 00 00 ED 0C 50 [09:52:43]RasterBufferAndPrint [09:52:43]line [09:52:43]line [09:52:43]line [09:52:43]line [09:52:43]line [09:52:43]written 0, free lines is 3315 [09:52:43]MH_Cut [09:52:43]Write to MH i2c: D1 01 00 D5 82 01 29 [09:52:43]Write i2c OK [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: D1 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: D1 01 00 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: D1 01 00 D5 82 00 28 [09:52:43]Write to MH i2c: 01 00 00 D6 82 58 [09:52:43]Write i2c OK [09:52:43]MH_I2C_Read... [09:52:43]OFD Sender: No OFD packet to send [09:52:44]*** Cut start [09:52:44]*** Partial cut [09:52:44]*** CUTSNS_PIN = 1 [09:52:44]*** CUTSNS_PIN = 0 [09:52:44]*** Brake cut motor [09:52:44]Read from MH i2c: 01 [09:52:44]MH_I2C_Read... [09:52:44]*** Stop cut motor [09:52:44]*** Cut end [09:52:44]Read from MH i2c: 01 07 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 D6 82 00 00 00 00 00 FF 0F 6D [09:52:44]process_action close_receipt done [09:52:44]requested_data is exist [09:52:44]produce_requested_data [09:52:44]requested_item fm.sn is exist - process it [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 11 00 00 [09:52:44]Write to MH i2c: E2 08 00 D7 82 80 11 00 00 00 00 00 00 D3 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 D7 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [09:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:52:44]wFMCommunicate OK [09:52:44]requested_item fd.num is exist - process it [09:52:44]SAM_PROTO_GetFieldsCounters [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 13 00 00 [09:52:44]Write to MH i2c: E2 08 00 D8 82 80 13 00 00 00 00 00 00 D6 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 62 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 62 00 D8 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 78 00 00 0E 04 04 00 74 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 43 [09:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 78 00 00 0E 04 04 00 74 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 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_GetFieldsCounters done [09:52:45]requested_item shift.num is exist - process it [09:52:45]requested_item shift.opened is exist - process it [09:52:45]req_shift_opened [09:52:45]FM_GetShiftState [09:52:45]SAM_PROTO_GetShiftState [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 13 01 00 [09:52:45]Write to MH i2c: E2 08 00 D9 82 80 13 01 00 00 00 00 00 D8 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0E 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0E 00 D9 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B2 [09:52:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_GetShiftState done [09:52:45]FM_GetShiftState done [09:52:45]req_shift_opened done [09:52:45]requested_item shift.open_date is exist - process it [09:52:45]req_shift_open_date [09:52:45]req_shift_open_date done [09:52:45]produce_requested_data done [09:52:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30842,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [09:52:45]process_action_free close_receipt [09:52:45]json_value_free [09:52:45]json_value_free done [09:52:45]process_json_proto returns [09:52:45]Send response to host [09:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30842,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [09:52:45]free response buf [09:52:45]execute_script done [09:52:45]execute_script returns [09:52:45]free content buf [09:52:45]Sock 7.Close socket [09:52:45]Sock 7.Thread stoped [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:35]accept exits with 9 [10:04:35]New connection [10:04:35]New thread 3067346276 created [10:04:35]Thread 3067489636 joined [10:04:35]Waiting for new connection... [10:04:35] Sock 9.Parse request [10:04:35]Sock 9.Check first char [10:04:35]Sock 9.First char is OK [10:04:35]request: POST /json_proto HTTP/1.0 [10:04:35]Method: POST [10:04:35]URL: /json_proto [10:04:35]Method is POST - this is cgi request [10:04:35]url: /json_proto [10:04:35]query_string will be loaded in cgi processing [10:04:35]execute_cgi json_proto POST (null) [10:04:35]execute_cgi path=json_proto method=POST [10:04:35]POST find Content-Length [10:04:35]Host: 172.17.51.3:8080 [10:04:35]Content-Length: 754 [10:04:35]Content-Type: application/json [10:04:35] [10:04:35]POST finish read [10:04:35]Found Content-Length = 754 [10:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:35]execute_script... [10:04: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)343262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:35]POST & json_proto [10:04:35]process_json_proto [10:04:35]json parsed OK: [10:04:35]protocol is kg_v1.0 [10:04:35]action value=close_receipt [10:04:35]process_action close_receipt [10:04:35]cmd_close_receipt [10:04:35]MH_GetDate [10:04:35]Write to MH i2c: F0 00 00 DA 82 4B [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 09 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 09 00 DA 82 00 BD 78 17 67 04 C1 95 66 C7 [10:04:35]GetLastDocTimeStamp 1729590770 [10:04:35]current date 1729591485 [10:04:35]FM_GetShiftState [10:04:35]SAM_PROTO_GetShiftState [10:04:35]wFMCommunicate request_size=4 [10:04:35]MH_SAM_APDU [10:04:35]CAPDU: 80 13 01 00 [10:04:35]Write to MH i2c: E2 08 00 DB 82 80 13 01 00 00 00 00 00 DA [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:35]Read from MH i2c: E2 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 DB 82 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B4 [10:04:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:04:35]wFMCommunicate OK [10:04:35]SAM_PROTO_GetShiftState done [10:04:35]FM_GetShiftState done [10:04:35]opened in 1729557342 [10:04:35]opened+sec_in_day 1729643742 [10:04:35]quantity*price = 0 [10:04:35]sum+1 = 1 [10:04:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 76 22.10.2024 10:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118642 ФМ: 0000000002094219 ФД: 30843 ФПД: 213673745654885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100445&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30843&fm=213673745654885&tin=02508201610067®Number=0000000000186857&sum=0 [10:04:37]StoreToDocumentArchive [10:04:37]shift 116 fd 30843 [10:04:37]save to /storage/0116/doc_00030843 [10:04:37]save last doc name /storage/0116/doc_00030843 to /storage/kkm_last_doc_name [10:04:37]save OK [10:04:37]Clear old archive folders... [10:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:37]tlvbuf is 01F09C60 [10:04:37]SAM_PROTO_ClearQueue [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 09 00 00 [10:04:37]Write to MH i2c: E2 08 00 E8 82 80 09 00 00 00 00 00 00 DC [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 E8 82 00 90 00 DE [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_ClearQueue done [10:04:37]KKMCreateOFDPacket [10:04:37]OFDProtocolAddRootSTLVToBuf [10:04:37]FM_MakeSignedData [10:04:37]FM_MakeSignedData [10:04:37]SAM_PROTO_SignData [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 0D 01 02 [10:04:37]Write to MH i2c: E2 08 00 E9 82 80 0D 01 02 00 00 00 00 E4 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 E9 82 00 90 00 DF [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]wFMCommunicate request_size=255 [10:04:37]MH_SAM_APDU [10:04: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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BD 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 78 00 00 35 04 06 00 C2 [10:04:37]Write to MH i2c: E2 02 01 EA 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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BD 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 78 00 00 35 04 06 00 C2 00 00 BD [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 EA 82 00 90 00 E0 [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]wFMCommunicate request_size=10 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 0D 02 02 05 55 CB B5 24 65 [10:04:37]Write to MH i2c: E2 0D 00 EB 82 80 0D 02 02 05 00 55 CB B5 24 65 00 00 4F [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 EB 82 00 90 00 E1 [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 0D 03 02 [10:04:37]Write to MH i2c: E2 08 00 EC 82 80 0D 03 02 00 00 00 00 E9 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0B 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0B 00 EC 82 00 F1 20 83 73 03 BD A9 06 90 00 60 [10:04:37]RAPDU: F1 20 83 73 03 BD A9 06 90 00 [10:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_SignData done [10:04:37]FM_MakeSignedData done [10:04:37]CreateOFDProtocolMessage [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 11 00 00 [10:04:37]Write to MH i2c: E2 08 00 ED 82 80 11 00 00 00 00 00 00 E9 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 ED 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [10:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:04:37]wFMCommunicate OK [10:04:37]CreateOFDProtocolMessage done [10:04:37]OFDSenderStorePacket 30843 [10:04:37]StoreOFDPacket docnum=30843 [10:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 5D 07 01 23 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BD 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 78 00 00 35 04 06 00 C2 55 CB B5 24 65 F1 20 83 73 03 BD A9 06 [10:04:37]CheckFolder [10:04:37]dirname=/storage/ofd_packets [10:04:37]CheckFolder done [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00030843 [10:04:37]NVStorageSaveData ofd_packets/00030843 [10:04:37]File name is /storage/ofd_packets/00030843 [10:04:37]Write 301 bytes [10:04:37]NVStorageSaveData done [10:04:37]OFDSenderStorePacket done [10:04:37]KKMCreateOFDPacket done [10:04:37]NVStorageSaveData kkm_last_timestamp [10:04:37]File name is /storage/kkm_last_timestamp [10:04:37]Write 4 bytes [10:04:37]NVStorageSaveData done [10:04:37]ExternCall_PrintAddStr [10:04:37]wPrintStart [10:04:37]Write to MH i2c: 01 00 00 EE 82 70 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 07 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 07 00 EE 82 00 00 00 00 00 FF 0F 85 [10:04:37]RasterBufferAndPrint [10:04:37]line Счет N : (1)343262 [10:04:37]line ИНН: 02508201610067 [10:04:37]line Контрольно-Кассовый Чек [10:04:37]line ПРОДАЖА [10:04:37]line ТРК (МРК, ГНК) : 43 [10:04:37]line Товар: 2710124130 [10:04:37]line Аи-92-К-2 [10:04:37]line 30.000 * 0.00 [10:04:37]line = 0.00 [10:04:37]line НДС 12% НСП 1% [10:04:37]line > о реализуемом товаре [10:04:37]line ИТОГО: 0.00 [10:04:37]line НСП 1% : 0.00 [10:04:37]line НДС 12% : 0.00 [10:04:37]line Наличными: 0.00 [10:04:37]line Безнал.: 0.00 [10:04:37]line Место: АЗС № 78 "Партнер Нефть" [10:04:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:04:37]line СНО: Общий режим [10:04:37]line Чек 76 22.10.2024 10:04 [10:04:37]line Смена: 116 ФФД: 1.0 [10:04:37]line ЗНМ: 0300000137 [10:04:37]line РНМ: 0000000000186857 [10:04:37]line Версия ККМ: v1.0 [10:04:37]line Талоны: ТК ГПНА Online [10:04:37]line 30118642 [10:04:37]line ФМ: 0000000002094219 [10:04:37]line ФД: 30843 [10:04:37]line ФПД: 213673745654885 [10:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100445&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30843&fm=213673745654885&tin=02508201610067®Number=0000000000186857&sum=0 [10:04:37]OFD Sender: Processing packet 30843 [packets to send 10, broken 9] [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00030843 [10:04:37]OFD Sender: To server: pG, [10:04:37]CommunicateWithHost lk.salyk.kg:30040 [10:04:37]ConnectInit lk.salyk.kg [10:04:37]written 0, free lines is 4095 [10:04:37]Connected sock=7 [10:04:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 5D 07 01 23 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BD 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 78 00 00 35 04 06 00 C2 55 CB B5 24 65 F1 20 83 73 03 BD A9 06 [10:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5D DA 47 00 A1 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 78 00 00 F4 03 04 00 3B 23 17 67 B6 04 01 00 00 F1 95 A2 64 C2 7F D6 98 [10:04:38]CommunicateWithHost err = 0 [10:04:38]CheckOFDResponse [10:04:38]1017 (14) - 77093643461234 [10:04:38]1041 (16) - 0000000002094219 [10:04:38]1040 (4) - 30843 [10:04:38]1012 (4) - 22.10.2024 03:59 [10:04:38]1206 (1) - 0 [10:04:38]OFD Sender: Remove packet 30843 [10:04:38]ProducePacketName [10:04:38]name=ofd_packets/00030843 [10:04:38]NVStorageDeleteData [10:04:38]Write to MH i2c: 01 00 00 18 83 9B [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 18 83 00 00 00 00 00 EE 0C 9C [10:04:38]RasterBufferAndPrint [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]written 0, free lines is 3319 [10:04:38]MH_Cut [10:04:38]Write to MH i2c: D1 01 00 1F 83 01 74 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 01 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 01 00 1F 83 00 73 [10:04:38]Write to MH i2c: 01 00 00 20 83 A3 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]OFD Sender: No OFD packet to send [10:04:38]*** Cut start [10:04:38]*** Partial cut [10:04:38]*** CUTSNS_PIN = 1 [10:04:39]*** CUTSNS_PIN = 0 [10:04:39]*** Brake cut motor [10:04:39]Read from MH i2c: 01 [10:04:39]MH_I2C_Read... [10:04:39]*** Stop cut motor [10:04:39]*** Cut end [10:04:39]Read from MH i2c: 01 07 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: 01 07 00 20 83 00 00 00 00 00 FF 0F B8 [10:04:39]process_action close_receipt done [10:04:39]requested_data is exist [10:04:39]produce_requested_data [10:04:39]requested_item fm.sn is exist - process it [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 11 00 00 [10:04:39]Write to MH i2c: E2 08 00 21 83 80 11 00 00 00 00 00 00 1E [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 17 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 17 00 21 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [10:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:04:39]wFMCommunicate OK [10:04:39]requested_item fd.num is exist - process it [10:04:39]SAM_PROTO_GetFieldsCounters [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 00 00 [10:04:39]Write to MH i2c: E2 08 00 22 83 80 13 00 00 00 00 00 00 21 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 62 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 62 00 22 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 78 00 00 0E 04 04 00 74 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 92 [10:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:39]wFMCommunicate OK [10:04:39]SAM_PROTO_GetFieldsCounters done [10:04:39]requested_item shift.num is exist - process it [10:04:39]requested_item shift.opened is exist - process it [10:04:39]req_shift_opened [10:04:39]FM_GetShiftState [10:04:39]SAM_PROTO_GetShiftState [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 01 00 [10:04:39]Write to MH i2c: E2 08 00 23 83 80 13 01 00 00 00 00 00 23 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 23 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FD [10:04:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:04:39]wFMCommunicate OK [10:04:39]SAM_PROTO_GetShiftState done [10:04:39]FM_GetShiftState done [10:04:39]req_shift_opened done [10:04:39]requested_item shift.open_date is exist - process it [10:04:39]req_shift_open_date [10:04:39]req_shift_open_date done [10:04:39]produce_requested_data done [10:04:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30843,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:04:39]process_action_free close_receipt [10:04:39]json_value_free [10:04:39]json_value_free done [10:04:39]process_json_proto returns [10:04:39]Send response to host [10:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30843,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:04:39]free response buf [10:04:39]execute_script done [10:04:39]execute_script returns [10:04:39]free content buf [10:04:39]Sock 9.Close socket [10:04:39]Sock 9.Thread stoped [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:09]accept exits with 10 [10:05:09]New connection [10:05:09]New thread 3067489636 created [10:05:09]Thread 3067346276 joined [10:05:09]Waiting for new connection... [10:05:09] Sock 10.Parse request [10:05:09]Sock 10.Check first char [10:05:09]Sock 10.First char is OK [10:05:09]request: POST /json_proto HTTP/1.0 [10:05:09]Method: POST [10:05:09]URL: /json_proto [10:05:09]Method is POST - this is cgi request [10:05:09]url: /json_proto [10:05:09]query_string will be loaded in cgi processing [10:05:09]execute_cgi json_proto POST (null) [10:05:09]execute_cgi path=json_proto method=POST [10:05:09]POST find Content-Length [10:05:09]Host: 172.17.51.3:8080 [10:05:09]Content-Length: 677 [10:05:09]Content-Type: application/json [10:05:09] [10:05:09]POST finish read [10:05:09]Found Content-Length = 677 [10:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:09]execute_script... [10:05: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)343263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:09]POST & json_proto [10:05:09]process_json_proto [10:05:09]json parsed OK: [10:05:09]protocol is kg_v1.0 [10:05:09]action value=close_receipt [10:05:09]process_action close_receipt [10:05:09]cmd_close_receipt [10:05:09]MH_GetDate [10:05:09]Write to MH i2c: F0 00 00 24 83 96 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 09 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 09 00 24 83 00 DF 78 17 67 04 C1 95 66 34 [10:05:09]GetLastDocTimeStamp 1729591485 [10:05:09]current date 1729591519 [10:05:09]FM_GetShiftState [10:05:09]SAM_PROTO_GetShiftState [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 01 00 [10:05:09]Write to MH i2c: E2 08 00 25 83 80 13 01 00 00 00 00 00 25 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 25 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FF [10:05:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetShiftState done [10:05:09]FM_GetShiftState done [10:05:09]opened in 1729557342 [10:05:09]opened+sec_in_day 1729643742 [10:05:09]quantity*price = 50041 [10:05:09]sum+1 = 50042 [10:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 77 22.10.2024 10:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30844 ФПД: 202692325653708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100519&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30844&fm=202692325653708&tin=02508201610067®Number=0000000000186857&sum=50000 [10:05:10]StoreToDocumentArchive [10:05:10]shift 116 fd 30844 [10:05:10]save to /storage/0116/doc_00030844 [10:05:10]save last doc name /storage/0116/doc_00030844 to /storage/kkm_last_doc_name [10:05:10]save OK [10:05:10]Clear old archive folders... [10:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:10]tlvbuf is 02037EF0 [10:05:10]SAM_PROTO_ClearQueue [10:05:10]wFMCommunicate request_size=4 [10:05:10]MH_SAM_APDU [10:05:10]CAPDU: 80 09 00 00 [10:05:10]Write to MH i2c: E2 08 00 32 83 80 09 00 00 00 00 00 00 27 [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:10]Read from MH i2c: E2 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 03 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 03 00 32 83 00 90 00 29 [10:05:10]RAPDU: 90 00 [10:05:10]wFMCommunicate OK [10:05:10]SAM_PROTO_ClearQueue done [10:05:10]KKMCreateOFDPacket [10:05:10]OFDProtocolAddRootSTLVToBuf [10:05:10]FM_MakeSignedData [10:05:10]FM_MakeSignedData [10:05:10]SAM_PROTO_SignData [10:05:10]wFMCommunicate request_size=4 [10:05:10]MH_SAM_APDU [10:05:10]CAPDU: 80 0D 01 02 [10:05:10]Write to MH i2c: E2 08 00 33 83 80 0D 01 02 00 00 00 00 2F [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:10]Read from MH i2c: E2 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 03 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 03 00 33 83 00 90 00 2A [10:05:10]RAPDU: 90 00 [10:05:10]wFMCommunicate OK [10:05:10]wFMCommunicate request_size=255 [10:05:10]MH_SAM_APDU [10:05: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 78 00 00 35 04 06 00 B8 [10:05:10]Write to MH i2c: E2 02 01 34 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 78 00 00 35 04 06 00 B8 00 00 02 [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 34 83 00 90 00 2B [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]wFMCommunicate request_size=10 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 02 02 05 58 FC 11 BC CC [10:05:11]Write to MH i2c: E2 0D 00 35 83 80 0D 02 02 05 00 58 FC 11 BC CC 00 00 29 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 35 83 00 90 00 2C [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 03 02 [10:05:11]Write to MH i2c: E2 08 00 36 83 80 0D 03 02 00 00 00 00 34 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0B 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0B 00 36 83 00 D5 1F 9C 59 B8 A5 7F B5 90 00 AF [10:05:11]RAPDU: D5 1F 9C 59 B8 A5 7F B5 90 00 [10:05:11]wFMCommunicate OK [10:05:11]SAM_PROTO_SignData done [10:05:11]FM_MakeSignedData done [10:05:11]CreateOFDProtocolMessage [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 11 00 00 [10:05:11]Write to MH i2c: E2 08 00 37 83 80 11 00 00 00 00 00 00 34 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 37 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [10:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:05:11]wFMCommunicate OK [10:05:11]CreateOFDProtocolMessage done [10:05:11]OFDSenderStorePacket 30844 [10:05:11]StoreOFDPacket docnum=30844 [10:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 D1 07 01 FE 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 78 00 00 35 04 06 00 B8 58 FC 11 BC CC D5 1F 9C 59 B8 A5 7F B5 [10:05:11]CheckFolder [10:05:11]dirname=/storage/ofd_packets [10:05:11]CheckFolder done [10:05:11]ProducePacketName [10:05:11]name=ofd_packets/00030844 [10:05:11]NVStorageSaveData ofd_packets/00030844 [10:05:11]File name is /storage/ofd_packets/00030844 [10:05:11]Write 301 bytes [10:05:11]NVStorageSaveData done [10:05:11]OFDSenderStorePacket done [10:05:11]KKMCreateOFDPacket done [10:05:11]NVStorageSaveData kkm_last_timestamp [10:05:11]File name is /storage/kkm_last_timestamp [10:05:11]Write 4 bytes [10:05:11]NVStorageSaveData done [10:05:11]ExternCall_PrintAddStr [10:05:11]wPrintStart [10:05:11]Write to MH i2c: 01 00 00 38 83 BB [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 07 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 07 00 38 83 00 00 00 00 00 FF 0F D0 [10:05:11]RasterBufferAndPrint [10:05:11]line Счет N : (1)343263 [10:05:11]line ИНН: 02508201610067 [10:05:11]line Контрольно-Кассовый Чек [10:05:11]line ПРОДАЖА [10:05:11]line ТРК (МРК, ГНК) : 63 [10:05:11]line Товар: 2710124130 [10:05:11]line Аи-92-К-2 [10:05:11]line 7.480 * 66.90 [10:05:11]line = 500.41 [10:05:11]line НДС 12% НСП 1% [10:05:11]line > о реализуемом товаре [10:05:11]line ОКРУГЛЕНИЕ: -0.41 [10:05:11]line ИТОГО: 500.00 [10:05:11]line Внесено: 500.00 [10:05:11]line СДАЧА: 0.00 [10:05:11]line НСП 1% : 4.43 [10:05:11]line НДС 12% : 53.14 [10:05:11]line Наличными: 500.00 [10:05:11]line Безнал.: 0.00 [10:05:11]line Место: АЗС № 78 "Партнер Нефть" [10:05:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:05:11]line СНО: Общий режим [10:05:11]line Чек 77 22.10.2024 10:05 [10:05:11]line Смена: 116 ФФД: 1.0 [10:05:11]line ЗНМ: 0300000137 [10:05:11]line РНМ: 0000000000186857 [10:05:11]line Версия ККМ: v1.0 [10:05:11]line ФМ: 0000000002094219 [10:05:11]line ФД: 30844 [10:05:11]line ФПД: 202692325653708 [10:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100519&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30844&fm=202692325653708&tin=02508201610067®Number=0000000000186857&sum=50000 [10:05:11]OFD Sender: Processing packet 30844 [packets to send 10, broken 9] [10:05:11]ProducePacketName [10:05:11]name=ofd_packets/00030844 [10:05:11]OFD Sender: To server: pG, [10:05:11]CommunicateWithHost lk.salyk.kg:30040 [10:05:11]ConnectInit lk.salyk.kg [10:05:11]written 0, free lines is 4095 [10:05:11]Connected sock=9 [10:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 D1 07 01 FE 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF 78 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 78 00 00 35 04 06 00 B8 58 FC 11 BC CC D5 1F 9C 59 B8 A5 7F B5 [10:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 7D 47 00 CA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 78 00 00 F4 03 04 00 5D 23 17 67 B6 04 01 00 00 CE DB 38 CD F6 7A 93 A2 [10:05:12]CommunicateWithHost err = 0 [10:05:12]CheckOFDResponse [10:05:12]1017 (14) - 77093643461234 [10:05:12]1041 (16) - 0000000002094219 [10:05:12]1040 (4) - 30844 [10:05:12]1012 (4) - 22.10.2024 04:00 [10:05:12]1206 (1) - 0 [10:05:12]OFD Sender: Remove packet 30844 [10:05:12]ProducePacketName [10:05:12]name=ofd_packets/00030844 [10:05:12]NVStorageDeleteData [10:05:12]Write to MH i2c: 01 00 00 63 83 E6 [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 07 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 07 00 63 83 00 00 00 00 00 F2 0C EB [10:05:12]RasterBufferAndPrint [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]written 0, free lines is 3320 [10:05:12]MH_Cut [10:05:12]Write to MH i2c: D1 01 00 6A 83 01 BF [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: D1 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: D1 01 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: D1 01 00 6A 83 00 BE [10:05:12]Write to MH i2c: 01 00 00 6B 83 EE [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]OFD Sender: No OFD packet to send [10:05:12]*** Cut start [10:05:12]*** Partial cut [10:05:12]*** CUTSNS_PIN = 1 [10:05:12]*** CUTSNS_PIN = 0 [10:05:13]*** Brake cut motor [10:05:13]Read from MH i2c: 01 [10:05:13]MH_I2C_Read... [10:05:13]*** Stop cut motor [10:05:13]*** Cut end [10:05:13]Read from MH i2c: 01 07 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: 01 07 00 6B 83 00 00 00 00 00 FF 0F 03 [10:05:13]process_action close_receipt done [10:05:13]requested_data is exist [10:05:13]produce_requested_data [10:05:13]requested_item fm.sn is exist - process it [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 11 00 00 [10:05:13]Write to MH i2c: E2 08 00 6C 83 80 11 00 00 00 00 00 00 69 [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 6C 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [10:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:05:13]wFMCommunicate OK [10:05:13]requested_item fd.num is exist - process it [10:05:13]SAM_PROTO_GetFieldsCounters [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 13 00 00 [10:05:13]Write to MH i2c: E2 08 00 6D 83 80 13 00 00 00 00 00 00 6C [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 62 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 62 00 6D 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 78 00 00 0E 04 04 00 74 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 E1 [10:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_GetFieldsCounters done [10:05:13]requested_item shift.num is exist - process it [10:05:13]requested_item shift.opened is exist - process it [10:05:13]req_shift_opened [10:05:13]FM_GetShiftState [10:05:13]SAM_PROTO_GetShiftState [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 13 01 00 [10:05:13]Write to MH i2c: E2 08 00 6E 83 80 13 01 00 00 00 00 00 6E [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 6E 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 48 [10:05:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_GetShiftState done [10:05:13]FM_GetShiftState done [10:05:13]req_shift_opened done [10:05:13]requested_item shift.open_date is exist - process it [10:05:13]req_shift_open_date [10:05:13]req_shift_open_date done [10:05:13]produce_requested_data done [10:05:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30844,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:05:13]process_action_free close_receipt [10:05:13]json_value_free [10:05:13]json_value_free done [10:05:13]process_json_proto returns [10:05:13]Send response to host [10:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30844,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:05:13]free response buf [10:05:13]execute_script done [10:05:13]execute_script returns [10:05:13]free content buf [10:05:13]Sock 10.Close socket [10:05:13]Sock 10.Thread stoped [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:04]accept exits with 7 [10:07:04]New connection [10:07:04]New thread 3067346276 created [10:07:04]Thread 3067489636 joined [10:07:04]Waiting for new connection... [10:07:04] Sock 7.Parse request [10:07:04]Sock 7.Check first char [10:07:04]Sock 7.First char is OK [10:07:04]request: POST /json_proto HTTP/1.0 [10:07:04]Method: POST [10:07:04]URL: /json_proto [10:07:04]Method is POST - this is cgi request [10:07:04]url: /json_proto [10:07:04]query_string will be loaded in cgi processing [10:07:04]execute_cgi json_proto POST (null) [10:07:04]execute_cgi path=json_proto method=POST [10:07:04]POST find Content-Length [10:07:04]Host: 172.17.51.3:8080 [10:07:04]Content-Length: 682 [10:07:04]Content-Type: application/json [10:07:04] [10:07:04]POST finish read [10:07:04]Found Content-Length = 682 [10:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:07:04]execute_script... [10:07: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)343264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:07:04]POST & json_proto [10:07:04]process_json_proto [10:07:04]json parsed OK: [10:07:04]protocol is kg_v1.0 [10:07:04]action value=close_receipt [10:07:04]process_action close_receipt [10:07:04]cmd_close_receipt [10:07:04]MH_GetDate [10:07:04]Write to MH i2c: F0 00 00 6F 83 E1 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: F0 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: F0 09 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: F0 09 00 6F 83 00 52 79 17 67 04 C1 95 66 F3 [10:07:04]GetLastDocTimeStamp 1729591519 [10:07:04]current date 1729591634 [10:07:04]FM_GetShiftState [10:07:04]SAM_PROTO_GetShiftState [10:07:04]wFMCommunicate request_size=4 [10:07:04]MH_SAM_APDU [10:07:04]CAPDU: 80 13 01 00 [10:07:04]Write to MH i2c: E2 08 00 70 83 80 13 01 00 00 00 00 00 70 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 0E 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 0E 00 70 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4A [10:07:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:07:04]wFMCommunicate OK [10:07:04]SAM_PROTO_GetShiftState done [10:07:04]FM_GetShiftState done [10:07:04]opened in 1729557342 [10:07:04]opened+sec_in_day 1729643742 [10:07:04]quantity*price = 200031 [10:07:04]sum+1 = 200032 [10:07:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 78 22.10.2024 10:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30845 ФПД: 171291596285518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30845&fm=171291596285518&tin=02508201610067®Number=0000000000186857&sum=200000 [10:07:06]StoreToDocumentArchive [10:07:06]shift 116 fd 30845 [10:07:06]save to /storage/0116/doc_00030845 [10:07:06]save last doc name /storage/0116/doc_00030845 to /storage/kkm_last_doc_name [10:07:06]save OK [10:07:06]Clear old archive folders... [10:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:06]tlvbuf is 01DE3320 [10:07:06]SAM_PROTO_ClearQueue [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 09 00 00 [10:07:06]Write to MH i2c: E2 08 00 7D 83 80 09 00 00 00 00 00 00 72 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 7D 83 00 90 00 74 [10:07:06]RAPDU: 90 00 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_ClearQueue done [10:07:06]KKMCreateOFDPacket [10:07:06]OFDProtocolAddRootSTLVToBuf [10:07:06]FM_MakeSignedData [10:07:06]FM_MakeSignedData [10:07:06]SAM_PROTO_SignData [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 0D 01 02 [10:07:06]Write to MH i2c: E2 08 00 7E 83 80 0D 01 02 00 00 00 00 7A [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 7E 83 00 90 00 75 [10:07:06]RAPDU: 90 00 [10:07:06]wFMCommunicate OK [10:07:06]wFMCommunicate request_size=255 [10:07:06]MH_SAM_APDU [10:07: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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 52 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 78 00 00 35 04 06 00 9B [10:07:06]Write to MH i2c: E2 02 01 7F 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 52 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 78 00 00 35 04 06 00 9B 00 00 E8 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 7F 83 00 90 00 76 [10:07:06]RAPDU: 90 00 [10:07:06]wFMCommunicate OK [10:07:06]wFMCommunicate request_size=10 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 0D 02 02 05 C9 EE BF E6 4E [10:07:06]Write to MH i2c: E2 0D 00 80 83 80 0D 02 02 05 00 C9 EE BF E6 4E 00 00 31 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 03 00 80 83 00 90 00 77 [10:07:06]RAPDU: 90 00 [10:07:06]wFMCommunicate OK [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 0D 03 02 [10:07:06]Write to MH i2c: E2 08 00 81 83 80 0D 03 02 00 00 00 00 7F [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0B 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0B 00 81 83 00 E8 B4 E2 96 C5 44 B2 A7 90 00 F6 [10:07:06]RAPDU: E8 B4 E2 96 C5 44 B2 A7 90 00 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_SignData done [10:07:06]FM_MakeSignedData done [10:07:06]CreateOFDProtocolMessage [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 11 00 00 [10:07:06]Write to MH i2c: E2 08 00 82 83 80 11 00 00 00 00 00 00 7F [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 82 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CD [10:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:07:06]wFMCommunicate OK [10:07:06]CreateOFDProtocolMessage done [10:07:06]OFDSenderStorePacket 30845 [10:07:06]StoreOFDPacket docnum=30845 [10:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D 1A 07 01 64 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 52 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 78 00 00 35 04 06 00 9B C9 EE BF E6 4E E8 B4 E2 96 C5 44 B2 A7 [10:07:06]CheckFolder [10:07:06]dirname=/storage/ofd_packets [10:07:06]CheckFolder done [10:07:06]ProducePacketName [10:07:06]name=ofd_packets/00030845 [10:07:06]NVStorageSaveData ofd_packets/00030845 [10:07:06]File name is /storage/ofd_packets/00030845 [10:07:06]Write 301 bytes [10:07:06]NVStorageSaveData done [10:07:06]OFDSenderStorePacket done [10:07:06]KKMCreateOFDPacket done [10:07:06]NVStorageSaveData kkm_last_timestamp [10:07:06]File name is /storage/kkm_last_timestamp [10:07:06]Write 4 bytes [10:07:06]NVStorageSaveData done [10:07:06]ExternCall_PrintAddStr [10:07:06]wPrintStart [10:07:06]Write to MH i2c: 01 00 00 83 83 06 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: 01 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: 01 07 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: 01 07 00 83 83 00 00 00 00 00 FF 0F 1B [10:07:06]RasterBufferAndPrint [10:07:06]line Счет N : (1)343264 [10:07:06]line ИНН: 02508201610067 [10:07:06]line Контрольно-Кассовый Чек [10:07:06]line ПРОДАЖА [10:07:06]line ТРК (МРК, ГНК) : 43 [10:07:06]line Товар: 2710124130 [10:07:06]line Аи-92-К-2 [10:07:06]line 29.900 * 66.90 [10:07:06]line = 2000.31 [10:07:06]line НДС 12% НСП 1% [10:07:06]line > о реализуемом товаре [10:07:06]line ОКРУГЛЕНИЕ: -0.31 [10:07:06]line ИТОГО: 2000.00 [10:07:06]line Внесено: 2000.00 [10:07:06]line СДАЧА: 0.00 [10:07:06]line НСП 1% : 17.70 [10:07:06]line НДС 12% : 212.42 [10:07:06]line Наличными: 2000.00 [10:07:06]line Безнал.: 0.00 [10:07:06]line Место: АЗС № 78 "Партнер Нефть" [10:07:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:07:06]line СНО: Общий режим [10:07:06]line Чек 78 22.10.2024 10:07 [10:07:06]line Смена: 116 ФФД: 1.0 [10:07:06]line ЗНМ: 0300000137 [10:07:06]line РНМ: 0000000000186857 [10:07:06]line Версия ККМ: v1.0 [10:07:06]line ФМ: 0000000002094219 [10:07:06]line ФД: 30845 [10:07:06]line ФПД: 171291596285518 [10:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30845&fm=171291596285518&tin=02508201610067®Number=0000000000186857&sum=200000 [10:07:07]OFD Sender: Processing packet 30845 [packets to send 10, broken 9] [10:07:07]ProducePacketName [10:07:07]name=ofd_packets/00030845 [10:07:07]OFD Sender: To server: pG, [10:07:07]CommunicateWithHost lk.salyk.kg:30040 [10:07:07]ConnectInit lk.salyk.kg [10:07:07]written 0, free lines is 4095 [10:07:07]Connected sock=10 [10:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D 1A 07 01 64 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 52 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 78 00 00 35 04 06 00 9B C9 EE BF E6 4E E8 B4 E2 96 C5 44 B2 A7 [10:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8D 90 47 00 4E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 78 00 00 F4 03 04 00 D0 23 17 67 B6 04 01 00 00 31 A7 C5 25 1D 50 83 FF [10:07:07]CommunicateWithHost err = 0 [10:07:07]CheckOFDResponse [10:07:07]1017 (14) - 77093643461234 [10:07:07]1041 (16) - 0000000002094219 [10:07:07]1040 (4) - 30845 [10:07:07]1012 (4) - 22.10.2024 04:02 [10:07:07]1206 (1) - 0 [10:07:07]OFD Sender: Remove packet 30845 [10:07:07]ProducePacketName [10:07:07]name=ofd_packets/00030845 [10:07:07]NVStorageDeleteData [10:07:07]Write to MH i2c: 01 00 00 AE 83 31 [10:07:07]Write i2c OK [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: 01 [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: 01 07 00 [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: 01 07 00 AE 83 00 00 00 00 00 EC 0C 30 [10:07:07]RasterBufferAndPrint [10:07:07]line [10:07:07]line [10:07:07]line [10:07:07]line [10:07:07]line [10:07:07]written 0, free lines is 3317 [10:07:07]MH_Cut [10:07:07]Write to MH i2c: D1 01 00 B5 83 01 0A [10:07:07]Write i2c OK [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: D1 [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: D1 01 00 [10:07:07]MH_I2C_Read... [10:07:07]Read from MH i2c: D1 01 00 B5 83 00 09 [10:07:07]Write to MH i2c: 01 00 00 B6 83 39 [10:07:07]Write i2c OK [10:07:07]MH_I2C_Read... [10:07:07]OFD Sender: No OFD packet to send [10:07:08]*** Cut start [10:07:08]*** Partial cut [10:07:08]*** CUTSNS_PIN = 1 [10:07:08]*** CUTSNS_PIN = 0 [10:07:08]*** Brake cut motor [10:07:08]Read from MH i2c: 01 [10:07:08]MH_I2C_Read... [10:07:08]*** Stop cut motor [10:07:08]*** Cut end [10:07:08]Read from MH i2c: 01 07 00 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: 01 07 00 B6 83 00 00 00 00 00 FF 0F 4E [10:07:08]process_action close_receipt done [10:07:08]requested_data is exist [10:07:08]produce_requested_data [10:07:08]requested_item fm.sn is exist - process it [10:07:08]wFMCommunicate request_size=4 [10:07:08]MH_SAM_APDU [10:07:08]CAPDU: 80 11 00 00 [10:07:08]Write to MH i2c: E2 08 00 B7 83 80 11 00 00 00 00 00 00 B4 [10:07:08]Write i2c OK [10:07:08]MH_I2C_Read... [10:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:08]Read from MH i2c: E2 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 17 00 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 17 00 B7 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [10:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:07:08]wFMCommunicate OK [10:07:08]requested_item fd.num is exist - process it [10:07:08]SAM_PROTO_GetFieldsCounters [10:07:08]wFMCommunicate request_size=4 [10:07:08]MH_SAM_APDU [10:07:08]CAPDU: 80 13 00 00 [10:07:08]Write to MH i2c: E2 08 00 B8 83 80 13 00 00 00 00 00 00 B7 [10:07:08]Write i2c OK [10:07:08]MH_I2C_Read... [10:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:08]Read from MH i2c: E2 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 62 00 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 62 00 B8 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 78 00 00 0E 04 04 00 74 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 30 [10:07:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:08]wFMCommunicate OK [10:07:08]SAM_PROTO_GetFieldsCounters done [10:07:08]requested_item shift.num is exist - process it [10:07:08]requested_item shift.opened is exist - process it [10:07:08]req_shift_opened [10:07:08]FM_GetShiftState [10:07:08]SAM_PROTO_GetShiftState [10:07:08]wFMCommunicate request_size=4 [10:07:08]MH_SAM_APDU [10:07:08]CAPDU: 80 13 01 00 [10:07:08]Write to MH i2c: E2 08 00 B9 83 80 13 01 00 00 00 00 00 B9 [10:07:08]Write i2c OK [10:07:08]MH_I2C_Read... [10:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:08]Read from MH i2c: E2 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 0E 00 [10:07:08]MH_I2C_Read... [10:07:08]Read from MH i2c: E2 0E 00 B9 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 93 [10:07:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:07:08]wFMCommunicate OK [10:07:08]SAM_PROTO_GetShiftState done [10:07:08]FM_GetShiftState done [10:07:08]req_shift_opened done [10:07:08]requested_item shift.open_date is exist - process it [10:07:08]req_shift_open_date [10:07:08]req_shift_open_date done [10:07:08]produce_requested_data done [10:07:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30845,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:07:08]process_action_free close_receipt [10:07:08]json_value_free [10:07:08]json_value_free done [10:07:08]process_json_proto returns [10:07:08]Send response to host [10:07:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30845,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:07:08]free response buf [10:07:08]execute_script done [10:07:08]execute_script returns [10:07:08]free content buf [10:07:08]Sock 7.Close socket [10:07:08]Sock 7.Thread stoped [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:06]accept exits with 9 [10:08:06]New connection [10:08:06]New thread 3067489636 created [10:08:06]Thread 3067346276 joined [10:08:06]Waiting for new connection... [10:08:06] Sock 9.Parse request [10:08:06]Sock 9.Check first char [10:08:06]Sock 9.First char is OK [10:08:06]request: POST /json_proto HTTP/1.0 [10:08:06]Method: POST [10:08:06]URL: /json_proto [10:08:06]Method is POST - this is cgi request [10:08:06]url: /json_proto [10:08:06]query_string will be loaded in cgi processing [10:08:06]execute_cgi json_proto POST (null) [10:08:06]execute_cgi path=json_proto method=POST [10:08:06]POST find Content-Length [10:08:06]Host: 172.17.51.3:8080 [10:08:06]Content-Length: 677 [10:08:06]Content-Type: application/json [10:08:06] [10:08:06]POST finish read [10:08:06]Found Content-Length = 677 [10:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:06]execute_script... [10: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)343265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:06]POST & json_proto [10:08:06]process_json_proto [10:08:06]json parsed OK: [10:08:06]protocol is kg_v1.0 [10:08:06]action value=close_receipt [10:08:06]process_action close_receipt [10:08:06]cmd_close_receipt [10:08:06]MH_GetDate [10:08:06]Write to MH i2c: F0 00 00 BA 83 2C [10:08:06]Write i2c OK [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 09 00 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 09 00 BA 83 00 90 79 17 67 04 C1 95 66 7C [10:08:06]GetLastDocTimeStamp 1729591634 [10:08:06]current date 1729591696 [10:08:06]FM_GetShiftState [10:08:06]SAM_PROTO_GetShiftState [10:08:06]wFMCommunicate request_size=4 [10:08:06]MH_SAM_APDU [10:08:06]CAPDU: 80 13 01 00 [10:08:06]Write to MH i2c: E2 08 00 BB 83 80 13 01 00 00 00 00 00 BB [10:08:06]Write i2c OK [10:08:06]MH_I2C_Read... [10:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:06]Read from MH i2c: E2 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: E2 0E 00 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: E2 0E 00 BB 83 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 95 [10:08:06]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:08:06]wFMCommunicate OK [10:08:06]SAM_PROTO_GetShiftState done [10:08:06]FM_GetShiftState done [10:08:06]opened in 1729557342 [10:08:06]opened+sec_in_day 1729643742 [10:08:06]quantity*price = 30038 [10:08:06]sum+1 = 30039 [10:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 79 22.10.2024 10:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30846 ФПД: 232366714759643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30846&fm=232366714759643&tin=02508201610067®Number=0000000000186857&sum=30000 [10:08:07]StoreToDocumentArchive [10:08:07]shift 116 fd 30846 [10:08:07]save to /storage/0116/doc_00030846 [10:08:07]save last doc name /storage/0116/doc_00030846 to /storage/kkm_last_doc_name [10:08:07]save OK [10:08:07]Clear old archive folders... [10:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:07]tlvbuf is 01DE33B0 [10:08:07]SAM_PROTO_ClearQueue [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 09 00 00 [10:08:07]Write to MH i2c: E2 08 00 C8 83 80 09 00 00 00 00 00 00 BD [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 C8 83 00 90 00 BF [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_ClearQueue done [10:08:07]KKMCreateOFDPacket [10:08:07]OFDProtocolAddRootSTLVToBuf [10:08:07]FM_MakeSignedData [10:08:07]FM_MakeSignedData [10:08:07]SAM_PROTO_SignData [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 01 02 [10:08:07]Write to MH i2c: E2 08 00 C9 83 80 0D 01 02 00 00 00 00 C5 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 C9 83 00 90 00 C0 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=255 [10:08:07]MH_SAM_APDU [10: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 78 00 00 35 04 06 00 D3 [10:08:07]Write to MH i2c: E2 02 01 CA 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 78 00 00 35 04 06 00 D3 00 00 5D [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 CA 83 00 90 00 C1 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=10 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 02 02 05 56 17 7D A9 DB [10:08:07]Write to MH i2c: E2 0D 00 CB 83 80 0D 02 02 05 00 56 17 7D A9 DB 00 00 40 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 CB 83 00 90 00 C2 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 03 02 [10:08:07]Write to MH i2c: E2 08 00 CC 83 80 0D 03 02 00 00 00 00 CA [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0B 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0B 00 CC 83 00 21 20 23 54 AB 93 35 51 90 00 47 [10:08:07]RAPDU: 21 20 23 54 AB 93 35 51 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_SignData done [10:08:07]FM_MakeSignedData done [10:08:07]CreateOFDProtocolMessage [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 11 00 00 [10:08:07]Write to MH i2c: E2 08 00 CD 83 80 11 00 00 00 00 00 00 CA [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]OFD Sender: No OFD packet to send [10:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 CD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [10:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:08:07]wFMCommunicate OK [10:08:07]CreateOFDProtocolMessage done [10:08:07]OFDSenderStorePacket 30846 [10:08:07]StoreOFDPacket docnum=30846 [10:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E C8 07 01 FE E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 78 00 00 35 04 06 00 D3 56 17 7D A9 DB 21 20 23 54 AB 93 35 51 [10:08:07]CheckFolder [10:08:07]dirname=/storage/ofd_packets [10:08:07]CheckFolder done [10:08:07]ProducePacketName [10:08:07]name=ofd_packets/00030846 [10:08:07]NVStorageSaveData ofd_packets/00030846 [10:08:07]File name is /storage/ofd_packets/00030846 [10:08:07]Write 301 bytes [10:08:07]NVStorageSaveData done [10:08:07]OFDSenderStorePacket done [10:08:07]KKMCreateOFDPacket done [10:08:07]NVStorageSaveData kkm_last_timestamp [10:08:07]File name is /storage/kkm_last_timestamp [10:08:07]Write 4 bytes [10:08:07]NVStorageSaveData done [10:08:07]ExternCall_PrintAddStr [10:08:07]wPrintStart [10:08:07]Write to MH i2c: 01 00 00 CE 83 51 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 CE 83 00 00 00 00 00 FF 0F 66 [10:08:07]RasterBufferAndPrint [10:08:07]line Счет N : (1)343265 [10:08:07]line ИНН: 02508201610067 [10:08:07]line Контрольно-Кассовый Чек [10:08:07]line ПРОДАЖА [10:08:07]line ТРК (МРК, ГНК) : 53 [10:08:07]line Товар: 2710124130 [10:08:07]line Аи-92-К-2 [10:08:07]line 4.490 * 66.90 [10:08:07]line = 300.38 [10:08:07]line НДС 12% НСП 1% [10:08:07]line > о реализуемом товаре [10:08:07]line ОКРУГЛЕНИЕ: -0.38 [10:08:07]line ИТОГО: 300.00 [10:08:07]line Внесено: 300.00 [10:08:07]line СДАЧА: 0.00 [10:08:07]line НСП 1% : 2.66 [10:08:07]line НДС 12% : 31.90 [10:08:07]line Наличными: 300.00 [10:08:07]line Безнал.: 0.00 [10:08:07]line Место: АЗС № 78 "Партнер Нефть" [10:08:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:08:07]line СНО: Общий режим [10:08:07]line Чек 79 22.10.2024 10:08 [10:08:07]line Смена: 116 ФФД: 1.0 [10:08:07]line ЗНМ: 0300000137 [10:08:07]line РНМ: 0000000000186857 [10:08:07]line Версия ККМ: v1.0 [10:08:07]line ФМ: 0000000002094219 [10:08:07]line ФД: 30846 [10:08:07]line ФПД: 232366714759643 [10:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30846&fm=232366714759643&tin=02508201610067®Number=0000000000186857&sum=30000 [10:08:08]OFD Sender: Processing packet 30846 [packets to send 10, broken 9] [10:08:08]ProducePacketName [10:08:08]name=ofd_packets/00030846 [10:08:08]OFD Sender: To server: pG, [10:08:08]CommunicateWithHost lk.salyk.kg:30040 [10:08:08]ConnectInit lk.salyk.kg [10:08:08]written 0, free lines is 4095 [10:08:08]Connected sock=10 [10:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E C8 07 01 FE E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 79 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 78 00 00 35 04 06 00 D3 56 17 7D A9 DB 21 20 23 54 AB 93 35 51 [10:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3B 5B 47 00 27 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 78 00 00 F4 03 04 00 0E 24 17 67 B6 04 01 00 00 D5 42 DA 37 EF B6 29 40 [10:08:08]CommunicateWithHost err = 0 [10:08:08]CheckOFDResponse [10:08:08]1017 (14) - 77093643461234 [10:08:08]1041 (16) - 0000000002094219 [10:08:08]1040 (4) - 30846 [10:08:08]1012 (4) - 22.10.2024 04:03 [10:08:08]1206 (1) - 0 [10:08:08]OFD Sender: Remove packet 30846 [10:08:08]ProducePacketName [10:08:08]name=ofd_packets/00030846 [10:08:08]NVStorageDeleteData [10:08:08]Write to MH i2c: 01 00 00 F9 83 7C [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 07 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 07 00 F9 83 00 00 00 00 00 F2 0C 81 [10:08:08]RasterBufferAndPrint [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]written 0, free lines is 3320 [10:08:08]MH_Cut [10:08:08]Write to MH i2c: D1 01 00 00 84 01 56 [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 01 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 01 00 00 84 00 55 [10:08:08]Write to MH i2c: 01 00 00 01 84 85 [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:09]OFD Sender: No OFD packet to send [10:08:09]*** Cut start [10:08:09]*** Partial cut [10:08:09]*** CUTSNS_PIN = 1 [10:08:09]*** CUTSNS_PIN = 0 [10:08:09]*** Brake cut motor [10:08:09]Read from MH i2c: 01 [10:08:10]MH_I2C_Read... [10:08:10]*** Stop cut motor [10:08:10]*** Cut end [10:08:10]Read from MH i2c: 01 07 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 07 00 01 84 00 00 00 00 00 FF 0F 9A [10:08:10]process_action close_receipt done [10:08:10]requested_data is exist [10:08:10]produce_requested_data [10:08:10]requested_item fm.sn is exist - process it [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 11 00 00 [10:08:10]Write to MH i2c: E2 08 00 02 84 80 11 00 00 00 00 00 00 00 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 17 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 17 00 02 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [10:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:08:10]wFMCommunicate OK [10:08:10]requested_item fd.num is exist - process it [10:08:10]SAM_PROTO_GetFieldsCounters [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 13 00 00 [10:08:10]Write to MH i2c: E2 08 00 03 84 80 13 00 00 00 00 00 00 03 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 62 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 62 00 03 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 78 00 00 0E 04 04 00 74 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 80 [10:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_GetFieldsCounters done [10:08:10]requested_item shift.num is exist - process it [10:08:10]requested_item shift.opened is exist - process it [10:08:10]req_shift_opened [10:08:10]FM_GetShiftState [10:08:10]SAM_PROTO_GetShiftState [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 13 01 00 [10:08:10]Write to MH i2c: E2 08 00 04 84 80 13 01 00 00 00 00 00 05 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 04 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DF [10:08:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_GetShiftState done [10:08:10]FM_GetShiftState done [10:08:10]req_shift_opened done [10:08:10]requested_item shift.open_date is exist - process it [10:08:10]req_shift_open_date [10:08:10]req_shift_open_date done [10:08:10]produce_requested_data done [10:08:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30846,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:08:10]process_action_free close_receipt [10:08:10]json_value_free [10:08:10]json_value_free done [10:08:10]process_json_proto returns [10:08:10]Send response to host [10:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30846,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:08:10]free response buf [10:08:10]execute_script done [10:08:10]execute_script returns [10:08:10]free content buf [10:08:10]Sock 9.Close socket [10:08:10]Sock 9.Thread stoped [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [10:09:59]accept exits with 7 [10:09:59]New connection [10:09:59]New thread 3067346276 created [10:09:59]Thread 3067489636 joined [10:09:59]Waiting for new connection... [10:09:59] Sock 7.Parse request [10:09:59]Sock 7.Check first char [10:09:59]Sock 7.First char is OK [10:09:59]request: POST /json_proto HTTP/1.0 [10:09:59]Method: POST [10:09:59]URL: /json_proto [10:09:59]Method is POST - this is cgi request [10:09:59]url: /json_proto [10:09:59]query_string will be loaded in cgi processing [10:09:59]execute_cgi json_proto POST (null) [10:09:59]execute_cgi path=json_proto method=POST [10:09:59]POST find Content-Length [10:09:59]Host: 172.17.51.3:8080 [10:09:59]Content-Length: 675 [10:09:59]Content-Type: application/json [10:09:59] [10:09:59]POST finish read [10:09:59]Found Content-Length = 675 [10:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]execute_script... [10:09: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)343266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]POST & json_proto [10:09:59]process_json_proto [10:09:59]json parsed OK: [10:09:59]protocol is kg_v1.0 [10:09:59]action value=close_receipt [10:09:59]process_action close_receipt [10:09:59]cmd_close_receipt [10:09:59]MH_GetDate [10:09:59]Write to MH i2c: F0 00 00 05 84 78 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 05 84 00 00 7A 17 67 04 C1 95 66 39 [10:09:59]GetLastDocTimeStamp 1729591696 [10:09:59]current date 1729591808 [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 06 84 80 13 01 00 00 00 00 00 07 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 06 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E1 [10:09:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetShiftState done [10:09:59]FM_GetShiftState done [10:09:59]opened in 1729557342 [10:09:59]opened+sec_in_day 1729643742 [10:09:59]quantity*price = 90068 [10:09:59]sum+1 = 90069 [10:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 80 22.10.2024 10:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30847 ФПД: 259994753708077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101008&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30847&fm=259994753708077&tin=02508201610067®Number=0000000000186857&sum=90000 [10:10:00]StoreToDocumentArchive [10:10:00]shift 116 fd 30847 [10:10:00]save to /storage/0116/doc_00030847 [10:10:00]save last doc name /storage/0116/doc_00030847 to /storage/kkm_last_doc_name [10:10:00]save OK [10:10:00]Clear old archive folders... [10:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:00]tlvbuf is 01F3C7D0 [10:10:00]SAM_PROTO_ClearQueue [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 09 00 00 [10:10:00]Write to MH i2c: E2 08 00 13 84 80 09 00 00 00 00 00 00 09 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 13 84 00 90 00 0B [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_ClearQueue done [10:10:00]KKMCreateOFDPacket [10:10:00]OFDProtocolAddRootSTLVToBuf [10:10:00]FM_MakeSignedData [10:10:00]FM_MakeSignedData [10:10:00]SAM_PROTO_SignData [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 01 02 [10:10:00]Write to MH i2c: E2 08 00 14 84 80 0D 01 02 00 00 00 00 11 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 14 84 00 90 00 0C [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=255 [10:10:00]MH_SAM_APDU [10:10:00]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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 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 00 7A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 78 00 00 35 04 06 00 EC 76 BE F0 [10:10:00]Write to MH i2c: E2 02 01 15 84 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 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 00 7A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 78 00 00 35 04 06 00 EC 76 BE F0 00 00 24 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 15 84 00 90 00 0D [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=7 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 02 02 02 30 2D [10:10:00]Write to MH i2c: E2 0A 00 16 84 80 0D 02 02 02 00 30 2D 00 00 75 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 16 84 00 90 00 0E [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 03 02 [10:10:00]Write to MH i2c: E2 08 00 17 84 80 0D 03 02 00 00 00 00 16 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0B 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0B 00 17 84 00 67 E3 D3 DF CE 45 84 37 90 00 E1 [10:10:00]RAPDU: 67 E3 D3 DF CE 45 84 37 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_SignData done [10:10:00]FM_MakeSignedData done [10:10:00]CreateOFDProtocolMessage [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 11 00 00 [10:10:00]Write to MH i2c: E2 08 00 18 84 80 11 00 00 00 00 00 00 16 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 17 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 17 00 18 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [10:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:10:00]wFMCommunicate OK [10:10:00]CreateOFDProtocolMessage done [10:10:00]OFDSenderStorePacket 30847 [10:10:00]StoreOFDPacket docnum=30847 [10:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 27 95 04 01 B5 58 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 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 00 7A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 78 00 00 35 04 06 00 EC 76 BE F0 30 2D 67 E3 D3 DF CE 45 84 37 [10:10:00]CheckFolder [10:10:00]dirname=/storage/ofd_packets [10:10:00]CheckFolder done [10:10:00]ProducePacketName [10:10:00]name=ofd_packets/00030847 [10:10:00]NVStorageSaveData ofd_packets/00030847 [10:10:00]File name is /storage/ofd_packets/00030847 [10:10:00]Write 298 bytes [10:10:00]NVStorageSaveData done [10:10:00]OFDSenderStorePacket done [10:10:00]KKMCreateOFDPacket done [10:10:00]NVStorageSaveData kkm_last_timestamp [10:10:00]File name is /storage/kkm_last_timestamp [10:10:00]Write 4 bytes [10:10:00]NVStorageSaveData done [10:10:00]ExternCall_PrintAddStr [10:10:00]wPrintStart [10:10:00]Write to MH i2c: 01 00 00 19 84 9D [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 19 84 00 00 00 00 00 FF 0F B2 [10:10:00]RasterBufferAndPrint [10:10:00]line Счет N : (1)343266 [10:10:00]line ИНН: 02508201610067 [10:10:00]line Контрольно-Кассовый Чек [10:10:00]line ПРОДАЖА [10:10:00]line ТРК (МРК, ГНК) : 44 [10:10:00]line Товар: 2710194210 [10:10:00]line ДТ-К-2 [10:10:00]line 11.820 * 76.20 [10:10:00]line = 900.68 [10:10:00]line НДС 12% НСП 1% [10:10:00]line > о реализуемом товаре [10:10:00]line ОКРУГЛЕНИЕ: -0.68 [10:10:00]line ИТОГО: 900.00 [10:10:00]line Внесено: 900.00 [10:10:00]line СДАЧА: 0.00 [10:10:00]line НСП 1% : 7.97 [10:10:00]line НДС 12% : 95.65 [10:10:00]line Наличными: 900.00 [10:10:00]line Безнал.: 0.00 [10:10:00]line Место: АЗС № 78 "Партнер Нефть" [10:10:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:10:00]line СНО: Общий режим [10:10:00]line Чек 80 22.10.2024 10:10 [10:10:00]line Смена: 116 ФФД: 1.0 [10:10:00]line ЗНМ: 0300000137 [10:10:00]line РНМ: 0000000000186857 [10:10:00]line Версия ККМ: v1.0 [10:10:00]line ФМ: 0000000002094219 [10:10:00]line ФД: 30847 [10:10:00]line ФПД: 259994753708077 [10:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101008&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30847&fm=259994753708077&tin=02508201610067®Number=0000000000186857&sum=90000 [10:10:01]OFD Sender: Processing packet 30847 [packets to send 10, broken 9] [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00030847 [10:10:01]OFD Sender: To server: pG, [10:10:01]CommunicateWithHost lk.salyk.kg:30040 [10:10:01]ConnectInit lk.salyk.kg [10:10:01]written 0, free lines is 4095 [10:10:01]Connected sock=10 [10:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 27 95 04 01 B5 58 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 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 00 7A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 78 00 00 35 04 06 00 EC 76 BE F0 30 2D 67 E3 D3 DF CE 45 84 37 [10:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D4 36 47 00 35 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 32 30 39 34 32 31 39 10 04 04 00 7F 78 00 00 F4 03 04 00 7E 24 17 67 B6 04 01 00 00 FF BD 0C 75 A4 C3 A8 E2 [10:10:01]CommunicateWithHost err = 0 [10:10:01]CheckOFDResponse [10:10:01]1017 (14) - 77093643461234 [10:10:01]1041 (16) - 0000000002094219 [10:10:01]1040 (4) - 30847 [10:10:01]1012 (4) - 22.10.2024 04:05 [10:10:01]1206 (1) - 0 [10:10:01]OFD Sender: Remove packet 30847 [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00030847 [10:10:01]NVStorageDeleteData [10:10:01]Write to MH i2c: 01 00 00 44 84 C8 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 44 84 00 00 00 00 00 E9 0C C4 [10:10:01]RasterBufferAndPrint [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]written 0, free lines is 3311 [10:10:01]MH_Cut [10:10:01]Write to MH i2c: D1 01 00 4B 84 01 A1 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 01 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 01 00 4B 84 00 A0 [10:10:01]Write to MH i2c: 01 00 00 4C 84 D0 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]OFD Sender: No OFD packet to send [10:10:02]*** Cut start [10:10:02]*** Partial cut [10:10:02]*** CUTSNS_PIN = 1 [10:10:02]*** CUTSNS_PIN = 0 [10:10:02]*** Brake cut motor [10:10:02]Read from MH i2c: 01 [10:10:02]MH_I2C_Read... [10:10:02]*** Stop cut motor [10:10:02]*** Cut end [10:10:02]Read from MH i2c: 01 07 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 4C 84 00 00 00 00 00 FF 0F E5 [10:10:02]process_action close_receipt done [10:10:02]requested_data is exist [10:10:02]produce_requested_data [10:10:02]requested_item fm.sn is exist - process it [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 11 00 00 [10:10:02]Write to MH i2c: E2 08 00 4D 84 80 11 00 00 00 00 00 00 4B [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 4D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [10:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:10:02]wFMCommunicate OK [10:10:02]requested_item fd.num is exist - process it [10:10:02]SAM_PROTO_GetFieldsCounters [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 13 00 00 [10:10:02]Write to MH i2c: E2 08 00 4E 84 80 13 00 00 00 00 00 00 4E [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 62 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 62 00 4E 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 78 00 00 0E 04 04 00 74 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 CF [10:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_GetFieldsCounters done [10:10:02]requested_item shift.num is exist - process it [10:10:02]requested_item shift.opened is exist - process it [10:10:02]req_shift_opened [10:10:02]FM_GetShiftState [10:10:02]SAM_PROTO_GetShiftState [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 13 01 00 [10:10:02]Write to MH i2c: E2 08 00 4F 84 80 13 01 00 00 00 00 00 50 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0E 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0E 00 4F 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2A [10:10:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:10:03]wFMCommunicate OK [10:10:03]SAM_PROTO_GetShiftState done [10:10:03]FM_GetShiftState done [10:10:03]req_shift_opened done [10:10:03]requested_item shift.open_date is exist - process it [10:10:03]req_shift_open_date [10:10:03]req_shift_open_date done [10:10:03]produce_requested_data done [10:10:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30847,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:10:03]process_action_free close_receipt [10:10:03]json_value_free [10:10:03]json_value_free done [10:10:03]process_json_proto returns [10:10:03]Send response to host [10:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30847,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:10:03]free response buf [10:10:03]execute_script done [10:10:03]execute_script returns [10:10:03]free content buf [10:10:03]Sock 7.Close socket [10:10:03]Sock 7.Thread stoped [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:47]accept exits with 9 [10:14:47]New connection [10:14:47]New thread 3067489636 created [10:14:47]Thread 3067346276 joined [10:14:47]Waiting for new connection... [10:14:47] Sock 9.Parse request [10:14:47]Sock 9.Check first char [10:14:47]Sock 9.First char is OK [10:14:47]request: POST /json_proto HTTP/1.0 [10:14:47]Method: POST [10:14:47]URL: /json_proto [10:14:47]Method is POST - this is cgi request [10:14:47]url: /json_proto [10:14:47]query_string will be loaded in cgi processing [10:14:47]execute_cgi json_proto POST (null) [10:14:47]execute_cgi path=json_proto method=POST [10:14:47]POST find Content-Length [10:14:47]Host: 172.17.51.3:8080 [10:14:47]Content-Length: 677 [10:14:47]Content-Type: application/json [10:14:47] [10:14:47]POST finish read [10:14:47]Found Content-Length = 677 [10:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:47]execute_script... [10:14: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)343267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:47]POST & json_proto [10:14:47]process_json_proto [10:14:47]json parsed OK: [10:14:47]protocol is kg_v1.0 [10:14:47]action value=close_receipt [10:14:47]process_action close_receipt [10:14:47]cmd_close_receipt [10:14:47]MH_GetDate [10:14:47]Write to MH i2c: F0 00 00 50 84 C3 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: F0 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: F0 09 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: F0 09 00 50 84 00 21 7B 17 67 04 C1 95 66 A6 [10:14:47]GetLastDocTimeStamp 1729591808 [10:14:47]current date 1729592097 [10:14:47]FM_GetShiftState [10:14:47]SAM_PROTO_GetShiftState [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 01 00 [10:14:47]Write to MH i2c: E2 08 00 51 84 80 13 01 00 00 00 00 00 52 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 51 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2C [10:14:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetShiftState done [10:14:47]FM_GetShiftState done [10:14:47]opened in 1729557342 [10:14:47]opened+sec_in_day 1729643742 [10:14:47]quantity*price = 20003 [10:14:47]sum+1 = 20004 [10:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 81 22.10.2024 10:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30848 ФПД: 219852859353257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101457&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30848&fm=219852859353257&tin=02508201610067®Number=0000000000186857&sum=20000 [10:14:48]StoreToDocumentArchive [10:14:48]shift 116 fd 30848 [10:14:48]save to /storage/0116/doc_00030848 [10:14:48]save last doc name /storage/0116/doc_00030848 to /storage/kkm_last_doc_name [10:14:48]save OK [10:14:48]Clear old archive folders... [10:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:48]tlvbuf is 01DD9A70 [10:14:48]SAM_PROTO_ClearQueue [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 09 00 00 [10:14:48]Write to MH i2c: E2 08 00 5E 84 80 09 00 00 00 00 00 00 54 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 03 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 03 00 5E 84 00 90 00 56 [10:14:48]RAPDU: 90 00 [10:14:48]wFMCommunicate OK [10:14:48]SAM_PROTO_ClearQueue done [10:14:48]KKMCreateOFDPacket [10:14:48]OFDProtocolAddRootSTLVToBuf [10:14:48]FM_MakeSignedData [10:14:48]FM_MakeSignedData [10:14:48]SAM_PROTO_SignData [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 0D 01 02 [10:14:48]Write to MH i2c: E2 08 00 5F 84 80 0D 01 02 00 00 00 00 5C [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 03 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 03 00 5F 84 00 90 00 57 [10:14:48]RAPDU: 90 00 [10:14:48]wFMCommunicate OK [10:14:48]wFMCommunicate request_size=255 [10:14:48]MH_SAM_APDU [10:14: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 21 7B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 78 00 00 35 04 06 00 C7 [10:14:48]Write to MH i2c: E2 02 01 60 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 21 7B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 78 00 00 35 04 06 00 C7 00 00 4D [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 60 84 00 90 00 58 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=10 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 02 02 05 F4 7B 95 A8 A9 [10:14:49]Write to MH i2c: E2 0D 00 61 84 80 0D 02 02 05 00 F4 7B 95 A8 A9 00 00 BE [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 61 84 00 90 00 59 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 03 02 [10:14:49]Write to MH i2c: E2 08 00 62 84 80 0D 03 02 00 00 00 00 61 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 62 84 00 82 37 9B E7 86 9E 38 29 90 00 22 [10:14:49]RAPDU: 82 37 9B E7 86 9E 38 29 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_SignData done [10:14:49]FM_MakeSignedData done [10:14:49]CreateOFDProtocolMessage [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 11 00 00 [10:14:49]Write to MH i2c: E2 08 00 63 84 80 11 00 00 00 00 00 00 61 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 63 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [10:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:14:49]wFMCommunicate OK [10:14:49]CreateOFDProtocolMessage done [10:14:49]OFDSenderStorePacket 30848 [10:14:49]StoreOFDPacket docnum=30848 [10:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 D4 07 01 9A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 21 7B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 78 00 00 35 04 06 00 C7 F4 7B 95 A8 A9 82 37 9B E7 86 9E 38 29 [10:14:49]CheckFolder [10:14:49]dirname=/storage/ofd_packets [10:14:49]CheckFolder done [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00030848 [10:14:49]NVStorageSaveData ofd_packets/00030848 [10:14:49]File name is /storage/ofd_packets/00030848 [10:14:49]Write 301 bytes [10:14:49]NVStorageSaveData done [10:14:49]OFDSenderStorePacket done [10:14:49]KKMCreateOFDPacket done [10:14:49]NVStorageSaveData kkm_last_timestamp [10:14:49]File name is /storage/kkm_last_timestamp [10:14:49]Write 4 bytes [10:14:49]NVStorageSaveData done [10:14:49]ExternCall_PrintAddStr [10:14:49]wPrintStart [10:14:49]Write to MH i2c: 01 00 00 64 84 E8 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 64 84 00 00 00 00 00 FF 0F FD [10:14:49]RasterBufferAndPrint [10:14:49]line Счет N : (1)343267 [10:14:49]line ИНН: 02508201610067 [10:14:49]line Контрольно-Кассовый Чек [10:14:49]line ПРОДАЖА [10:14:49]line ТРК (МРК, ГНК) : 63 [10:14:49]line Товар: 2710124130 [10:14:49]line Аи-92-К-2 [10:14:49]line 2.990 * 66.90 [10:14:49]line = 200.03 [10:14:49]line НДС 12% НСП 1% [10:14:49]line > о реализуемом товаре [10:14:49]line ОКРУГЛЕНИЕ: -0.03 [10:14:49]line ИТОГО: 200.00 [10:14:49]line Внесено: 200.00 [10:14:49]line СДАЧА: 0.00 [10:14:49]line НСП 1% : 1.77 [10:14:49]line НДС 12% : 21.24 [10:14:49]line Наличными: 200.00 [10:14:49]line Безнал.: 0.00 [10:14:49]line Место: АЗС № 78 "Партнер Нефть" [10:14:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:14:49]line СНО: Общий режим [10:14:49]line Чек 81 22.10.2024 10:14 [10:14:49]line Смена: 116 ФФД: 1.0 [10:14:49]line ЗНМ: 0300000137 [10:14:49]line РНМ: 0000000000186857 [10:14:49]line Версия ККМ: v1.0 [10:14:49]line ФМ: 0000000002094219 [10:14:49]line ФД: 30848 [10:14:49]line ФПД: 219852859353257 [10:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101457&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30848&fm=219852859353257&tin=02508201610067®Number=0000000000186857&sum=20000 [10:14:49]OFD Sender: Processing packet 30848 [packets to send 10, broken 9] [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00030848 [10:14:49]OFD Sender: To server: pG, [10:14:49]CommunicateWithHost lk.salyk.kg:30040 [10:14:49]ConnectInit lk.salyk.kg [10:14:49]written 0, free lines is 4095 [10:14:49]Connected sock=10 [10:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 D4 07 01 9A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 21 7B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 78 00 00 35 04 06 00 C7 F4 7B 95 A8 A9 82 37 9B E7 86 9E 38 29 [10:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9D 10 47 00 BA 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 32 30 39 34 32 31 39 10 04 04 00 80 78 00 00 F4 03 04 00 9F 25 17 67 B6 04 01 00 00 C8 C2 88 F4 FE AF C7 1B [10:14:49]CommunicateWithHost err = 0 [10:14:49]CheckOFDResponse [10:14:49]1017 (14) - 77093643461234 [10:14:49]1041 (16) - 0000000002094219 [10:14:49]1040 (4) - 30848 [10:14:49]1012 (4) - 22.10.2024 04:10 [10:14:49]1206 (1) - 0 [10:14:49]OFD Sender: Remove packet 30848 [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00030848 [10:14:49]NVStorageDeleteData [10:14:50]Write to MH i2c: 01 00 00 8F 84 13 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 8F 84 00 00 00 00 00 EB 0C 11 [10:14:50]RasterBufferAndPrint [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]written 0, free lines is 3313 [10:14:50]MH_Cut [10:14:50]Write to MH i2c: D1 01 00 96 84 01 EC [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 96 84 00 EB [10:14:50]Write to MH i2c: 01 00 00 97 84 1B [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]OFD Sender: No OFD packet to send [10:14:50]*** Cut start [10:14:50]*** Partial cut [10:14:50]*** CUTSNS_PIN = 1 [10:14:50]*** CUTSNS_PIN = 0 [10:14:50]*** Brake cut motor [10:14:51]Read from MH i2c: 01 [10:14:51]*** Stop cut motor [10:14:51]*** Cut end [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 07 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 07 00 97 84 00 00 00 00 00 FF 0F 30 [10:14:51]process_action close_receipt done [10:14:51]requested_data is exist [10:14:51]produce_requested_data [10:14:51]requested_item fm.sn is exist - process it [10:14:51]wFMCommunicate request_size=4 [10:14:51]MH_SAM_APDU [10:14:51]CAPDU: 80 11 00 00 [10:14:51]Write to MH i2c: E2 08 00 98 84 80 11 00 00 00 00 00 00 96 [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:51]Read from MH i2c: E2 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 17 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 17 00 98 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [10:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:14:51]wFMCommunicate OK [10:14:51]requested_item fd.num is exist - process it [10:14:51]SAM_PROTO_GetFieldsCounters [10:14:51]wFMCommunicate request_size=4 [10:14:51]MH_SAM_APDU [10:14:51]CAPDU: 80 13 00 00 [10:14:51]Write to MH i2c: E2 08 00 99 84 80 13 00 00 00 00 00 00 99 [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:51]Read from MH i2c: E2 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 62 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 62 00 99 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 78 00 00 0E 04 04 00 74 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 1E [10:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:51]wFMCommunicate OK [10:14:51]SAM_PROTO_GetFieldsCounters done [10:14:51]requested_item shift.num is exist - process it [10:14:51]requested_item shift.opened is exist - process it [10:14:51]req_shift_opened [10:14:51]FM_GetShiftState [10:14:51]SAM_PROTO_GetShiftState [10:14:51]wFMCommunicate request_size=4 [10:14:51]MH_SAM_APDU [10:14:51]CAPDU: 80 13 01 00 [10:14:51]Write to MH i2c: E2 08 00 9A 84 80 13 01 00 00 00 00 00 9B [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:51]Read from MH i2c: E2 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 0E 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: E2 0E 00 9A 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 75 [10:14:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:14:51]wFMCommunicate OK [10:14:51]SAM_PROTO_GetShiftState done [10:14:51]FM_GetShiftState done [10:14:51]req_shift_opened done [10:14:51]requested_item shift.open_date is exist - process it [10:14:51]req_shift_open_date [10:14:51]req_shift_open_date done [10:14:51]produce_requested_data done [10:14:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30848,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:14:51]process_action_free close_receipt [10:14:51]json_value_free [10:14:51]json_value_free done [10:14:51]process_json_proto returns [10:14:51]Send response to host [10:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30848,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:14:51]free response buf [10:14:51]execute_script done [10:14:51]execute_script returns [10:14:51]free content buf [10:14:51]Sock 9.Close socket [10:14:51]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]ConnectInit Can't connect to host [10:20:40]OFD Sender: No OFD packet to send [10:20:42]accept exits with 7 [10:20:42]New connection [10:20:42]New thread 3067346276 created [10:20:42]Thread 3067489636 joined [10:20:42]Waiting for new connection... [10:20:42] Sock 7.Parse request [10:20:42]Sock 7.Check first char [10:20:42]Sock 7.First char is OK [10:20:42]request: POST /json_proto HTTP/1.0 [10:20:42]Method: POST [10:20:42]URL: /json_proto [10:20:42]Method is POST - this is cgi request [10:20:42]url: /json_proto [10:20:42]query_string will be loaded in cgi processing [10:20:42]execute_cgi json_proto POST (null) [10:20:42]execute_cgi path=json_proto method=POST [10:20:42]POST find Content-Length [10:20:42]Host: 172.17.51.3:8080 [10:20:42]Content-Length: 755 [10:20:42]Content-Type: application/json [10:20:42] [10:20:42]POST finish read [10:20:42]Found Content-Length = 755 [10:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 220.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101440", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:42]execute_script... [10:20: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)343268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 220.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101440", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:42]POST & json_proto [10:20:42]process_json_proto [10:20:42]json parsed OK: [10:20:42]protocol is kg_v1.0 [10:20:42]action value=close_receipt [10:20:42]process_action close_receipt [10:20:42]cmd_close_receipt [10:20:42]MH_GetDate [10:20:42]Write to MH i2c: F0 00 00 9B 84 0E [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 09 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 09 00 9B 84 00 83 7C 17 67 04 C1 95 66 54 [10:20:42]GetLastDocTimeStamp 1729592097 [10:20:42]current date 1729592451 [10:20:42]FM_GetShiftState [10:20:42]SAM_PROTO_GetShiftState [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 13 01 00 [10:20:42]Write to MH i2c: E2 08 00 9C 84 80 13 01 00 00 00 00 00 9D [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0E 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0E 00 9C 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 77 [10:20:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:20:42]wFMCommunicate OK [10:20:42]SAM_PROTO_GetShiftState done [10:20:42]FM_GetShiftState done [10:20:42]opened in 1729557342 [10:20:42]opened+sec_in_day 1729643742 [10:20:42]quantity*price = 0 [10:20:42]sum+1 = 1 [10:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 82 22.10.2024 10:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101440 ФМ: 0000000002094219 ФД: 30849 ФПД: 11437952152887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102051&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30849&fm=11437952152887&tin=02508201610067®Number=0000000000186857&sum=0 [10:20:43]StoreToDocumentArchive [10:20:43]shift 116 fd 30849 [10:20:43]save to /storage/0116/doc_00030849 [10:20:43]save last doc name /storage/0116/doc_00030849 to /storage/kkm_last_doc_name [10:20:43]save OK [10:20:43]Clear old archive folders... [10:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:43]tlvbuf is 01E508E0 [10:20:43]SAM_PROTO_ClearQueue [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 09 00 00 [10:20:43]Write to MH i2c: E2 08 00 A9 84 80 09 00 00 00 00 00 00 9F [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 A9 84 00 90 00 A1 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]SAM_PROTO_ClearQueue done [10:20:43]KKMCreateOFDPacket [10:20:43]OFDProtocolAddRootSTLVToBuf [10:20:43]FM_MakeSignedData [10:20:43]FM_MakeSignedData [10:20:43]SAM_PROTO_SignData [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 0D 01 02 [10:20:43]Write to MH i2c: E2 08 00 AA 84 80 0D 01 02 00 00 00 00 A7 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 AA 84 00 90 00 A2 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]wFMCommunicate request_size=255 [10:20:43]MH_SAM_APDU [10:20: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 32 FF 03 08 00 03 60 5B 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 78 00 00 35 04 06 00 0A [10:20:43]Write to MH i2c: E2 02 01 AB 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 32 FF 03 08 00 03 60 5B 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 78 00 00 35 04 06 00 0A 00 00 B7 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 AB 84 00 90 00 A3 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]wFMCommunicate request_size=10 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 0D 02 02 05 67 1B 13 35 37 [10:20:43]Write to MH i2c: E2 0D 00 AC 84 80 0D 02 02 05 00 67 1B 13 35 37 00 00 B5 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 AC 84 00 90 00 A4 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 0D 03 02 [10:20:43]Write to MH i2c: E2 08 00 AD 84 80 0D 03 02 00 00 00 00 AC [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0B 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0B 00 AD 84 00 23 29 40 85 0A D0 11 D6 90 00 7F [10:20:43]RAPDU: 23 29 40 85 0A D0 11 D6 90 00 [10:20:43]wFMCommunicate OK [10:20:43]SAM_PROTO_SignData done [10:20:43]FM_MakeSignedData done [10:20:43]CreateOFDProtocolMessage [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 11 00 00 [10:20:43]Write to MH i2c: E2 08 00 AE 84 80 11 00 00 00 00 00 00 AC [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 17 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 17 00 AE 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [10:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:43]wFMCommunicate OK [10:20:43]CreateOFDProtocolMessage done [10:20:43]OFDSenderStorePacket 30849 [10:20:43]StoreOFDPacket docnum=30849 [10:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 45 07 01 98 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 5B 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 78 00 00 35 04 06 00 0A 67 1B 13 35 37 23 29 40 85 0A D0 11 D6 [10:20:43]CheckFolder [10:20:43]dirname=/storage/ofd_packets [10:20:43]CheckFolder done [10:20:43]ProducePacketName [10:20:43]name=ofd_packets/00030849 [10:20:43]NVStorageSaveData ofd_packets/00030849 [10:20:43]File name is /storage/ofd_packets/00030849 [10:20:43]Write 301 bytes [10:20:43]NVStorageSaveData done [10:20:43]OFDSenderStorePacket done [10:20:43]KKMCreateOFDPacket done [10:20:43]NVStorageSaveData kkm_last_timestamp [10:20:43]File name is /storage/kkm_last_timestamp [10:20:43]Write 4 bytes [10:20:43]NVStorageSaveData done [10:20:43]ExternCall_PrintAddStr [10:20:43]wPrintStart [10:20:43]Write to MH i2c: 01 00 00 AF 84 33 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 07 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 07 00 AF 84 00 00 00 00 00 FF 0F 48 [10:20:43]RasterBufferAndPrint [10:20:43]line Счет N : (1)343268 [10:20:43]line ИНН: 02508201610067 [10:20:43]line Контрольно-Кассовый Чек [10:20:43]line ПРОДАЖА [10:20:43]line ТРК (МРК, ГНК) : 53 [10:20:43]line Товар: 2710124130 [10:20:43]line Аи-92-К-2 [10:20:43]line 220.000 * 0.00 [10:20:43]line = 0.00 [10:20:43]line НДС 12% НСП 1% [10:20:43]line > о реализуемом товаре [10:20:43]line ИТОГО: 0.00 [10:20:43]line НСП 1% : 0.00 [10:20:43]line НДС 12% : 0.00 [10:20:43]line Наличными: 0.00 [10:20:43]line Безнал.: 0.00 [10:20:43]line Место: АЗС № 78 "Партнер Нефть" [10:20:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:20:43]line СНО: Общий режим [10:20:43]line Чек 82 22.10.2024 10:20 [10:20:43]line Смена: 116 ФФД: 1.0 [10:20:43]line ЗНМ: 0300000137 [10:20:43]line РНМ: 0000000000186857 [10:20:43]line Версия ККМ: v1.0 [10:20:43]line Талоны: ТК ГПНА Online [10:20:43]line 30101440 [10:20:43]line ФМ: 0000000002094219 [10:20:43]line ФД: 30849 [10:20:43]line ФПД: 11437952152887 [10:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102051&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30849&fm=11437952152887&tin=02508201610067®Number=0000000000186857&sum=0 [10:20:44]OFD Sender: Processing packet 30849 [packets to send 10, broken 9] [10:20:44]ProducePacketName [10:20:44]name=ofd_packets/00030849 [10:20:44]OFD Sender: To server: pG, [10:20:44]CommunicateWithHost lk.salyk.kg:30040 [10:20:44]ConnectInit lk.salyk.kg [10:20:44]written 0, free lines is 4095 [10:20:44]Connected sock=10 [10:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 45 07 01 98 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 5B 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 78 00 00 35 04 06 00 0A 67 1B 13 35 37 23 29 40 85 0A D0 11 D6 [10:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C3 ED 47 00 DD 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 78 00 00 F4 03 04 00 01 27 17 67 B6 04 01 00 00 03 C8 D1 4B 7D 85 A0 A0 [10:20:44]CommunicateWithHost err = 0 [10:20:44]CheckOFDResponse [10:20:44]1017 (14) - 77093643461234 [10:20:44]1041 (16) - 0000000002094219 [10:20:44]1040 (4) - 30849 [10:20:44]1012 (4) - 22.10.2024 04:16 [10:20:44]1206 (1) - 0 [10:20:44]OFD Sender: Remove packet 30849 [10:20:44]ProducePacketName [10:20:44]name=ofd_packets/00030849 [10:20:44]NVStorageDeleteData [10:20:44]Write to MH i2c: 01 00 00 D9 84 5D [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 D9 84 00 00 00 00 00 F6 0C 66 [10:20:44]RasterBufferAndPrint [10:20:44]line [10:20:44]line [10:20:44]line [10:20:44]line [10:20:44]line [10:20:44]written 0, free lines is 3327 [10:20:44]MH_Cut [10:20:44]Write to MH i2c: D1 01 00 E0 84 01 36 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: D1 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: D1 01 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: D1 01 00 E0 84 00 35 [10:20:44]Write to MH i2c: 01 00 00 E1 84 65 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]OFD Sender: No OFD packet to send [10:20:45]*** Cut start [10:20:45]*** Partial cut [10:20:45]*** CUTSNS_PIN = 1 [10:20:45]*** CUTSNS_PIN = 0 [10:20:45]*** Brake cut motor [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]*** Stop cut motor [10:20:45]*** Cut end [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 E1 84 00 00 00 00 00 FF 0F 7A [10:20:45]process_action close_receipt done [10:20:45]requested_data is exist [10:20:45]produce_requested_data [10:20:45]requested_item fm.sn is exist - process it [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 11 00 00 [10:20:45]Write to MH i2c: E2 08 00 E2 84 80 11 00 00 00 00 00 00 E0 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 E2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [10:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:45]wFMCommunicate OK [10:20:45]requested_item fd.num is exist - process it [10:20:45]SAM_PROTO_GetFieldsCounters [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 13 00 00 [10:20:45]Write to MH i2c: E2 08 00 E3 84 80 13 00 00 00 00 00 00 E3 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 62 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 62 00 E3 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 78 00 00 0E 04 04 00 74 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 6C [10:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_GetFieldsCounters done [10:20:45]requested_item shift.num is exist - process it [10:20:45]requested_item shift.opened is exist - process it [10:20:45]req_shift_opened [10:20:45]FM_GetShiftState [10:20:45]SAM_PROTO_GetShiftState [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 13 01 00 [10:20:45]Write to MH i2c: E2 08 00 E4 84 80 13 01 00 00 00 00 00 E5 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 E4 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BF [10:20:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_GetShiftState done [10:20:46]FM_GetShiftState done [10:20:46]req_shift_opened done [10:20:46]requested_item shift.open_date is exist - process it [10:20:46]req_shift_open_date [10:20:46]req_shift_open_date done [10:20:46]produce_requested_data done [10:20:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30849,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:20:46]process_action_free close_receipt [10:20:46]json_value_free [10:20:46]json_value_free done [10:20:46]process_json_proto returns [10:20:46]Send response to host [10:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30849,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:20:46]free response buf [10:20:46]execute_script done [10:20:46]execute_script returns [10:20:46]free content buf [10:20:46]Sock 7.Close socket [10:20:46]Sock 7.Thread stoped [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]accept exits with 9 [10:22:04]New connection [10:22:04]New thread 3067489636 created [10:22:04]Thread 3067346276 joined [10:22:04]Waiting for new connection... [10:22:04] Sock 9.Parse request [10:22:04]Sock 9.Check first char [10:22:04]Sock 9.First char is OK [10:22:04]request: POST /json_proto HTTP/1.0 [10:22:04]Method: POST [10:22:04]URL: /json_proto [10:22:04]Method is POST - this is cgi request [10:22:04]url: /json_proto [10:22:04]query_string will be loaded in cgi processing [10:22:04]execute_cgi json_proto POST (null) [10:22:04]execute_cgi path=json_proto method=POST [10:22:04]POST find Content-Length [10:22:04]Host: 172.17.51.3:8080 [10:22:04]Content-Length: 843 [10:22:04]Content-Type: application/json [10:22:04] [10:22:04]POST finish read [10:22:04]Found Content-Length = 843 [10:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:04]execute_script... [10:22: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)343269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:04]POST & json_proto [10:22:04]process_json_proto [10:22:04]json parsed OK: [10:22:04]protocol is kg_v1.0 [10:22:04]action value=close_receipt [10:22:04]process_action close_receipt [10:22:04]cmd_close_receipt [10:22:04]MH_GetDate [10:22:04]Write to MH i2c: F0 00 00 E5 84 58 [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 09 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 09 00 E5 84 00 D6 7C 17 67 04 C1 95 66 F1 [10:22:04]GetLastDocTimeStamp 1729592451 [10:22:04]current date 1729592534 [10:22:04]FM_GetShiftState [10:22:04]SAM_PROTO_GetShiftState [10:22:04]wFMCommunicate request_size=4 [10:22:04]MH_SAM_APDU [10:22:04]CAPDU: 80 13 01 00 [10:22:04]Write to MH i2c: E2 08 00 E6 84 80 13 01 00 00 00 00 00 E7 [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:04]Read from MH i2c: E2 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 0E 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 0E 00 E6 84 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C1 [10:22:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:22:04]wFMCommunicate OK [10:22:04]SAM_PROTO_GetShiftState done [10:22:04]FM_GetShiftState done [10:22:04]opened in 1729557342 [10:22:04]opened+sec_in_day 1729643742 [10:22:04]quantity*price = 150056 [10:22:04]sum+1 = 150058 [10:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 83 22.10.2024 10:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30850 ФПД: 278429689433759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102214&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30850&fm=278429689433759&tin=02508201610067®Number=0000000000186857&sum=150057 [10:22:05]StoreToDocumentArchive [10:22:05]shift 116 fd 30850 [10:22:05]save to /storage/0116/doc_00030850 [10:22:05]save last doc name /storage/0116/doc_00030850 to /storage/kkm_last_doc_name [10:22:05]save OK [10:22:05]Clear old archive folders... [10:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:05]tlvbuf is B6FDB690 [10:22:05]SAM_PROTO_ClearQueue [10:22:05]wFMCommunicate request_size=4 [10:22:05]MH_SAM_APDU [10:22:05]CAPDU: 80 09 00 00 [10:22:05]Write to MH i2c: E2 08 00 F3 84 80 09 00 00 00 00 00 00 E9 [10:22:05]Write i2c OK [10:22:05]MH_I2C_Read... [10:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:05]Read from MH i2c: E2 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 F3 84 00 90 00 EB [10:22:05]RAPDU: 90 00 [10:22:05]wFMCommunicate OK [10:22:05]SAM_PROTO_ClearQueue done [10:22:05]KKMCreateOFDPacket [10:22:05]OFDProtocolAddRootSTLVToBuf [10:22:05]FM_MakeSignedData [10:22:05]FM_MakeSignedData [10:22:05]SAM_PROTO_SignData [10:22:05]wFMCommunicate request_size=4 [10:22:05]MH_SAM_APDU [10:22:05]CAPDU: 80 0D 01 02 [10:22:05]Write to MH i2c: E2 08 00 F4 84 80 0D 01 02 00 00 00 00 F1 [10:22:05]Write i2c OK [10:22:05]MH_I2C_Read... [10:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 F4 84 00 90 00 EC [10:22:06]RAPDU: 90 00 [10:22:06]wFMCommunicate OK [10:22:06]wFMCommunicate request_size=255 [10:22:06]MH_SAM_APDU [10:22: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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D6 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 78 00 00 35 04 06 00 FD [10:22:06]Write to MH i2c: E2 02 01 F5 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D6 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 78 00 00 35 04 06 00 FD 00 00 CD [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 F5 84 00 90 00 ED [10:22:06]RAPDU: 90 00 [10:22:06]wFMCommunicate OK [10:22:06]wFMCommunicate request_size=10 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 0D 02 02 05 3A F6 BB CE 9F [10:22:06]Write to MH i2c: E2 0D 00 F6 84 80 0D 02 02 05 00 3A F6 BB CE 9F 00 00 56 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 F6 84 00 90 00 EE [10:22:06]RAPDU: 90 00 [10:22:06]wFMCommunicate OK [10:22:06]wFMCommunicate request_size=4 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 0D 03 02 [10:22:06]Write to MH i2c: E2 08 00 F7 84 80 0D 03 02 00 00 00 00 F6 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0B 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0B 00 F7 84 00 AC 22 02 F6 D5 BA 61 33 90 00 E0 [10:22:06]RAPDU: AC 22 02 F6 D5 BA 61 33 90 00 [10:22:06]wFMCommunicate OK [10:22:06]SAM_PROTO_SignData done [10:22:06]FM_MakeSignedData done [10:22:06]CreateOFDProtocolMessage [10:22:06]wFMCommunicate request_size=4 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 11 00 00 [10:22:06]Write to MH i2c: E2 08 00 F8 84 80 11 00 00 00 00 00 00 F6 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 17 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 17 00 F8 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 44 [10:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:22:06]wFMCommunicate OK [10:22:06]CreateOFDProtocolMessage done [10:22:06]OFDSenderStorePacket 30850 [10:22:06]StoreOFDPacket docnum=30850 [10:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D5 5B 07 01 1D 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D6 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 78 00 00 35 04 06 00 FD 3A F6 BB CE 9F AC 22 02 F6 D5 BA 61 33 [10:22:06]CheckFolder [10:22:06]dirname=/storage/ofd_packets [10:22:06]CheckFolder done [10:22:06]ProducePacketName [10:22:06]name=ofd_packets/00030850 [10:22:06]NVStorageSaveData ofd_packets/00030850 [10:22:06]File name is /storage/ofd_packets/00030850 [10:22:06]Write 301 bytes [10:22:06]NVStorageSaveData done [10:22:06]OFDSenderStorePacket done [10:22:06]KKMCreateOFDPacket done [10:22:06]NVStorageSaveData kkm_last_timestamp [10:22:06]File name is /storage/kkm_last_timestamp [10:22:06]Write 4 bytes [10:22:06]NVStorageSaveData done [10:22:06]ExternCall_PrintAddStr [10:22:06]wPrintStart [10:22:06]Write to MH i2c: 01 00 00 F9 84 7D [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 F9 84 00 00 00 00 00 FF 0F 92 [10:22:06]RasterBufferAndPrint [10:22:06]line Счет N : (1)343269 [10:22:06]line ИНН: 02508201610067 [10:22:06]line Контрольно-Кассовый Чек [10:22:06]line ПРОДАЖА [10:22:06]line ТРК (МРК, ГНК) : 63 [10:22:06]line Товар: 2710124130 [10:22:06]line Аи-92-К-2 [10:22:06]line 22.430 * 66.90 [10:22:06]line = 1500.57 [10:22:06]line НДС 12% НСП 1% [10:22:06]line > о реализуемом товаре [10:22:06]line ИТОГО: 1500.57 [10:22:06]line НСП 1% : 13.28 [10:22:06]line НДС 12% : 159.35 [10:22:06]line Наличными: 0.00 [10:22:06]line Безнал.: 1500.57 [10:22:06]line Место: АЗС № 78 "Партнер Нефть" [10:22:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:22:06]line СНО: Общий режим [10:22:06]line Чек 83 22.10.2024 10:22 [10:22:06]line Смена: 116 ФФД: 1.0 [10:22:06]line ЗНМ: 0300000137 [10:22:06]line РНМ: 0000000000186857 [10:22:06]line Версия ККМ: v1.0 [10:22:06]line Платежная система: АКБ Кыргызстан [10:22:06]line ФМ: 0000000002094219 [10:22:06]line ФД: 30850 [10:22:06]line ФПД: 278429689433759 [10:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102214&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30850&fm=278429689433759&tin=02508201610067®Number=0000000000186857&sum=150057 [10:22:06]OFD Sender: Processing packet 30850 [packets to send 10, broken 9] [10:22:06]ProducePacketName [10:22:06]name=ofd_packets/00030850 [10:22:06]OFD Sender: To server: pG, [10:22:06]CommunicateWithHost lk.salyk.kg:30040 [10:22:06]ConnectInit lk.salyk.kg [10:22:06]written 0, free lines is 4095 [10:22:06]Connected sock=7 [10:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D5 5B 07 01 1D 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D6 7C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 78 00 00 35 04 06 00 FD 3A F6 BB CE 9F AC 22 02 F6 D5 BA 61 33 [10:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 34 02 47 00 A1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 78 00 00 F4 03 04 00 54 27 17 67 B6 04 01 00 00 11 55 17 A6 64 C5 19 FF [10:22:07]CommunicateWithHost err = 0 [10:22:07]CheckOFDResponse [10:22:07]1017 (14) - 77093643461234 [10:22:07]1041 (16) - 0000000002094219 [10:22:07]1040 (4) - 30850 [10:22:07]1012 (4) - 22.10.2024 04:17 [10:22:07]1206 (1) - 0 [10:22:07]OFD Sender: Remove packet 30850 [10:22:07]ProducePacketName [10:22:07]name=ofd_packets/00030850 [10:22:07]NVStorageDeleteData [10:22:07]Write to MH i2c: 01 00 00 23 85 A8 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: 01 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: 01 07 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: 01 07 00 23 85 00 00 00 00 00 FF 0C BA [10:22:07]RasterBufferAndPrint [10:22:07]line [10:22:07]line [10:22:07]line [10:22:07]line [10:22:07]line [10:22:07]written 0, free lines is 3336 [10:22:07]MH_Cut [10:22:07]Write to MH i2c: D1 01 00 2A 85 01 81 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: D1 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: D1 01 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: D1 01 00 2A 85 00 80 [10:22:07]Write to MH i2c: 01 00 00 2B 85 B0 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]OFD Sender: No OFD packet to send [10:22:07]*** Cut start [10:22:07]*** Partial cut [10:22:07]*** CUTSNS_PIN = 1 [10:22:07]*** CUTSNS_PIN = 0 [10:22:08]*** Brake cut motor [10:22:08]Read from MH i2c: 01 [10:22:08]MH_I2C_Read... [10:22:08]*** Stop cut motor [10:22:08]*** Cut end [10:22:08]Read from MH i2c: 01 07 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: 01 07 00 2B 85 00 00 00 00 00 FF 0F C5 [10:22:08]process_action close_receipt done [10:22:08]requested_data is exist [10:22:08]produce_requested_data [10:22:08]requested_item fm.sn is exist - process it [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 11 00 00 [10:22:08]Write to MH i2c: E2 08 00 2C 85 80 11 00 00 00 00 00 00 2B [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 2C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 79 [10:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:22:08]wFMCommunicate OK [10:22:08]requested_item fd.num is exist - process it [10:22:08]SAM_PROTO_GetFieldsCounters [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 13 00 00 [10:22:08]Write to MH i2c: E2 08 00 2D 85 80 13 00 00 00 00 00 00 2E [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 62 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 62 00 2D 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 78 00 00 0E 04 04 00 74 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 BB [10:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:08]wFMCommunicate OK [10:22:08]SAM_PROTO_GetFieldsCounters done [10:22:08]requested_item shift.num is exist - process it [10:22:08]requested_item shift.opened is exist - process it [10:22:08]req_shift_opened [10:22:08]FM_GetShiftState [10:22:08]SAM_PROTO_GetShiftState [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 13 01 00 [10:22:08]Write to MH i2c: E2 08 00 2E 85 80 13 01 00 00 00 00 00 30 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0E 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0E 00 2E 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0A [10:22:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:22:08]wFMCommunicate OK [10:22:08]SAM_PROTO_GetShiftState done [10:22:08]FM_GetShiftState done [10:22:08]req_shift_opened done [10:22:08]requested_item shift.open_date is exist - process it [10:22:08]req_shift_open_date [10:22:08]req_shift_open_date done [10:22:08]produce_requested_data done [10:22:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30850,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:22:08]process_action_free close_receipt [10:22:08]json_value_free [10:22:08]json_value_free done [10:22:08]process_json_proto returns [10:22:08]Send response to host [10:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30850,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:22:08]free response buf [10:22:08]execute_script done [10:22:08]execute_script returns [10:22:08]free content buf [10:22:08]Sock 9.Close socket [10:22:08]Sock 9.Thread stoped [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [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:33]accept exits with 10 [10:25:33]New connection [10:25:33]New thread 3067346276 created [10:25:33]Thread 3067489636 joined [10:25:33]Waiting for new connection... [10:25:33] Sock 10.Parse request [10:25:33]Sock 10.Check first char [10:25:33]Sock 10.First char is OK [10:25:33]request: POST /json_proto HTTP/1.0 [10:25:33]Method: POST [10:25:33]URL: /json_proto [10:25:33]Method is POST - this is cgi request [10:25:33]url: /json_proto [10:25:33]query_string will be loaded in cgi processing [10:25:33]execute_cgi json_proto POST (null) [10:25:33]execute_cgi path=json_proto method=POST [10:25:33]POST find Content-Length [10:25:33]Host: 172.17.51.3:8080 [10:25:33]Content-Length: 677 [10:25:33]Content-Type: application/json [10:25:33] [10:25:33]POST finish read [10:25:33]Found Content-Length = 677 [10:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:33]execute_script... [10:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:33]POST & json_proto [10:25:33]process_json_proto [10:25:33]json parsed OK: [10:25:33]protocol is kg_v1.0 [10:25:33]action value=close_receipt [10:25:33]process_action close_receipt [10:25:33]cmd_close_receipt [10:25:33]MH_GetDate [10:25:33]Write to MH i2c: F0 00 00 2F 85 A3 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: F0 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: F0 09 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: F0 09 00 2F 85 00 A7 7D 17 67 04 C1 95 66 0E [10:25:33]GetLastDocTimeStamp 1729592534 [10:25:33]current date 1729592743 [10:25:33]FM_GetShiftState [10:25:33]SAM_PROTO_GetShiftState [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 13 01 00 [10:25:33]Write to MH i2c: E2 08 00 30 85 80 13 01 00 00 00 00 00 32 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0E 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0E 00 30 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0C [10:25:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:25:33]wFMCommunicate OK [10:25:33]SAM_PROTO_GetShiftState done [10:25:33]FM_GetShiftState done [10:25:33]opened in 1729557342 [10:25:33]opened+sec_in_day 1729643742 [10:25:33]quantity*price = 50041 [10:25:33]sum+1 = 50042 [10:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 84 22.10.2024 10:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30851 ФПД: 159169898312604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102543&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30851&fm=159169898312604&tin=02508201610067®Number=0000000000186857&sum=50000 [10:25:34]StoreToDocumentArchive [10:25:34]shift 116 fd 30851 [10:25:34]save to /storage/0116/doc_00030851 [10:25:34]save last doc name /storage/0116/doc_00030851 to /storage/kkm_last_doc_name [10:25:34]save OK [10:25:34]Clear old archive folders... [10:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:34]tlvbuf is 01E6F4C0 [10:25:34]SAM_PROTO_ClearQueue [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 09 00 00 [10:25:34]Write to MH i2c: E2 08 00 3D 85 80 09 00 00 00 00 00 00 34 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 3D 85 00 90 00 36 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]SAM_PROTO_ClearQueue done [10:25:34]KKMCreateOFDPacket [10:25:34]OFDProtocolAddRootSTLVToBuf [10:25:34]FM_MakeSignedData [10:25:34]FM_MakeSignedData [10:25:34]SAM_PROTO_SignData [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 01 02 [10:25:34]Write to MH i2c: E2 08 00 3E 85 80 0D 01 02 00 00 00 00 3C [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 3E 85 00 90 00 37 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=255 [10:25:34]MH_SAM_APDU [10:25: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 78 00 00 35 04 06 00 90 [10:25:34]Write to MH i2c: E2 02 01 3F 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 78 00 00 35 04 06 00 90 00 00 C2 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 3F 85 00 90 00 38 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=10 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 02 02 05 C3 A1 3F 73 9C [10:25:34]Write to MH i2c: E2 0D 00 40 85 80 0D 02 02 05 00 C3 A1 3F 73 9C 00 00 FB [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 40 85 00 90 00 39 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 03 02 [10:25:34]Write to MH i2c: E2 08 00 41 85 80 0D 03 02 00 00 00 00 41 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0B 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0B 00 41 85 00 F8 FF D5 55 E8 4B 0F 8F 90 00 34 [10:25:34]RAPDU: F8 FF D5 55 E8 4B 0F 8F 90 00 [10:25:34]wFMCommunicate OK [10:25:34]SAM_PROTO_SignData done [10:25:34]FM_MakeSignedData done [10:25:34]CreateOFDProtocolMessage [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 11 00 00 [10:25:34]Write to MH i2c: E2 08 00 42 85 80 11 00 00 00 00 00 00 41 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 42 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8F [10:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:25:34]wFMCommunicate OK [10:25:34]CreateOFDProtocolMessage done [10:25:34]OFDSenderStorePacket 30851 [10:25:34]StoreOFDPacket docnum=30851 [10:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA 00 07 01 FF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 78 00 00 35 04 06 00 90 C3 A1 3F 73 9C F8 FF D5 55 E8 4B 0F 8F [10:25:34]CheckFolder [10:25:34]dirname=/storage/ofd_packets [10:25:34]CheckFolder done [10:25:34]ProducePacketName [10:25:34]name=ofd_packets/00030851 [10:25:34]NVStorageSaveData ofd_packets/00030851 [10:25:34]File name is /storage/ofd_packets/00030851 [10:25:34]Write 301 bytes [10:25:34]NVStorageSaveData done [10:25:34]OFDSenderStorePacket done [10:25:34]KKMCreateOFDPacket done [10:25:34]NVStorageSaveData kkm_last_timestamp [10:25:34]File name is /storage/kkm_last_timestamp [10:25:34]Write 4 bytes [10:25:34]NVStorageSaveData done [10:25:34]ExternCall_PrintAddStr [10:25:34]wPrintStart [10:25:34]Write to MH i2c: 01 00 00 43 85 C8 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 07 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 07 00 43 85 00 00 00 00 00 FF 0F DD [10:25:34]RasterBufferAndPrint [10:25:34]line Счет N : (1)343272 [10:25:34]line ИНН: 02508201610067 [10:25:34]line Контрольно-Кассовый Чек [10:25:34]line ПРОДАЖА [10:25:34]line ТРК (МРК, ГНК) : 53 [10:25:34]line Товар: 2710124130 [10:25:34]line Аи-92-К-2 [10:25:34]line 7.480 * 66.90 [10:25:34]line = 500.41 [10:25:34]line НДС 12% НСП 1% [10:25:34]line > о реализуемом товаре [10:25:34]line ОКРУГЛЕНИЕ: -0.41 [10:25:34]line ИТОГО: 500.00 [10:25:34]line Внесено: 500.00 [10:25:34]line СДАЧА: 0.00 [10:25:34]line НСП 1% : 4.43 [10:25:34]line НДС 12% : 53.14 [10:25:34]line Наличными: 500.00 [10:25:34]line Безнал.: 0.00 [10:25:34]line Место: АЗС № 78 "Партнер Нефть" [10:25:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:25:34]line СНО: Общий режим [10:25:34]line Чек 84 22.10.2024 10:25 [10:25:34]line Смена: 116 ФФД: 1.0 [10:25:34]line ЗНМ: 0300000137 [10:25:34]line РНМ: 0000000000186857 [10:25:34]line Версия ККМ: v1.0 [10:25:34]line ФМ: 0000000002094219 [10:25:34]line ФД: 30851 [10:25:34]line ФПД: 159169898312604 [10:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102543&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30851&fm=159169898312604&tin=02508201610067®Number=0000000000186857&sum=50000 [10:25:35]OFD Sender: Processing packet 30851 [packets to send 10, broken 9] [10:25:35]ProducePacketName [10:25:35]name=ofd_packets/00030851 [10:25:35]OFD Sender: To server: pG, [10:25:35]CommunicateWithHost lk.salyk.kg:30040 [10:25:35]ConnectInit lk.salyk.kg [10:25:35]written 0, free lines is 4095 [10:25:35]Connected sock=9 [10:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA 00 07 01 FF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 78 00 00 35 04 06 00 90 C3 A1 3F 73 9C F8 FF D5 55 E8 4B 0F 8F [10:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 87 D7 47 00 FA 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 32 30 39 34 32 31 39 10 04 04 00 83 78 00 00 F4 03 04 00 24 28 17 67 B6 04 01 00 00 6D 5C 13 27 ED 47 E8 DD [10:25:35]CommunicateWithHost err = 0 [10:25:35]CheckOFDResponse [10:25:35]1017 (14) - 77093643461234 [10:25:35]1041 (16) - 0000000002094219 [10:25:35]1040 (4) - 30851 [10:25:35]1012 (4) - 22.10.2024 04:20 [10:25:35]1206 (1) - 0 [10:25:35]OFD Sender: Remove packet 30851 [10:25:35]ProducePacketName [10:25:35]name=ofd_packets/00030851 [10:25:35]NVStorageDeleteData [10:25:35]Write to MH i2c: 01 00 00 6E 85 F3 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 6E 85 00 00 00 00 00 E4 0C EA [10:25:35]RasterBufferAndPrint [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]written 0, free lines is 3306 [10:25:35]MH_Cut [10:25:35]Write to MH i2c: D1 01 00 75 85 01 CC [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 01 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 01 00 75 85 00 CB [10:25:35]Write to MH i2c: 01 00 00 76 85 FB [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]OFD Sender: No OFD packet to send [10:25:36]*** Cut start [10:25:36]*** Partial cut [10:25:36]*** CUTSNS_PIN = 1 [10:25:36]*** CUTSNS_PIN = 0 [10:25:36]*** Brake cut motor [10:25:36]Read from MH i2c: 01 [10:25:36]MH_I2C_Read... [10:25:36]*** Stop cut motor [10:25:36]*** Cut end [10:25:36]Read from MH i2c: 01 07 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: 01 07 00 76 85 00 00 00 00 00 FF 0F 10 [10:25:36]process_action close_receipt done [10:25:36]requested_data is exist [10:25:36]produce_requested_data [10:25:36]requested_item fm.sn is exist - process it [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 11 00 00 [10:25:36]Write to MH i2c: E2 08 00 77 85 80 11 00 00 00 00 00 00 76 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:36]Read from MH i2c: E2 17 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 17 00 77 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [10:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:25:36]wFMCommunicate OK [10:25:36]requested_item fd.num is exist - process it [10:25:36]SAM_PROTO_GetFieldsCounters [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 13 00 00 [10:25:36]Write to MH i2c: E2 08 00 78 85 80 13 00 00 00 00 00 00 79 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:37]Read from MH i2c: E2 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 62 00 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 62 00 78 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 78 00 00 0E 04 04 00 74 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 0A [10:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:37]wFMCommunicate OK [10:25:37]SAM_PROTO_GetFieldsCounters done [10:25:37]requested_item shift.num is exist - process it [10:25:37]requested_item shift.opened is exist - process it [10:25:37]req_shift_opened [10:25:37]FM_GetShiftState [10:25:37]SAM_PROTO_GetShiftState [10:25:37]wFMCommunicate request_size=4 [10:25:37]MH_SAM_APDU [10:25:37]CAPDU: 80 13 01 00 [10:25:37]Write to MH i2c: E2 08 00 79 85 80 13 01 00 00 00 00 00 7B [10:25:37]Write i2c OK [10:25:37]MH_I2C_Read... [10:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:37]Read from MH i2c: E2 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 0E 00 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 0E 00 79 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 55 [10:25:37]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:25:37]wFMCommunicate OK [10:25:37]SAM_PROTO_GetShiftState done [10:25:37]FM_GetShiftState done [10:25:37]req_shift_opened done [10:25:37]requested_item shift.open_date is exist - process it [10:25:37]req_shift_open_date [10:25:37]req_shift_open_date done [10:25:37]produce_requested_data done [10:25:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30851,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:25:37]process_action_free close_receipt [10:25:37]json_value_free [10:25:37]json_value_free done [10:25:37]process_json_proto returns [10:25:37]Send response to host [10:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30851,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:25:37]free response buf [10:25:37]execute_script done [10:25:37]execute_script returns [10:25:37]free content buf [10:25:37]Sock 10.Close socket [10:25:37]Sock 10.Thread stoped [10:25:40]accept exits with 7 [10:25:40]New connection [10:25:40]New thread 3067489636 created [10:25:40]Thread 3067346276 joined [10:25:40]Waiting for new connection... [10:25:40] Sock 7.Parse request [10:25:40]Sock 7.Check first char [10:25:40]Sock 7.First char is OK [10:25:40]request: POST /json_proto HTTP/1.0 [10:25:40]Method: POST [10:25:40]URL: /json_proto [10:25:40]Method is POST - this is cgi request [10:25:40]url: /json_proto [10:25:40]query_string will be loaded in cgi processing [10:25:40]execute_cgi json_proto POST (null) [10:25:40]execute_cgi path=json_proto method=POST [10:25:40]POST find Content-Length [10:25:40]Host: 172.17.51.3:8080 [10:25:40]Content-Length: 754 [10:25:40]Content-Type: application/json [10:25:40] [10:25:40]POST finish read [10:25:40]Found Content-Length = 754 [10:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]execute_script... [10: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)343271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]POST & json_proto [10:25:40]process_json_proto [10:25:40]json parsed OK: [10:25:40]protocol is kg_v1.0 [10:25:40]action value=close_receipt [10:25:40]process_action close_receipt [10:25:40]cmd_close_receipt [10:25:40]MH_GetDate [10:25:40]Write to MH i2c: F0 00 00 7A 85 EE [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 7A 85 00 AE 7D 17 67 04 C1 95 66 60 [10:25:40]GetLastDocTimeStamp 1729592743 [10:25:40]current date 1729592750 [10:25:40]FM_GetShiftState [10:25:40]SAM_PROTO_GetShiftState [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 01 00 [10:25:40]Write to MH i2c: E2 08 00 7B 85 80 13 01 00 00 00 00 00 7D [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:40]Read from MH i2c: E2 0E 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 7B 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 57 [10:25:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetShiftState done [10:25:40]FM_GetShiftState done [10:25:40]opened in 1729557342 [10:25:40]opened+sec_in_day 1729643742 [10:25:40]quantity*price = 0 [10:25:40]sum+1 = 1 [10:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 85 22.10.2024 10:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118634 ФМ: 0000000002094219 ФД: 30852 ФПД: 256193509001153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102550&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30852&fm=256193509001153&tin=02508201610067®Number=0000000000186857&sum=0 [10:25:42]StoreToDocumentArchive [10:25:42]shift 116 fd 30852 [10:25:42]save to /storage/0116/doc_00030852 [10:25:42]save last doc name /storage/0116/doc_00030852 to /storage/kkm_last_doc_name [10:25:42]save OK [10:25:42]Clear old archive folders... [10:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:42]tlvbuf is 01E2B180 [10:25:42]SAM_PROTO_ClearQueue [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 09 00 00 [10:25:42]Write to MH i2c: E2 08 00 88 85 80 09 00 00 00 00 00 00 7F [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 88 85 00 90 00 81 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_ClearQueue done [10:25:42]KKMCreateOFDPacket [10:25:42]OFDProtocolAddRootSTLVToBuf [10:25:42]FM_MakeSignedData [10:25:42]FM_MakeSignedData [10:25:42]SAM_PROTO_SignData [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 01 02 [10:25:42]Write to MH i2c: E2 08 00 89 85 80 0D 01 02 00 00 00 00 87 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 89 85 00 90 00 82 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=255 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 AE 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 78 00 00 35 04 06 00 E9 [10:25:42]Write to MH i2c: E2 02 01 8A 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 AE 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 78 00 00 35 04 06 00 E9 00 00 5D [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 8A 85 00 90 00 83 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=10 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 02 02 05 01 B3 19 07 C1 [10:25:42]Write to MH i2c: E2 0D 00 8B 85 80 0D 02 02 05 00 01 B3 19 07 C1 00 00 29 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 8B 85 00 90 00 84 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 03 02 [10:25:42]Write to MH i2c: E2 08 00 8C 85 80 0D 03 02 00 00 00 00 8C [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 8C 85 00 CF 52 B2 30 29 73 0F EB 90 00 26 [10:25:42]RAPDU: CF 52 B2 30 29 73 0F EB 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_SignData done [10:25:42]FM_MakeSignedData done [10:25:42]CreateOFDProtocolMessage [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 11 00 00 [10:25:42]Write to MH i2c: E2 08 00 8D 85 80 11 00 00 00 00 00 00 8C [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 8D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [10:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:25:42]wFMCommunicate OK [10:25:42]CreateOFDProtocolMessage done [10:25:42]OFDSenderStorePacket 30852 [10:25:42]StoreOFDPacket docnum=30852 [10:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 EE 07 01 4A 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 AE 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 78 00 00 35 04 06 00 E9 01 B3 19 07 C1 CF 52 B2 30 29 73 0F EB [10:25:42]CheckFolder [10:25:42]dirname=/storage/ofd_packets [10:25:42]CheckFolder done [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00030852 [10:25:42]NVStorageSaveData ofd_packets/00030852 [10:25:42]File name is /storage/ofd_packets/00030852 [10:25:42]Write 301 bytes [10:25:42]NVStorageSaveData done [10:25:42]OFDSenderStorePacket done [10:25:42]KKMCreateOFDPacket done [10:25:42]NVStorageSaveData kkm_last_timestamp [10:25:42]File name is /storage/kkm_last_timestamp [10:25:42]Write 4 bytes [10:25:42]NVStorageSaveData done [10:25:42]ExternCall_PrintAddStr [10:25:42]wPrintStart [10:25:42]Write to MH i2c: 01 00 00 8E 85 13 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 8E 85 00 00 00 00 00 FF 0F 28 [10:25:42]RasterBufferAndPrint [10:25:42]line Счет N : (1)343271 [10:25:42]line ИНН: 02508201610067 [10:25:42]line Контрольно-Кассовый Чек [10:25:42]line ПРОДАЖА [10:25:42]line ТРК (МРК, ГНК) : 62 [10:25:42]line Товар: 2710124500 [10:25:42]line Аи-95-К-3 [10:25:42]line 20.000 * 0.00 [10:25:42]line = 0.00 [10:25:42]line НДС 12% НСП 1% [10:25:42]line > о реализуемом товаре [10:25:42]line ИТОГО: 0.00 [10:25:42]line НСП 1% : 0.00 [10:25:42]line НДС 12% : 0.00 [10:25:42]line Наличными: 0.00 [10:25:42]line Безнал.: 0.00 [10:25:42]line Место: АЗС № 78 "Партнер Нефть" [10:25:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:25:42]line СНО: Общий режим [10:25:42]line Чек 85 22.10.2024 10:25 [10:25:42]line Смена: 116 ФФД: 1.0 [10:25:42]line ЗНМ: 0300000137 [10:25:42]line РНМ: 0000000000186857 [10:25:42]line Версия ККМ: v1.0 [10:25:42]line Талоны: ТК ГПНА Online [10:25:42]line 30118634 [10:25:42]line ФМ: 0000000002094219 [10:25:42]line ФД: 30852 [10:25:42]line ФПД: 256193509001153 [10:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102550&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30852&fm=256193509001153&tin=02508201610067®Number=0000000000186857&sum=0 [10:25:42]OFD Sender: Processing packet 30852 [packets to send 10, broken 9] [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00030852 [10:25:42]OFD Sender: To server: pG, [10:25:42]CommunicateWithHost lk.salyk.kg:30040 [10:25:42]ConnectInit lk.salyk.kg [10:25:42]Connected sock=10 [10:25:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 written 0, free lines is 4095 [10:25:42]30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 EE 07 01 4A 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 AE 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 78 00 00 35 04 06 00 E9 01 B3 19 07 C1 CF 52 B2 30 29 73 0F EB [10:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EB 71 47 00 75 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 32 30 39 34 32 31 39 10 04 04 00 84 78 00 00 F4 03 04 00 2C 28 17 67 B6 04 01 00 00 6A 84 5C 93 C4 4E B9 37 [10:25:43]CommunicateWithHost err = 0 [10:25:43]CheckOFDResponse [10:25:43]1017 (14) - 77093643461234 [10:25:43]1041 (16) - 0000000002094219 [10:25:43]1040 (4) - 30852 [10:25:43]1012 (4) - 22.10.2024 04:21 [10:25:43]1206 (1) - 0 [10:25:43]OFD Sender: Remove packet 30852 [10:25:43]ProducePacketName [10:25:43]name=ofd_packets/00030852 [10:25:43]NVStorageDeleteData [10:25:43]Write to MH i2c: 01 00 00 B8 85 3D [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 B8 85 00 00 00 00 00 F5 0C 45 [10:25:43]RasterBufferAndPrint [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]written 0, free lines is 3329 [10:25:43]MH_Cut [10:25:43]Write to MH i2c: D1 01 00 BF 85 01 16 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 BF 85 00 15 [10:25:43]Write to MH i2c: 01 00 00 C0 85 45 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]OFD Sender: No OFD packet to send [10:25:43]*** Cut start [10:25:43]*** Partial cut [10:25:43]*** CUTSNS_PIN = 1 [10:25:44]*** CUTSNS_PIN = 0 [10:25:44]*** Brake cut motor [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]*** Stop cut motor [10:25:44]*** Cut end [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 C0 85 00 00 00 00 00 FF 0F 5A [10:25:44]process_action close_receipt done [10:25:44]requested_data is exist [10:25:44]produce_requested_data [10:25:44]requested_item fm.sn is exist - process it [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 11 00 00 [10:25:44]Write to MH i2c: E2 08 00 C1 85 80 11 00 00 00 00 00 00 C0 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 C1 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [10:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:25:44]wFMCommunicate OK [10:25:44]requested_item fd.num is exist - process it [10:25:44]SAM_PROTO_GetFieldsCounters [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 00 00 [10:25:44]Write to MH i2c: E2 08 00 C2 85 80 13 00 00 00 00 00 00 C3 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 C2 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 78 00 00 0E 04 04 00 74 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 58 [10:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:44]wFMCommunicate OK [10:25:44]SAM_PROTO_GetFieldsCounters done [10:25:44]requested_item shift.num is exist - process it [10:25:44]requested_item shift.opened is exist - process it [10:25:44]req_shift_opened [10:25:44]FM_GetShiftState [10:25:44]SAM_PROTO_GetShiftState [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 01 00 [10:25:44]Write to MH i2c: E2 08 00 C3 85 80 13 01 00 00 00 00 00 C5 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 0E 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 0E 00 C3 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9F [10:25:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:25:44]wFMCommunicate OK [10:25:44]SAM_PROTO_GetShiftState done [10:25:44]FM_GetShiftState done [10:25:44]req_shift_opened done [10:25:44]requested_item shift.open_date is exist - process it [10:25:44]req_shift_open_date [10:25:44]req_shift_open_date done [10:25:44]produce_requested_data done [10:25:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30852,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:25:44]process_action_free close_receipt [10:25:44]json_value_free [10:25:44]json_value_free done [10:25:44]process_json_proto returns [10:25:44]Send response to host [10:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30852,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:25:44]free response buf [10:25:44]execute_script done [10:25:44]execute_script returns [10:25:44]free content buf [10:25:44]Sock 7.Close socket [10:25:44]Sock 7.Thread stoped [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:32]accept exits with 9 [10:26:32]New connection [10:26:32]New thread 3067346276 created [10:26:32]Thread 3067489636 joined [10:26:32]Waiting for new connection... [10:26:32] Sock 9.Parse request [10:26:32]Sock 9.Check first char [10:26:32]Sock 9.First char is OK [10:26:32]request: POST /json_proto HTTP/1.0 [10:26:32]Method: POST [10:26:32]URL: /json_proto [10:26:32]Method is POST - this is cgi request [10:26:32]url: /json_proto [10:26:32]query_string will be loaded in cgi processing [10:26:32]execute_cgi json_proto POST (null) [10:26:32]execute_cgi path=json_proto method=POST [10:26:32]POST find Content-Length [10:26:32]Host: 172.17.51.3:8080 [10:26:32]Content-Length: 679 [10:26:32]Content-Type: application/json [10:26:32] [10:26:32]POST finish read [10:26:32]Found Content-Length = 679 [10:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:32]execute_script... [10:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:32]POST & json_proto [10:26:32]process_json_proto [10:26:32]json parsed OK: [10:26:32]protocol is kg_v1.0 [10:26:32]action value=close_receipt [10:26:32]process_action close_receipt [10:26:32]cmd_close_receipt [10:26:32]MH_GetDate [10:26:32]Write to MH i2c: F0 00 00 C4 85 38 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 09 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: F0 09 00 C4 85 00 E2 7D 17 67 04 C1 95 66 DE [10:26:32]GetLastDocTimeStamp 1729592750 [10:26:32]current date 1729592802 [10:26:32]FM_GetShiftState [10:26:32]SAM_PROTO_GetShiftState [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 13 01 00 [10:26:32]Write to MH i2c: E2 08 00 C5 85 80 13 01 00 00 00 00 00 C7 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 C5 85 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A1 [10:26:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:26:32]wFMCommunicate OK [10:26:32]SAM_PROTO_GetShiftState done [10:26:32]FM_GetShiftState done [10:26:32]opened in 1729557342 [10:26:32]opened+sec_in_day 1729643742 [10:26:32]quantity*price = 200025 [10:26:32]sum+1 = 200026 [10:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 86 22.10.2024 10:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30853 ФПД: 249988677916506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30853&fm=249988677916506&tin=02508201610067®Number=0000000000186857&sum=200000 [10:26:34]StoreToDocumentArchive [10:26:34]shift 116 fd 30853 [10:26:34]save to /storage/0116/doc_00030853 [10:26:34]save last doc name /storage/0116/doc_00030853 to /storage/kkm_last_doc_name [10:26:34]save OK [10:26:34]Clear old archive folders... [10:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:34]tlvbuf is 01FDA520 [10:26:34]SAM_PROTO_ClearQueue [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 09 00 00 [10:26:34]Write to MH i2c: E2 08 00 D2 85 80 09 00 00 00 00 00 00 C9 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 D2 85 00 90 00 CB [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]SAM_PROTO_ClearQueue done [10:26:34]KKMCreateOFDPacket [10:26:34]OFDProtocolAddRootSTLVToBuf [10:26:34]FM_MakeSignedData [10:26:34]FM_MakeSignedData [10:26:34]SAM_PROTO_SignData [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 01 02 [10:26:34]Write to MH i2c: E2 08 00 D3 85 80 0D 01 02 00 00 00 00 D1 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 D3 85 00 90 00 CC [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=255 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E2 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 78 00 00 35 04 06 00 E3 5D 06 58 [10:26:34]Write to MH i2c: E2 02 01 D4 85 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E2 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 78 00 00 35 04 06 00 E3 5D 06 58 00 00 88 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 D4 85 00 90 00 CD [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=7 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 02 02 02 57 5A [10:26:34]Write to MH i2c: E2 0A 00 D5 85 80 0D 02 02 02 00 57 5A 00 00 89 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 D5 85 00 90 00 CE [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 03 02 [10:26:34]Write to MH i2c: E2 08 00 D6 85 80 0D 03 02 00 00 00 00 D6 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 0B 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 0B 00 D6 85 00 5F 31 C9 5E D5 8A 57 BE 90 00 02 [10:26:34]RAPDU: 5F 31 C9 5E D5 8A 57 BE 90 00 [10:26:34]wFMCommunicate OK [10:26:34]SAM_PROTO_SignData done [10:26:34]FM_MakeSignedData done [10:26:34]CreateOFDProtocolMessage [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 11 00 00 [10:26:34]Write to MH i2c: E2 08 00 D7 85 80 11 00 00 00 00 00 00 D6 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 17 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 17 00 D7 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 24 [10:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:26:34]wFMCommunicate OK [10:26:34]CreateOFDProtocolMessage done [10:26:34]OFDSenderStorePacket 30853 [10:26:34]StoreOFDPacket docnum=30853 [10:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 73 32 04 01 D8 70 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E2 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 78 00 00 35 04 06 00 E3 5D 06 58 57 5A 5F 31 C9 5E D5 8A 57 BE [10:26:34]CheckFolder [10:26:34]dirname=/storage/ofd_packets [10:26:34]CheckFolder done [10:26:34]ProducePacketName [10:26:34]name=ofd_packets/00030853 [10:26:34]NVStorageSaveData ofd_packets/00030853 [10:26:34]File name is /storage/ofd_packets/00030853 [10:26:34]Write 298 bytes [10:26:34]NVStorageSaveData done [10:26:34]OFDSenderStorePacket done [10:26:34]KKMCreateOFDPacket done [10:26:34]NVStorageSaveData kkm_last_timestamp [10:26:34]File name is /storage/kkm_last_timestamp [10:26:34]Write 4 bytes [10:26:34]NVStorageSaveData done [10:26:34]ExternCall_PrintAddStr [10:26:34]wPrintStart [10:26:34]Write to MH i2c: 01 00 00 D8 85 5D [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 D8 85 00 00 00 00 00 FF 0F 72 [10:26:34]RasterBufferAndPrint [10:26:34]line Счет N : (1)343270 [10:26:34]line ИНН: 02508201610067 [10:26:34]line Контрольно-Кассовый Чек [10:26:34]line ПРОДАЖА [10:26:34]line ТРК (МРК, ГНК) : 44 [10:26:34]line Товар: 2710194210 [10:26:34]line ДТ-К-2 [10:26:34]line 26.250 * 76.20 [10:26:34]line = 2000.25 [10:26:34]line НДС 12% НСП 1% [10:26:34]line > о реализуемом товаре [10:26:34]line ОКРУГЛЕНИЕ: -0.25 [10:26:34]line ИТОГО: 2000.00 [10:26:34]line Внесено: 2000.00 [10:26:34]line СДАЧА: 0.00 [10:26:34]line НСП 1% : 17.70 [10:26:34]line НДС 12% : 212.42 [10:26:34]line Наличными: 2000.00 [10:26:34]line Безнал.: 0.00 [10:26:34]line Место: АЗС № 78 "Партнер Нефть" [10:26:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:26:34]line СНО: Общий режим [10:26:34]line Чек 86 22.10.2024 10:26 [10:26:34]line Смена: 116 ФФД: 1.0 [10:26:34]line ЗНМ: 0300000137 [10:26:34]line РНМ: 0000000000186857 [10:26:34]line Версия ККМ: v1.0 [10:26:34]line ФМ: 0000000002094219 [10:26:34]line ФД: 30853 [10:26:34]line ФПД: 249988677916506 [10:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30853&fm=249988677916506&tin=02508201610067®Number=0000000000186857&sum=200000 [10:26:34]OFD Sender: Processing packet 30853 [packets to send 10, broken 9] [10:26:34]ProducePacketName [10:26:34]name=ofd_packets/00030853 [10:26:34]OFD Sender: To server: pG, [10:26:34]CommunicateWithHost lk.salyk.kg:30040 [10:26:34]ConnectInit lk.salyk.kg [10:26:34]written 0, free lines is 4095 [10:26:34]Connected sock=10 [10:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 73 32 04 01 D8 70 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E2 7D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 78 00 00 35 04 06 00 E3 5D 06 58 57 5A 5F 31 C9 5E D5 8A 57 BE [10:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 11 FA 47 00 09 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 78 00 00 F4 03 04 00 60 28 17 67 B6 04 01 00 00 3D 42 D3 37 B6 D5 73 43 [10:26:35]CommunicateWithHost err = 0 [10:26:35]CheckOFDResponse [10:26:35]1017 (14) - 77093643461234 [10:26:35]1041 (16) - 0000000002094219 [10:26:35]1040 (4) - 30853 [10:26:35]1012 (4) - 22.10.2024 04:21 [10:26:35]1206 (1) - 0 [10:26:35]OFD Sender: Remove packet 30853 [10:26:35]ProducePacketName [10:26:35]name=ofd_packets/00030853 [10:26:35]NVStorageDeleteData [10:26:35]Write to MH i2c: 01 00 00 03 86 89 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 03 86 00 00 00 00 00 F3 0C 8F [10:26:35]RasterBufferAndPrint [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]line [10:26:35]written 0, free lines is 3321 [10:26:35]MH_Cut [10:26:35]Write to MH i2c: D1 01 00 0A 86 01 62 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 01 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: D1 01 00 0A 86 00 61 [10:26:35]Write to MH i2c: 01 00 00 0B 86 91 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]OFD Sender: No OFD packet to send [10:26:36]*** Cut start [10:26:36]*** Partial cut [10:26:36]*** CUTSNS_PIN = 1 [10:26:36]*** CUTSNS_PIN = 0 [10:26:36]*** Brake cut motor [10:26:36]Read from MH i2c: 01 [10:26:36]MH_I2C_Read... [10:26:36]*** Stop cut motor [10:26:36]*** Cut end [10:26:36]Read from MH i2c: 01 07 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: 01 07 00 0B 86 00 00 00 00 00 FF 0F A6 [10:26:36]process_action close_receipt done [10:26:36]requested_data is exist [10:26:36]produce_requested_data [10:26:36]requested_item fm.sn is exist - process it [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 11 00 00 [10:26:36]Write to MH i2c: E2 08 00 0C 86 80 11 00 00 00 00 00 00 0C [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:36]Read from MH i2c: E2 17 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 17 00 0C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [10:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:26:36]wFMCommunicate OK [10:26:36]requested_item fd.num is exist - process it [10:26:36]SAM_PROTO_GetFieldsCounters [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 13 00 00 [10:26:36]Write to MH i2c: E2 08 00 0D 86 80 13 00 00 00 00 00 00 0F [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 62 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 62 00 0D 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 78 00 00 0E 04 04 00 74 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 A8 [10:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:36]wFMCommunicate OK [10:26:36]SAM_PROTO_GetFieldsCounters done [10:26:36]requested_item shift.num is exist - process it [10:26:36]requested_item shift.opened is exist - process it [10:26:36]req_shift_opened [10:26:36]FM_GetShiftState [10:26:36]SAM_PROTO_GetShiftState [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 13 01 00 [10:26:36]Write to MH i2c: E2 08 00 0E 86 80 13 01 00 00 00 00 00 11 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 0E 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 0E 00 0E 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EB [10:26:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:26:36]wFMCommunicate OK [10:26:36]SAM_PROTO_GetShiftState done [10:26:36]FM_GetShiftState done [10:26:36]req_shift_opened done [10:26:36]requested_item shift.open_date is exist - process it [10:26:36]req_shift_open_date [10:26:36]req_shift_open_date done [10:26:36]produce_requested_data done [10:26:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30853,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:26:36]process_action_free close_receipt [10:26:36]json_value_free [10:26:36]json_value_free done [10:26:36]process_json_proto returns [10:26:36]Send response to host [10:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30853,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:26:36]free response buf [10:26:36]execute_script done [10:26:36]execute_script returns [10:26:36]free content buf [10:26:36]Sock 9.Close socket [10:26:36]Sock 9.Thread stoped [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]accept exits with 7 [10:28:20]New connection [10:28:20]New thread 3067489636 created [10:28:20]Thread 3067346276 joined [10:28:20]Waiting for new connection... [10:28:20] Sock 7.Parse request [10:28:20]Sock 7.Check first char [10:28:20]Sock 7.First char is OK [10:28:20]request: POST /json_proto HTTP/1.0 [10:28:20]Method: POST [10:28:20]URL: /json_proto [10:28:20]Method is POST - this is cgi request [10:28:20]url: /json_proto [10:28:20]query_string will be loaded in cgi processing [10:28:20]execute_cgi json_proto POST (null) [10:28:20]execute_cgi path=json_proto method=POST [10:28:20]POST find Content-Length [10:28:20]Host: 172.17.51.3:8080 [10:28:20]Content-Length: 677 [10:28:20]Content-Type: application/json [10:28:20] [10:28:20]POST finish read [10:28:20]Found Content-Length = 677 [10:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:20]execute_script... [10:28: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)343274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:20]POST & json_proto [10:28:20]process_json_proto [10:28:20]json parsed OK: [10:28:20]protocol is kg_v1.0 [10:28:20]action value=close_receipt [10:28:20]process_action close_receipt [10:28:20]cmd_close_receipt [10:28:20]MH_GetDate [10:28:20]Write to MH i2c: F0 00 00 0F 86 84 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: F0 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: F0 09 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: F0 09 00 0F 86 00 4E 7E 17 67 04 C1 95 66 97 [10:28:20]GetLastDocTimeStamp 1729592802 [10:28:20]current date 1729592910 [10:28:20]FM_GetShiftState [10:28:20]SAM_PROTO_GetShiftState [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 13 01 00 [10:28:20]Write to MH i2c: E2 08 00 10 86 80 13 01 00 00 00 00 00 13 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 0E 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 0E 00 10 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 ED [10:28:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:28:20]wFMCommunicate OK [10:28:20]SAM_PROTO_GetShiftState done [10:28:20]FM_GetShiftState done [10:28:20]opened in 1729557342 [10:28:20]opened+sec_in_day 1729643742 [10:28:20]quantity*price = 50041 [10:28:20]sum+1 = 50042 [10:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 87 22.10.2024 10:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30854 ФПД: 227340153309579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102830&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30854&fm=227340153309579&tin=02508201610067®Number=0000000000186857&sum=50000 [10:28:21]StoreToDocumentArchive [10:28:21]shift 116 fd 30854 [10:28:21]save to /storage/0116/doc_00030854 [10:28:21]save last doc name /storage/0116/doc_00030854 to /storage/kkm_last_doc_name [10:28:21]save OK [10:28:21]Clear old archive folders... [10:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:21]tlvbuf is 0201E5F0 [10:28:21]SAM_PROTO_ClearQueue [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 09 00 00 [10:28:21]Write to MH i2c: E2 08 00 1D 86 80 09 00 00 00 00 00 00 15 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 1D 86 00 90 00 17 [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_ClearQueue done [10:28:21]KKMCreateOFDPacket [10:28:21]OFDProtocolAddRootSTLVToBuf [10:28:21]FM_MakeSignedData [10:28:21]FM_MakeSignedData [10:28:21]SAM_PROTO_SignData [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 0D 01 02 [10:28:21]Write to MH i2c: E2 08 00 1E 86 80 0D 01 02 00 00 00 00 1D [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 1E 86 00 90 00 18 [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]wFMCommunicate request_size=255 [10:28:21]MH_SAM_APDU [10:28: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 78 00 00 35 04 06 00 CE [10:28:21]Write to MH i2c: E2 02 01 1F 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 78 00 00 35 04 06 00 CE 00 00 8F [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 1F 86 00 90 00 19 [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]wFMCommunicate request_size=10 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 0D 02 02 05 C3 C1 14 C9 8B [10:28:21]Write to MH i2c: E2 0D 00 20 86 80 0D 02 02 05 00 C3 C1 14 C9 8B 00 00 16 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 20 86 00 90 00 1A [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 0D 03 02 [10:28:21]Write to MH i2c: E2 08 00 21 86 80 0D 03 02 00 00 00 00 22 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0B 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0B 00 21 86 00 F6 D7 3E 34 9B 81 3C 6D 90 00 27 [10:28:21]RAPDU: F6 D7 3E 34 9B 81 3C 6D 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_SignData done [10:28:21]FM_MakeSignedData done [10:28:21]CreateOFDProtocolMessage [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 11 00 00 [10:28:21]Write to MH i2c: E2 08 00 22 86 80 11 00 00 00 00 00 00 22 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 17 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 17 00 22 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [10:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:21]wFMCommunicate OK [10:28:21]CreateOFDProtocolMessage done [10:28:21]OFDSenderStorePacket 30854 [10:28:21]StoreOFDPacket docnum=30854 [10:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 93 05 07 01 48 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 78 00 00 35 04 06 00 CE C3 C1 14 C9 8B F6 D7 3E 34 9B 81 3C 6D [10:28:21]CheckFolder [10:28:21]dirname=/storage/ofd_packets [10:28:21]CheckFolder done [10:28:21]ProducePacketName [10:28:21]name=ofd_packets/00030854 [10:28:21]NVStorageSaveData ofd_packets/00030854 [10:28:21]File name is /storage/ofd_packets/00030854 [10:28:21]Write 301 bytes [10:28:21]NVStorageSaveData done [10:28:21]OFDSenderStorePacket done [10:28:21]KKMCreateOFDPacket done [10:28:21]NVStorageSaveData kkm_last_timestamp [10:28:21]File name is /storage/kkm_last_timestamp [10:28:21]Write 4 bytes [10:28:21]NVStorageSaveData done [10:28:21]ExternCall_PrintAddStr [10:28:21]wPrintStart [10:28:21]Write to MH i2c: 01 00 00 23 86 A9 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 07 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 07 00 23 86 00 00 00 00 00 FF 0F BE [10:28:21]RasterBufferAndPrint [10:28:21]line Счет N : (1)343274 [10:28:21]line ИНН: 02508201610067 [10:28:21]line Контрольно-Кассовый Чек [10:28:21]line ПРОДАЖА [10:28:21]line ТРК (МРК, ГНК) : 53 [10:28:21]line Товар: 2710124130 [10:28:21]line Аи-92-К-2 [10:28:21]line 7.480 * 66.90 [10:28:21]line = 500.41 [10:28:21]line НДС 12% НСП 1% [10:28:21]line > о реализуемом товаре [10:28:21]line ОКРУГЛЕНИЕ: -0.41 [10:28:21]line ИТОГО: 500.00 [10:28:21]line Внесено: 500.00 [10:28:21]line СДАЧА: 0.00 [10:28:21]line НСП 1% : 4.43 [10:28:21]line НДС 12% : 53.14 [10:28:21]line Наличными: 500.00 [10:28:21]line Безнал.: 0.00 [10:28:21]line Место: АЗС № 78 "Партнер Нефть" [10:28:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:28:21]line СНО: Общий режим [10:28:21]line Чек 87 22.10.2024 10:28 [10:28:21]line Смена: 116 ФФД: 1.0 [10:28:21]line ЗНМ: 0300000137 [10:28:21]line РНМ: 0000000000186857 [10:28:21]line Версия ККМ: v1.0 [10:28:21]line ФМ: 0000000002094219 [10:28:21]line ФД: 30854 [10:28:21]line ФПД: 227340153309579 [10:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102830&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30854&fm=227340153309579&tin=02508201610067®Number=0000000000186857&sum=50000 [10:28:22]OFD Sender: Processing packet 30854 [packets to send 10, broken 9] [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00030854 [10:28:22]OFD Sender: To server: pG, [10:28:22]CommunicateWithHost lk.salyk.kg:30040 [10:28:22]ConnectInit lk.salyk.kg [10:28:22]written 0, free lines is 4095 [10:28:22]Connected sock=10 [10:28:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 93 05 07 01 48 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 78 00 00 35 04 06 00 CE C3 C1 14 C9 8B F6 D7 3E 34 9B 81 3C 6D [10:28:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E1 06 47 00 C8 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 32 30 39 34 32 31 39 10 04 04 00 86 78 00 00 F4 03 04 00 CC 28 17 67 B6 04 01 00 00 45 DB CF 56 B7 CD 38 5F [10:28:22]CommunicateWithHost err = 0 [10:28:22]CheckOFDResponse [10:28:22]1017 (14) - 77093643461234 [10:28:22]1041 (16) - 0000000002094219 [10:28:22]1040 (4) - 30854 [10:28:22]1012 (4) - 22.10.2024 04:23 [10:28:22]1206 (1) - 0 [10:28:22]OFD Sender: Remove packet 30854 [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00030854 [10:28:22]NVStorageDeleteData [10:28:22]Write to MH i2c: 01 00 00 4E 86 D4 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 4E 86 00 00 00 00 00 E4 0C CB [10:28:22]RasterBufferAndPrint [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]written 0, free lines is 3306 [10:28:22]MH_Cut [10:28:22]Write to MH i2c: D1 01 00 55 86 01 AD [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 55 86 00 AC [10:28:22]Write to MH i2c: 01 00 00 56 86 DC [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:23]OFD Sender: No OFD packet to send [10:28:23]*** Cut start [10:28:23]*** Partial cut [10:28:23]*** CUTSNS_PIN = 1 [10:28:23]*** CUTSNS_PIN = 0 [10:28:23]*** Brake cut motor [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]*** Stop cut motor [10:28:23]*** Cut end [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 56 86 00 00 00 00 00 FF 0F F1 [10:28:23]process_action close_receipt done [10:28:23]requested_data is exist [10:28:23]produce_requested_data [10:28:23]requested_item fm.sn is exist - process it [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 11 00 00 [10:28:23]Write to MH i2c: E2 08 00 57 86 80 11 00 00 00 00 00 00 57 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 57 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [10:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:24]wFMCommunicate OK [10:28:24]requested_item fd.num is exist - process it [10:28:24]SAM_PROTO_GetFieldsCounters [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 00 00 [10:28:24]Write to MH i2c: E2 08 00 58 86 80 13 00 00 00 00 00 00 5A [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 58 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 78 00 00 0E 04 04 00 74 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 F7 [10:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetFieldsCounters done [10:28:24]requested_item shift.num is exist - process it [10:28:24]requested_item shift.opened is exist - process it [10:28:24]req_shift_opened [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 59 86 80 13 01 00 00 00 00 00 5C [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 59 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 36 [10:28:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]req_shift_opened done [10:28:24]requested_item shift.open_date is exist - process it [10:28:24]req_shift_open_date [10:28:24]req_shift_open_date done [10:28:24]produce_requested_data done [10:28:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30854,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:28:24]process_action_free close_receipt [10:28:24]json_value_free [10:28:24]json_value_free done [10:28:24]process_json_proto returns [10:28:24]Send response to host [10:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30854,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:28:24]free response buf [10:28:24]execute_script done [10:28:24]execute_script returns [10:28:24]free content buf [10:28:24]Sock 7.Close socket [10:28:24]Sock 7.Thread stoped [10:28:28]OFD Sender: No OFD packet to send [10:28:31]recv_with_timeout no data received [10:28:33]OFD Sender: No OFD packet to send [10:28:36]accept exits with 9 [10:28:36]New connection [10:28:36]New thread 3067346276 created [10:28:36]Thread 3067489636 joined [10:28:36]Waiting for new connection... [10:28:36] Sock 9.Parse request [10:28:36]Sock 9.Check first char [10:28:36]Sock 9.First char is OK [10:28:36]request: POST /json_proto HTTP/1.0 [10:28:36]Method: POST [10:28:36]URL: /json_proto [10:28:36]Method is POST - this is cgi request [10:28:36]url: /json_proto [10:28:36]query_string will be loaded in cgi processing [10:28:36]execute_cgi json_proto POST (null) [10:28:36]execute_cgi path=json_proto method=POST [10:28:36]POST find Content-Length [10:28:36]Host: 172.17.51.3:8080 [10:28:36]Content-Length: 679 [10:28:36]Content-Type: application/json [10:28:36] [10:28:36]POST finish read [10:28:36]Found Content-Length = 679 [10:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:36]execute_script... [10:28: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)343275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:36]POST & json_proto [10:28:36]process_json_proto [10:28:36]json parsed OK: [10:28:36]protocol is kg_v1.0 [10:28:36]action value=close_receipt [10:28:36]process_action close_receipt [10:28:36]cmd_close_receipt [10:28:36]MH_GetDate [10:28:36]Write to MH i2c: F0 00 00 5A 86 CF [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 09 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 09 00 5A 86 00 5E 7E 17 67 04 C1 95 66 F2 [10:28:36]GetLastDocTimeStamp 1729592910 [10:28:36]current date 1729592926 [10:28:36]FM_GetShiftState [10:28:36]SAM_PROTO_GetShiftState [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 13 01 00 [10:28:36]Write to MH i2c: E2 08 00 5B 86 80 13 01 00 00 00 00 00 5E [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 5B 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 38 [10:28:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_GetShiftState done [10:28:36]FM_GetShiftState done [10:28:36]opened in 1729557342 [10:28:36]opened+sec_in_day 1729643742 [10:28:36]quantity*price = 100050 [10:28:36]sum+1 = 100052 [10:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 88 22.10.2024 10:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30855 ФПД: 28801257982534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102846&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30855&fm=28801257982534&tin=02508201610067®Number=0000000000186857&sum=100000 [10:28:37]StoreToDocumentArchive [10:28:37]shift 116 fd 30855 [10:28:37]save to /storage/0116/doc_00030855 [10:28:37]save last doc name /storage/0116/doc_00030855 to /storage/kkm_last_doc_name [10:28:37]save OK [10:28:37]Clear old archive folders... [10:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:37]tlvbuf is 01DB8A30 [10:28:37]SAM_PROTO_ClearQueue [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 09 00 00 [10:28:37]Write to MH i2c: E2 08 00 68 86 80 09 00 00 00 00 00 00 60 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 68 86 00 90 00 62 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]SAM_PROTO_ClearQueue done [10:28:37]KKMCreateOFDPacket [10:28:37]OFDProtocolAddRootSTLVToBuf [10:28:37]FM_MakeSignedData [10:28:37]FM_MakeSignedData [10:28:37]SAM_PROTO_SignData [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 0D 01 02 [10:28:37]Write to MH i2c: E2 08 00 69 86 80 0D 01 02 00 00 00 00 68 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 69 86 00 90 00 63 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]wFMCommunicate request_size=255 [10:28:37]MH_SAM_APDU [10:28:37]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 78 00 00 35 04 06 00 1A 31 D0 C0 [10:28:37]Write to MH i2c: E2 02 01 6A 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 78 00 00 35 04 06 00 1A 31 D0 C0 00 00 EF [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 6A 86 00 90 00 64 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]wFMCommunicate request_size=7 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 0D 02 02 02 4A 46 [10:28:37]Write to MH i2c: E2 0A 00 6B 86 80 0D 02 02 02 00 4A 46 00 00 FF [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 6B 86 00 90 00 65 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 0D 03 02 [10:28:37]Write to MH i2c: E2 08 00 6C 86 80 0D 03 02 00 00 00 00 6D [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 6C 86 00 D5 2A 34 8F EA 0A 3C 8F 90 00 EF [10:28:38]RAPDU: D5 2A 34 8F EA 0A 3C 8F 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_SignData done [10:28:38]FM_MakeSignedData done [10:28:38]CreateOFDProtocolMessage [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 11 00 00 [10:28:38]Write to MH i2c: E2 08 00 6D 86 80 11 00 00 00 00 00 00 6D [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 6D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [10:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:38]wFMCommunicate OK [10:28:38]CreateOFDProtocolMessage done [10:28:38]OFDSenderStorePacket 30855 [10:28:38]StoreOFDPacket docnum=30855 [10:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BE CF 04 01 47 1B 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 78 00 00 35 04 06 00 1A 31 D0 C0 4A 46 D5 2A 34 8F EA 0A 3C 8F [10:28:38]CheckFolder [10:28:38]dirname=/storage/ofd_packets [10:28:38]CheckFolder done [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00030855 [10:28:38]NVStorageSaveData ofd_packets/00030855 [10:28:38]File name is /storage/ofd_packets/00030855 [10:28:38]Write 298 bytes [10:28:38]NVStorageSaveData done [10:28:38]OFDSenderStorePacket done [10:28:38]KKMCreateOFDPacket done [10:28:38]NVStorageSaveData kkm_last_timestamp [10:28:38]File name is /storage/kkm_last_timestamp [10:28:38]Write 4 bytes [10:28:38]NVStorageSaveData done [10:28:38]ExternCall_PrintAddStr [10:28:38]wPrintStart [10:28:38]Write to MH i2c: 01 00 00 6E 86 F4 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 6E 86 00 00 00 00 00 FF 0F 09 [10:28:38]RasterBufferAndPrint [10:28:38]line Счет N : (1)343275 [10:28:38]line ИНН: 02508201610067 [10:28:38]line Контрольно-Кассовый Чек [10:28:38]line ПРОДАЖА [10:28:38]line ТРК (МРК, ГНК) : 34 [10:28:38]line Товар: 2710194210 [10:28:38]line ДТ-К-2 [10:28:38]line 13.130 * 76.20 [10:28:38]line = 1000.51 [10:28:38]line НДС 12% НСП 1% [10:28:38]line > о реализуемом товаре [10:28:38]line ОКРУГЛЕНИЕ: -0.51 [10:28:38]line ИТОГО: 1000.00 [10:28:38]line Внесено: 1000.00 [10:28:38]line СДАЧА: 0.00 [10:28:38]line НСП 1% : 8.85 [10:28:38]line НДС 12% : 106.25 [10:28:38]line Наличными: 1000.00 [10:28:38]line Безнал.: 0.00 [10:28:38]line Место: АЗС № 78 "Партнер Нефть" [10:28:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:28:38]line СНО: Общий режим [10:28:38]line Чек 88 22.10.2024 10:28 [10:28:38]line Смена: 116 ФФД: 1.0 [10:28:38]line ЗНМ: 0300000137 [10:28:38]line РНМ: 0000000000186857 [10:28:38]line Версия ККМ: v1.0 [10:28:38]line ФМ: 0000000002094219 [10:28:38]line ФД: 30855 [10:28:38]line ФПД: 28801257982534 [10:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102846&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30855&fm=28801257982534&tin=02508201610067®Number=0000000000186857&sum=100000 [10:28:38]written 0, free lines is 4095 [10:28:38]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00030855 [10:28:38]OFD Sender: To server: pG, [10:28:38]CommunicateWithHost lk.salyk.kg:30040 [10:28:38]ConnectInit lk.salyk.kg [10:28:38]Write to MH i2c: 01 00 00 99 86 1F [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 99 86 00 00 00 00 00 DC 0C 0E [10:28:38]RasterBufferAndPrint [10:28:38]line [10:28:38]line [10:28:38]line [10:28:38]line [10:28:38]line [10:28:38]written 0, free lines is 3303 [10:28:38]MH_Cut [10:28:38]Write to MH i2c: D1 01 00 A0 86 01 F8 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: D1 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: D1 01 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: D1 01 00 A0 86 00 F7 [10:28:38]Write to MH i2c: 01 00 00 A1 86 27 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:39]*** Cut start [10:28:39]*** Partial cut [10:28:39]*** CUTSNS_PIN = 1 [10:28:39]*** CUTSNS_PIN = 0 [10:28:39]*** Brake cut motor [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]*** Stop cut motor [10:28:39]*** Cut end [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 A1 86 00 00 00 00 00 FF 0F 3C [10:28:39]process_action close_receipt done [10:28:39]requested_data is exist [10:28:39]produce_requested_data [10:28:39]requested_item fm.sn is exist - process it [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 11 00 00 [10:28:39]Write to MH i2c: E2 08 00 A2 86 80 11 00 00 00 00 00 00 A2 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 A2 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [10:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:39]wFMCommunicate OK [10:28:39]requested_item fd.num is exist - process it [10:28:39]SAM_PROTO_GetFieldsCounters [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 00 00 [10:28:39]Write to MH i2c: E2 08 00 A3 86 80 13 00 00 00 00 00 00 A5 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 A3 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 78 00 00 0E 04 04 00 74 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 46 [10:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetFieldsCounters done [10:28:40]requested_item shift.num is exist - process it [10:28:40]requested_item shift.opened is exist - process it [10:28:40]req_shift_opened [10:28:40]FM_GetShiftState [10:28:40]SAM_PROTO_GetShiftState [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 01 00 [10:28:40]Write to MH i2c: E2 08 00 A4 86 80 13 01 00 00 00 00 00 A7 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 A4 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 81 [10:28:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetShiftState done [10:28:40]FM_GetShiftState done [10:28:40]req_shift_opened done [10:28:40]requested_item shift.open_date is exist - process it [10:28:40]req_shift_open_date [10:28:40]req_shift_open_date done [10:28:40]produce_requested_data done [10:28:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30855,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:28:40]process_action_free close_receipt [10:28:40]json_value_free [10:28:40]json_value_free done [10:28:40]process_json_proto returns [10:28:40]Send response to host [10:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30855,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:28:40]free response buf [10:28:40]execute_script done [10:28:40]execute_script returns [10:28:40]free content buf [10:28:40]Sock 9.Close socket [10:28:40]Sock 9.Thread stoped [10:28:43]ConnectInit Can't take IP for lk.salyk.kg [10:28:43]CommunicateWithHost connect error [10:28:43]CommunicateWithHost err = -1 [10:28:43]OFD Sender: Server communicate error [10:28:48]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:28:48]ProducePacketName [10:28:48]name=ofd_packets/00030855 [10:28:48]OFD Sender: To server: pG, [10:28:48]CommunicateWithHost lk.salyk.kg:30040 [10:28:48]ConnectInit lk.salyk.kg [10:28:50]recv_with_timeout no data received [10:28:53]ConnectInit Can't take IP for lk.salyk.kg [10:28:53]CommunicateWithHost connect error [10:28:53]CommunicateWithHost err = -1 [10:28:53]OFD Sender: Server communicate error [10:28:58]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:28:58]ProducePacketName [10:28:58]name=ofd_packets/00030855 [10:28:58]OFD Sender: To server: pG, [10:28:58]CommunicateWithHost lk.salyk.kg:30040 [10:28:58]ConnectInit lk.salyk.kg [10:29:03]ConnectInit Can't take IP for lk.salyk.kg [10:29:03]CommunicateWithHost connect error [10:29:03]CommunicateWithHost err = -1 [10:29:03]OFD Sender: Server communicate error [10:29:06]recv_with_timeout no data received [10:29:08]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:29:08]ProducePacketName [10:29:08]name=ofd_packets/00030855 [10:29:08]OFD Sender: To server: pG, [10:29:08]CommunicateWithHost lk.salyk.kg:30040 [10:29:08]ConnectInit lk.salyk.kg [10:29:13]ConnectInit Can't take IP for lk.salyk.kg [10:29:13]CommunicateWithHost connect error [10:29:13]CommunicateWithHost err = -1 [10:29:13]OFD Sender: Server communicate error [10:29:18]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:29:18]ProducePacketName [10:29:18]name=ofd_packets/00030855 [10:29:18]OFD Sender: To server: pG, [10:29:18]CommunicateWithHost lk.salyk.kg:30040 [10:29:18]ConnectInit lk.salyk.kg [10:29:23]ConnectInit Can't take IP for lk.salyk.kg [10:29:23]CommunicateWithHost connect error [10:29:23]CommunicateWithHost err = -1 [10:29:23]OFD Sender: Server communicate error [10:29:28]OFD Sender: Processing packet 30855 [packets to send 10, broken 9] [10:29:28]ProducePacketName [10:29:28]name=ofd_packets/00030855 [10:29:28]OFD Sender: To server: pG, [10:29:28]CommunicateWithHost lk.salyk.kg:30040 [10:29:28]ConnectInit lk.salyk.kg [10:29:32]Connected sock=9 [10:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BE CF 04 01 47 1B 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 7E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 78 00 00 35 04 06 00 1A 31 D0 C0 4A 46 D5 2A 34 8F EA 0A 3C 8F [10:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 43 0D 47 00 0C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 78 00 00 F4 03 04 00 12 29 17 67 B6 04 01 00 00 55 B2 3D FA 7C B6 8D FB [10:29:33]CommunicateWithHost err = 0 [10:29:33]CheckOFDResponse [10:29:33]1017 (14) - 77093643461234 [10:29:33]1041 (16) - 0000000002094219 [10:29:33]1040 (4) - 30855 [10:29:33]1012 (4) - 22.10.2024 04:24 [10:29:33]1206 (1) - 0 [10:29:33]OFD Sender: Remove packet 30855 [10:29:33]ProducePacketName [10:29:33]name=ofd_packets/00030855 [10:29:33]NVStorageDeleteData [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:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:39]accept exits with 7 [10:34:39]New connection [10:34:39]New thread 3067489636 created [10:34:39]Thread 3067346276 joined [10:34:39]Waiting for new connection... [10:34:39] Sock 7.Parse request [10:34:39]Sock 7.Check first char [10:34:39]Sock 7.First char is OK [10:34:39]request: POST /json_proto HTTP/1.0 [10:34:39]Method: POST [10:34:39]URL: /json_proto [10:34:39]Method is POST - this is cgi request [10:34:39]url: /json_proto [10:34:39]query_string will be loaded in cgi processing [10:34:39]execute_cgi json_proto POST (null) [10:34:39]execute_cgi path=json_proto method=POST [10:34:39]POST find Content-Length [10:34:39]Host: 172.17.51.3:8080 [10:34:39]Content-Length: 754 [10:34:39]Content-Type: application/json [10:34:39] [10:34:39]POST finish read [10:34:39]Found Content-Length = 754 [10:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]execute_script... [10:34: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)343276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]POST & json_proto [10:34:39]process_json_proto [10:34:39]json parsed OK: [10:34:39]protocol is kg_v1.0 [10:34:39]action value=close_receipt [10:34:39]process_action close_receipt [10:34:39]cmd_close_receipt [10:34:39]MH_GetDate [10:34:39]Write to MH i2c: F0 00 00 A5 86 1A [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 A5 86 00 C9 7F 17 67 04 C1 95 66 A9 [10:34:39]GetLastDocTimeStamp 1729592926 [10:34:39]current date 1729593289 [10:34:39]FM_GetShiftState [10:34:39]SAM_PROTO_GetShiftState [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 13 01 00 [10:34:39]Write to MH i2c: E2 08 00 A6 86 80 13 01 00 00 00 00 00 A9 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 A6 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 83 [10:34:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:34:39]wFMCommunicate OK [10:34:39]SAM_PROTO_GetShiftState done [10:34:39]FM_GetShiftState done [10:34:39]opened in 1729557342 [10:34:39]opened+sec_in_day 1729643742 [10:34:39]quantity*price = 0 [10:34:39]sum+1 = 1 [10:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 89 22.10.2024 10:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30109112 ФМ: 0000000002094219 ФД: 30856 ФПД: 106223363156416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103449&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30856&fm=106223363156416&tin=02508201610067®Number=0000000000186857&sum=0 [10:34:40]StoreToDocumentArchive [10:34:40]shift 116 fd 30856 [10:34:40]save to /storage/0116/doc_00030856 [10:34:40]save last doc name /storage/0116/doc_00030856 to /storage/kkm_last_doc_name [10:34:40]save OK [10:34:40]Clear old archive folders... [10:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:40]tlvbuf is 01E6F480 [10:34:40]SAM_PROTO_ClearQueue [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 09 00 00 [10:34:40]Write to MH i2c: E2 08 00 B3 86 80 09 00 00 00 00 00 00 AB [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 B3 86 00 90 00 AD [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_ClearQueue done [10:34:40]KKMCreateOFDPacket [10:34:40]OFDProtocolAddRootSTLVToBuf [10:34:40]FM_MakeSignedData [10:34:40]FM_MakeSignedData [10:34:40]SAM_PROTO_SignData [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 01 02 [10:34:40]Write to MH i2c: E2 08 00 B4 86 80 0D 01 02 00 00 00 00 B3 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 B4 86 00 90 00 AE [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=255 [10:34:40]MH_SAM_APDU [10:34: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C9 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 78 00 00 35 04 06 00 60 [10:34:40]Write to MH i2c: E2 02 01 B5 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C9 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 78 00 00 35 04 06 00 60 00 00 E9 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 B5 86 00 90 00 AF [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=10 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 02 02 05 9C 0D D3 E9 C0 [10:34:40]Write to MH i2c: E2 0D 00 B6 86 80 0D 02 02 05 00 9C 0D D3 E9 C0 00 00 E5 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 B6 86 00 90 00 B0 [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 03 02 [10:34:40]Write to MH i2c: E2 08 00 B7 86 80 0D 03 02 00 00 00 00 B8 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 B7 86 00 05 B3 11 FC 5E 0C 8D 33 90 00 A8 [10:34:40]RAPDU: 05 B3 11 FC 5E 0C 8D 33 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_SignData done [10:34:40]FM_MakeSignedData done [10:34:40]CreateOFDProtocolMessage [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 11 00 00 [10:34:40]Write to MH i2c: E2 08 00 B8 86 80 11 00 00 00 00 00 00 B8 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 17 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 17 00 B8 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [10:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:34:40]wFMCommunicate OK [10:34:40]CreateOFDProtocolMessage done [10:34:40]OFDSenderStorePacket 30856 [10:34:40]StoreOFDPacket docnum=30856 [10:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 00 07 01 FA C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C9 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 78 00 00 35 04 06 00 60 9C 0D D3 E9 C0 05 B3 11 FC 5E 0C 8D 33 [10:34:40]CheckFolder [10:34:40]dirname=/storage/ofd_packets [10:34:40]CheckFolder done [10:34:40]ProducePacketName [10:34:40]name=ofd_packets/00030856 [10:34:40]NVStorageSaveData ofd_packets/00030856 [10:34:40]File name is /storage/ofd_packets/00030856 [10:34:40]Write 301 bytes [10:34:40]NVStorageSaveData done [10:34:40]OFDSenderStorePacket done [10:34:40]KKMCreateOFDPacket done [10:34:40]NVStorageSaveData kkm_last_timestamp [10:34:40]File name is /storage/kkm_last_timestamp [10:34:40]Write 4 bytes [10:34:40]NVStorageSaveData done [10:34:40]ExternCall_PrintAddStr [10:34:40]wPrintStart [10:34:40]Write to MH i2c: 01 00 00 B9 86 3F [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 07 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 07 00 B9 86 00 00 00 00 00 FF 0F 54 [10:34:40]RasterBufferAndPrint [10:34:40]line Счет N : (1)343276 [10:34:40]line ИНН: 02508201610067 [10:34:40]line Контрольно-Кассовый Чек [10:34:40]line ПРОДАЖА [10:34:40]line ТРК (МРК, ГНК) : 53 [10:34:40]line Товар: 2710124130 [10:34:40]line Аи-92-К-2 [10:34:40]line 10.000 * 0.00 [10:34:40]line = 0.00 [10:34:40]line НДС 12% НСП 1% [10:34:40]line > о реализуемом товаре [10:34:40]line ИТОГО: 0.00 [10:34:40]line НСП 1% : 0.00 [10:34:40]line НДС 12% : 0.00 [10:34:40]line Наличными: 0.00 [10:34:40]line Безнал.: 0.00 [10:34:40]line Место: АЗС № 78 "Партнер Нефть" [10:34:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:34:40]line СНО: Общий режим [10:34:40]line Чек 89 22.10.2024 10:34 [10:34:40]line Смена: 116 ФФД: 1.0 [10:34:40]line ЗНМ: 0300000137 [10:34:40]line РНМ: 0000000000186857 [10:34:40]line Версия ККМ: v1.0 [10:34:40]line Талоны: ТК ГПНА Online [10:34:40]line 30109112 [10:34:40]line ФМ: 0000000002094219 [10:34:40]line ФД: 30856 [10:34:40]line ФПД: 106223363156416 [10:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103449&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30856&fm=106223363156416&tin=02508201610067®Number=0000000000186857&sum=0 [10:34:41]OFD Sender: Processing packet 30856 [packets to send 10, broken 9] [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00030856 [10:34:41]OFD Sender: To server: pG, [10:34:41]CommunicateWithHost lk.salyk.kg:30040 [10:34:41]ConnectInit lk.salyk.kg [10:34:41]written 0, free lines is 4095 [10:34:41]Connected sock=10 [10:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 00 07 01 FA C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C9 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 78 00 00 35 04 06 00 60 9C 0D D3 E9 C0 05 B3 11 FC 5E 0C 8D 33 [10:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D 05 47 00 88 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 78 00 00 F4 03 04 00 47 2A 17 67 B6 04 01 00 00 F8 DD FA 3B 35 1F 32 E0 [10:34:41]CommunicateWithHost err = 0 [10:34:41]CheckOFDResponse [10:34:41]1017 (14) - 77093643461234 [10:34:41]1041 (16) - 0000000002094219 [10:34:41]1040 (4) - 30856 [10:34:41]1012 (4) - 22.10.2024 04:29 [10:34:41]1206 (1) - 0 [10:34:41]OFD Sender: Remove packet 30856 [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00030856 [10:34:41]NVStorageDeleteData [10:34:41]Write to MH i2c: 01 00 00 E3 86 69 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 E3 86 00 00 00 00 00 F3 0C 6F [10:34:41]RasterBufferAndPrint [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]written 0, free lines is 3321 [10:34:41]MH_Cut [10:34:41]Write to MH i2c: D1 01 00 EA 86 01 42 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 EA 86 00 41 [10:34:41]Write to MH i2c: 01 00 00 EB 86 71 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:42]OFD Sender: No OFD packet to send [10:34:42]*** Cut start [10:34:42]*** Partial cut [10:34:42]*** CUTSNS_PIN = 1 [10:34:42]*** CUTSNS_PIN = 0 [10:34:42]*** Brake cut motor [10:34:42]Read from MH i2c: 01 [10:34:42]MH_I2C_Read... [10:34:42]*** Stop cut motor [10:34:42]*** Cut end [10:34:42]Read from MH i2c: 01 07 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 EB 86 00 00 00 00 00 FF 0F 86 [10:34:42]process_action close_receipt done [10:34:42]requested_data is exist [10:34:42]produce_requested_data [10:34:42]requested_item fm.sn is exist - process it [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 11 00 00 [10:34:42]Write to MH i2c: E2 08 00 EC 86 80 11 00 00 00 00 00 00 EC [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:43]Read from MH i2c: E2 17 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 17 00 EC 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [10:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:34:43]wFMCommunicate OK [10:34:43]requested_item fd.num is exist - process it [10:34:43]SAM_PROTO_GetFieldsCounters [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 00 00 [10:34:43]Write to MH i2c: E2 08 00 ED 86 80 13 00 00 00 00 00 00 EF [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 ED 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 78 00 00 0E 04 04 00 74 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 94 [10:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetFieldsCounters done [10:34:43]requested_item shift.num is exist - process it [10:34:43]requested_item shift.opened is exist - process it [10:34:43]req_shift_opened [10:34:43]FM_GetShiftState [10:34:43]SAM_PROTO_GetShiftState [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 01 00 [10:34:43]Write to MH i2c: E2 08 00 EE 86 80 13 01 00 00 00 00 00 F1 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 EE 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CB [10:34:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetShiftState done [10:34:43]FM_GetShiftState done [10:34:43]req_shift_opened done [10:34:43]requested_item shift.open_date is exist - process it [10:34:43]req_shift_open_date [10:34:43]req_shift_open_date done [10:34:43]produce_requested_data done [10:34:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30856,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:34:43]process_action_free close_receipt [10:34:43]json_value_free [10:34:43]json_value_free done [10:34:43]process_json_proto returns [10:34:43]Send response to host [10:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30856,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:34:43]free response buf [10:34:43]execute_script done [10:34:43]execute_script returns [10:34:43]free content buf [10:34:43]Sock 7.Close socket [10:34:43]Sock 7.Thread stoped [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:20]accept exits with 9 [10:35:20]New connection [10:35:20]New thread 3067346276 created [10:35:20]Thread 3067489636 joined [10:35:20]Waiting for new connection... [10:35:20] Sock 9.Parse request [10:35:20]Sock 9.Check first char [10:35:20]Sock 9.First char is OK [10:35:20]request: POST /json_proto HTTP/1.0 [10:35:20]Method: POST [10:35:20]URL: /json_proto [10:35:20]Method is POST - this is cgi request [10:35:20]url: /json_proto [10:35:20]query_string will be loaded in cgi processing [10:35:20]execute_cgi json_proto POST (null) [10:35:20]execute_cgi path=json_proto method=POST [10:35:20]POST find Content-Length [10:35:20]Host: 172.17.51.3:8080 [10:35:20]Content-Length: 677 [10:35:20]Content-Type: application/json [10:35:20] [10:35:20]POST finish read [10:35:20]Found Content-Length = 677 [10:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:35:20]execute_script... [10:35: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)343277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:35:20]POST & json_proto [10:35:20]process_json_proto [10:35:20]json parsed OK: [10:35:20]protocol is kg_v1.0 [10:35:20]action value=close_receipt [10:35:20]process_action close_receipt [10:35:20]cmd_close_receipt [10:35:20]MH_GetDate [10:35:20]Write to MH i2c: F0 00 00 EF 86 64 [10:35:20]Write i2c OK [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: F0 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: F0 09 00 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: F0 09 00 EF 86 00 F2 7F 17 67 04 C1 95 66 1C [10:35:20]GetLastDocTimeStamp 1729593289 [10:35:20]current date 1729593330 [10:35:20]FM_GetShiftState [10:35:20]SAM_PROTO_GetShiftState [10:35:20]wFMCommunicate request_size=4 [10:35:20]MH_SAM_APDU [10:35:20]CAPDU: 80 13 01 00 [10:35:20]Write to MH i2c: E2 08 00 F0 86 80 13 01 00 00 00 00 00 F3 [10:35:20]Write i2c OK [10:35:20]MH_I2C_Read... [10:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:20]Read from MH i2c: E2 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 0E 00 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 0E 00 F0 86 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CD [10:35:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:35:20]wFMCommunicate OK [10:35:20]SAM_PROTO_GetShiftState done [10:35:20]FM_GetShiftState done [10:35:20]opened in 1729557342 [10:35:20]opened+sec_in_day 1729643742 [10:35:20]quantity*price = 60027 [10:35:20]sum+1 = 60029 [10:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 90 22.10.2024 10:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30857 ФПД: 149821330867357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103530&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30857&fm=149821330867357&tin=02508201610067®Number=0000000000186857&sum=60000 [10:35:21]StoreToDocumentArchive [10:35:21]shift 116 fd 30857 [10:35:21]save to /storage/0116/doc_00030857 [10:35:21]save last doc name /storage/0116/doc_00030857 to /storage/kkm_last_doc_name [10:35:21]save OK [10:35:21]Clear old archive folders... [10:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:21]tlvbuf is 01E1C960 [10:35:21]SAM_PROTO_ClearQueue [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 09 00 00 [10:35:21]Write to MH i2c: E2 08 00 FD 86 80 09 00 00 00 00 00 00 F5 [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 FD 86 00 90 00 F7 [10:35:22]RAPDU: 90 00 [10:35:22]wFMCommunicate OK [10:35:22]SAM_PROTO_ClearQueue done [10:35:22]KKMCreateOFDPacket [10:35:22]OFDProtocolAddRootSTLVToBuf [10:35:22]FM_MakeSignedData [10:35:22]FM_MakeSignedData [10:35:22]SAM_PROTO_SignData [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 0D 01 02 [10:35:22]Write to MH i2c: E2 08 00 FE 86 80 0D 01 02 00 00 00 00 FD [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 FE 86 00 90 00 F8 [10:35:22]RAPDU: 90 00 [10:35:22]wFMCommunicate OK [10:35:22]wFMCommunicate request_size=255 [10:35:22]MH_SAM_APDU [10:35: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 5A 00 00 00 F4 03 04 00 F2 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 78 00 00 35 04 06 00 88 [10:35:22]Write to MH i2c: E2 02 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 5A 00 00 00 F4 03 04 00 F2 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 78 00 00 35 04 06 00 88 00 00 33 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]OFD Sender: No OFD packet to send [10:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 FF 86 00 90 00 F9 [10:35:22]RAPDU: 90 00 [10:35:22]wFMCommunicate OK [10:35:22]wFMCommunicate request_size=10 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 0D 02 02 05 42 FF 34 C4 9D [10:35:22]Write to MH i2c: E2 0D 00 00 87 80 0D 02 02 05 00 42 FF 34 C4 9D 00 00 E1 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 03 00 00 87 00 90 00 FB [10:35:22]RAPDU: 90 00 [10:35:22]wFMCommunicate OK [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 0D 03 02 [10:35:22]Write to MH i2c: E2 08 00 01 87 80 0D 03 02 00 00 00 00 03 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 0B 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 0B 00 01 87 00 CB E8 B9 EC CD 16 96 66 90 00 3B [10:35:22]RAPDU: CB E8 B9 EC CD 16 96 66 90 00 [10:35:22]wFMCommunicate OK [10:35:22]SAM_PROTO_SignData done [10:35:22]FM_MakeSignedData done [10:35:22]CreateOFDProtocolMessage [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 11 00 00 [10:35:22]Write to MH i2c: E2 08 00 02 87 80 11 00 00 00 00 00 00 03 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 17 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 17 00 02 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [10:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:35:22]wFMCommunicate OK [10:35:22]CreateOFDProtocolMessage done [10:35:22]OFDSenderStorePacket 30857 [10:35:22]StoreOFDPacket docnum=30857 [10:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A EA 07 01 01 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 5A 00 00 00 F4 03 04 00 F2 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 78 00 00 35 04 06 00 88 42 FF 34 C4 9D CB E8 B9 EC CD 16 96 66 [10:35:22]CheckFolder [10:35:22]dirname=/storage/ofd_packets [10:35:22]CheckFolder done [10:35:22]ProducePacketName [10:35:22]name=ofd_packets/00030857 [10:35:22]NVStorageSaveData ofd_packets/00030857 [10:35:22]File name is /storage/ofd_packets/00030857 [10:35:22]Write 301 bytes [10:35:22]NVStorageSaveData done [10:35:22]OFDSenderStorePacket done [10:35:22]KKMCreateOFDPacket done [10:35:22]NVStorageSaveData kkm_last_timestamp [10:35:22]File name is /storage/kkm_last_timestamp [10:35:22]Write 4 bytes [10:35:22]NVStorageSaveData done [10:35:22]ExternCall_PrintAddStr [10:35:22]wPrintStart [10:35:22]Write to MH i2c: 01 00 00 03 87 8A [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: 01 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: 01 07 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: 01 07 00 03 87 00 00 00 00 00 FF 0F 9F [10:35:22]RasterBufferAndPrint [10:35:22]line Счет N : (1)343277 [10:35:22]line ИНН: 02508201610067 [10:35:22]line Контрольно-Кассовый Чек [10:35:22]line ПРОДАЖА [10:35:22]line ТРК (МРК, ГНК) : 42 [10:35:22]line Товар: 2710124500 [10:35:22]line Аи-95-К-3 [10:35:22]line 8.090 * 74.20 [10:35:22]line = 600.28 [10:35:22]line НДС 12% НСП 1% [10:35:22]line > о реализуемом товаре [10:35:22]line ОКРУГЛЕНИЕ: -0.28 [10:35:22]line ИТОГО: 600.00 [10:35:22]line Внесено: 600.00 [10:35:22]line СДАЧА: 0.00 [10:35:22]line НСП 1% : 5.31 [10:35:22]line НДС 12% : 63.75 [10:35:22]line Наличными: 600.00 [10:35:22]line Безнал.: 0.00 [10:35:22]line Место: АЗС № 78 "Партнер Нефть" [10:35:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:35:22]line СНО: Общий режим [10:35:22]line Чек 90 22.10.2024 10:35 [10:35:22]line Смена: 116 ФФД: 1.0 [10:35:22]line ЗНМ: 0300000137 [10:35:22]line РНМ: 0000000000186857 [10:35:22]line Версия ККМ: v1.0 [10:35:22]line ФМ: 0000000002094219 [10:35:22]line ФД: 30857 [10:35:22]line ФПД: 149821330867357 [10:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103530&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30857&fm=149821330867357&tin=02508201610067®Number=0000000000186857&sum=60000 [10:35:22]OFD Sender: Processing packet 30857 [packets to send 10, broken 9] [10:35:22]ProducePacketName [10:35:22]name=ofd_packets/00030857 [10:35:22]OFD Sender: To server: pG, [10:35:22]CommunicateWithHost lk.salyk.kg:30040 [10:35:22]ConnectInit lk.salyk.kg [10:35:22]written 0, free lines is 4095 [10:35:22]Connected sock=10 [10:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A EA 07 01 01 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 5A 00 00 00 F4 03 04 00 F2 7F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 78 00 00 35 04 06 00 88 42 FF 34 C4 9D CB E8 B9 EC CD 16 96 66 [10:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 30 8B 47 00 4F BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 78 00 00 F4 03 04 00 70 2A 17 67 B6 04 01 00 00 51 EA 99 D6 E0 52 88 4F [10:35:23]CommunicateWithHost err = 0 [10:35:23]CheckOFDResponse [10:35:23]1017 (14) - 77093643461234 [10:35:23]1041 (16) - 0000000002094219 [10:35:23]1040 (4) - 30857 [10:35:23]1012 (4) - 22.10.2024 04:30 [10:35:23]1206 (1) - 0 [10:35:23]OFD Sender: Remove packet 30857 [10:35:23]ProducePacketName [10:35:23]name=ofd_packets/00030857 [10:35:23]NVStorageDeleteData [10:35:23]Write to MH i2c: 01 00 00 2E 87 B5 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 2E 87 00 00 00 00 00 E9 0C B1 [10:35:23]RasterBufferAndPrint [10:35:23]line [10:35:23]line [10:35:23]line [10:35:23]line [10:35:23]line [10:35:23]written 0, free lines is 3311 [10:35:23]MH_Cut [10:35:23]Write to MH i2c: D1 01 00 35 87 01 8E [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: D1 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: D1 01 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: D1 01 00 35 87 00 8D [10:35:23]Write to MH i2c: 01 00 00 36 87 BD [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]OFD Sender: No OFD packet to send [10:35:23]*** Cut start [10:35:23]*** Partial cut [10:35:23]*** CUTSNS_PIN = 1 [10:35:24]*** CUTSNS_PIN = 0 [10:35:24]*** Brake cut motor [10:35:24]Read from MH i2c: 01 [10:35:24]MH_I2C_Read... [10:35:24]*** Stop cut motor [10:35:24]*** Cut end [10:35:24]Read from MH i2c: 01 07 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 36 87 00 00 00 00 00 FF 0F D2 [10:35:24]process_action close_receipt done [10:35:24]requested_data is exist [10:35:24]produce_requested_data [10:35:24]requested_item fm.sn is exist - process it [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 11 00 00 [10:35:24]Write to MH i2c: E2 08 00 37 87 80 11 00 00 00 00 00 00 38 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 17 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 17 00 37 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [10:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:35:24]wFMCommunicate OK [10:35:24]requested_item fd.num is exist - process it [10:35:24]SAM_PROTO_GetFieldsCounters [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 13 00 00 [10:35:24]Write to MH i2c: E2 08 00 38 87 80 13 00 00 00 00 00 00 3B [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 62 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 62 00 38 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 78 00 00 0E 04 04 00 74 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 E4 [10:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:24]wFMCommunicate OK [10:35:24]SAM_PROTO_GetFieldsCounters done [10:35:24]requested_item shift.num is exist - process it [10:35:24]requested_item shift.opened is exist - process it [10:35:24]req_shift_opened [10:35:24]FM_GetShiftState [10:35:24]SAM_PROTO_GetShiftState [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 13 01 00 [10:35:24]Write to MH i2c: E2 08 00 39 87 80 13 01 00 00 00 00 00 3D [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 0E 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 0E 00 39 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 17 [10:35:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:35:24]wFMCommunicate OK [10:35:24]SAM_PROTO_GetShiftState done [10:35:24]FM_GetShiftState done [10:35:24]req_shift_opened done [10:35:24]requested_item shift.open_date is exist - process it [10:35:24]req_shift_open_date [10:35:24]req_shift_open_date done [10:35:24]produce_requested_data done [10:35:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30857,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:35:24]process_action_free close_receipt [10:35:24]json_value_free [10:35:24]json_value_free done [10:35:24]process_json_proto returns [10:35:24]Send response to host [10:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30857,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:35:24]free response buf [10:35:24]execute_script done [10:35:24]execute_script returns [10:35:24]free content buf [10:35:24]Sock 9.Close socket [10:35:24]Sock 9.Thread stoped [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:41]int [10:35:41]Write to MH i2c: 01 00 00 3A 87 C1 [10:35:41]*** FLAG_PRN_PAP1 set [10:35:41]Write i2c OK [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 07 00 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 07 00 3A 87 00 01 00 00 00 FF 0F D7 [10:35:41]state=0 [10:35:41]No paper [10:35:41]int [10:35:41]Write to MH i2c: 01 00 00 3B 87 C2 [10:35:41]*** FLAG_PRN_PAP2 set [10:35:41]Write i2c OK [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 07 00 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: 01 07 00 3B 87 00 03 00 00 00 FF 0F DA [10:35:41]state=0 [10:35:41]No paper [10:35:41]Cover opened [10:35:43]OFD Sender: No OFD packet to send [10:35:46]Write to MH i2c: 01 00 00 3C 87 C3 [10:35:46]Write i2c OK [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: 01 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: 01 07 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: 01 07 00 3C 87 00 03 00 00 00 FF 0F DB [10:35:46]state=3 [10:35:46]No paper [10:35:46]Cover opened [10:35:48]OFD Sender: No OFD packet to send [10:35:51]Write to MH i2c: 01 00 00 3D 87 C4 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 3D 87 00 03 00 00 00 FF 0F DC [10:35:51]state=3 [10:35:51]No paper [10:35:51]Cover opened [10:35:53]OFD Sender: No OFD packet to send [10:35:56]Write to MH i2c: 01 00 00 3E 87 C5 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 3E 87 00 03 00 00 00 FF 0F DD [10:35:56]state=3 [10:35:56]No paper [10:35:56]Cover opened [10:35:58]OFD Sender: No OFD packet to send [10:36:01]Write to MH i2c: 01 00 00 3F 87 C6 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 3F 87 00 03 00 00 00 FF 0F DE [10:36:01]state=3 [10:36:01]No paper [10:36:01]Cover opened [10:36:03]OFD Sender: No OFD packet to send [10:36:06]Write to MH i2c: 01 00 00 40 87 C7 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 40 87 00 03 00 00 00 FF 0F DF [10:36:06]state=3 [10:36:06]No paper [10:36:06]Cover opened [10:36:08]OFD Sender: No OFD packet to send [10:36:11]Write to MH i2c: 01 00 00 41 87 C8 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 41 87 00 03 00 00 00 FF 0F E0 [10:36:11]state=3 [10:36:11]No paper [10:36:11]Cover opened [10:36:13]OFD Sender: No OFD packet to send [10:36:16]Write to MH i2c: 01 00 00 42 87 C9 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: 01 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: 01 07 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: 01 07 00 42 87 00 03 00 00 00 FF 0F E1 [10:36:16]state=3 [10:36:16]No paper [10:36:16]Cover opened [10:36:18]OFD Sender: No OFD packet to send [10:36:21]Write to MH i2c: 01 00 00 43 87 CA [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 43 87 00 03 00 00 00 FF 0F E2 [10:36:21]state=3 [10:36:21]No paper [10:36:21]Cover opened [10:36:23]OFD Sender: No OFD packet to send [10:36:26]Write to MH i2c: 01 00 00 44 87 CB [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 44 87 00 03 00 00 00 FF 0F E3 [10:36:26]state=3 [10:36:26]No paper [10:36:26]Cover opened [10:36:28]OFD Sender: No OFD packet to send [10:36:30]int [10:36:30]Write to MH i2c: 01 00 00 45 87 CC [10:36:30]*** FLAG_PRN_PAP1 reset [10:36:30]*** FLAG_PRN_PAP2 reset [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 [10:36:30]MH_I2C_Read... [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 45 87 00 00 00 00 00 FF 0F E1 [10:36:30]state=3 [10:36:30]Cover closed [10:36:32]accept exits with 7 [10:36:32]New connection [10:36:32]New thread 3067489636 created [10:36:32]Thread 3067346276 joined [10:36:32]Waiting for new connection... [10:36:32] Sock 7.Parse request [10:36:32]Sock 7.Check first char [10:36:32]Sock 7.First char is OK [10:36:32]request: POST /json_proto HTTP/1.0 [10:36:32]Method: POST [10:36:32]URL: /json_proto [10:36:32]Method is POST - this is cgi request [10:36:32]url: /json_proto [10:36:32]query_string will be loaded in cgi processing [10:36:32]execute_cgi json_proto POST (null) [10:36:32]execute_cgi path=json_proto method=POST [10:36:32]POST find Content-Length [10:36:32]Host: 172.17.51.3:8080 [10:36:32]Content-Length: 215 [10:36:32]Content-Type: application/json [10:36:32] [10:36:32]POST finish read [10:36:32]Found Content-Length = 215 [10:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:32]execute_script... [10:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:32]POST & json_proto [10:36:32]process_json_proto [10:36:32]json parsed OK: [10:36:32]protocol is kg_v1.0 [10:36:32]action value=get_value [10:36:32]process_action get_value [10:36:32]cmd_get_value [10:36:32]process_action get_value done [10:36:32]requested_data is exist [10:36:32]produce_requested_data [10:36:32]requested_item kkm.sn is exist - process it [10:36:32]requested_item kkm.ver is exist - process it [10:36:32]requested_item fm.sn is exist - process it [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 11 00 00 [10:36:32]Write to MH i2c: E2 08 00 46 87 80 11 00 00 00 00 00 00 47 [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 17 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 17 00 46 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [10:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:36:32]wFMCommunicate OK [10:36:32]requested_item fd.num is exist - process it [10:36:32]SAM_PROTO_GetFieldsCounters [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 13 00 00 [10:36:32]Write to MH i2c: E2 08 00 47 87 80 13 00 00 00 00 00 00 4A [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 62 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 62 00 47 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 78 00 00 0E 04 04 00 74 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 F3 [10:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:32]wFMCommunicate OK [10:36:32]SAM_PROTO_GetFieldsCounters done [10:36:32]requested_item shift.num is exist - process it [10:36:32]requested_item shift.opened is exist - process it [10:36:32]req_shift_opened [10:36:32]FM_GetShiftState [10:36:32]SAM_PROTO_GetShiftState [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 13 01 00 [10:36:32]Write to MH i2c: E2 08 00 48 87 80 13 01 00 00 00 00 00 4C [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 0E 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 0E 00 48 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 26 [10:36:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:36:32]wFMCommunicate OK [10:36:32]SAM_PROTO_GetShiftState done [10:36:32]FM_GetShiftState done [10:36:32]req_shift_opened done [10:36:32]requested_item shift.open_date is exist - process it [10:36:32]req_shift_open_date [10:36:32]req_shift_open_date done [10:36:32]produce_requested_data done [10:36:32]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30857,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:36:32]process_action_free get_value [10:36:32]json_value_free [10:36:32]json_value_free done [10:36:32]process_json_proto returns [10:36:32]Send response to host [10:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30857,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:36:32]free response buf [10:36:32]execute_script done [10:36:32]execute_script returns [10:36:32]free content buf [10:36:32]Sock 7.Close socket [10:36:32]Sock 7.Thread stoped [10:36:32]accept exits with 9 [10:36:32]New connection [10:36:32]New thread 3067346276 created [10:36:32]Thread 3067489636 joined [10:36:32]Waiting for new connection... [10:36:32] Sock 9.Parse request [10:36:32]Sock 9.Check first char [10:36:32]Sock 9.First char is OK [10:36:32]request: POST /json_proto HTTP/1.0 [10:36:32]Method: POST [10:36:32]URL: /json_proto [10:36:32]Method is POST - this is cgi request [10:36:32]url: /json_proto [10:36:32]query_string will be loaded in cgi processing [10:36:32]execute_cgi json_proto POST (null) [10:36:32]execute_cgi path=json_proto method=POST [10:36:32]POST find Content-Length [10:36:32]Host: 172.17.51.3:8080 [10:36:32]Content-Length: 331 [10:36:32]Content-Type: application/json [10:36:32] [10:36:32]POST finish read [10:36:32]Found Content-Length = 331 [10:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:36:32]execute_script... [10:36:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:36:33]POST & json_proto [10:36:33]process_json_proto [10:36:33]json parsed OK: [10:36:33]protocol is kg_v1.0 [10:36:33]action value=get_value [10:36:33]process_action get_value [10:36:33]cmd_get_value [10:36:33]process_action get_value done [10:36:33]requested_data is exist [10:36:33]produce_requested_data [10:36:33]requested_item fm.sale.total is exist - process it [10:36:33]SAM_PROTO_GetFMData [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 03 00 [10:36:33]Write to MH i2c: E2 08 00 49 87 80 13 03 00 00 00 00 00 4F [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 FD 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 FD 00 49 87 00 BF 04 85 04 BB 04 6E 04 04 00 A1 77 00 00 69 04 A1 00 6F 04 04 00 92 77 00 00 B1 04 04 00 FE 14 A7 A5 70 04 04 00 F4 B1 D4 84 72 04 04 00 0A 63 D2 20 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 13 AC 98 11 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 A5 61 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 9D [10:36:33]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 A1 77 00 00 69 04 A1 00 6F 04 04 00 92 77 00 00 B1 04 04 00 FE 14 A7 A5 70 04 04 00 F4 B1 D4 84 72 04 04 00 0A 63 D2 20 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 13 AC 98 11 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 A5 61 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 17 00 00 [10:36:33]Write to MH i2c: E2 08 00 4A 87 80 17 00 00 00 00 00 00 51 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]OFD Sender: No OFD packet to send [10:36:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 FD 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 FD 00 4A 87 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 22 [10:36:33]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 17 00 00 [10:36:33]Write to MH i2c: E2 08 00 4B 87 80 17 00 00 00 00 00 00 52 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 FD 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 FD 00 4B 87 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [10:36:34]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:36:34]wFMCommunicate OK [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 17 00 00 [10:36:34]Write to MH i2c: E2 08 00 4C 87 80 17 00 00 00 00 00 00 53 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 FD 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 FD 00 4C 87 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 CD [10:36:34]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [10:36:34]wFMCommunicate OK [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 17 00 00 [10:36:34]Write to MH i2c: E2 08 00 4D 87 80 17 00 00 00 00 00 00 54 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 DC 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 DC 00 4D 87 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 38 [10:36:34]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:36:34]wFMCommunicate OK [10:36:34]SAM_PROTO_GetFMData done [10:36:34]requested_item fm.sale_refund.total is exist - process it [10:36:34]requested_item fm.buy.total is exist - process it [10:36:34]requested_item shift.sale.total is exist - process it [10:36:34]SAM_PROTO_GetShiftData [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 13 02 00 [10:36:34]Write to MH i2c: E2 08 00 4E 87 80 13 02 00 00 00 00 00 53 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 4E 87 00 AF 04 AA 04 AB 04 6E 04 04 00 5A 00 00 00 69 04 9C 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 53 B4 9D 70 04 03 00 C4 51 8A 72 04 03 00 8F 62 13 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 46 C0 10 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 59 65 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 F3 [10:36:35]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 5A 00 00 00 69 04 9C 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 53 B4 9D 70 04 03 00 C4 51 8A 72 04 03 00 8F 62 13 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 46 C0 10 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 59 65 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 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 17 00 00 [10:36:35]Write to MH i2c: E2 08 00 4F 87 80 17 00 00 00 00 00 00 56 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 4F 87 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 6F [10:36:35]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 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 17 00 00 [10:36:35]Write to MH i2c: E2 08 00 50 87 80 17 00 00 00 00 00 00 57 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 FD 00 50 87 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B [10:36: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 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 17 00 00 [10:36:35]Write to MH i2c: E2 08 00 51 87 80 17 00 00 00 00 00 00 58 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 FD 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 FD 00 51 87 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 D6 [10:36:36]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 [10:36:36]wFMCommunicate OK [10:36:36]wFMCommunicate request_size=4 [10:36:36]MH_SAM_APDU [10:36:36]CAPDU: 80 17 00 00 [10:36:36]Write to MH i2c: E2 08 00 52 87 80 17 00 00 00 00 00 00 59 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 CC 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 CC 00 52 87 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 3A [10:36: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 [10:36:36]wFMCommunicate OK [10:36:36]SAM_PROTO_GetShiftData done [10:36:36]requested_item shift.sale.total_cash is exist - process it [10:36:36]requested_item shift.sale_refund.total is exist - process it [10:36:36]requested_item shift.sale_refund.total_cash is exist - process it [10:36:36]requested_item shift.buy.total is exist - process it [10:36:36]requested_item shift.buy.total_cash is exist - process it [10:36:36]produce_requested_data done [10:36:36]produce_requested_data return {"fm.sale.total":27791905.26,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":103353.15,"shift.sale.total_cash":90649.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:36:36]process_action_free get_value [10:36:36]json_value_free [10:36:36]json_value_free done [10:36:36]process_json_proto returns [10:36:36]Send response to host [10:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27791905.26,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":103353.15,"shift.sale.total_cash":90649.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:36:36]free response buf [10:36:36]execute_script done [10:36:36]execute_script returns [10:36:36]free content buf [10:36:36]Sock 9.Close socket [10:36:36]Sock 9.Thread stoped [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:46]recv_with_timeout no data received [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:04]recv_with_timeout no data received [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:15]accept exits with 7 [10:38:15]New connection [10:38:15]New thread 3067489636 created [10:38:15]Thread 3067346276 joined [10:38:15]Waiting for new connection... [10:38:15] Sock 7.Parse request [10:38:15]Sock 7.Check first char [10:38:15]Sock 7.First char is OK [10:38:15]request: POST /json_proto HTTP/1.0 [10:38:15]Method: POST [10:38:15]URL: /json_proto [10:38:15]Method is POST - this is cgi request [10:38:15]url: /json_proto [10:38:15]query_string will be loaded in cgi processing [10:38:15]execute_cgi json_proto POST (null) [10:38:15]execute_cgi path=json_proto method=POST [10:38:15]POST find Content-Length [10:38:15]Host: 172.17.51.3:8080 [10:38:15]Content-Length: 849 [10:38:15]Content-Type: application/json [10:38:15] [10:38:15]POST finish read [10:38:15]Found Content-Length = 849 [10:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:15]execute_script... [10:38: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)343278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:15]POST & json_proto [10:38:15]process_json_proto [10:38:15]json parsed OK: [10:38:15]protocol is kg_v1.0 [10:38:15]action value=close_receipt [10:38:15]process_action close_receipt [10:38:15]cmd_close_receipt [10:38:15]MH_GetDate [10:38:15]Write to MH i2c: F0 00 00 53 87 C9 [10:38:15]Write i2c OK [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 09 00 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 09 00 53 87 00 A1 80 17 67 04 C1 95 66 31 [10:38:15]GetLastDocTimeStamp 1729593330 [10:38:15]current date 1729593505 [10:38:15]FM_GetShiftState [10:38:15]SAM_PROTO_GetShiftState [10:38:15]wFMCommunicate request_size=4 [10:38:15]MH_SAM_APDU [10:38:15]CAPDU: 80 13 01 00 [10:38:15]Write to MH i2c: E2 08 00 54 87 80 13 01 00 00 00 00 00 58 [10:38:15]Write i2c OK [10:38:15]MH_I2C_Read... [10:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:15]Read from MH i2c: E2 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: E2 0E 00 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: E2 0E 00 54 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 32 [10:38:15]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:38:15]wFMCommunicate OK [10:38:15]SAM_PROTO_GetShiftState done [10:38:15]FM_GetShiftState done [10:38:15]opened in 1729557342 [10:38:15]opened+sec_in_day 1729643742 [10:38:15]quantity*price = 150076 [10:38:15]sum+1 = 150078 [10:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 91 22.10.2024 10:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30858 ФПД: 85245795238386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30858&fm=85245795238386&tin=02508201610067®Number=0000000000186857&sum=150077 [10:38:16]StoreToDocumentArchive [10:38:16]shift 116 fd 30858 [10:38:16]save to /storage/0116/doc_00030858 [10:38:16]save last doc name /storage/0116/doc_00030858 to /storage/kkm_last_doc_name [10:38:16]save OK [10:38:16]Clear old archive folders... [10:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:38:16]tlvbuf is B6F5D9C0 [10:38:16]SAM_PROTO_ClearQueue [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 09 00 00 [10:38:16]Write to MH i2c: E2 08 00 61 87 80 09 00 00 00 00 00 00 5A [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 61 87 00 90 00 5C [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]SAM_PROTO_ClearQueue done [10:38:16]KKMCreateOFDPacket [10:38:16]OFDProtocolAddRootSTLVToBuf [10:38:16]FM_MakeSignedData [10:38:16]FM_MakeSignedData [10:38:16]SAM_PROTO_SignData [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 01 02 [10:38:16]Write to MH i2c: E2 08 00 62 87 80 0D 01 02 00 00 00 00 62 [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 62 87 00 90 00 5D [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]wFMCommunicate request_size=255 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 80 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 78 00 [10:38:16]Write to MH i2c: E2 02 01 63 87 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 80 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 78 00 00 00 1A [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 63 87 00 90 00 5E [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]wFMCommunicate request_size=16 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4D 87 D5 58 01 F2 [10:38:16]Write to MH i2c: E2 13 00 64 87 80 0D 02 02 0B 00 00 35 04 06 00 4D 87 D5 58 01 F2 00 00 AE [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 64 87 00 90 00 5F [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 03 02 [10:38:16]Write to MH i2c: E2 08 00 65 87 80 0D 03 02 00 00 00 00 67 [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 0B 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 0B 00 65 87 00 98 00 34 0A 41 5F B3 EA 90 00 7B [10:38:16]RAPDU: 98 00 34 0A 41 5F B3 EA 90 00 [10:38:16]wFMCommunicate OK [10:38:16]SAM_PROTO_SignData done [10:38:16]FM_MakeSignedData done [10:38:16]CreateOFDProtocolMessage [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 11 00 00 [10:38:16]Write to MH i2c: E2 08 00 66 87 80 11 00 00 00 00 00 00 67 [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 66 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [10:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:38:17]wFMCommunicate OK [10:38:17]CreateOFDProtocolMessage done [10:38:17]OFDSenderStorePacket 30858 [10:38:17]StoreOFDPacket docnum=30858 [10:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 25 8E 0D 01 6A 81 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 80 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 78 00 00 35 04 06 00 4D 87 D5 58 01 F2 98 00 34 0A 41 5F B3 EA [10:38:17]CheckFolder [10:38:17]dirname=/storage/ofd_packets [10:38:17]CheckFolder done [10:38:17]ProducePacketName [10:38:17]name=ofd_packets/00030858 [10:38:17]NVStorageSaveData ofd_packets/00030858 [10:38:17]File name is /storage/ofd_packets/00030858 [10:38:17]Write 307 bytes [10:38:17]NVStorageSaveData done [10:38:17]OFDSenderStorePacket done [10:38:17]KKMCreateOFDPacket done [10:38:17]NVStorageSaveData kkm_last_timestamp [10:38:17]File name is /storage/kkm_last_timestamp [10:38:17]Write 4 bytes [10:38:17]NVStorageSaveData done [10:38:17]ExternCall_PrintAddStr [10:38:17]wPrintStart [10:38:17]Write to MH i2c: 01 00 00 67 87 EE [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 67 87 00 00 00 00 00 FF 0F 03 [10:38:17]RasterBufferAndPrint [10:38:17]line Счет N : (1)343278 [10:38:17]line ИНН: 02508201610067 [10:38:17]line Контрольно-Кассовый Чек [10:38:17]line ПРОДАЖА [10:38:17]line ТРК (МРК, ГНК) : 51 [10:38:17]line Товар: 2710194210 [10:38:17]line D-ENERGY Дт-К-2 [10:38:17]line 19.440 * 77.20 [10:38:17]line = 1500.77 [10:38:17]line НДС 12% НСП 1% [10:38:17]line > о реализуемом товаре [10:38:17]line ИТОГО: 1500.77 [10:38:17]line НСП 1% : 13.28 [10:38:17]line НДС 12% : 159.37 [10:38:17]line Наличными: 0.00 [10:38:17]line Безнал.: 1500.77 [10:38:17]line Место: АЗС № 78 "Партнер Нефть" [10:38:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:38:17]line СНО: Общий режим [10:38:17]line Чек 91 22.10.2024 10:38 [10:38:17]line Смена: 116 ФФД: 1.0 [10:38:17]line ЗНМ: 0300000137 [10:38:17]line РНМ: 0000000000186857 [10:38:17]line Версия ККМ: v1.0 [10:38:17]line Платежная система: АКБ Кыргызстан [10:38:17]line ФМ: 0000000002094219 [10:38:17]line ФД: 30858 [10:38:17]line ФПД: 85245795238386 [10:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30858&fm=85245795238386&tin=02508201610067®Number=0000000000186857&sum=150077 [10:38:17]OFD Sender: Processing packet 30858 [packets to send 10, broken 9] [10:38:17]ProducePacketName [10:38:17]name=ofd_packets/00030858 [10:38:17]OFD Sender: To server: pG, [10:38:17]CommunicateWithHost lk.salyk.kg:30040 [10:38:17]ConnectInit lk.salyk.kg [10:38:17]written 0, free lines is 4095 [10:38:17]Write to MH i2c: 01 00 00 91 87 18 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 91 87 00 00 00 00 00 FB 0C 26 [10:38:17]RasterBufferAndPrint [10:38:17]line [10:38:17]line [10:38:17]line [10:38:17]line [10:38:17]line [10:38:17]written 0, free lines is 3329 [10:38:17]MH_Cut [10:38:17]Write to MH i2c: D1 01 00 98 87 01 F1 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: D1 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: D1 01 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: D1 01 00 98 87 00 F0 [10:38:17]Write to MH i2c: 01 00 00 99 87 20 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:18]*** Cut start [10:38:18]*** Partial cut [10:38:18]*** CUTSNS_PIN = 1 [10:38:18]*** CUTSNS_PIN = 0 [10:38:18]*** Brake cut motor [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]*** Stop cut motor [10:38:19]*** Cut end [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 99 87 00 00 00 00 00 FF 0F 35 [10:38:19]process_action close_receipt done [10:38:19]requested_data is exist [10:38:19]produce_requested_data [10:38:19]requested_item fm.sn is exist - process it [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 11 00 00 [10:38:19]Write to MH i2c: E2 08 00 9A 87 80 11 00 00 00 00 00 00 9B [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 9A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E9 [10:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:38:19]wFMCommunicate OK [10:38:19]requested_item fd.num is exist - process it [10:38:19]SAM_PROTO_GetFieldsCounters [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 00 00 [10:38:19]Write to MH i2c: E2 08 00 9B 87 80 13 00 00 00 00 00 00 9E [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 9B 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 78 00 00 0E 04 04 00 74 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 4B [10:38:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetFieldsCounters done [10:38:19]requested_item shift.num is exist - process it [10:38:19]requested_item shift.opened is exist - process it [10:38:19]req_shift_opened [10:38:19]FM_GetShiftState [10:38:19]SAM_PROTO_GetShiftState [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 01 00 [10:38:19]Write to MH i2c: E2 08 00 9C 87 80 13 01 00 00 00 00 00 A0 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 9C 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7A [10:38:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetShiftState done [10:38:19]FM_GetShiftState done [10:38:19]req_shift_opened done [10:38:19]requested_item shift.open_date is exist - process it [10:38:19]req_shift_open_date [10:38:19]req_shift_open_date done [10:38:19]produce_requested_data done [10:38:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30858,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:38:19]process_action_free close_receipt [10:38:19]json_value_free [10:38:19]json_value_free done [10:38:19]process_json_proto returns [10:38:19]Send response to host [10:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30858,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:38:19]free response buf [10:38:19]execute_script done [10:38:19]execute_script returns [10:38:19]free content buf [10:38:19]Sock 7.Close socket [10:38:19]Sock 7.Thread stoped [10:38:22]ConnectInit Can't take IP for lk.salyk.kg [10:38:22]CommunicateWithHost connect error [10:38:22]CommunicateWithHost err = -1 [10:38:22]OFD Sender: Server communicate error [10:38:27]OFD Sender: Processing packet 30858 [packets to send 10, broken 9] [10:38:27]ProducePacketName [10:38:27]name=ofd_packets/00030858 [10:38:27]OFD Sender: To server: pG, [10:38:27]CommunicateWithHost lk.salyk.kg:30040 [10:38:27]ConnectInit lk.salyk.kg [10:38:32]ConnectInit Can't take IP for lk.salyk.kg [10:38:32]CommunicateWithHost connect error [10:38:32]CommunicateWithHost err = -1 [10:38:32]OFD Sender: Server communicate error [10:38:37]OFD Sender: Processing packet 30858 [packets to send 10, broken 9] [10:38:37]ProducePacketName [10:38:37]name=ofd_packets/00030858 [10:38:37]OFD Sender: To server: pG, [10:38:37]CommunicateWithHost lk.salyk.kg:30040 [10:38:37]ConnectInit lk.salyk.kg [10:38:42]Connected sock=7 [10:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 25 8E 0D 01 6A 81 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 80 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 78 00 00 35 04 06 00 4D 87 D5 58 01 F2 98 00 34 0A 41 5F B3 EA [10:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AD 45 47 00 29 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 78 00 00 F4 03 04 00 38 2B 17 67 B6 04 01 00 00 BB 84 47 2E FE 2F 71 07 [10:38:42]CommunicateWithHost err = 0 [10:38:42]CheckOFDResponse [10:38:42]1017 (14) - 77093643461234 [10:38:42]1041 (16) - 0000000002094219 [10:38:42]1040 (4) - 30858 [10:38:42]1012 (4) - 22.10.2024 04:34 [10:38:42]1206 (1) - 0 [10:38:42]OFD Sender: Remove packet 30858 [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00030858 [10:38:42]NVStorageDeleteData [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:49]accept exits with 10 [10:43:49]New connection [10:43:49]New thread 3067346276 created [10:43:49]Thread 3067489636 joined [10:43:49]Waiting for new connection... [10:43:49] Sock 10.Parse request [10:43:49]Sock 10.Check first char [10:43:49]Sock 10.First char is OK [10:43:49]request: POST /json_proto HTTP/1.0 [10:43:49]Method: POST [10:43:49]URL: /json_proto [10:43:49]Method is POST - this is cgi request [10:43:49]url: /json_proto [10:43:49]query_string will be loaded in cgi processing [10:43:49]execute_cgi json_proto POST (null) [10:43:49]execute_cgi path=json_proto method=POST [10:43:49]POST find Content-Length [10:43:49]Host: 172.17.51.3:8080 [10:43:49]Content-Length: 677 [10:43:49]Content-Type: application/json [10:43:49] [10:43:49]POST finish read [10:43:49]Found Content-Length = 677 [10:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:49]execute_script... [10:43: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)343279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:49]POST & json_proto [10:43:49]process_json_proto [10:43:49]json parsed OK: [10:43:49]protocol is kg_v1.0 [10:43:49]action value=close_receipt [10:43:49]process_action close_receipt [10:43:49]cmd_close_receipt [10:43:49]MH_GetDate [10:43:49]Write to MH i2c: F0 00 00 9D 87 13 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: F0 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: F0 09 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: F0 09 00 9D 87 00 EF 81 17 67 04 C1 95 66 CA [10:43:49]GetLastDocTimeStamp 1729593505 [10:43:49]current date 1729593839 [10:43:49]FM_GetShiftState [10:43:49]SAM_PROTO_GetShiftState [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 13 01 00 [10:43:49]Write to MH i2c: E2 08 00 9E 87 80 13 01 00 00 00 00 00 A2 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 0E 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 0E 00 9E 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7C [10:43:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:43:49]wFMCommunicate OK [10:43:49]SAM_PROTO_GetShiftState done [10:43:49]FM_GetShiftState done [10:43:49]opened in 1729557342 [10:43:49]opened+sec_in_day 1729643742 [10:43:49]quantity*price = 30038 [10:43:49]sum+1 = 30039 [10:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 92 22.10.2024 10:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30859 ФПД: 127395384829234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30859&fm=127395384829234&tin=02508201610067®Number=0000000000186857&sum=30000 [10:43:50]StoreToDocumentArchive [10:43:50]shift 116 fd 30859 [10:43:50]save to /storage/0116/doc_00030859 [10:43:50]save last doc name /storage/0116/doc_00030859 to /storage/kkm_last_doc_name [10:43:50]save OK [10:43:50]Clear old archive folders... [10:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:50]tlvbuf is B6FD8460 [10:43:50]SAM_PROTO_ClearQueue [10:43:50]wFMCommunicate request_size=4 [10:43:50]MH_SAM_APDU [10:43:50]CAPDU: 80 09 00 00 [10:43:50]Write to MH i2c: E2 08 00 AB 87 80 09 00 00 00 00 00 00 A4 [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 AB 87 00 90 00 A6 [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]SAM_PROTO_ClearQueue done [10:43:51]KKMCreateOFDPacket [10:43:51]OFDProtocolAddRootSTLVToBuf [10:43:51]FM_MakeSignedData [10:43:51]FM_MakeSignedData [10:43:51]SAM_PROTO_SignData [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 0D 01 02 [10:43:51]Write to MH i2c: E2 08 00 AC 87 80 0D 01 02 00 00 00 00 AC [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 AC 87 00 90 00 A7 [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]wFMCommunicate request_size=255 [10:43:51]MH_SAM_APDU [10:43: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EF 81 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 78 00 00 35 04 06 00 73 [10:43:51]Write to MH i2c: E2 02 01 AD 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EF 81 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 78 00 00 35 04 06 00 73 00 00 65 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 AD 87 00 90 00 A8 [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]wFMCommunicate request_size=10 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 0D 02 02 05 DD 8C A8 A5 32 [10:43:51]Write to MH i2c: E2 0D 00 AE 87 80 0D 02 02 05 00 DD 8C A8 A5 32 00 00 A1 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 AE 87 00 90 00 A9 [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 0D 03 02 [10:43:51]Write to MH i2c: E2 08 00 AF 87 80 0D 03 02 00 00 00 00 B1 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 0B 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 0B 00 AF 87 00 44 FA 88 00 C5 24 81 81 90 00 63 [10:43:51]RAPDU: 44 FA 88 00 C5 24 81 81 90 00 [10:43:51]wFMCommunicate OK [10:43:51]SAM_PROTO_SignData done [10:43:51]FM_MakeSignedData done [10:43:51]CreateOFDProtocolMessage [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 11 00 00 [10:43:51]Write to MH i2c: E2 08 00 B0 87 80 11 00 00 00 00 00 00 B1 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 17 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 17 00 B0 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [10:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:43:51]wFMCommunicate OK [10:43:51]CreateOFDProtocolMessage done [10:43:51]OFDSenderStorePacket 30859 [10:43:51]StoreOFDPacket docnum=30859 [10:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 0E 07 01 1C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EF 81 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 78 00 00 35 04 06 00 73 DD 8C A8 A5 32 44 FA 88 00 C5 24 81 81 [10:43:51]CheckFolder [10:43:51]dirname=/storage/ofd_packets [10:43:51]CheckFolder done [10:43:51]ProducePacketName [10:43:51]name=ofd_packets/00030859 [10:43:51]NVStorageSaveData ofd_packets/00030859 [10:43:51]File name is /storage/ofd_packets/00030859 [10:43:51]Write 301 bytes [10:43:51]NVStorageSaveData done [10:43:51]OFDSenderStorePacket done [10:43:51]KKMCreateOFDPacket done [10:43:51]NVStorageSaveData kkm_last_timestamp [10:43:51]File name is /storage/kkm_last_timestamp [10:43:51]Write 4 bytes [10:43:51]NVStorageSaveData done [10:43:51]ExternCall_PrintAddStr [10:43:51]wPrintStart [10:43:51]Write to MH i2c: 01 00 00 B1 87 38 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: 01 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: 01 07 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: 01 07 00 B1 87 00 00 00 00 00 FF 0F 4D [10:43:51]RasterBufferAndPrint [10:43:51]line Счет N : (1)343279 [10:43:51]line ИНН: 02508201610067 [10:43:51]line Контрольно-Кассовый Чек [10:43:51]line ПРОДАЖА [10:43:51]line ТРК (МРК, ГНК) : 63 [10:43:51]line Товар: 2710124130 [10:43:51]line Аи-92-К-2 [10:43:51]line 4.490 * 66.90 [10:43:51]line = 300.38 [10:43:51]line НДС 12% НСП 1% [10:43:51]line > о реализуемом товаре [10:43:51]line ОКРУГЛЕНИЕ: -0.38 [10:43:51]line ИТОГО: 300.00 [10:43:51]line Внесено: 300.00 [10:43:51]line СДАЧА: 0.00 [10:43:51]line НСП 1% : 2.66 [10:43:51]line НДС 12% : 31.90 [10:43:51]line Наличными: 300.00 [10:43:51]line Безнал.: 0.00 [10:43:51]line Место: АЗС № 78 "Партнер Нефть" [10:43:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:43:51]line СНО: Общий режим [10:43:51]line Чек 92 22.10.2024 10:43 [10:43:51]line Смена: 116 ФФД: 1.0 [10:43:51]line ЗНМ: 0300000137 [10:43:51]line РНМ: 0000000000186857 [10:43:51]line Версия ККМ: v1.0 [10:43:51]line ФМ: 0000000002094219 [10:43:51]line ФД: 30859 [10:43:51]line ФПД: 127395384829234 [10:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30859&fm=127395384829234&tin=02508201610067®Number=0000000000186857&sum=30000 [10:43:51]OFD Sender: Processing packet 30859 [packets to send 10, broken 9] [10:43:51]ProducePacketName [10:43:51]name=ofd_packets/00030859 [10:43:51]OFD Sender: To server: pG, [10:43:51]CommunicateWithHost lk.salyk.kg:30040 [10:43:51]ConnectInit lk.salyk.kg [10:43:51]written 0, free lines is 4095 [10:43:51]Connected sock=9 [10:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 0E 07 01 1C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EF 81 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 78 00 00 35 04 06 00 73 DD 8C A8 A5 32 44 FA 88 00 C5 24 81 81 [10:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D8 78 47 00 ED 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 32 30 39 34 32 31 39 10 04 04 00 8B 78 00 00 F4 03 04 00 6D 2C 17 67 B6 04 01 00 00 E3 FE 8F 1F 7F 92 A0 E1 [10:43:52]CommunicateWithHost err = 0 [10:43:52]CheckOFDResponse [10:43:52]1017 (14) - 77093643461234 [10:43:52]1041 (16) - 0000000002094219 [10:43:52]1040 (4) - 30859 [10:43:52]1012 (4) - 22.10.2024 04:39 [10:43:52]1206 (1) - 0 [10:43:52]OFD Sender: Remove packet 30859 [10:43:52]ProducePacketName [10:43:52]name=ofd_packets/00030859 [10:43:52]NVStorageDeleteData [10:43:52]Write to MH i2c: 01 00 00 DC 87 63 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 DC 87 00 00 00 00 00 E6 0C 5C [10:43:52]RasterBufferAndPrint [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]written 0, free lines is 3311 [10:43:52]MH_Cut [10:43:52]Write to MH i2c: D1 01 00 E3 87 01 3C [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 01 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 01 00 E3 87 00 3B [10:43:52]Write to MH i2c: 01 00 00 E4 87 6B [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]OFD Sender: No OFD packet to send [10:43:52]*** Cut start [10:43:52]*** Partial cut [10:43:52]*** CUTSNS_PIN = 1 [10:43:53]*** CUTSNS_PIN = 0 [10:43:53]*** Brake cut motor [10:43:53]Read from MH i2c: 01 [10:43:53]MH_I2C_Read... [10:43:53]*** Stop cut motor [10:43:53]*** Cut end [10:43:53]Read from MH i2c: 01 07 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: 01 07 00 E4 87 00 00 00 00 00 FF 0F 80 [10:43:53]process_action close_receipt done [10:43:53]requested_data is exist [10:43:53]produce_requested_data [10:43:53]requested_item fm.sn is exist - process it [10:43:53]wFMCommunicate request_size=4 [10:43:53]MH_SAM_APDU [10:43:53]CAPDU: 80 11 00 00 [10:43:53]Write to MH i2c: E2 08 00 E5 87 80 11 00 00 00 00 00 00 E6 [10:43:53]Write i2c OK [10:43:53]MH_I2C_Read... [10:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:53]Read from MH i2c: E2 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 17 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 17 00 E5 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [10:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:43:53]wFMCommunicate OK [10:43:53]requested_item fd.num is exist - process it [10:43:53]SAM_PROTO_GetFieldsCounters [10:43:53]wFMCommunicate request_size=4 [10:43:53]MH_SAM_APDU [10:43:53]CAPDU: 80 13 00 00 [10:43:53]Write to MH i2c: E2 08 00 E6 87 80 13 00 00 00 00 00 00 E9 [10:43:53]Write i2c OK [10:43:53]MH_I2C_Read... [10:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:53]Read from MH i2c: E2 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 62 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 62 00 E6 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:53]wFMCommunicate OK [10:43:53]SAM_PROTO_GetFieldsCounters done [10:43:53]requested_item shift.num is exist - process it [10:43:53]requested_item shift.opened is exist - process it [10:43:53]req_shift_opened [10:43:53]FM_GetShiftState [10:43:53]SAM_PROTO_GetShiftState [10:43:53]wFMCommunicate request_size=4 [10:43:53]MH_SAM_APDU [10:43:53]CAPDU: 80 13 01 00 [10:43:53]Write to MH i2c: E2 08 00 E7 87 80 13 01 00 00 00 00 00 EB [10:43:53]Write i2c OK [10:43:53]MH_I2C_Read... [10:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:53]Read from MH i2c: E2 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 0E 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 0E 00 E7 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C5 [10:43:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:43:53]wFMCommunicate OK [10:43:53]SAM_PROTO_GetShiftState done [10:43:53]FM_GetShiftState done [10:43:53]req_shift_opened done [10:43:53]requested_item shift.open_date is exist - process it [10:43:53]req_shift_open_date [10:43:53]req_shift_open_date done [10:43:53]produce_requested_data done [10:43:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30859,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:43:53]process_action_free close_receipt [10:43:53]json_value_free [10:43:53]json_value_free done [10:43:53]process_json_proto returns [10:43:53]Send response to host [10:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30859,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:43:53]free response buf [10:43:53]execute_script done [10:43:53]execute_script returns [10:43:53]free content buf [10:43:53]Sock 10.Close socket [10:43:53]Sock 10.Thread stoped [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:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:31]accept exits with 7 [10:49:31]New connection [10:49:31]New thread 3067489636 created [10:49:31]Thread 3067346276 joined [10:49:31]Waiting for new connection... [10:49:31] Sock 7.Parse request [10:49:31]Sock 7.Check first char [10:49:31]Sock 7.First char is OK [10:49:31]request: POST /json_proto HTTP/1.0 [10:49:31]Method: POST [10:49:31]URL: /json_proto [10:49:31]Method is POST - this is cgi request [10:49:31]url: /json_proto [10:49:31]query_string will be loaded in cgi processing [10:49:31]execute_cgi json_proto POST (null) [10:49:31]execute_cgi path=json_proto method=POST [10:49:31]POST find Content-Length [10:49:31]Host: 172.17.51.3:8080 [10:49:31]Content-Length: 682 [10:49:31]Content-Type: application/json [10:49:31] [10:49:31]POST finish read [10:49:31]Found Content-Length = 682 [10:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:49:31]execute_script... [10:49:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:49:31]POST & json_proto [10:49:31]process_json_proto [10:49:31]json parsed OK: [10:49:31]protocol is kg_v1.0 [10:49:31]action value=close_receipt [10:49:31]process_action close_receipt [10:49:31]cmd_close_receipt [10:49:31]MH_GetDate [10:49:31]Write to MH i2c: F0 00 00 E8 87 5E [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: F0 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: F0 09 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: F0 09 00 E8 87 00 45 83 17 67 04 C1 95 66 6D [10:49:31]GetLastDocTimeStamp 1729593839 [10:49:31]current date 1729594181 [10:49:31]FM_GetShiftState [10:49:31]SAM_PROTO_GetShiftState [10:49:31]wFMCommunicate request_size=4 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 13 01 00 [10:49:31]Write to MH i2c: E2 08 00 E9 87 80 13 01 00 00 00 00 00 ED [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 0E 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 0E 00 E9 87 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C7 [10:49:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:49:31]wFMCommunicate OK [10:49:31]SAM_PROTO_GetShiftState done [10:49:31]FM_GetShiftState done [10:49:31]opened in 1729557342 [10:49:31]opened+sec_in_day 1729643742 [10:49:31]quantity*price = 200043 [10:49:31]sum+1 = 200044 [10:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 93 22.10.2024 10:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30860 ФПД: 243347781512814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104941&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30860&fm=243347781512814&tin=02508201610067®Number=0000000000186857&sum=200000 [10:49:32]StoreToDocumentArchive [10:49:32]shift 116 fd 30860 [10:49:32]save to /storage/0116/doc_00030860 [10:49:32]save last doc name /storage/0116/doc_00030860 to /storage/kkm_last_doc_name [10:49:32]save OK [10:49:32]Clear old archive folders... [10:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:32]tlvbuf is 01E504C0 [10:49:32]SAM_PROTO_ClearQueue [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 09 00 00 [10:49:32]Write to MH i2c: E2 08 00 F6 87 80 09 00 00 00 00 00 00 EF [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 F6 87 00 90 00 F1 [10:49:32]RAPDU: 90 00 [10:49:32]wFMCommunicate OK [10:49:32]SAM_PROTO_ClearQueue done [10:49:32]KKMCreateOFDPacket [10:49:32]OFDProtocolAddRootSTLVToBuf [10:49:32]FM_MakeSignedData [10:49:32]FM_MakeSignedData [10:49:32]SAM_PROTO_SignData [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 0D 01 02 [10:49:32]Write to MH i2c: E2 08 00 F7 87 80 0D 01 02 00 00 00 00 F7 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 F7 87 00 90 00 F2 [10:49:32]RAPDU: 90 00 [10:49:32]wFMCommunicate OK [10:49:32]wFMCommunicate request_size=255 [10:49:32]MH_SAM_APDU [10:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 5D 00 00 00 F4 03 04 00 45 83 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 78 00 00 35 04 06 00 DD [10:49:32]Write to MH i2c: E2 02 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 5D 00 00 00 F4 03 04 00 45 83 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 78 00 00 35 04 06 00 DD 00 00 29 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 F8 87 00 90 00 F3 [10:49:32]RAPDU: 90 00 [10:49:32]wFMCommunicate OK [10:49:32]wFMCommunicate request_size=10 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 0D 02 02 05 52 D2 12 EE 6E [10:49:32]Write to MH i2c: E2 0D 00 F9 87 80 0D 02 02 05 00 52 D2 12 EE 6E 00 00 96 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:33]OFD Sender: No OFD packet to send [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:33]Read from MH i2c: E2 03 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 F9 87 00 90 00 F4 [10:49:33]RAPDU: 90 00 [10:49:33]wFMCommunicate OK [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 0D 03 02 [10:49:33]Write to MH i2c: E2 08 00 FA 87 80 0D 03 02 00 00 00 00 FC [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0B 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0B 00 FA 87 00 20 DC 66 82 09 F9 30 E9 90 00 FC [10:49:33]RAPDU: 20 DC 66 82 09 F9 30 E9 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_SignData done [10:49:33]FM_MakeSignedData done [10:49:33]CreateOFDProtocolMessage [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 11 00 00 [10:49:33]Write to MH i2c: E2 08 00 FB 87 80 11 00 00 00 00 00 00 FC [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 FB 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [10:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:49:33]wFMCommunicate OK [10:49:33]CreateOFDProtocolMessage done [10:49:33]OFDSenderStorePacket 30860 [10:49:33]StoreOFDPacket docnum=30860 [10:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 86 E9 07 01 34 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 5D 00 00 00 F4 03 04 00 45 83 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 78 00 00 35 04 06 00 DD 52 D2 12 EE 6E 20 DC 66 82 09 F9 30 E9 [10:49:33]CheckFolder [10:49:33]dirname=/storage/ofd_packets [10:49:33]CheckFolder done [10:49:33]ProducePacketName [10:49:33]name=ofd_packets/00030860 [10:49:33]NVStorageSaveData ofd_packets/00030860 [10:49:33]File name is /storage/ofd_packets/00030860 [10:49:33]Write 301 bytes [10:49:33]NVStorageSaveData done [10:49:33]OFDSenderStorePacket done [10:49:33]KKMCreateOFDPacket done [10:49:33]NVStorageSaveData kkm_last_timestamp [10:49:33]File name is /storage/kkm_last_timestamp [10:49:33]Write 4 bytes [10:49:33]NVStorageSaveData done [10:49:33]ExternCall_PrintAddStr [10:49:33]wPrintStart [10:49:33]Write to MH i2c: 01 00 00 FC 87 83 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 FC 87 00 00 00 00 00 FF 0F 98 [10:49:33]RasterBufferAndPrint [10:49:33]line Счет N : (1)343280 [10:49:33]line ИНН: 02508201610067 [10:49:33]line Контрольно-Кассовый Чек [10:49:33]line ПРОДАЖА [10:49:33]line ТРК (МРК, ГНК) : 42 [10:49:33]line Товар: 2710124500 [10:49:33]line Аи-95-К-3 [10:49:33]line 26.960 * 74.20 [10:49:33]line = 2000.43 [10:49:33]line НДС 12% НСП 1% [10:49:33]line > о реализуемом товаре [10:49:33]line ОКРУГЛЕНИЕ: -0.43 [10:49:33]line ИТОГО: 2000.00 [10:49:33]line Внесено: 2000.00 [10:49:33]line СДАЧА: 0.00 [10:49:33]line НСП 1% : 17.70 [10:49:33]line НДС 12% : 212.43 [10:49:33]line Наличными: 2000.00 [10:49:33]line Безнал.: 0.00 [10:49:33]line Место: АЗС № 78 "Партнер Нефть" [10:49:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:49:33]line СНО: Общий режим [10:49:33]line Чек 93 22.10.2024 10:49 [10:49:33]line Смена: 116 ФФД: 1.0 [10:49:33]line ЗНМ: 0300000137 [10:49:33]line РНМ: 0000000000186857 [10:49:33]line Версия ККМ: v1.0 [10:49:33]line ФМ: 0000000002094219 [10:49:33]line ФД: 30860 [10:49:33]line ФПД: 243347781512814 [10:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104941&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30860&fm=243347781512814&tin=02508201610067®Number=0000000000186857&sum=200000 [10:49:33]OFD Sender: Processing packet 30860 [packets to send 10, broken 9] [10:49:33]ProducePacketName [10:49:33]name=ofd_packets/00030860 [10:49:33]OFD Sender: To server: pG, [10:49:33]CommunicateWithHost lk.salyk.kg:30040 [10:49:33]ConnectInit lk.salyk.kg [10:49:33]written 0, free lines is 4095 [10:49:33]Connected sock=10 [10:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 86 E9 07 01 34 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 5D 00 00 00 F4 03 04 00 45 83 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 78 00 00 35 04 06 00 DD 52 D2 12 EE 6E 20 DC 66 82 09 F9 30 E9 [10:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 5F 47 00 CF 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 78 00 00 F4 03 04 00 C3 2D 17 67 B6 04 01 00 00 47 54 17 19 A5 07 0F 50 [10:49:33]CommunicateWithHost err = 0 [10:49:33]CheckOFDResponse [10:49:33]1017 (14) - 77093643461234 [10:49:33]1041 (16) - 0000000002094219 [10:49:33]1040 (4) - 30860 [10:49:33]1012 (4) - 22.10.2024 04:44 [10:49:33]1206 (1) - 0 [10:49:33]OFD Sender: Remove packet 30860 [10:49:33]ProducePacketName [10:49:33]name=ofd_packets/00030860 [10:49:33]NVStorageDeleteData [10:49:33]Write to MH i2c: 01 00 00 27 88 AF [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 27 88 00 00 00 00 00 F1 0C B3 [10:49:33]RasterBufferAndPrint [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]written 0, free lines is 3319 [10:49:33]MH_Cut [10:49:33]Write to MH i2c: D1 01 00 2E 88 01 88 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 01 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 01 00 2E 88 00 87 [10:49:33]Write to MH i2c: 01 00 00 2F 88 B7 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:34]OFD Sender: No OFD packet to send [10:49:34]*** Cut start [10:49:34]*** Partial cut [10:49:34]*** CUTSNS_PIN = 1 [10:49:34]*** CUTSNS_PIN = 0 [10:49:34]*** Brake cut motor [10:49:35]Read from MH i2c: 01 [10:49:35]MH_I2C_Read... [10:49:35]*** Stop cut motor [10:49:35]*** Cut end [10:49:35]Read from MH i2c: 01 07 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: 01 07 00 2F 88 00 00 00 00 00 FF 0F CC [10:49:35]process_action close_receipt done [10:49:35]requested_data is exist [10:49:35]produce_requested_data [10:49:35]requested_item fm.sn is exist - process it [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 11 00 00 [10:49:35]Write to MH i2c: E2 08 00 30 88 80 11 00 00 00 00 00 00 32 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 17 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 17 00 30 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [10:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:49:35]wFMCommunicate OK [10:49:35]requested_item fd.num is exist - process it [10:49:35]SAM_PROTO_GetFieldsCounters [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 13 00 00 [10:49:35]Write to MH i2c: E2 08 00 31 88 80 13 00 00 00 00 00 00 35 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 62 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 62 00 31 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 78 00 00 0E 04 04 00 74 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 EA [10:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_GetFieldsCounters done [10:49:35]requested_item shift.num is exist - process it [10:49:35]requested_item shift.opened is exist - process it [10:49:35]req_shift_opened [10:49:35]FM_GetShiftState [10:49:35]SAM_PROTO_GetShiftState [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 13 01 00 [10:49:35]Write to MH i2c: E2 08 00 32 88 80 13 01 00 00 00 00 00 37 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:35]Read from MH i2c: E2 0E 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 0E 00 32 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 11 [10:49:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_GetShiftState done [10:49:35]FM_GetShiftState done [10:49:35]req_shift_opened done [10:49:35]requested_item shift.open_date is exist - process it [10:49:35]req_shift_open_date [10:49:35]req_shift_open_date done [10:49:35]produce_requested_data done [10:49:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30860,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:49:35]process_action_free close_receipt [10:49:35]json_value_free [10:49:35]json_value_free done [10:49:35]process_json_proto returns [10:49:35]Send response to host [10:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30860,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:49:35]free response buf [10:49:35]execute_script done [10:49:35]execute_script returns [10:49:35]free content buf [10:49:35]Sock 7.Close socket [10:49:35]Sock 7.Thread stoped [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:38]accept exits with 9 [10:52:38]New connection [10:52:38]New thread 3067346276 created [10:52:38]Thread 3067489636 joined [10:52:38]Waiting for new connection... [10:52:38] Sock 9.Parse request [10:52:38]Sock 9.Check first char [10:52:38]Sock 9.First char is OK [10:52:38]request: POST /json_proto HTTP/1.0 [10:52:38]Method: POST [10:52:38]URL: /json_proto [10:52:38]Method is POST - this is cgi request [10:52:38]url: /json_proto [10:52:38]query_string will be loaded in cgi processing [10:52:38]execute_cgi json_proto POST (null) [10:52:38]execute_cgi path=json_proto method=POST [10:52:38]POST find Content-Length [10:52:38]Host: 172.17.51.3:8080 [10:52:38]Content-Length: 677 [10:52:38]Content-Type: application/json [10:52:38] [10:52:38]POST finish read [10:52:38]Found Content-Length = 677 [10:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:38]execute_script... [10:52: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)343281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:38]POST & json_proto [10:52:38]process_json_proto [10:52:38]json parsed OK: [10:52:38]protocol is kg_v1.0 [10:52:38]action value=close_receipt [10:52:38]process_action close_receipt [10:52:38]cmd_close_receipt [10:52:38]MH_GetDate [10:52:38]Write to MH i2c: F0 00 00 33 88 AA [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: F0 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: F0 09 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: F0 09 00 33 88 00 00 84 17 67 04 C1 95 66 75 [10:52:38]GetLastDocTimeStamp 1729594181 [10:52:38]current date 1729594368 [10:52:38]FM_GetShiftState [10:52:38]SAM_PROTO_GetShiftState [10:52:38]wFMCommunicate request_size=4 [10:52:38]MH_SAM_APDU [10:52:38]CAPDU: 80 13 01 00 [10:52:38]Write to MH i2c: E2 08 00 34 88 80 13 01 00 00 00 00 00 39 [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:38]Read from MH i2c: E2 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 0E 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 0E 00 34 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 13 [10:52:38]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:52:38]wFMCommunicate OK [10:52:38]SAM_PROTO_GetShiftState done [10:52:38]FM_GetShiftState done [10:52:38]opened in 1729557342 [10:52:38]opened+sec_in_day 1729643742 [10:52:38]quantity*price = 50041 [10:52:38]sum+1 = 50042 [10:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 94 22.10.2024 10:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30861 ФПД: 132404594675793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105248&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30861&fm=132404594675793&tin=02508201610067®Number=0000000000186857&sum=50000 [10:52:39]StoreToDocumentArchive [10:52:39]shift 116 fd 30861 [10:52:39]save to /storage/0116/doc_00030861 [10:52:39]save last doc name /storage/0116/doc_00030861 to /storage/kkm_last_doc_name [10:52:39]save OK [10:52:39]Clear old archive folders... [10:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:39]tlvbuf is 01E49AE0 [10:52:39]SAM_PROTO_ClearQueue [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 09 00 00 [10:52:39]Write to MH i2c: E2 08 00 41 88 80 09 00 00 00 00 00 00 3B [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 41 88 00 90 00 3D [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]SAM_PROTO_ClearQueue done [10:52:39]KKMCreateOFDPacket [10:52:39]OFDProtocolAddRootSTLVToBuf [10:52:39]FM_MakeSignedData [10:52:39]FM_MakeSignedData [10:52:39]SAM_PROTO_SignData [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 01 02 [10:52:39]Write to MH i2c: E2 08 00 42 88 80 0D 01 02 00 00 00 00 43 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 42 88 00 90 00 3E [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=255 [10:52:39]MH_SAM_APDU [10:52: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 00 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 78 00 00 35 04 06 00 78 [10:52:39]Write to MH i2c: E2 02 01 43 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 00 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 78 00 00 35 04 06 00 78 00 00 25 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 43 88 00 90 00 3F [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]wFMCommunicate request_size=10 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 02 02 05 6B D8 D5 10 51 [10:52:40]Write to MH i2c: E2 0D 00 44 88 80 0D 02 02 05 00 6B D8 D5 10 51 00 00 C9 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 03 00 44 88 00 90 00 40 [10:52:40]RAPDU: 90 00 [10:52:40]wFMCommunicate OK [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 0D 03 02 [10:52:40]Write to MH i2c: E2 08 00 45 88 80 0D 03 02 00 00 00 00 48 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0B 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0B 00 45 88 00 E1 D7 E5 C2 D2 58 C5 C7 90 00 5E [10:52:40]RAPDU: E1 D7 E5 C2 D2 58 C5 C7 90 00 [10:52:40]wFMCommunicate OK [10:52:40]SAM_PROTO_SignData done [10:52:40]FM_MakeSignedData done [10:52:40]CreateOFDProtocolMessage [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 11 00 00 [10:52:40]Write to MH i2c: E2 08 00 46 88 80 11 00 00 00 00 00 00 48 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 17 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 17 00 46 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [10:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:52:40]wFMCommunicate OK [10:52:40]CreateOFDProtocolMessage done [10:52:40]OFDSenderStorePacket 30861 [10:52:40]StoreOFDPacket docnum=30861 [10:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 98 07 01 59 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 00 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 78 00 00 35 04 06 00 78 6B D8 D5 10 51 E1 D7 E5 C2 D2 58 C5 C7 [10:52:40]CheckFolder [10:52:40]dirname=/storage/ofd_packets [10:52:40]CheckFolder done [10:52:40]ProducePacketName [10:52:40]name=ofd_packets/00030861 [10:52:40]NVStorageSaveData ofd_packets/00030861 [10:52:40]File name is /storage/ofd_packets/00030861 [10:52:40]Write 301 bytes [10:52:40]NVStorageSaveData done [10:52:40]OFDSenderStorePacket done [10:52:40]KKMCreateOFDPacket done [10:52:40]NVStorageSaveData kkm_last_timestamp [10:52:40]File name is /storage/kkm_last_timestamp [10:52:40]Write 4 bytes [10:52:40]NVStorageSaveData done [10:52:40]ExternCall_PrintAddStr [10:52:40]wPrintStart [10:52:40]Write to MH i2c: 01 00 00 47 88 CF [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 47 88 00 00 00 00 00 FF 0F E4 [10:52:40]RasterBufferAndPrint [10:52:40]line Счет N : (1)343281 [10:52:40]line ИНН: 02508201610067 [10:52:40]line Контрольно-Кассовый Чек [10:52:40]line ПРОДАЖА [10:52:40]line ТРК (МРК, ГНК) : 33 [10:52:40]line Товар: 2710124130 [10:52:40]line Аи-92-К-2 [10:52:40]line 7.480 * 66.90 [10:52:40]line = 500.41 [10:52:40]line НДС 12% НСП 1% [10:52:40]line > о реализуемом товаре [10:52:40]line ОКРУГЛЕНИЕ: -0.41 [10:52:40]line ИТОГО: 500.00 [10:52:40]line Внесено: 500.00 [10:52:40]line СДАЧА: 0.00 [10:52:40]line НСП 1% : 4.43 [10:52:40]line НДС 12% : 53.14 [10:52:40]line Наличными: 500.00 [10:52:40]line Безнал.: 0.00 [10:52:40]line Место: АЗС № 78 "Партнер Нефть" [10:52:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:52:40]line СНО: Общий режим [10:52:40]line Чек 94 22.10.2024 10:52 [10:52:40]line Смена: 116 ФФД: 1.0 [10:52:40]line ЗНМ: 0300000137 [10:52:40]line РНМ: 0000000000186857 [10:52:40]line Версия ККМ: v1.0 [10:52:40]line ФМ: 0000000002094219 [10:52:40]line ФД: 30861 [10:52:40]line ФПД: 132404594675793 [10:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105248&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30861&fm=132404594675793&tin=02508201610067®Number=0000000000186857&sum=50000 [10:52:40]OFD Sender: Processing packet 30861 [packets to send 10, broken 9] [10:52:40]ProducePacketName [10:52:40]name=ofd_packets/00030861 [10:52:40]OFD Sender: To server: pG, [10:52:40]CommunicateWithHost lk.salyk.kg:30040 [10:52:40]ConnectInit lk.salyk.kg [10:52:40]written 0, free lines is 4095 [10:52:40]Connected sock=10 [10:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 98 07 01 59 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 00 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 78 00 00 35 04 06 00 78 6B D8 D5 10 51 E1 D7 E5 C2 D2 58 C5 C7 [10:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F0 3A 47 00 2B 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 32 30 39 34 32 31 39 10 04 04 00 8D 78 00 00 F4 03 04 00 7E 2E 17 67 B6 04 01 00 00 64 05 8D E2 86 0C 4E 8B [10:52:40]CommunicateWithHost err = 0 [10:52:40]CheckOFDResponse [10:52:40]1017 (14) - 77093643461234 [10:52:40]1041 (16) - 0000000002094219 [10:52:40]1040 (4) - 30861 [10:52:40]1012 (4) - 22.10.2024 04:47 [10:52:40]1206 (1) - 0 [10:52:40]OFD Sender: Remove packet 30861 [10:52:40]ProducePacketName [10:52:40]name=ofd_packets/00030861 [10:52:40]NVStorageDeleteData [10:52:41]Write to MH i2c: 01 00 00 72 88 FA [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 72 88 00 00 00 00 00 EE 0C FB [10:52:41]RasterBufferAndPrint [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]line [10:52:41]written 0, free lines is 3316 [10:52:41]MH_Cut [10:52:41]Write to MH i2c: D1 01 00 79 88 01 D3 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 01 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: D1 01 00 79 88 00 D2 [10:52:41]Write to MH i2c: 01 00 00 7A 88 02 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]OFD Sender: No OFD packet to send [10:52:41]*** Cut start [10:52:41]*** Partial cut [10:52:41]*** CUTSNS_PIN = 1 [10:52:41]*** CUTSNS_PIN = 0 [10:52:41]*** Brake cut motor [10:52:42]Read from MH i2c: 01 [10:52:42]MH_I2C_Read... [10:52:42]*** Stop cut motor [10:52:42]*** Cut end [10:52:42]Read from MH i2c: 01 07 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: 01 07 00 7A 88 00 00 00 00 00 FF 0F 17 [10:52:42]process_action close_receipt done [10:52:42]requested_data is exist [10:52:42]produce_requested_data [10:52:42]requested_item fm.sn is exist - process it [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 11 00 00 [10:52:42]Write to MH i2c: E2 08 00 7B 88 80 11 00 00 00 00 00 00 7D [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 17 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 17 00 7B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [10:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:52:42]wFMCommunicate OK [10:52:42]requested_item fd.num is exist - process it [10:52:42]SAM_PROTO_GetFieldsCounters [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 13 00 00 [10:52:42]Write to MH i2c: E2 08 00 7C 88 80 13 00 00 00 00 00 00 80 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 62 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 62 00 7C 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 78 00 00 0E 04 04 00 74 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 39 [10:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_GetFieldsCounters done [10:52:42]requested_item shift.num is exist - process it [10:52:42]requested_item shift.opened is exist - process it [10:52:42]req_shift_opened [10:52:42]FM_GetShiftState [10:52:42]SAM_PROTO_GetShiftState [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 13 01 00 [10:52:42]Write to MH i2c: E2 08 00 7D 88 80 13 01 00 00 00 00 00 82 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0E 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0E 00 7D 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5C [10:52:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_GetShiftState done [10:52:42]FM_GetShiftState done [10:52:42]req_shift_opened done [10:52:42]requested_item shift.open_date is exist - process it [10:52:42]req_shift_open_date [10:52:42]req_shift_open_date done [10:52:42]produce_requested_data done [10:52:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30861,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:52:42]process_action_free close_receipt [10:52:42]json_value_free [10:52:42]json_value_free done [10:52:42]process_json_proto returns [10:52:42]Send response to host [10:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30861,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:52:42]free response buf [10:52:42]execute_script done [10:52:42]execute_script returns [10:52:42]free content buf [10:52:42]Sock 9.Close socket [10:52:42]Sock 9.Thread stoped [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:47]accept exits with 7 [10:54:47]New connection [10:54:47]New thread 3067489636 created [10:54:47]Thread 3067346276 joined [10:54:47]Waiting for new connection... [10:54:47] Sock 7.Parse request [10:54:47]Sock 7.Check first char [10:54:47]Sock 7.First char is OK [10:54:47]request: POST /json_proto HTTP/1.0 [10:54:47]Method: POST [10:54:47]URL: /json_proto [10:54:47]Method is POST - this is cgi request [10:54:47]url: /json_proto [10:54:47]query_string will be loaded in cgi processing [10:54:47]execute_cgi json_proto POST (null) [10:54:47]execute_cgi path=json_proto method=POST [10:54:47]POST find Content-Length [10:54:47]Host: 172.17.51.3:8080 [10:54:47]Content-Length: 677 [10:54:47]Content-Type: application/json [10:54:47] [10:54:47]POST finish read [10:54:47]Found Content-Length = 677 [10:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [10:54:47]execute_script... [10:54: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)343282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [10:54:47]POST & json_proto [10:54:47]process_json_proto [10:54:47]json parsed OK: [10:54:47]protocol is kg_v1.0 [10:54:47]action value=close_receipt [10:54:47]process_action close_receipt [10:54:47]cmd_close_receipt [10:54:47]MH_GetDate [10:54:47]Write to MH i2c: F0 00 00 7E 88 F5 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: F0 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: F0 09 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: F0 09 00 7E 88 00 81 84 17 67 04 C1 95 66 41 [10:54:47]GetLastDocTimeStamp 1729594368 [10:54:47]current date 1729594497 [10:54:47]FM_GetShiftState [10:54:47]SAM_PROTO_GetShiftState [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 01 00 [10:54:47]Write to MH i2c: E2 08 00 7F 88 80 13 01 00 00 00 00 00 84 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 7F 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5E [10:54:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetShiftState done [10:54:47]FM_GetShiftState done [10:54:47]opened in 1729557342 [10:54:47]opened+sec_in_day 1729643742 [10:54:47]quantity*price = 35055 [10:54:47]sum+1 = 35057 [10:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 95 22.10.2024 10:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30862 ФПД: 135481992267923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105458&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30862&fm=135481992267923&tin=02508201610067®Number=0000000000186857&sum=35000 [10:54:49]StoreToDocumentArchive [10:54:49]shift 116 fd 30862 [10:54:49]save to /storage/0116/doc_00030862 [10:54:49]save last doc name /storage/0116/doc_00030862 to /storage/kkm_last_doc_name [10:54:49]save OK [10:54:49]Clear old archive folders... [10:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:49]tlvbuf is 01DFF250 [10:54:49]SAM_PROTO_ClearQueue [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 09 00 00 [10:54:49]Write to MH i2c: E2 08 00 8C 88 80 09 00 00 00 00 00 00 86 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 8C 88 00 90 00 88 [10:54:49]RAPDU: 90 00 [10:54:49]wFMCommunicate OK [10:54:49]SAM_PROTO_ClearQueue done [10:54:49]KKMCreateOFDPacket [10:54:49]OFDProtocolAddRootSTLVToBuf [10:54:49]FM_MakeSignedData [10:54:49]FM_MakeSignedData [10:54:49]SAM_PROTO_SignData [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 0D 01 02 [10:54:49]Write to MH i2c: E2 08 00 8D 88 80 0D 01 02 00 00 00 00 8E [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 8D 88 00 90 00 89 [10:54:49]RAPDU: 90 00 [10:54:49]wFMCommunicate OK [10:54:49]wFMCommunicate request_size=255 [10:54:49]MH_SAM_APDU [10:54: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 5F 00 00 00 F4 03 04 00 82 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 78 00 00 35 04 06 00 7B [10:54:49]Write to MH i2c: E2 02 01 8E 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 5F 00 00 00 F4 03 04 00 82 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 78 00 00 35 04 06 00 7B 00 00 02 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 8E 88 00 90 00 8A [10:54:49]RAPDU: 90 00 [10:54:49]wFMCommunicate OK [10:54:49]wFMCommunicate request_size=10 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 0D 02 02 05 38 5C 05 C8 93 [10:54:49]Write to MH i2c: E2 0D 00 8F 88 80 0D 02 02 05 00 38 5C 05 C8 93 00 00 8F [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 03 00 8F 88 00 90 00 8B [10:54:49]RAPDU: 90 00 [10:54:49]wFMCommunicate OK [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 0D 03 02 [10:54:49]Write to MH i2c: E2 08 00 90 88 80 0D 03 02 00 00 00 00 93 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0B 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0B 00 90 88 00 1D 4C AE 29 44 BB 76 18 90 00 61 [10:54:49]RAPDU: 1D 4C AE 29 44 BB 76 18 90 00 [10:54:49]wFMCommunicate OK [10:54:49]SAM_PROTO_SignData done [10:54:49]FM_MakeSignedData done [10:54:49]CreateOFDProtocolMessage [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 11 00 00 [10:54:49]Write to MH i2c: E2 08 00 91 88 80 11 00 00 00 00 00 00 93 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 17 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 17 00 91 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [10:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:54:49]wFMCommunicate OK [10:54:49]CreateOFDProtocolMessage done [10:54:49]OFDSenderStorePacket 30862 [10:54:49]StoreOFDPacket docnum=30862 [10:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 46 46 07 01 56 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 5F 00 00 00 F4 03 04 00 82 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 78 00 00 35 04 06 00 7B 38 5C 05 C8 93 1D 4C AE 29 44 BB 76 18 [10:54:49]CheckFolder [10:54:49]dirname=/storage/ofd_packets [10:54:49]CheckFolder done [10:54:49]ProducePacketName [10:54:49]name=ofd_packets/00030862 [10:54:49]NVStorageSaveData ofd_packets/00030862 [10:54:49]File name is /storage/ofd_packets/00030862 [10:54:49]Write 301 bytes [10:54:49]NVStorageSaveData done [10:54:49]OFDSenderStorePacket done [10:54:49]KKMCreateOFDPacket done [10:54:49]NVStorageSaveData kkm_last_timestamp [10:54:49]File name is /storage/kkm_last_timestamp [10:54:49]Write 4 bytes [10:54:49]NVStorageSaveData done [10:54:49]ExternCall_PrintAddStr [10:54:49]wPrintStart [10:54:49]Write to MH i2c: 01 00 00 92 88 1A [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 92 88 00 00 00 00 00 FF 0F 2F [10:54:49]RasterBufferAndPrint [10:54:49]line Счет N : (1)343282 [10:54:49]line ИНН: 02508201610067 [10:54:49]line Контрольно-Кассовый Чек [10:54:49]line ПРОДАЖА [10:54:49]line ТРК (МРК, ГНК) : 53 [10:54:49]line Товар: 2710124130 [10:54:49]line Аи-92-К-2 [10:54:49]line 5.240 * 66.90 [10:54:49]line = 350.56 [10:54:49]line НДС 12% НСП 1% [10:54:49]line > о реализуемом товаре [10:54:49]line ОКРУГЛЕНИЕ: -0.56 [10:54:49]line ИТОГО: 350.00 [10:54:49]line Внесено: 350.00 [10:54:49]line СДАЧА: 0.00 [10:54:49]line НСП 1% : 3.10 [10:54:49]line НДС 12% : 37.23 [10:54:49]line Наличными: 350.00 [10:54:49]line Безнал.: 0.00 [10:54:49]line Место: АЗС № 78 "Партнер Нефть" [10:54:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:54:49]line СНО: Общий режим [10:54:49]line Чек 95 22.10.2024 10:54 [10:54:49]line Смена: 116 ФФД: 1.0 [10:54:49]line ЗНМ: 0300000137 [10:54:49]line РНМ: 0000000000186857 [10:54:49]line Версия ККМ: v1.0 [10:54:49]line ФМ: 0000000002094219 [10:54:49]line ФД: 30862 [10:54:49]line ФПД: 135481992267923 [10:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105458&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30862&fm=135481992267923&tin=02508201610067®Number=0000000000186857&sum=35000 [10:54:49]OFD Sender: Processing packet 30862 [packets to send 10, broken 9] [10:54:49]ProducePacketName [10:54:49]name=ofd_packets/00030862 [10:54:49]OFD Sender: To server: pG, [10:54:49]CommunicateWithHost lk.salyk.kg:30040 [10:54:49]ConnectInit lk.salyk.kg [10:54:49]written 0, free lines is 4095 [10:54:50]Connected sock=10 [10:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 46 46 07 01 56 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 5F 00 00 00 F4 03 04 00 82 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 78 00 00 35 04 06 00 7B 38 5C 05 C8 93 1D 4C AE 29 44 BB 76 18 [10:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 78 90 47 00 A4 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 32 30 39 34 32 31 39 10 04 04 00 8E 78 00 00 F4 03 04 00 FF 2E 17 67 B6 04 01 00 00 1E EF 9A FE 9E 38 54 C6 [10:54:50]CommunicateWithHost err = 0 [10:54:50]CheckOFDResponse [10:54:50]1017 (14) - 77093643461234 [10:54:50]1041 (16) - 0000000002094219 [10:54:50]1040 (4) - 30862 [10:54:50]1012 (4) - 22.10.2024 04:50 [10:54:50]1206 (1) - 0 [10:54:50]OFD Sender: Remove packet 30862 [10:54:50]ProducePacketName [10:54:50]name=ofd_packets/00030862 [10:54:50]NVStorageDeleteData [10:54:50]Write to MH i2c: 01 00 00 BD 88 45 [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 BD 88 00 00 00 00 00 F7 0C 4F [10:54:50]RasterBufferAndPrint [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]written 0, free lines is 3326 [10:54:50]MH_Cut [10:54:50]Write to MH i2c: D1 01 00 C4 88 01 1E [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 01 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 01 00 C4 88 00 1D [10:54:50]Write to MH i2c: 01 00 00 C5 88 4D [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]OFD Sender: No OFD packet to send [10:54:51]*** Cut start [10:54:51]*** Partial cut [10:54:51]*** CUTSNS_PIN = 1 [10:54:51]*** CUTSNS_PIN = 0 [10:54:51]*** Brake cut motor [10:54:51]Read from MH i2c: 01 [10:54:51]MH_I2C_Read... [10:54:51]*** Stop cut motor [10:54:51]*** Cut end [10:54:51]Read from MH i2c: 01 07 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 C5 88 00 00 00 00 00 FF 0F 62 [10:54:51]process_action close_receipt done [10:54:51]requested_data is exist [10:54:51]produce_requested_data [10:54:51]requested_item fm.sn is exist - process it [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 11 00 00 [10:54:51]Write to MH i2c: E2 08 00 C6 88 80 11 00 00 00 00 00 00 C8 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 C6 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [10:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:54:51]wFMCommunicate OK [10:54:51]requested_item fd.num is exist - process it [10:54:51]SAM_PROTO_GetFieldsCounters [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 13 00 00 [10:54:51]Write to MH i2c: E2 08 00 C7 88 80 13 00 00 00 00 00 00 CB [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 62 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 62 00 C7 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 78 00 00 0E 04 04 00 74 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 88 [10:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetFieldsCounters done [10:54:51]requested_item shift.num is exist - process it [10:54:51]requested_item shift.opened is exist - process it [10:54:51]req_shift_opened [10:54:51]FM_GetShiftState [10:54:51]SAM_PROTO_GetShiftState [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 13 01 00 [10:54:51]Write to MH i2c: E2 08 00 C8 88 80 13 01 00 00 00 00 00 CD [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 C8 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A7 [10:54:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetShiftState done [10:54:51]FM_GetShiftState done [10:54:51]req_shift_opened done [10:54:51]requested_item shift.open_date is exist - process it [10:54:51]req_shift_open_date [10:54:51]req_shift_open_date done [10:54:51]produce_requested_data done [10:54:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30862,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:54:51]process_action_free close_receipt [10:54:51]json_value_free [10:54:51]json_value_free done [10:54:51]process_json_proto returns [10:54:51]Send response to host [10:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30862,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:54:51]free response buf [10:54:51]execute_script done [10:54:51]execute_script returns [10:54:51]free content buf [10:54:51]Sock 7.Close socket [10:54:51]Sock 7.Thread stoped [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:43]accept exits with 9 [10:56:43]New connection [10:56:43]New thread 3067346276 created [10:56:43]Thread 3067489636 joined [10:56:43]Waiting for new connection... [10:56:43] Sock 9.Parse request [10:56:43]Sock 9.Check first char [10:56:43]Sock 9.First char is OK [10:56:43]request: POST /json_proto HTTP/1.0 [10:56:43]Method: POST [10:56:43]URL: /json_proto [10:56:43]Method is POST - this is cgi request [10:56:43]url: /json_proto [10:56:43]query_string will be loaded in cgi processing [10:56:43]execute_cgi json_proto POST (null) [10:56:43]execute_cgi path=json_proto method=POST [10:56:43]POST find Content-Length [10:56:43]Host: 172.17.51.3:8080 [10:56:43]Content-Length: 682 [10:56:43]Content-Type: application/json [10:56:43] [10:56:43]POST finish read [10:56:43]Found Content-Length = 682 [10:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:43]execute_script... [10:56:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:43]POST & json_proto [10:56:43]process_json_proto [10:56:43]json parsed OK: [10:56:43]protocol is kg_v1.0 [10:56:43]action value=close_receipt [10:56:43]process_action close_receipt [10:56:43]cmd_close_receipt [10:56:43]MH_GetDate [10:56:43]Write to MH i2c: F0 00 00 C9 88 40 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 C9 88 00 F5 84 17 67 04 C1 95 66 00 [10:56:43]GetLastDocTimeStamp 1729594498 [10:56:43]current date 1729594613 [10:56:43]FM_GetShiftState [10:56:43]SAM_PROTO_GetShiftState [10:56:43]wFMCommunicate request_size=4 [10:56:43]MH_SAM_APDU [10:56:43]CAPDU: 80 13 01 00 [10:56:43]Write to MH i2c: E2 08 00 CA 88 80 13 01 00 00 00 00 00 CF [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:43]Read from MH i2c: E2 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 CA 88 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A9 [10:56:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:56:43]wFMCommunicate OK [10:56:43]SAM_PROTO_GetShiftState done [10:56:43]FM_GetShiftState done [10:56:43]opened in 1729557342 [10:56:43]opened+sec_in_day 1729643742 [10:56:43]quantity*price = 100015 [10:56:43]sum+1 = 100017 [10:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 96 22.10.2024 10:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30863 ФПД: 225237157780258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30863&fm=225237157780258&tin=02508201610067®Number=0000000000186857&sum=100000 [10:56:44]StoreToDocumentArchive [10:56:44]shift 116 fd 30863 [10:56:44]save to /storage/0116/doc_00030863 [10:56:44]save last doc name /storage/0116/doc_00030863 to /storage/kkm_last_doc_name [10:56:44]save OK [10:56:44]Clear old archive folders... [10:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:44]tlvbuf is 01DD72A0 [10:56:44]SAM_PROTO_ClearQueue [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 09 00 00 [10:56:44]Write to MH i2c: E2 08 00 D7 88 80 09 00 00 00 00 00 00 D1 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 D7 88 00 90 00 D3 [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]SAM_PROTO_ClearQueue done [10:56:44]KKMCreateOFDPacket [10:56:44]OFDProtocolAddRootSTLVToBuf [10:56:44]FM_MakeSignedData [10:56:44]FM_MakeSignedData [10:56:44]SAM_PROTO_SignData [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 0D 01 02 [10:56:44]Write to MH i2c: E2 08 00 D8 88 80 0D 01 02 00 00 00 00 D9 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 D8 88 00 90 00 D4 [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]wFMCommunicate request_size=255 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 78 00 00 35 04 06 00 CC [10:56:44]Write to MH i2c: E2 02 01 D9 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 78 00 00 35 04 06 00 CC 00 00 02 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 D9 88 00 90 00 D5 [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]wFMCommunicate request_size=10 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 0D 02 02 05 DA 1C C7 9B 22 [10:56:44]Write to MH i2c: E2 0D 00 DA 88 80 0D 02 02 05 00 DA 1C C7 9B 22 00 00 60 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 DA 88 00 90 00 D6 [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 0D 03 02 [10:56:44]Write to MH i2c: E2 08 00 DB 88 80 0D 03 02 00 00 00 00 DE [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 0B 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 0B 00 DB 88 00 50 D2 8C 1A E5 BD 47 A0 90 00 30 [10:56:44]RAPDU: 50 D2 8C 1A E5 BD 47 A0 90 00 [10:56:44]wFMCommunicate OK [10:56:44]SAM_PROTO_SignData done [10:56:44]FM_MakeSignedData done [10:56:44]CreateOFDProtocolMessage [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 11 00 00 [10:56:44]Write to MH i2c: E2 08 00 DC 88 80 11 00 00 00 00 00 00 DE [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 17 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 17 00 DC 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [10:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:56:44]wFMCommunicate OK [10:56:44]CreateOFDProtocolMessage done [10:56:44]OFDSenderStorePacket 30863 [10:56:44]StoreOFDPacket docnum=30863 [10:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F2 83 07 01 36 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 78 00 00 35 04 06 00 CC DA 1C C7 9B 22 50 D2 8C 1A E5 BD 47 A0 [10:56:44]CheckFolder [10:56:44]dirname=/storage/ofd_packets [10:56:44]CheckFolder done [10:56:44]ProducePacketName [10:56:44]name=ofd_packets/00030863 [10:56:44]NVStorageSaveData ofd_packets/00030863 [10:56:44]File name is /storage/ofd_packets/00030863 [10:56:44]Write 301 bytes [10:56:44]NVStorageSaveData done [10:56:44]OFDSenderStorePacket done [10:56:44]KKMCreateOFDPacket done [10:56:44]NVStorageSaveData kkm_last_timestamp [10:56:44]File name is /storage/kkm_last_timestamp [10:56:44]Write 4 bytes [10:56:44]NVStorageSaveData done [10:56:44]ExternCall_PrintAddStr [10:56:44]wPrintStart [10:56:44]Write to MH i2c: 01 00 00 DD 88 65 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: 01 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: 01 07 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: 01 07 00 DD 88 00 00 00 00 00 FF 0F 7A [10:56:44]RasterBufferAndPrint [10:56:44]line Счет N : (1)343283 [10:56:44]line ИНН: 02508201610067 [10:56:44]line Контрольно-Кассовый Чек [10:56:44]line ПРОДАЖА [10:56:44]line ТРК (МРК, ГНК) : 33 [10:56:44]line Товар: 2710124130 [10:56:44]line Аи-92-К-2 [10:56:44]line 14.950 * 66.90 [10:56:44]line = 1000.16 [10:56:44]line НДС 12% НСП 1% [10:56:44]line > о реализуемом товаре [10:56:44]line ОКРУГЛЕНИЕ: -0.16 [10:56:44]line ИТОГО: 1000.00 [10:56:44]line Внесено: 1000.00 [10:56:44]line СДАЧА: 0.00 [10:56:44]line НСП 1% : 8.85 [10:56:44]line НДС 12% : 106.21 [10:56:44]line Наличными: 1000.00 [10:56:44]line Безнал.: 0.00 [10:56:44]line Место: АЗС № 78 "Партнер Нефть" [10:56:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:56:44]line СНО: Общий режим [10:56:44]line Чек 96 22.10.2024 10:56 [10:56:44]line Смена: 116 ФФД: 1.0 [10:56:44]line ЗНМ: 0300000137 [10:56:44]line РНМ: 0000000000186857 [10:56:44]line Версия ККМ: v1.0 [10:56:44]line ФМ: 0000000002094219 [10:56:44]line ФД: 30863 [10:56:44]line ФПД: 225237157780258 [10:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30863&fm=225237157780258&tin=02508201610067®Number=0000000000186857&sum=100000 [10:56:45]OFD Sender: Processing packet 30863 [packets to send 10, broken 9] [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00030863 [10:56:45]OFD Sender: To server: pG, [10:56:45]CommunicateWithHost lk.salyk.kg:30040 [10:56:45]ConnectInit lk.salyk.kg [10:56:45]written 0, free lines is 4095 [10:56:45]Connected sock=10 [10:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F2 83 07 01 36 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 84 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 78 00 00 35 04 06 00 CC DA 1C C7 9B 22 50 D2 8C 1A E5 BD 47 A0 [10:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6F F5 47 00 BC 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 78 00 00 F4 03 04 00 73 2F 17 67 B6 04 01 00 00 D3 D6 DC 7E C3 49 05 48 [10:56:45]CommunicateWithHost err = 0 [10:56:45]CheckOFDResponse [10:56:45]1017 (14) - 77093643461234 [10:56:45]1041 (16) - 0000000002094219 [10:56:45]1040 (4) - 30863 [10:56:45]1012 (4) - 22.10.2024 04:52 [10:56:45]1206 (1) - 0 [10:56:45]OFD Sender: Remove packet 30863 [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00030863 [10:56:45]NVStorageDeleteData [10:56:45]Write to MH i2c: 01 00 00 08 89 91 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 08 89 00 00 00 00 00 E1 0C 85 [10:56:45]RasterBufferAndPrint [10:56:45]line [10:56:45]line [10:56:45]line [10:56:45]line [10:56:45]line [10:56:45]written 0, free lines is 3303 [10:56:45]MH_Cut [10:56:45]Write to MH i2c: D1 01 00 0F 89 01 6A [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: D1 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: D1 01 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: D1 01 00 0F 89 00 69 [10:56:45]Write to MH i2c: 01 00 00 10 89 99 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:46]OFD Sender: No OFD packet to send [10:56:46]*** Cut start [10:56:46]*** Partial cut [10:56:46]*** CUTSNS_PIN = 1 [10:56:46]*** CUTSNS_PIN = 0 [10:56:46]*** Brake cut motor [10:56:46]Read from MH i2c: 01 [10:56:46]MH_I2C_Read... [10:56:46]*** Stop cut motor [10:56:46]*** Cut end [10:56:46]Read from MH i2c: 01 07 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 10 89 00 00 00 00 00 FF 0F AE [10:56:46]process_action close_receipt done [10:56:46]requested_data is exist [10:56:46]produce_requested_data [10:56:46]requested_item fm.sn is exist - process it [10:56:46]wFMCommunicate request_size=4 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 11 00 00 [10:56:46]Write to MH i2c: E2 08 00 11 89 80 11 00 00 00 00 00 00 14 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 11 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [10:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:56:47]wFMCommunicate OK [10:56:47]requested_item fd.num is exist - process it [10:56:47]SAM_PROTO_GetFieldsCounters [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 00 00 [10:56:47]Write to MH i2c: E2 08 00 12 89 80 13 00 00 00 00 00 00 17 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 12 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 78 00 00 0E 04 04 00 74 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 D8 [10:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetFieldsCounters done [10:56:47]requested_item shift.num is exist - process it [10:56:47]requested_item shift.opened is exist - process it [10:56:47]req_shift_opened [10:56:47]FM_GetShiftState [10:56:47]SAM_PROTO_GetShiftState [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 01 00 [10:56:47]Write to MH i2c: E2 08 00 13 89 80 13 01 00 00 00 00 00 19 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 13 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F3 [10:56:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetShiftState done [10:56:47]FM_GetShiftState done [10:56:47]req_shift_opened done [10:56:47]requested_item shift.open_date is exist - process it [10:56:47]req_shift_open_date [10:56:47]req_shift_open_date done [10:56:47]produce_requested_data done [10:56:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30863,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [10:56:47]process_action_free close_receipt [10:56:47]json_value_free [10:56:47]json_value_free done [10:56:47]process_json_proto returns [10:56:47]Send response to host [10:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30863,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [10:56:47]free response buf [10:56:47]execute_script done [10:56:47]execute_script returns [10:56:47]free content buf [10:56:47]Sock 9.Close socket [10:56:47]Sock 9.Thread stoped [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:47]accept exits with 7 [11:02:47]New connection [11:02:47]New thread 3067489636 created [11:02:47]Thread 3067346276 joined [11:02:47]Waiting for new connection... [11:02:47] Sock 7.Parse request [11:02:47]Sock 7.Check first char [11:02:47]Sock 7.First char is OK [11:02:47]request: POST /json_proto HTTP/1.0 [11:02:47]Method: POST [11:02:47]URL: /json_proto [11:02:47]Method is POST - this is cgi request [11:02:47]url: /json_proto [11:02:47]query_string will be loaded in cgi processing [11:02:47]execute_cgi json_proto POST (null) [11:02:47]execute_cgi path=json_proto method=POST [11:02:47]POST find Content-Length [11:02:47]Host: 172.17.51.3:8080 [11:02:47]Content-Length: 679 [11:02:47]Content-Type: application/json [11:02:47] [11:02:47]POST finish read [11:02:47]Found Content-Length = 679 [11:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]execute_script... [11: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)343284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]POST & json_proto [11:02:47]process_json_proto [11:02:47]json parsed OK: [11:02:47]protocol is kg_v1.0 [11:02:47]action value=close_receipt [11:02:47]process_action close_receipt [11:02:47]cmd_close_receipt [11:02:47]MH_GetDate [11:02:47]Write to MH i2c: F0 00 00 14 89 8C [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 14 89 00 61 86 17 67 04 C1 95 66 BA [11:02:47]GetLastDocTimeStamp 1729594613 [11:02:47]current date 1729594977 [11:02:47]FM_GetShiftState [11:02:47]SAM_PROTO_GetShiftState [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 01 00 [11:02:47]Write to MH i2c: E2 08 00 15 89 80 13 01 00 00 00 00 00 1B [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 15 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F5 [11:02:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetShiftState done [11:02:47]FM_GetShiftState done [11:02:47]opened in 1729557342 [11:02:47]opened+sec_in_day 1729643742 [11:02:47]quantity*price = 100050 [11:02:47]sum+1 = 100052 [11:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 97 22.10.2024 11:02 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30864 ФПД: 185716256484197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30864&fm=185716256484197&tin=02508201610067®Number=0000000000186857&sum=100000 [11:02:48]StoreToDocumentArchive [11:02:48]shift 116 fd 30864 [11:02:48]save to /storage/0116/doc_00030864 [11:02:48]save last doc name /storage/0116/doc_00030864 to /storage/kkm_last_doc_name [11:02:48]save OK [11:02:48]Clear old archive folders... [11:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:48]tlvbuf is 020830D0 [11:02:48]SAM_PROTO_ClearQueue [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 09 00 00 [11:02:48]Write to MH i2c: E2 08 00 22 89 80 09 00 00 00 00 00 00 1D [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 22 89 00 90 00 1F [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_ClearQueue done [11:02:48]KKMCreateOFDPacket [11:02:48]OFDProtocolAddRootSTLVToBuf [11:02:48]FM_MakeSignedData [11:02:48]FM_MakeSignedData [11:02:48]SAM_PROTO_SignData [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 01 02 [11:02:48]Write to MH i2c: E2 08 00 23 89 80 0D 01 02 00 00 00 00 25 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 23 89 00 90 00 20 [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=255 [11:02:48]MH_SAM_APDU [11:02: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 61 86 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 78 00 00 35 04 06 00 A8 E8 6F 7F [11:02:48]Write to MH i2c: E2 02 01 24 89 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 61 86 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 78 00 00 35 04 06 00 A8 E8 6F 7F 00 00 6C [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 24 89 00 90 00 21 [11:02:49]RAPDU: 90 00 [11:02:49]wFMCommunicate OK [11:02:49]wFMCommunicate request_size=7 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 0D 02 02 02 2B 65 [11:02:49]Write to MH i2c: E2 0A 00 25 89 80 0D 02 02 02 00 2B 65 00 00 BC [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 25 89 00 90 00 22 [11:02:49]RAPDU: 90 00 [11:02:49]wFMCommunicate OK [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 0D 03 02 [11:02:49]Write to MH i2c: E2 08 00 26 89 80 0D 03 02 00 00 00 00 2A [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0B 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0B 00 26 89 00 92 9E 71 76 29 EF DF 0B 90 00 44 [11:02:49]RAPDU: 92 9E 71 76 29 EF DF 0B 90 00 [11:02:49]wFMCommunicate OK [11:02:49]SAM_PROTO_SignData done [11:02:49]FM_MakeSignedData done [11:02:49]CreateOFDProtocolMessage [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 11 00 00 [11:02:49]Write to MH i2c: E2 08 00 27 89 80 11 00 00 00 00 00 00 2A [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 27 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [11:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:02:49]wFMCommunicate OK [11:02:49]CreateOFDProtocolMessage done [11:02:49]OFDSenderStorePacket 30864 [11:02:49]StoreOFDPacket docnum=30864 [11:02:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 45 AB 04 01 1F 60 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 61 86 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 78 00 00 35 04 06 00 A8 E8 6F 7F 2B 65 92 9E 71 76 29 EF DF 0B [11:02:49]CheckFolder [11:02:49]dirname=/storage/ofd_packets [11:02:49]CheckFolder done [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00030864 [11:02:49]NVStorageSaveData ofd_packets/00030864 [11:02:49]File name is /storage/ofd_packets/00030864 [11:02:49]Write 298 bytes [11:02:49]NVStorageSaveData done [11:02:49]OFDSenderStorePacket done [11:02:49]KKMCreateOFDPacket done [11:02:49]NVStorageSaveData kkm_last_timestamp [11:02:49]File name is /storage/kkm_last_timestamp [11:02:49]Write 4 bytes [11:02:49]NVStorageSaveData done [11:02:49]ExternCall_PrintAddStr [11:02:49]wPrintStart [11:02:49]Write to MH i2c: 01 00 00 28 89 B1 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 28 89 00 00 00 00 00 FF 0F C6 [11:02:49]RasterBufferAndPrint [11:02:49]line Счет N : (1)343284 [11:02:49]line ИНН: 02508201610067 [11:02:49]line Контрольно-Кассовый Чек [11:02:49]line ПРОДАЖА [11:02:49]line ТРК (МРК, ГНК) : 64 [11:02:49]line Товар: 2710194210 [11:02:49]line ДТ-К-2 [11:02:49]line 13.130 * 76.20 [11:02:49]line = 1000.51 [11:02:49]line НДС 12% НСП 1% [11:02:49]line > о реализуемом товаре [11:02:49]line ОКРУГЛЕНИЕ: -0.51 [11:02:49]line ИТОГО: 1000.00 [11:02:49]line Внесено: 1000.00 [11:02:49]line СДАЧА: 0.00 [11:02:49]line НСП 1% : 8.85 [11:02:49]line НДС 12% : 106.25 [11:02:49]line Наличными: 1000.00 [11:02:49]line Безнал.: 0.00 [11:02:49]line Место: АЗС № 78 "Партнер Нефть" [11:02:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:02:49]line СНО: Общий режим [11:02:49]line Чек 97 22.10.2024 11:02 [11:02:49]line Смена: 116 ФФД: 1.0 [11:02:49]line ЗНМ: 0300000137 [11:02:49]line РНМ: 0000000000186857 [11:02:49]line Версия ККМ: v1.0 [11:02:49]line ФМ: 0000000002094219 [11:02:49]line ФД: 30864 [11:02:49]line ФПД: 185716256484197 [11:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30864&fm=185716256484197&tin=02508201610067®Number=0000000000186857&sum=100000 [11:02:49]OFD Sender: Processing packet 30864 [packets to send 10, broken 9] [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00030864 [11:02:49]OFD Sender: To server: pG, [11:02:49]CommunicateWithHost lk.salyk.kg:30040 [11:02:49]ConnectInit lk.salyk.kg [11:02:49]written 0, free lines is 4095 [11:02:49]Connected sock=10 [11:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 45 AB 04 01 1F 60 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 61 86 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 78 00 00 35 04 06 00 A8 E8 6F 7F 2B 65 92 9E 71 76 29 EF DF 0B [11:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 96 5A 47 00 63 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 32 30 39 34 32 31 39 10 04 04 00 90 78 00 00 F4 03 04 00 DF 30 17 67 B6 04 01 00 00 FA 81 25 CC 88 CF 8C FD [11:02:49]CommunicateWithHost err = 0 [11:02:49]CheckOFDResponse [11:02:49]1017 (14) - 77093643461234 [11:02:49]1041 (16) - 0000000002094219 [11:02:49]1040 (4) - 30864 [11:02:49]1012 (4) - 22.10.2024 04:58 [11:02:49]1206 (1) - 0 [11:02:49]OFD Sender: Remove packet 30864 [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00030864 [11:02:49]NVStorageDeleteData [11:02:50]Write to MH i2c: 01 00 00 53 89 DC [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: 01 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: 01 07 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: 01 07 00 53 89 00 00 00 00 00 F6 0C E5 [11:02:50]RasterBufferAndPrint [11:02:50]line [11:02:50]line [11:02:50]line [11:02:50]line [11:02:50]line [11:02:50]written 0, free lines is 3324 [11:02:50]MH_Cut [11:02:50]Write to MH i2c: D1 01 00 5A 89 01 B5 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: D1 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: D1 01 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: D1 01 00 5A 89 00 B4 [11:02:50]Write to MH i2c: 01 00 00 5B 89 E4 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]OFD Sender: No OFD packet to send [11:02:50]*** Cut start [11:02:50]*** Partial cut [11:02:50]*** CUTSNS_PIN = 1 [11:02:50]*** CUTSNS_PIN = 0 [11:02:50]*** Brake cut motor [11:02:51]Read from MH i2c: 01 [11:02:51]MH_I2C_Read... [11:02:51]*** Stop cut motor [11:02:51]*** Cut end [11:02:51]Read from MH i2c: 01 07 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 07 00 5B 89 00 00 00 00 00 FF 0F F9 [11:02:51]process_action close_receipt done [11:02:51]requested_data is exist [11:02:51]produce_requested_data [11:02:51]requested_item fm.sn is exist - process it [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 11 00 00 [11:02:51]Write to MH i2c: E2 08 00 5C 89 80 11 00 00 00 00 00 00 5F [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 17 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 17 00 5C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [11:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:02:51]wFMCommunicate OK [11:02:51]requested_item fd.num is exist - process it [11:02:51]SAM_PROTO_GetFieldsCounters [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 13 00 00 [11:02:51]Write to MH i2c: E2 08 00 5D 89 80 13 00 00 00 00 00 00 62 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 5D 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 78 00 00 0E 04 04 00 74 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 27 [11:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 78 00 00 0E 04 04 00 74 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 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetFieldsCounters done [11:02:51]requested_item shift.num is exist - process it [11:02:51]requested_item shift.opened is exist - process it [11:02:51]req_shift_opened [11:02:51]FM_GetShiftState [11:02:51]SAM_PROTO_GetShiftState [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 13 01 00 [11:02:51]Write to MH i2c: E2 08 00 5E 89 80 13 01 00 00 00 00 00 64 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:51]Read from MH i2c: E2 0E 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 5E 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3E [11:02:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetShiftState done [11:02:51]FM_GetShiftState done [11:02:51]req_shift_opened done [11:02:51]requested_item shift.open_date is exist - process it [11:02:51]req_shift_open_date [11:02:51]req_shift_open_date done [11:02:51]produce_requested_data done [11:02:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30864,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:02:51]process_action_free close_receipt [11:02:51]json_value_free [11:02:51]json_value_free done [11:02:51]process_json_proto returns [11:02:51]Send response to host [11:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30864,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:02:51]free response buf [11:02:51]execute_script done [11:02:51]execute_script returns [11:02:51]free content buf [11:02:51]Sock 7.Close socket [11:02:51]Sock 7.Thread stoped [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:27]accept exits with 9 [11:07:27]New connection [11:07:27]New thread 3067346276 created [11:07:27]Thread 3067489636 joined [11:07:27]Waiting for new connection... [11:07:27] Sock 9.Parse request [11:07:27]Sock 9.Check first char [11:07:27]Sock 9.First char is OK [11:07:27]request: POST /json_proto HTTP/1.0 [11:07:27]Method: POST [11:07:27]URL: /json_proto [11:07:27]Method is POST - this is cgi request [11:07:27]url: /json_proto [11:07:27]query_string will be loaded in cgi processing [11:07:27]execute_cgi json_proto POST (null) [11:07:27]execute_cgi path=json_proto method=POST [11:07:27]POST find Content-Length [11:07:27]Host: 172.17.51.3:8080 [11:07:27]Content-Length: 677 [11:07:27]Content-Type: application/json [11:07:27] [11:07:27]POST finish read [11:07:27]Found Content-Length = 677 [11:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:27]execute_script... [11:07: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)343285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:27]POST & json_proto [11:07:27]process_json_proto [11:07:27]json parsed OK: [11:07:27]protocol is kg_v1.0 [11:07:27]action value=close_receipt [11:07:27]process_action close_receipt [11:07:27]cmd_close_receipt [11:07:27]MH_GetDate [11:07:27]Write to MH i2c: F0 00 00 5F 89 D7 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 09 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 09 00 5F 89 00 79 87 17 67 04 C1 95 66 1E [11:07:27]GetLastDocTimeStamp 1729594977 [11:07:27]current date 1729595257 [11:07:27]FM_GetShiftState [11:07:27]SAM_PROTO_GetShiftState [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 13 01 00 [11:07:27]Write to MH i2c: E2 08 00 60 89 80 13 01 00 00 00 00 00 66 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0E 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0E 00 60 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 40 [11:07:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_GetShiftState done [11:07:27]FM_GetShiftState done [11:07:27]opened in 1729557342 [11:07:27]opened+sec_in_day 1729643742 [11:07:27]quantity*price = 40006 [11:07:27]sum+1 = 40007 [11:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 98 22.10.2024 11:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30865 ФПД: 132608817042927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30865&fm=132608817042927&tin=02508201610067®Number=0000000000186857&sum=40000 [11:07:28]StoreToDocumentArchive [11:07:28]shift 116 fd 30865 [11:07:28]save to /storage/0116/doc_00030865 [11:07:28]save last doc name /storage/0116/doc_00030865 to /storage/kkm_last_doc_name [11:07:28]save OK [11:07:28]Clear old archive folders... [11:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:28]tlvbuf is B6F5D8A0 [11:07:28]SAM_PROTO_ClearQueue [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 09 00 00 [11:07:28]Write to MH i2c: E2 08 00 6D 89 80 09 00 00 00 00 00 00 68 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 6D 89 00 90 00 6A [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_ClearQueue done [11:07:28]KKMCreateOFDPacket [11:07:28]OFDProtocolAddRootSTLVToBuf [11:07:28]FM_MakeSignedData [11:07:28]FM_MakeSignedData [11:07:28]SAM_PROTO_SignData [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 01 02 [11:07:28]Write to MH i2c: E2 08 00 6E 89 80 0D 01 02 00 00 00 00 70 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 6E 89 00 90 00 6B [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=255 [11:07:28]MH_SAM_APDU [11:07: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 78 00 00 35 04 06 00 78 [11:07:28]Write to MH i2c: E2 02 01 6F 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 78 00 00 35 04 06 00 78 00 00 A5 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 6F 89 00 90 00 6C [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=10 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 02 02 05 9B 65 6F 15 EF [11:07:28]Write to MH i2c: E2 0D 00 70 89 80 0D 02 02 05 00 9B 65 6F 15 EF 00 00 F0 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 70 89 00 90 00 6D [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 03 02 [11:07:28]Write to MH i2c: E2 08 00 71 89 80 0D 03 02 00 00 00 00 75 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 71 89 00 90 95 21 B0 DB C6 7A 8F 90 00 16 [11:07:28]RAPDU: 90 95 21 B0 DB C6 7A 8F 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_SignData done [11:07:28]FM_MakeSignedData done [11:07:28]CreateOFDProtocolMessage [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 11 00 00 [11:07:28]Write to MH i2c: E2 08 00 72 89 80 11 00 00 00 00 00 00 75 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 72 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [11:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:07:28]wFMCommunicate OK [11:07:28]CreateOFDProtocolMessage done [11:07:28]OFDSenderStorePacket 30865 [11:07:28]StoreOFDPacket docnum=30865 [11:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 29 07 01 8C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 78 00 00 35 04 06 00 78 9B 65 6F 15 EF 90 95 21 B0 DB C6 7A 8F [11:07:28]CheckFolder [11:07:28]dirname=/storage/ofd_packets [11:07:28]CheckFolder done [11:07:28]ProducePacketName [11:07:28]name=ofd_packets/00030865 [11:07:28]NVStorageSaveData ofd_packets/00030865 [11:07:28]File name is /storage/ofd_packets/00030865 [11:07:28]Write 301 bytes [11:07:28]NVStorageSaveData done [11:07:28]OFDSenderStorePacket done [11:07:28]KKMCreateOFDPacket done [11:07:28]NVStorageSaveData kkm_last_timestamp [11:07:28]File name is /storage/kkm_last_timestamp [11:07:28]Write 4 bytes [11:07:28]NVStorageSaveData done [11:07:28]ExternCall_PrintAddStr [11:07:28]wPrintStart [11:07:28]Write to MH i2c: 01 00 00 73 89 FC [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 73 89 00 00 00 00 00 FF 0F 11 [11:07:28]RasterBufferAndPrint [11:07:28]line Счет N : (1)343285 [11:07:28]line ИНН: 02508201610067 [11:07:28]line Контрольно-Кассовый Чек [11:07:28]line ПРОДАЖА [11:07:28]line ТРК (МРК, ГНК) : 63 [11:07:28]line Товар: 2710124130 [11:07:28]line Аи-92-К-2 [11:07:28]line 5.980 * 66.90 [11:07:28]line = 400.06 [11:07:28]line НДС 12% НСП 1% [11:07:28]line > о реализуемом товаре [11:07:28]line ОКРУГЛЕНИЕ: -0.06 [11:07:28]line ИТОГО: 400.00 [11:07:28]line Внесено: 400.00 [11:07:28]line СДАЧА: 0.00 [11:07:28]line НСП 1% : 3.54 [11:07:28]line НДС 12% : 42.48 [11:07:28]line Наличными: 400.00 [11:07:28]line Безнал.: 0.00 [11:07:28]line Место: АЗС № 78 "Партнер Нефть" [11:07:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:07:28]line СНО: Общий режим [11:07:28]line Чек 98 22.10.2024 11:07 [11:07:28]line Смена: 116 ФФД: 1.0 [11:07:28]line ЗНМ: 0300000137 [11:07:28]line РНМ: 0000000000186857 [11:07:28]line Версия ККМ: v1.0 [11:07:28]line ФМ: 0000000002094219 [11:07:28]line ФД: 30865 [11:07:28]line ФПД: 132608817042927 [11:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30865&fm=132608817042927&tin=02508201610067®Number=0000000000186857&sum=40000 [11:07:29]OFD Sender: Processing packet 30865 [packets to send 10, broken 9] [11:07:29]ProducePacketName [11:07:29]name=ofd_packets/00030865 [11:07:29]OFD Sender: To server: pG, [11:07:29]CommunicateWithHost lk.salyk.kg:30040 [11:07:29]ConnectInit lk.salyk.kg [11:07:29]written 0, free lines is 4095 [11:07:29]Connected sock=10 [11:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 29 07 01 8C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 78 00 00 35 04 06 00 78 9B 65 6F 15 EF 90 95 21 B0 DB C6 7A 8F [11:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FA B8 47 00 75 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 32 30 39 34 32 31 39 10 04 04 00 91 78 00 00 F4 03 04 00 F7 31 17 67 B6 04 01 00 00 CD F1 B6 DB FE 8C 18 9E [11:07:29]CommunicateWithHost err = 0 [11:07:29]CheckOFDResponse [11:07:29]1017 (14) - 77093643461234 [11:07:29]1041 (16) - 0000000002094219 [11:07:29]1040 (4) - 30865 [11:07:29]1012 (4) - 22.10.2024 05:02 [11:07:29]1206 (1) - 0 [11:07:29]OFD Sender: Remove packet 30865 [11:07:29]ProducePacketName [11:07:29]name=ofd_packets/00030865 [11:07:29]NVStorageDeleteData [11:07:29]Write to MH i2c: 01 00 00 9E 89 27 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 9E 89 00 00 00 00 00 F4 0C 2E [11:07:29]RasterBufferAndPrint [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]written 0, free lines is 3322 [11:07:29]MH_Cut [11:07:29]Write to MH i2c: D1 01 00 A5 89 01 00 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 01 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 01 00 A5 89 00 FF [11:07:29]Write to MH i2c: 01 00 00 A6 89 2F [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:30]OFD Sender: No OFD packet to send [11:07:30]*** Cut start [11:07:30]*** Partial cut [11:07:30]*** CUTSNS_PIN = 1 [11:07:30]*** CUTSNS_PIN = 0 [11:07:30]*** Brake cut motor [11:07:30]Read from MH i2c: 01 [11:07:30]MH_I2C_Read... [11:07:30]*** Stop cut motor [11:07:30]*** Cut end [11:07:30]Read from MH i2c: 01 07 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 07 00 A6 89 00 00 00 00 00 FF 0F 44 [11:07:30]process_action close_receipt done [11:07:30]requested_data is exist [11:07:30]produce_requested_data [11:07:30]requested_item fm.sn is exist - process it [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 11 00 00 [11:07:30]Write to MH i2c: E2 08 00 A7 89 80 11 00 00 00 00 00 00 AA [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 17 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 17 00 A7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [11:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:07:31]wFMCommunicate OK [11:07:31]requested_item fd.num is exist - process it [11:07:31]SAM_PROTO_GetFieldsCounters [11:07:31]wFMCommunicate request_size=4 [11:07:31]MH_SAM_APDU [11:07:31]CAPDU: 80 13 00 00 [11:07:31]Write to MH i2c: E2 08 00 A8 89 80 13 00 00 00 00 00 00 AD [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 62 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 62 00 A8 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 78 00 00 0E 04 04 00 74 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 76 [11:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 78 00 00 0E 04 04 00 74 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 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetFieldsCounters done [11:07:31]requested_item shift.num is exist - process it [11:07:31]requested_item shift.opened is exist - process it [11:07:31]req_shift_opened [11:07:31]FM_GetShiftState [11:07:31]SAM_PROTO_GetShiftState [11:07:31]wFMCommunicate request_size=4 [11:07:31]MH_SAM_APDU [11:07:31]CAPDU: 80 13 01 00 [11:07:31]Write to MH i2c: E2 08 00 A9 89 80 13 01 00 00 00 00 00 AF [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 A9 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 89 [11:07:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetShiftState done [11:07:31]FM_GetShiftState done [11:07:31]req_shift_opened done [11:07:31]requested_item shift.open_date is exist - process it [11:07:31]req_shift_open_date [11:07:31]req_shift_open_date done [11:07:31]produce_requested_data done [11:07:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30865,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:07:31]process_action_free close_receipt [11:07:31]json_value_free [11:07:31]json_value_free done [11:07:31]process_json_proto returns [11:07:31]Send response to host [11:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30865,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:07:31]free response buf [11:07:31]execute_script done [11:07:31]execute_script returns [11:07:31]free content buf [11:07:31]Sock 9.Close socket [11:07:31]Sock 9.Thread stoped [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:01]accept exits with 7 [11:09:01]New connection [11:09:01]New thread 3067489636 created [11:09:01]Thread 3067346276 joined [11:09:01]Waiting for new connection... [11:09:01] Sock 7.Parse request [11:09:01]Sock 7.Check first char [11:09:01]Sock 7.First char is OK [11:09:01]request: POST /json_proto HTTP/1.0 [11:09:01]Method: POST [11:09:01]URL: /json_proto [11:09:01]Method is POST - this is cgi request [11:09:01]url: /json_proto [11:09:01]query_string will be loaded in cgi processing [11:09:01]execute_cgi json_proto POST (null) [11:09:01]execute_cgi path=json_proto method=POST [11:09:01]POST find Content-Length [11:09:01]Host: 172.17.51.3:8080 [11:09:01]Content-Length: 682 [11:09:01]Content-Type: application/json [11:09:01] [11:09:01]POST finish read [11:09:01]Found Content-Length = 682 [11:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [11:09:01]execute_script... [11:09: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)343286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [11:09:01]POST & json_proto [11:09:01]process_json_proto [11:09:01]json parsed OK: [11:09:01]protocol is kg_v1.0 [11:09:01]action value=close_receipt [11:09:01]process_action close_receipt [11:09:01]cmd_close_receipt [11:09:01]MH_GetDate [11:09:01]Write to MH i2c: F0 00 00 AA 89 22 [11:09:01]Write i2c OK [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: F0 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: F0 09 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: F0 09 00 AA 89 00 D7 87 17 67 04 C1 95 66 C7 [11:09:01]GetLastDocTimeStamp 1729595257 [11:09:01]current date 1729595351 [11:09:01]FM_GetShiftState [11:09:01]SAM_PROTO_GetShiftState [11:09:01]wFMCommunicate request_size=4 [11:09:01]MH_SAM_APDU [11:09:01]CAPDU: 80 13 01 00 [11:09:01]Write to MH i2c: E2 08 00 AB 89 80 13 01 00 00 00 00 00 B1 [11:09:01]Write i2c OK [11:09:01]MH_I2C_Read... [11:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:01]Read from MH i2c: E2 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 0E 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 0E 00 AB 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8B [11:09:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:09:01]wFMCommunicate OK [11:09:01]SAM_PROTO_GetShiftState done [11:09:01]FM_GetShiftState done [11:09:01]opened in 1729557342 [11:09:01]opened+sec_in_day 1729643742 [11:09:01]quantity*price = 120055 [11:09:01]sum+1 = 120057 [11:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 99 22.10.2024 11:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30866 ФПД: 277845245003983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30866&fm=277845245003983&tin=02508201610067®Number=0000000000186857&sum=120000 [11:09:02]StoreToDocumentArchive [11:09:02]shift 116 fd 30866 [11:09:02]save to /storage/0116/doc_00030866 [11:09:02]save last doc name /storage/0116/doc_00030866 to /storage/kkm_last_doc_name [11:09:02]save OK [11:09:02]Clear old archive folders... [11:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:02]tlvbuf is 01FD9FA0 [11:09:02]SAM_PROTO_ClearQueue [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 09 00 00 [11:09:02]Write to MH i2c: E2 08 00 B8 89 80 09 00 00 00 00 00 00 B3 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 B8 89 00 90 00 B5 [11:09:02]RAPDU: 90 00 [11:09:02]wFMCommunicate OK [11:09:02]SAM_PROTO_ClearQueue done [11:09:02]KKMCreateOFDPacket [11:09:02]OFDProtocolAddRootSTLVToBuf [11:09:02]FM_MakeSignedData [11:09:02]FM_MakeSignedData [11:09:02]SAM_PROTO_SignData [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 0D 01 02 [11:09:02]Write to MH i2c: E2 08 00 B9 89 80 0D 01 02 00 00 00 00 BB [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 B9 89 00 90 00 B6 [11:09:02]RAPDU: 90 00 [11:09:02]wFMCommunicate OK [11:09:02]wFMCommunicate request_size=255 [11:09:02]MH_SAM_APDU [11:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 63 00 00 00 F4 03 04 00 D7 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 78 00 00 35 04 06 00 FC [11:09:02]Write to MH i2c: E2 02 01 BA 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 63 00 00 00 F4 03 04 00 D7 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 78 00 00 35 04 06 00 FC 00 00 2F [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 BA 89 00 90 00 B7 [11:09:02]RAPDU: 90 00 [11:09:02]wFMCommunicate OK [11:09:02]wFMCommunicate request_size=10 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 0D 02 02 05 B2 E3 21 88 CF [11:09:02]Write to MH i2c: E2 0D 00 BB 89 80 0D 02 02 05 00 B2 E3 21 88 CF 00 00 D5 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 03 00 BB 89 00 90 00 B8 [11:09:02]RAPDU: 90 00 [11:09:02]wFMCommunicate OK [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 0D 03 02 [11:09:02]Write to MH i2c: E2 08 00 BC 89 80 0D 03 02 00 00 00 00 C0 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 0B 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 0B 00 BC 89 00 7F 2E 8F BA 13 3E A5 7B 90 00 28 [11:09:02]RAPDU: 7F 2E 8F BA 13 3E A5 7B 90 00 [11:09:02]wFMCommunicate OK [11:09:02]SAM_PROTO_SignData done [11:09:02]FM_MakeSignedData done [11:09:02]CreateOFDProtocolMessage [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 11 00 00 [11:09:02]Write to MH i2c: E2 08 00 BD 89 80 11 00 00 00 00 00 00 C0 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 17 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 17 00 BD 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [11:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:02]wFMCommunicate OK [11:09:02]CreateOFDProtocolMessage done [11:09:02]OFDSenderStorePacket 30866 [11:09:02]StoreOFDPacket docnum=30866 [11:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DD 7D 07 01 CD F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 63 00 00 00 F4 03 04 00 D7 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 78 00 00 35 04 06 00 FC B2 E3 21 88 CF 7F 2E 8F BA 13 3E A5 7B [11:09:02]CheckFolder [11:09:02]dirname=/storage/ofd_packets [11:09:02]CheckFolder done [11:09:02]ProducePacketName [11:09:02]name=ofd_packets/00030866 [11:09:02]NVStorageSaveData ofd_packets/00030866 [11:09:02]File name is /storage/ofd_packets/00030866 [11:09:02]Write 301 bytes [11:09:02]NVStorageSaveData done [11:09:02]OFDSenderStorePacket done [11:09:02]KKMCreateOFDPacket done [11:09:02]NVStorageSaveData kkm_last_timestamp [11:09:02]File name is /storage/kkm_last_timestamp [11:09:02]Write 4 bytes [11:09:02]NVStorageSaveData done [11:09:02]ExternCall_PrintAddStr [11:09:02]wPrintStart [11:09:02]Write to MH i2c: 01 00 00 BE 89 47 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: 01 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: 01 07 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: 01 07 00 BE 89 00 00 00 00 00 FF 0F 5C [11:09:02]RasterBufferAndPrint [11:09:02]line Счет N : (1)343286 [11:09:02]line ИНН: 02508201610067 [11:09:02]line Контрольно-Кассовый Чек [11:09:02]line ПРОДАЖА [11:09:02]line ТРК (МРК, ГНК) : 42 [11:09:02]line Товар: 2710124500 [11:09:02]line Аи-95-К-3 [11:09:02]line 16.180 * 74.20 [11:09:02]line = 1200.56 [11:09:02]line НДС 12% НСП 1% [11:09:02]line > о реализуемом товаре [11:09:02]line ОКРУГЛЕНИЕ: -0.56 [11:09:02]line ИТОГО: 1200.00 [11:09:02]line Внесено: 1200.00 [11:09:02]line СДАЧА: 0.00 [11:09:02]line НСП 1% : 10.62 [11:09:02]line НДС 12% : 127.49 [11:09:02]line Наличными: 1200.00 [11:09:02]line Безнал.: 0.00 [11:09:02]line Место: АЗС № 78 "Партнер Нефть" [11:09:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:09:02]line СНО: Общий режим [11:09:02]line Чек 99 22.10.2024 11:09 [11:09:02]line Смена: 116 ФФД: 1.0 [11:09:02]line ЗНМ: 0300000137 [11:09:02]line РНМ: 0000000000186857 [11:09:02]line Версия ККМ: v1.0 [11:09:02]line ФМ: 0000000002094219 [11:09:02]line ФД: 30866 [11:09:02]line ФПД: 277845245003983 [11:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30866&fm=277845245003983&tin=02508201610067®Number=0000000000186857&sum=120000 [11:09:02]written 0, free lines is 4095 [11:09:02]OFD Sender: Processing packet 30866 [packets to send 10, broken 9] [11:09:02]ProducePacketName [11:09:02]name=ofd_packets/00030866 [11:09:02]OFD Sender: To server: pG, [11:09:02]CommunicateWithHost lk.salyk.kg:30040 [11:09:02]ConnectInit lk.salyk.kg [11:09:02]Connected sock=10 [11:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DD 7D 07 01 CD F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 63 00 00 00 F4 03 04 00 D7 87 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 78 00 00 35 04 06 00 FC B2 E3 21 88 CF 7F 2E 8F BA 13 3E A5 7B [11:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 E4 47 00 C5 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 78 00 00 F4 03 04 00 54 32 17 67 B6 04 01 00 00 F6 98 5E 33 5F 36 03 DC [11:09:03]CommunicateWithHost err = 0 [11:09:03]CheckOFDResponse [11:09:03]1017 (14) - 77093643461234 [11:09:03]1041 (16) - 0000000002094219 [11:09:03]1040 (4) - 30866 [11:09:03]1012 (4) - 22.10.2024 05:04 [11:09:03]1206 (1) - 0 [11:09:03]OFD Sender: Remove packet 30866 [11:09:03]ProducePacketName [11:09:03]name=ofd_packets/00030866 [11:09:03]NVStorageDeleteData [11:09:03]Write to MH i2c: 01 00 00 E9 89 72 [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: 01 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: 01 07 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: 01 07 00 E9 89 00 00 00 00 00 F4 0C 79 [11:09:03]RasterBufferAndPrint [11:09:03]line [11:09:03]line [11:09:03]line [11:09:03]line [11:09:03]line [11:09:03]written 0, free lines is 3326 [11:09:03]MH_Cut [11:09:03]Write to MH i2c: D1 01 00 F0 89 01 4B [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: D1 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: D1 01 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: D1 01 00 F0 89 00 4A [11:09:03]Write to MH i2c: 01 00 00 F1 89 7A [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]OFD Sender: No OFD packet to send [11:09:03]*** Cut start [11:09:03]*** Partial cut [11:09:03]*** CUTSNS_PIN = 1 [11:09:03]*** CUTSNS_PIN = 0 [11:09:04]*** Brake cut motor [11:09:04]Read from MH i2c: 01 [11:09:04]MH_I2C_Read... [11:09:04]*** Stop cut motor [11:09:04]*** Cut end [11:09:04]Read from MH i2c: 01 07 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: 01 07 00 F1 89 00 00 00 00 00 FF 0F 8F [11:09:04]process_action close_receipt done [11:09:04]requested_data is exist [11:09:04]produce_requested_data [11:09:04]requested_item fm.sn is exist - process it [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 11 00 00 [11:09:04]Write to MH i2c: E2 08 00 F2 89 80 11 00 00 00 00 00 00 F5 [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 17 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 17 00 F2 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [11:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:04]wFMCommunicate OK [11:09:04]requested_item fd.num is exist - process it [11:09:04]SAM_PROTO_GetFieldsCounters [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 13 00 00 [11:09:04]Write to MH i2c: E2 08 00 F3 89 80 13 00 00 00 00 00 00 F8 [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 62 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 62 00 F3 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 78 00 00 0E 04 04 00 74 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 C5 [11:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 78 00 00 0E 04 04 00 74 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 [11:09:04]wFMCommunicate OK [11:09:04]SAM_PROTO_GetFieldsCounters done [11:09:04]requested_item shift.num is exist - process it [11:09:04]requested_item shift.opened is exist - process it [11:09:04]req_shift_opened [11:09:04]FM_GetShiftState [11:09:04]SAM_PROTO_GetShiftState [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 13 01 00 [11:09:04]Write to MH i2c: E2 08 00 F4 89 80 13 01 00 00 00 00 00 FA [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 0E 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 0E 00 F4 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D4 [11:09:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:09:04]wFMCommunicate OK [11:09:04]SAM_PROTO_GetShiftState done [11:09:04]FM_GetShiftState done [11:09:04]req_shift_opened done [11:09:04]requested_item shift.open_date is exist - process it [11:09:04]req_shift_open_date [11:09:04]req_shift_open_date done [11:09:04]produce_requested_data done [11:09:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30866,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:09:04]process_action_free close_receipt [11:09:04]json_value_free [11:09:04]json_value_free done [11:09:04]process_json_proto returns [11:09:04]Send response to host [11:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30866,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:09:04]free response buf [11:09:04]execute_script done [11:09:04]execute_script returns [11:09:04]free content buf [11:09:04]Sock 7.Close socket [11:09:04]Sock 7.Thread stoped [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]accept exits with 9 [11:10:28]New connection [11:10:28]New thread 3067346276 created [11:10:28]Thread 3067489636 joined [11:10:28]Waiting for new connection... [11:10:28] Sock 9.Parse request [11:10:28]Sock 9.Check first char [11:10:28]Sock 9.First char is OK [11:10:28]request: POST /json_proto HTTP/1.0 [11:10:28]Method: POST [11:10:28]URL: /json_proto [11:10:28]Method is POST - this is cgi request [11:10:28]url: /json_proto [11:10:28]query_string will be loaded in cgi processing [11:10:28]execute_cgi json_proto POST (null) [11:10:28]execute_cgi path=json_proto method=POST [11:10:28]POST find Content-Length [11:10:28]Host: 172.17.51.3:8080 [11:10:28]Content-Length: 754 [11:10:28]Content-Type: application/json [11:10:28] [11:10:28]POST finish read [11:10:28]Found Content-Length = 754 [11:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018255", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:28]execute_script... [11:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018255", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:28]POST & json_proto [11:10:28]process_json_proto [11:10:28]json parsed OK: [11:10:28]protocol is kg_v1.0 [11:10:28]action value=close_receipt [11:10:28]process_action close_receipt [11:10:28]cmd_close_receipt [11:10:28]MH_GetDate [11:10:28]Write to MH i2c: F0 00 00 F5 89 6D [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: F0 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: F0 09 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: F0 09 00 F5 89 00 2E 88 17 67 04 C1 95 66 6A [11:10:28]GetLastDocTimeStamp 1729595351 [11:10:28]current date 1729595438 [11:10:28]FM_GetShiftState [11:10:28]SAM_PROTO_GetShiftState [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 13 01 00 [11:10:28]Write to MH i2c: E2 08 00 F6 89 80 13 01 00 00 00 00 00 FC [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 F6 89 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D6 [11:10:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:10:28]wFMCommunicate OK [11:10:28]SAM_PROTO_GetShiftState done [11:10:28]FM_GetShiftState done [11:10:28]opened in 1729557342 [11:10:28]opened+sec_in_day 1729643742 [11:10:28]quantity*price = 0 [11:10:28]sum+1 = 1 [11:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 100 22.10.2024 11:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30018255 ФМ: 0000000002094219 ФД: 30867 ФПД: 257825125523115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111038&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30867&fm=257825125523115&tin=02508201610067®Number=0000000000186857&sum=0 [11:10:29]StoreToDocumentArchive [11:10:29]shift 116 fd 30867 [11:10:29]save to /storage/0116/doc_00030867 [11:10:29]save last doc name /storage/0116/doc_00030867 to /storage/kkm_last_doc_name [11:10:29]save OK [11:10:29]Clear old archive folders... [11:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:29]tlvbuf is 01E1C900 [11:10:29]SAM_PROTO_ClearQueue [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 09 00 00 [11:10:29]Write to MH i2c: E2 08 00 03 8A 80 09 00 00 00 00 00 00 FF [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 03 8A 00 90 00 01 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]SAM_PROTO_ClearQueue done [11:10:29]KKMCreateOFDPacket [11:10:29]OFDProtocolAddRootSTLVToBuf [11:10:29]FM_MakeSignedData [11:10:29]FM_MakeSignedData [11:10:29]SAM_PROTO_SignData [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 01 02 [11:10:29]Write to MH i2c: E2 08 00 04 8A 80 0D 01 02 00 00 00 00 07 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 04 8A 00 90 00 02 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=255 [11:10:29]MH_SAM_APDU [11:10: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2E 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 78 00 00 35 04 06 00 EA [11:10:29]Write to MH i2c: E2 02 01 05 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2E 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 78 00 00 35 04 06 00 EA 00 00 4B [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 05 8A 00 90 00 03 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=10 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 02 02 05 7D 97 05 5E AB [11:10:29]Write to MH i2c: E2 0D 00 06 8A 80 0D 02 02 05 00 7D 97 05 5E AB 00 00 36 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 06 8A 00 90 00 04 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 03 02 [11:10:29]Write to MH i2c: E2 08 00 07 8A 80 0D 03 02 00 00 00 00 0C [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 0B 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 0B 00 07 8A 00 18 81 DD D8 44 4F 87 E5 90 00 5A [11:10:29]RAPDU: 18 81 DD D8 44 4F 87 E5 90 00 [11:10:29]wFMCommunicate OK [11:10:29]SAM_PROTO_SignData done [11:10:29]FM_MakeSignedData done [11:10:29]CreateOFDProtocolMessage [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 11 00 00 [11:10:29]Write to MH i2c: E2 08 00 08 8A 80 11 00 00 00 00 00 00 0C [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 17 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 17 00 08 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [11:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:10:29]wFMCommunicate OK [11:10:29]CreateOFDProtocolMessage done [11:10:29]OFDSenderStorePacket 30867 [11:10:29]StoreOFDPacket docnum=30867 [11:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 63 07 01 A7 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2E 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 78 00 00 35 04 06 00 EA 7D 97 05 5E AB 18 81 DD D8 44 4F 87 E5 [11:10:29]CheckFolder [11:10:29]dirname=/storage/ofd_packets [11:10:29]CheckFolder done [11:10:29]ProducePacketName [11:10:29]name=ofd_packets/00030867 [11:10:29]NVStorageSaveData ofd_packets/00030867 [11:10:29]File name is /storage/ofd_packets/00030867 [11:10:29]Write 301 bytes [11:10:29]NVStorageSaveData done [11:10:29]OFDSenderStorePacket done [11:10:29]KKMCreateOFDPacket done [11:10:29]NVStorageSaveData kkm_last_timestamp [11:10:29]File name is /storage/kkm_last_timestamp [11:10:29]Write 4 bytes [11:10:29]NVStorageSaveData done [11:10:29]ExternCall_PrintAddStr [11:10:29]wPrintStart [11:10:29]Write to MH i2c: 01 00 00 09 8A 93 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 07 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 07 00 09 8A 00 00 00 00 00 FF 0F A8 [11:10:29]RasterBufferAndPrint [11:10:29]line Счет N : (1)343287 [11:10:29]line ИНН: 02508201610067 [11:10:29]line Контрольно-Кассовый Чек [11:10:29]line ПРОДАЖА [11:10:29]line ТРК (МРК, ГНК) : 63 [11:10:29]line Товар: 2710124130 [11:10:29]line Аи-92-К-2 [11:10:29]line 10.000 * 0.00 [11:10:29]line = 0.00 [11:10:29]line НДС 12% НСП 1% [11:10:29]line > о реализуемом товаре [11:10:29]line ИТОГО: 0.00 [11:10:29]line НСП 1% : 0.00 [11:10:29]line НДС 12% : 0.00 [11:10:29]line Наличными: 0.00 [11:10:29]line Безнал.: 0.00 [11:10:29]line Место: АЗС № 78 "Партнер Нефть" [11:10:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:10:29]line СНО: Общий режим [11:10:29]line Чек 100 22.10.2024 11:10 [11:10:29]line Смена: 116 ФФД: 1.0 [11:10:29]line ЗНМ: 0300000137 [11:10:29]line РНМ: 0000000000186857 [11:10:29]line Версия ККМ: v1.0 [11:10:29]line Талоны: ТК ГПНА Online [11:10:29]line 30018255 [11:10:29]line ФМ: 0000000002094219 [11:10:29]line ФД: 30867 [11:10:29]line ФПД: 257825125523115 [11:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111038&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30867&fm=257825125523115&tin=02508201610067®Number=0000000000186857&sum=0 [11:10:30]OFD Sender: Processing packet 30867 [packets to send 10, broken 9] [11:10:30]ProducePacketName [11:10:30]name=ofd_packets/00030867 [11:10:30]OFD Sender: To server: pG, [11:10:30]CommunicateWithHost lk.salyk.kg:30040 [11:10:30]ConnectInit lk.salyk.kg [11:10:30]written 0, free lines is 4095 [11:10:30]Connected sock=10 [11:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 63 07 01 A7 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2E 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 78 00 00 35 04 06 00 EA 7D 97 05 5E AB 18 81 DD D8 44 4F 87 E5 [11:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 80 BC 47 00 EF 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 32 30 39 34 32 31 39 10 04 04 00 93 78 00 00 F4 03 04 00 AC 32 17 67 B6 04 01 00 00 F8 CC EE 2B 8A F1 29 07 [11:10:30]CommunicateWithHost err = 0 [11:10:30]CheckOFDResponse [11:10:30]1017 (14) - 77093643461234 [11:10:30]1041 (16) - 0000000002094219 [11:10:30]1040 (4) - 30867 [11:10:30]1012 (4) - 22.10.2024 05:05 [11:10:30]1206 (1) - 0 [11:10:30]OFD Sender: Remove packet 30867 [11:10:30]ProducePacketName [11:10:30]name=ofd_packets/00030867 [11:10:30]NVStorageDeleteData [11:10:30]Write to MH i2c: 01 00 00 33 8A BD [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 07 00 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 07 00 33 8A 00 00 00 00 00 FA 0C CA [11:10:30]RasterBufferAndPrint [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]written 0, free lines is 3328 [11:10:30]MH_Cut [11:10:30]Write to MH i2c: D1 01 00 3A 8A 01 96 [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 01 00 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 01 00 3A 8A 00 95 [11:10:30]Write to MH i2c: 01 00 00 3B 8A C5 [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:31]OFD Sender: No OFD packet to send [11:10:31]*** Cut start [11:10:31]*** Partial cut [11:10:31]*** CUTSNS_PIN = 1 [11:10:31]*** CUTSNS_PIN = 0 [11:10:31]*** Brake cut motor [11:10:31]Read from MH i2c: 01 [11:10:31]MH_I2C_Read... [11:10:31]*** Stop cut motor [11:10:32]*** Cut end [11:10:32]Read from MH i2c: 01 07 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: 01 07 00 3B 8A 00 00 00 00 00 FF 0F DA [11:10:32]process_action close_receipt done [11:10:32]requested_data is exist [11:10:32]produce_requested_data [11:10:32]requested_item fm.sn is exist - process it [11:10:32]wFMCommunicate request_size=4 [11:10:32]MH_SAM_APDU [11:10:32]CAPDU: 80 11 00 00 [11:10:32]Write to MH i2c: E2 08 00 3C 8A 80 11 00 00 00 00 00 00 40 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:32]Read from MH i2c: E2 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 17 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 17 00 3C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [11:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:10:32]wFMCommunicate OK [11:10:32]requested_item fd.num is exist - process it [11:10:32]SAM_PROTO_GetFieldsCounters [11:10:32]wFMCommunicate request_size=4 [11:10:32]MH_SAM_APDU [11:10:32]CAPDU: 80 13 00 00 [11:10:32]Write to MH i2c: E2 08 00 3D 8A 80 13 00 00 00 00 00 00 43 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:32]Read from MH i2c: E2 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 62 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 62 00 3D 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 78 00 00 0E 04 04 00 74 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 14 [11:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 78 00 00 0E 04 04 00 74 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 [11:10:32]wFMCommunicate OK [11:10:32]SAM_PROTO_GetFieldsCounters done [11:10:32]requested_item shift.num is exist - process it [11:10:32]requested_item shift.opened is exist - process it [11:10:32]req_shift_opened [11:10:32]FM_GetShiftState [11:10:32]SAM_PROTO_GetShiftState [11:10:32]wFMCommunicate request_size=4 [11:10:32]MH_SAM_APDU [11:10:32]CAPDU: 80 13 01 00 [11:10:32]Write to MH i2c: E2 08 00 3E 8A 80 13 01 00 00 00 00 00 45 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:32]Read from MH i2c: E2 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 0E 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: E2 0E 00 3E 8A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1F [11:10:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:10:32]wFMCommunicate OK [11:10:32]SAM_PROTO_GetShiftState done [11:10:32]FM_GetShiftState done [11:10:32]req_shift_opened done [11:10:32]requested_item shift.open_date is exist - process it [11:10:32]req_shift_open_date [11:10:32]req_shift_open_date done [11:10:32]produce_requested_data done [11:10:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30867,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:10:32]process_action_free close_receipt [11:10:32]json_value_free [11:10:32]json_value_free done [11:10:32]process_json_proto returns [11:10:32]Send response to host [11:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30867,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:10:32]free response buf [11:10:32]execute_script done [11:10:32]execute_script returns [11:10:32]free content buf [11:10:32]Sock 9.Close socket [11:10:32]Sock 9.Thread stoped [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:22]accept exits with 7 [11:11:22]New connection [11:11:22]New thread 3067489636 created [11:11:22]Thread 3067346276 joined [11:11:22]Waiting for new connection... [11:11:22] Sock 7.Parse request [11:11:22]Sock 7.Check first char [11:11:22]Sock 7.First char is OK [11:11:22]request: POST /json_proto HTTP/1.0 [11:11:22]Method: POST [11:11:22]URL: /json_proto [11:11:22]Method is POST - this is cgi request [11:11:22]url: /json_proto [11:11:22]query_string will be loaded in cgi processing [11:11:22]execute_cgi json_proto POST (null) [11:11:22]execute_cgi path=json_proto method=POST [11:11:22]POST find Content-Length [11:11:22]Host: 172.17.51.3:8080 [11:11:22]Content-Length: 840 [11:11:22]Content-Type: application/json [11:11:22] [11:11:22]POST finish read [11:11:22]Found Content-Length = 840 [11:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:22]execute_script... [11:11:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:22]POST & json_proto [11:11:22]process_json_proto [11:11:22]json parsed OK: [11:11:22]protocol is kg_v1.0 [11:11:22]action value=close_receipt [11:11:22]process_action close_receipt [11:11:22]cmd_close_receipt [11:11:22]MH_GetDate [11:11:22]Write to MH i2c: F0 00 00 3F 8A B8 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: F0 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: F0 09 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: F0 09 00 3F 8A 00 64 88 17 67 04 C1 95 66 EB [11:11:22]GetLastDocTimeStamp 1729595438 [11:11:22]current date 1729595492 [11:11:22]FM_GetShiftState [11:11:22]SAM_PROTO_GetShiftState [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 13 01 00 [11:11:22]Write to MH i2c: E2 08 00 40 8A 80 13 01 00 00 00 00 00 47 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0E 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0E 00 40 8A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 21 [11:11:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:11:22]wFMCommunicate OK [11:11:22]SAM_PROTO_GetShiftState done [11:11:22]FM_GetShiftState done [11:11:22]opened in 1729557342 [11:11:22]opened+sec_in_day 1729643742 [11:11:22]quantity*price = 30038 [11:11:22]sum+1 = 30039 [11:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 101 22.10.2024 11:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30868 ФПД: 120684772026306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30868&fm=120684772026306&tin=02508201610067®Number=0000000000186857&sum=30038 [11:11:23]StoreToDocumentArchive [11:11:23]shift 116 fd 30868 [11:11:23]save to /storage/0116/doc_00030868 [11:11:23]save last doc name /storage/0116/doc_00030868 to /storage/kkm_last_doc_name [11:11:23]save OK [11:11:23]Clear old archive folders... [11:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:23]tlvbuf is 01DFCC20 [11:11:23]SAM_PROTO_ClearQueue [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 09 00 00 [11:11:23]Write to MH i2c: E2 08 00 4D 8A 80 09 00 00 00 00 00 00 49 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 4D 8A 00 90 00 4B [11:11:23]RAPDU: 90 00 [11:11:23]wFMCommunicate OK [11:11:23]SAM_PROTO_ClearQueue done [11:11:23]KKMCreateOFDPacket [11:11:23]OFDProtocolAddRootSTLVToBuf [11:11:23]FM_MakeSignedData [11:11:23]FM_MakeSignedData [11:11:23]SAM_PROTO_SignData [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 0D 01 02 [11:11:23]Write to MH i2c: E2 08 00 4E 8A 80 0D 01 02 00 00 00 00 51 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 4E 8A 00 90 00 4C [11:11:23]RAPDU: 90 00 [11:11:23]wFMCommunicate OK [11:11:23]wFMCommunicate request_size=255 [11:11:23]MH_SAM_APDU [11:11: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 78 00 00 35 04 06 00 6D [11:11:23]Write to MH i2c: E2 02 01 4F 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 78 00 00 35 04 06 00 6D 00 00 DE [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 03 00 4F 8A 00 90 00 4D [11:11:23]RAPDU: 90 00 [11:11:23]wFMCommunicate OK [11:11:23]wFMCommunicate request_size=10 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 0D 02 02 05 C3 1C F7 67 C2 [11:11:23]Write to MH i2c: E2 0D 00 50 8A 80 0D 02 02 05 00 C3 1C F7 67 C2 00 00 5D [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 03 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 03 00 50 8A 00 90 00 4E [11:11:24]RAPDU: 90 00 [11:11:24]wFMCommunicate OK [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 0D 03 02 [11:11:24]Write to MH i2c: E2 08 00 51 8A 80 0D 03 02 00 00 00 00 56 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0B 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0B 00 51 8A 00 D7 D5 F8 26 C5 23 2C 9D 90 00 D2 [11:11:24]RAPDU: D7 D5 F8 26 C5 23 2C 9D 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_SignData done [11:11:24]FM_MakeSignedData done [11:11:24]CreateOFDProtocolMessage [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 11 00 00 [11:11:24]Write to MH i2c: E2 08 00 52 8A 80 11 00 00 00 00 00 00 56 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 17 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 17 00 52 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [11:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:11:24]wFMCommunicate OK [11:11:24]CreateOFDProtocolMessage done [11:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30868,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:11:26]free response buf [11:11:26]execute_script done [11:11:26]execute_script returns [11:11:26]free content buf [11:11:26]Sock 7.Close socket [11:11:26]Sock 7.Thread stoped [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:37]accept exits with 9 [11:11:37]New connection [11:11:37]New thread 3067346276 created [11:11:37]Thread 3067489636 joined [11:11:37]Waiting for new connection... [11:11:37] Sock 9.Parse request [11:11:37]Sock 9.Check first char [11:11:37]Sock 9.First char is OK [11:11:37]request: POST /json_proto HTTP/1.0 [11:11:37]Method: POST [11:11:37]URL: /json_proto [11:11:37]Method is POST - this is cgi request [11:11:37]url: /json_proto [11:11:37]query_string will be loaded in cgi processing [11:11:37]execute_cgi json_proto POST (null) [11:11:37]execute_cgi path=json_proto method=POST [11:11:37]POST find Content-Length [11:11:37]Host: 172.17.51.3:8080 [11:11:37]Content-Length: 677 [11:11:37]Content-Type: application/json [11:11:37] [11:11:37]POST finish read [11:11:37]Found Content-Length = 677 [11:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:37]execute_script... [11:11: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)343289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:37]POST & json_proto [11:11:37]process_json_proto [11:11:37]json parsed OK: [11:11:37]protocol is kg_v1.0 [11:11:37]action value=close_receipt [11:11:37]process_action close_receipt [11:11:37]cmd_close_receipt [11:11:37]MH_GetDate [11:11:37]Write to MH i2c: F0 00 00 89 8A 02 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: F0 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: F0 09 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: F0 09 00 89 8A 00 73 88 17 67 04 C1 95 66 44 [11:11:37]GetLastDocTimeStamp 1729595492 [11:11:37]current date 1729595507 [11:11:37]FM_GetShiftState [11:11:37]SAM_PROTO_GetShiftState [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 13 01 00 [11:11:37]Write to MH i2c: E2 08 00 8A 8A 80 13 01 00 00 00 00 00 91 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0E 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0E 00 8A 8A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6B [11:11:37]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:11:37]wFMCommunicate OK [11:11:37]SAM_PROTO_GetShiftState done [11:11:37]FM_GetShiftState done [11:11:37]opened in 1729557342 [11:11:37]opened+sec_in_day 1729643742 [11:11:37]quantity*price = 50041 [11:11:37]sum+1 = 50042 [11:11:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 102 22.10.2024 11:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30869 ФПД: 83652236923994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30869&fm=83652236923994&tin=02508201610067®Number=0000000000186857&sum=50000 [11:11:38]StoreToDocumentArchive [11:11:38]shift 116 fd 30869 [11:11:38]save to /storage/0116/doc_00030869 [11:11:38]save last doc name /storage/0116/doc_00030869 to /storage/kkm_last_doc_name [11:11:38]save OK [11:11:38]Clear old archive folders... [11:11:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:38]tlvbuf is 01E0CA10 [11:11:38]SAM_PROTO_ClearQueue [11:11:38]wFMCommunicate request_size=4 [11:11:38]MH_SAM_APDU [11:11:38]CAPDU: 80 09 00 00 [11:11:38]Write to MH i2c: E2 08 00 97 8A 80 09 00 00 00 00 00 00 93 [11:11:38]Write i2c OK [11:11:38]MH_I2C_Read... [11:11:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:38]Read from MH i2c: E2 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 03 00 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 03 00 97 8A 00 90 00 95 [11:11:38]RAPDU: 90 00 [11:11:38]wFMCommunicate OK [11:11:38]SAM_PROTO_ClearQueue done [11:11:38]KKMCreateOFDPacket [11:11:38]OFDProtocolAddRootSTLVToBuf [11:11:38]FM_MakeSignedData [11:11:38]FM_MakeSignedData [11:11:38]SAM_PROTO_SignData [11:11:38]wFMCommunicate request_size=4 [11:11:38]MH_SAM_APDU [11:11:38]CAPDU: 80 0D 01 02 [11:11:38]Write to MH i2c: E2 08 00 98 8A 80 0D 01 02 00 00 00 00 9B [11:11:38]Write i2c OK [11:11:38]MH_I2C_Read... [11:11:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:38]Read from MH i2c: E2 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 03 00 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 03 00 98 8A 00 90 00 96 [11:11:38]RAPDU: 90 00 [11:11:38]wFMCommunicate OK [11:11:38]wFMCommunicate request_size=255 [11:11:38]MH_SAM_APDU [11:11: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 78 00 00 35 04 06 00 4C [11:11:38]Write to MH i2c: E2 02 01 99 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 78 00 00 35 04 06 00 4C 00 00 D8 [11:11:38]Write i2c OK [11:11:38]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 99 8A 00 90 00 97 [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]wFMCommunicate request_size=10 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 02 02 05 14 CD DD D4 5A [11:11:39]Write to MH i2c: E2 0D 00 9A 8A 80 0D 02 02 05 00 14 CD DD D4 5A 00 00 94 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 9A 8A 00 90 00 98 [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 03 02 [11:11:39]Write to MH i2c: E2 08 00 9B 8A 80 0D 03 02 00 00 00 00 A0 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0B 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0B 00 9B 8A 00 54 CE DC BE 4C EC 03 DA 90 00 72 [11:11:39]RAPDU: 54 CE DC BE 4C EC 03 DA 90 00 [11:11:39]wFMCommunicate OK [11:11:39]SAM_PROTO_SignData done [11:11:39]FM_MakeSignedData done [11:11:39]CreateOFDProtocolMessage [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 11 00 00 [11:11:39]Write to MH i2c: E2 08 00 9C 8A 80 11 00 00 00 00 00 00 A0 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 9C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [11:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:11:39]wFMCommunicate OK [11:11:39]CreateOFDProtocolMessage done [11:11:39]OFDSenderStorePacket 30869 [11:11:39]StoreOFDPacket docnum=30869 [11:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7C 2C 07 01 36 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 78 00 00 35 04 06 00 4C 14 CD DD D4 5A 54 CE DC BE 4C EC 03 DA [11:11:39]CheckFolder [11:11:39]dirname=/storage/ofd_packets [11:11:39]CheckFolder done [11:11:39]ProducePacketName [11:11:39]name=ofd_packets/00030869 [11:11:39]NVStorageSaveData ofd_packets/00030869 [11:11:39]File name is /storage/ofd_packets/00030869 [11:11:39]Write 301 bytes [11:11:39]NVStorageSaveData done [11:11:39]OFDSenderStorePacket done [11:11:39]KKMCreateOFDPacket done [11:11:39]NVStorageSaveData kkm_last_timestamp [11:11:39]File name is /storage/kkm_last_timestamp [11:11:39]Write 4 bytes [11:11:39]NVStorageSaveData done [11:11:39]ExternCall_PrintAddStr [11:11:39]wPrintStart [11:11:39]Write to MH i2c: 01 00 00 9D 8A 27 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 9D 8A 00 00 00 00 00 FF 0F 3C [11:11:39]RasterBufferAndPrint [11:11:39]line Счет N : (1)343289 [11:11:39]line ИНН: 02508201610067 [11:11:39]line Контрольно-Кассовый Чек [11:11:39]line ПРОДАЖА [11:11:39]line ТРК (МРК, ГНК) : 43 [11:11:39]line Товар: 2710124130 [11:11:39]line Аи-92-К-2 [11:11:39]line 7.480 * 66.90 [11:11:39]line = 500.41 [11:11:39]line НДС 12% НСП 1% [11:11:39]line > о реализуемом товаре [11:11:39]line ОКРУГЛЕНИЕ: -0.41 [11:11:39]line ИТОГО: 500.00 [11:11:39]line Внесено: 500.00 [11:11:39]line СДАЧА: 0.00 [11:11:39]line НСП 1% : 4.43 [11:11:39]line НДС 12% : 53.14 [11:11:39]line Наличными: 500.00 [11:11:39]line Безнал.: 0.00 [11:11:39]line Место: АЗС № 78 "Партнер Нефть" [11:11:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:11:39]line СНО: Общий режим [11:11:39]line Чек 102 22.10.2024 11:11 [11:11:39]line Смена: 116 ФФД: 1.0 [11:11:39]line ЗНМ: 0300000137 [11:11:39]line РНМ: 0000000000186857 [11:11:39]line Версия ККМ: v1.0 [11:11:39]line ФМ: 0000000002094219 [11:11:39]line ФД: 30869 [11:11:39]line ФПД: 83652236923994 [11:11:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30869&fm=83652236923994&tin=02508201610067®Number=0000000000186857&sum=50000 [11:11:39]written 0, free lines is 4095 [11:11:39]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:11:39]ProducePacketName [11:11:39]name=ofd_packets/00030869 [11:11:39]OFD Sender: To server: pG, [11:11:39]CommunicateWithHost lk.salyk.kg:30040 [11:11:39]ConnectInit lk.salyk.kg [11:11:39]Write to MH i2c: 01 00 00 C8 8A 52 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 C8 8A 00 00 00 00 00 E0 0C 45 [11:11:39]RasterBufferAndPrint [11:11:39]line [11:11:39]line [11:11:39]line [11:11:39]line [11:11:39]line [11:11:39]written 0, free lines is 3305 [11:11:39]MH_Cut [11:11:39]Write to MH i2c: D1 01 00 CF 8A 01 2B [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: D1 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: D1 01 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: D1 01 00 CF 8A 00 2A [11:11:39]Write to MH i2c: 01 00 00 D0 8A 5A [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:40]*** Cut start [11:11:40]*** Partial cut [11:11:40]*** CUTSNS_PIN = 1 [11:11:40]*** CUTSNS_PIN = 0 [11:11:40]*** Brake cut motor [11:11:40]Read from MH i2c: 01 [11:11:40]MH_I2C_Read... [11:11:40]*** Stop cut motor [11:11:40]*** Cut end [11:11:40]Read from MH i2c: 01 07 00 [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: 01 07 00 D0 8A 00 00 00 00 00 FF 0F 6F [11:11:40]process_action close_receipt done [11:11:40]requested_data is exist [11:11:40]produce_requested_data [11:11:40]requested_item fm.sn is exist - process it [11:11:40]wFMCommunicate request_size=4 [11:11:40]MH_SAM_APDU [11:11:40]CAPDU: 80 11 00 00 [11:11:40]Write to MH i2c: E2 08 00 D1 8A 80 11 00 00 00 00 00 00 D5 [11:11:40]Write i2c OK [11:11:40]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 17 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 17 00 D1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [11:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:11:41]wFMCommunicate OK [11:11:41]requested_item fd.num is exist - process it [11:11:41]SAM_PROTO_GetFieldsCounters [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 13 00 00 [11:11:41]Write to MH i2c: E2 08 00 D2 8A 80 13 00 00 00 00 00 00 D8 [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 62 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 62 00 D2 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 78 00 00 0E 04 04 00 74 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 B1 [11:11:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 78 00 00 0E 04 04 00 74 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 [11:11:41]wFMCommunicate OK [11:11:41]SAM_PROTO_GetFieldsCounters done [11:11:41]requested_item shift.num is exist - process it [11:11:41]requested_item shift.opened is exist - process it [11:11:41]req_shift_opened [11:11:41]FM_GetShiftState [11:11:41]SAM_PROTO_GetShiftState [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 13 01 00 [11:11:41]Write to MH i2c: E2 08 00 D3 8A 80 13 01 00 00 00 00 00 DA [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 D3 8A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B4 [11:11:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:11:41]wFMCommunicate OK [11:11:41]SAM_PROTO_GetShiftState done [11:11:41]FM_GetShiftState done [11:11:41]req_shift_opened done [11:11:41]requested_item shift.open_date is exist - process it [11:11:41]req_shift_open_date [11:11:41]req_shift_open_date done [11:11:41]produce_requested_data done [11:11:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30869,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:11:41]process_action_free close_receipt [11:11:41]json_value_free [11:11:41]json_value_free done [11:11:41]process_json_proto returns [11:11:41]Send response to host [11:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30869,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:11:41]free response buf [11:11:41]execute_script done [11:11:41]execute_script returns [11:11:41]free content buf [11:11:41]Sock 9.Close socket [11:11:41]Sock 9.Thread stoped [11:11:42]recv_with_timeout no data received [11:11:44]ConnectInit Can't take IP for lk.salyk.kg [11:11:44]CommunicateWithHost connect error [11:11:44]CommunicateWithHost err = -1 [11:11:44]OFD Sender: Server communicate error [11:11:49]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:11:49]ProducePacketName [11:11:49]name=ofd_packets/00030869 [11:11:49]OFD Sender: To server: pG, [11:11:49]CommunicateWithHost lk.salyk.kg:30040 [11:11:49]ConnectInit lk.salyk.kg [11:11:54]ConnectInit Can't take IP for lk.salyk.kg [11:11:54]CommunicateWithHost connect error [11:11:54]CommunicateWithHost err = -1 [11:11:54]OFD Sender: Server communicate error [11:11:59]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:11:59]ProducePacketName [11:11:59]name=ofd_packets/00030869 [11:11:59]OFD Sender: To server: pG, [11:11:59]CommunicateWithHost lk.salyk.kg:30040 [11:11:59]ConnectInit lk.salyk.kg [11:12:04]ConnectInit Can't take IP for lk.salyk.kg [11:12:04]CommunicateWithHost connect error [11:12:04]CommunicateWithHost err = -1 [11:12:04]OFD Sender: Server communicate error [11:12:09]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:12:09]ProducePacketName [11:12:09]name=ofd_packets/00030869 [11:12:09]OFD Sender: To server: pG, [11:12:09]CommunicateWithHost lk.salyk.kg:30040 [11:12:09]ConnectInit lk.salyk.kg [11:12:14]ConnectInit Can't take IP for lk.salyk.kg [11:12:14]CommunicateWithHost connect error [11:12:14]CommunicateWithHost err = -1 [11:12:14]OFD Sender: Server communicate error [11:12:19]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:12:19]ProducePacketName [11:12:19]name=ofd_packets/00030869 [11:12:19]OFD Sender: To server: pG, [11:12:19]CommunicateWithHost lk.salyk.kg:30040 [11:12:19]ConnectInit lk.salyk.kg [11:12:24]ConnectInit Can't take IP for lk.salyk.kg [11:12:24]CommunicateWithHost connect error [11:12:24]CommunicateWithHost err = -1 [11:12:24]OFD Sender: Server communicate error [11:12:29]recv_with_timeout no data received [11:12:29]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00030869 [11:12:29]OFD Sender: To server: pG, [11:12:29]CommunicateWithHost lk.salyk.kg:30040 [11:12:29]ConnectInit lk.salyk.kg [11:12:34]ConnectInit Can't take IP for lk.salyk.kg [11:12:34]CommunicateWithHost connect error [11:12:34]CommunicateWithHost err = -1 [11:12:34]OFD Sender: Server communicate error [11:12:39]OFD Sender: Processing packet 30869 [packets to send 10, broken 9] [11:12:39]ProducePacketName [11:12:39]name=ofd_packets/00030869 [11:12:39]OFD Sender: To server: pG, [11:12:39]CommunicateWithHost lk.salyk.kg:30040 [11:12:39]ConnectInit lk.salyk.kg [11:12:39]Connected sock=7 [11:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7C 2C 07 01 36 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 78 00 00 35 04 06 00 4C 14 CD DD D4 5A 54 CE DC BE 4C EC 03 DA [11:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 84 5A 47 00 15 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 32 30 39 34 32 31 39 10 04 04 00 95 78 00 00 F4 03 04 00 2D 33 17 67 B6 04 01 00 00 D4 B4 07 6F 6F 55 74 58 [11:12:39]CommunicateWithHost err = 0 [11:12:39]CheckOFDResponse [11:12:39]1017 (14) - 77093643461234 [11:12:39]1041 (16) - 0000000002094219 [11:12:39]1040 (4) - 30869 [11:12:39]1012 (4) - 22.10.2024 05:07 [11:12:39]1206 (1) - 0 [11:12:39]OFD Sender: Remove packet 30869 [11:12:39]ProducePacketName [11:12:39]name=ofd_packets/00030869 [11:12:39]NVStorageDeleteData [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:05]accept exits with 10 [11:14:05]New connection [11:14:05]New thread 3067489636 created [11:14:05]Thread 3067346276 joined [11:14:05]Waiting for new connection... [11:14:05] Sock 10.Parse request [11:14:05]Sock 10.Check first char [11:14:05]Sock 10.First char is OK [11:14:05]request: POST /json_proto HTTP/1.0 [11:14:05]Method: POST [11:14:05]URL: /json_proto [11:14:05]Method is POST - this is cgi request [11:14:05]url: /json_proto [11:14:05]query_string will be loaded in cgi processing [11:14:05]execute_cgi json_proto POST (null) [11:14:05]execute_cgi path=json_proto method=POST [11:14:05]POST find Content-Length [11:14:05]Host: 172.17.51.3:8080 [11:14:05]Content-Length: 677 [11:14:05]Content-Type: application/json [11:14:05] [11:14:05]POST finish read [11:14:05]Found Content-Length = 677 [11:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:05]execute_script... [11:14:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:05]POST & json_proto [11:14:05]process_json_proto [11:14:05]json parsed OK: [11:14:05]protocol is kg_v1.0 [11:14:05]action value=close_receipt [11:14:05]process_action close_receipt [11:14:05]cmd_close_receipt [11:14:05]MH_GetDate [11:14:05]Write to MH i2c: F0 00 00 D4 8A 4D [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 09 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: F0 09 00 D4 8A 00 07 89 17 67 04 C1 95 66 24 [11:14:05]GetLastDocTimeStamp 1729595507 [11:14:05]current date 1729595655 [11:14:05]FM_GetShiftState [11:14:05]SAM_PROTO_GetShiftState [11:14:05]wFMCommunicate request_size=4 [11:14:05]MH_SAM_APDU [11:14:05]CAPDU: 80 13 01 00 [11:14:05]Write to MH i2c: E2 08 00 D5 8A 80 13 01 00 00 00 00 00 DC [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:05]Read from MH i2c: E2 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 0E 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 0E 00 D5 8A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B6 [11:14:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:14:05]wFMCommunicate OK [11:14:05]SAM_PROTO_GetShiftState done [11:14:05]FM_GetShiftState done [11:14:05]opened in 1729557342 [11:14:05]opened+sec_in_day 1729643742 [11:14:05]quantity*price = 60009 [11:14:05]sum+1 = 60010 [11:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 103 22.10.2024 11:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30870 ФПД: 134918888483312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111415&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30870&fm=134918888483312&tin=02508201610067®Number=0000000000186857&sum=60000 [11:14:06]StoreToDocumentArchive [11:14:06]shift 116 fd 30870 [11:14:06]save to /storage/0116/doc_00030870 [11:14:06]save last doc name /storage/0116/doc_00030870 to /storage/kkm_last_doc_name [11:14:06]save OK [11:14:06]Clear old archive folders... [11:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:06]tlvbuf is 01DE3470 [11:14:06]SAM_PROTO_ClearQueue [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 09 00 00 [11:14:06]Write to MH i2c: E2 08 00 E2 8A 80 09 00 00 00 00 00 00 DE [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 E2 8A 00 90 00 E0 [11:14:07]RAPDU: 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_ClearQueue done [11:14:07]KKMCreateOFDPacket [11:14:07]OFDProtocolAddRootSTLVToBuf [11:14:07]FM_MakeSignedData [11:14:07]FM_MakeSignedData [11:14:07]SAM_PROTO_SignData [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 0D 01 02 [11:14:07]Write to MH i2c: E2 08 00 E3 8A 80 0D 01 02 00 00 00 00 E6 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 E3 8A 00 90 00 E1 [11:14:07]RAPDU: 90 00 [11:14:07]wFMCommunicate OK [11:14:07]wFMCommunicate request_size=255 [11:14:07]MH_SAM_APDU [11:14: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 07 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 78 00 00 35 04 06 00 7A [11:14:07]Write to MH i2c: E2 02 01 E4 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 07 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 78 00 00 35 04 06 00 7A 00 00 C5 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 E4 8A 00 90 00 E2 [11:14:07]RAPDU: 90 00 [11:14:07]wFMCommunicate OK [11:14:07]wFMCommunicate request_size=10 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 0D 02 02 05 B5 40 6B E9 F0 [11:14:07]Write to MH i2c: E2 0D 00 E5 8A 80 0D 02 02 05 00 B5 40 6B E9 F0 00 00 2C [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 03 00 E5 8A 00 90 00 E3 [11:14:07]RAPDU: 90 00 [11:14:07]wFMCommunicate OK [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 0D 03 02 [11:14:07]Write to MH i2c: E2 08 00 E6 8A 80 0D 03 02 00 00 00 00 EB [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0B 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0B 00 E6 8A 00 3A A2 7C 00 2E D1 00 5D 90 00 A0 [11:14:07]RAPDU: 3A A2 7C 00 2E D1 00 5D 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_SignData done [11:14:07]FM_MakeSignedData done [11:14:07]CreateOFDProtocolMessage [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 11 00 00 [11:14:07]Write to MH i2c: E2 08 00 E7 8A 80 11 00 00 00 00 00 00 EB [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 E7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [11:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:14:07]wFMCommunicate OK [11:14:07]CreateOFDProtocolMessage done [11:14:07]OFDSenderStorePacket 30870 [11:14:07]StoreOFDPacket docnum=30870 [11:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 E6 07 01 B4 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 07 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 78 00 00 35 04 06 00 7A B5 40 6B E9 F0 3A A2 7C 00 2E D1 00 5D [11:14:07]CheckFolder [11:14:07]dirname=/storage/ofd_packets [11:14:07]CheckFolder done [11:14:07]ProducePacketName [11:14:07]name=ofd_packets/00030870 [11:14:07]NVStorageSaveData ofd_packets/00030870 [11:14:07]File name is /storage/ofd_packets/00030870 [11:14:07]Write 301 bytes [11:14:07]NVStorageSaveData done [11:14:07]OFDSenderStorePacket done [11:14:07]KKMCreateOFDPacket done [11:14:07]NVStorageSaveData kkm_last_timestamp [11:14:07]File name is /storage/kkm_last_timestamp [11:14:07]Write 4 bytes [11:14:07]NVStorageSaveData done [11:14:07]ExternCall_PrintAddStr [11:14:07]wPrintStart [11:14:07]Write to MH i2c: 01 00 00 E8 8A 72 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 07 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 07 00 E8 8A 00 00 00 00 00 FF 0F 87 [11:14:07]RasterBufferAndPrint [11:14:07]line Счет N : (1)343291 [11:14:07]line ИНН: 02508201610067 [11:14:07]line Контрольно-Кассовый Чек [11:14:07]line ПРОДАЖА [11:14:07]line ТРК (МРК, ГНК) : 33 [11:14:07]line Товар: 2710124130 [11:14:07]line Аи-92-К-2 [11:14:07]line 8.970 * 66.90 [11:14:07]line = 600.09 [11:14:07]line НДС 12% НСП 1% [11:14:07]line > о реализуемом товаре [11:14:07]line ОКРУГЛЕНИЕ: -0.09 [11:14:07]line ИТОГО: 600.00 [11:14:07]line Внесено: 600.00 [11:14:07]line СДАЧА: 0.00 [11:14:07]line НСП 1% : 5.31 [11:14:07]line НДС 12% : 63.73 [11:14:07]line Наличными: 600.00 [11:14:07]line Безнал.: 0.00 [11:14:07]line Место: АЗС № 78 "Партнер Нефть" [11:14:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:14:07]line СНО: Общий режим [11:14:07]line Чек 103 22.10.2024 11:14 [11:14:07]line Смена: 116 ФФД: 1.0 [11:14:07]line ЗНМ: 0300000137 [11:14:07]line РНМ: 0000000000186857 [11:14:07]line Версия ККМ: v1.0 [11:14:07]line ФМ: 0000000002094219 [11:14:07]line ФД: 30870 [11:14:07]line ФПД: 134918888483312 [11:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111415&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30870&fm=134918888483312&tin=02508201610067®Number=0000000000186857&sum=60000 [11:14:07]OFD Sender: Processing packet 30870 [packets to send 10, broken 9] [11:14:07]ProducePacketName [11:14:07]name=ofd_packets/00030870 [11:14:07]OFD Sender: To server: pG, [11:14:07]CommunicateWithHost lk.salyk.kg:30040 [11:14:07]ConnectInit lk.salyk.kg [11:14:07]written 0, free lines is 4095 [11:14:07]Connected sock=9 [11:14:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 E6 07 01 B4 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 07 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 78 00 00 35 04 06 00 7A B5 40 6B E9 F0 3A A2 7C 00 2E D1 00 5D [11:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B9 5B 47 00 C9 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 78 00 00 F4 03 04 00 85 33 17 67 B6 04 01 00 00 06 81 E5 CF 95 73 A7 AC [11:14:08]CommunicateWithHost err = 0 [11:14:08]CheckOFDResponse [11:14:08]1017 (14) - 77093643461234 [11:14:08]1041 (16) - 0000000002094219 [11:14:08]1040 (4) - 30870 [11:14:08]1012 (4) - 22.10.2024 05:09 [11:14:08]1206 (1) - 0 [11:14:08]OFD Sender: Remove packet 30870 [11:14:08]ProducePacketName [11:14:08]name=ofd_packets/00030870 [11:14:08]NVStorageDeleteData [11:14:08]Write to MH i2c: 01 00 00 13 8B 9E [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 07 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 07 00 13 8B 00 00 00 00 00 F3 0C A4 [11:14:08]RasterBufferAndPrint [11:14:08]line [11:14:08]line [11:14:08]line [11:14:08]line [11:14:08]line [11:14:08]written 0, free lines is 3324 [11:14:08]MH_Cut [11:14:08]Write to MH i2c: D1 01 00 1A 8B 01 77 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: D1 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: D1 01 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: D1 01 00 1A 8B 00 76 [11:14:08]Write to MH i2c: 01 00 00 1B 8B A6 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]OFD Sender: No OFD packet to send [11:14:08]*** Cut start [11:14:08]*** Partial cut [11:14:08]*** CUTSNS_PIN = 1 [11:14:09]*** CUTSNS_PIN = 0 [11:14:09]*** Brake cut motor [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]*** Stop cut motor [11:14:09]*** Cut end [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 1B 8B 00 00 00 00 00 FF 0F BB [11:14:09]process_action close_receipt done [11:14:09]requested_data is exist [11:14:09]produce_requested_data [11:14:09]requested_item fm.sn is exist - process it [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 11 00 00 [11:14:09]Write to MH i2c: E2 08 00 1C 8B 80 11 00 00 00 00 00 00 21 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 1C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [11:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:14:09]wFMCommunicate OK [11:14:09]requested_item fd.num is exist - process it [11:14:09]SAM_PROTO_GetFieldsCounters [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 13 00 00 [11:14:09]Write to MH i2c: E2 08 00 1D 8B 80 13 00 00 00 00 00 00 24 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 62 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 62 00 1D 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 78 00 00 0E 04 04 00 74 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 01 [11:14:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 78 00 00 0E 04 04 00 74 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 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_GetFieldsCounters done [11:14:09]requested_item shift.num is exist - process it [11:14:09]requested_item shift.opened is exist - process it [11:14:09]req_shift_opened [11:14:09]FM_GetShiftState [11:14:09]SAM_PROTO_GetShiftState [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 13 01 00 [11:14:09]Write to MH i2c: E2 08 00 1E 8B 80 13 01 00 00 00 00 00 26 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0E 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0E 00 1E 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 00 [11:14:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_GetShiftState done [11:14:09]FM_GetShiftState done [11:14:09]req_shift_opened done [11:14:09]requested_item shift.open_date is exist - process it [11:14:09]req_shift_open_date [11:14:09]req_shift_open_date done [11:14:09]produce_requested_data done [11:14:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30870,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:14:09]process_action_free close_receipt [11:14:09]json_value_free [11:14:09]json_value_free done [11:14:09]process_json_proto returns [11:14:09]Send response to host [11:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30870,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:14:09]free response buf [11:14:09]execute_script done [11:14:09]execute_script returns [11:14:09]free content buf [11:14:09]Sock 10.Close socket [11:14:09]Sock 10.Thread stoped [11:14:10]accept exits with 7 [11:14:10]New connection [11:14:10]New thread 3067346276 created [11:14:10]Thread 3067489636 joined [11:14:10]Waiting for new connection... [11:14:10] Sock 7.Parse request [11:14:10]Sock 7.Check first char [11:14:10]Sock 7.First char is OK [11:14:10]request: POST /json_proto HTTP/1.0 [11:14:10]Method: POST [11:14:10]URL: /json_proto [11:14:10]Method is POST - this is cgi request [11:14:10]url: /json_proto [11:14:10]query_string will be loaded in cgi processing [11:14:10]execute_cgi json_proto POST (null) [11:14:10]execute_cgi path=json_proto method=POST [11:14:10]POST find Content-Length [11:14:10]Host: 172.17.51.3:8080 [11:14:10]Content-Length: 682 [11:14:10]Content-Type: application/json [11:14:10] [11:14:10]POST finish read [11:14:10]Found Content-Length = 682 [11:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:10]execute_script... [11:14: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)343290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:10]POST & json_proto [11:14:10]process_json_proto [11:14:10]json parsed OK: [11:14:10]protocol is kg_v1.0 [11:14:10]action value=close_receipt [11:14:10]process_action close_receipt [11:14:10]cmd_close_receipt [11:14:10]MH_GetDate [11:14:10]Write to MH i2c: F0 00 00 1F 8B 99 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: F0 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: F0 09 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: F0 09 00 1F 8B 00 0C 89 17 67 04 C1 95 66 75 [11:14:10]GetLastDocTimeStamp 1729595655 [11:14:10]current date 1729595660 [11:14:10]FM_GetShiftState [11:14:10]SAM_PROTO_GetShiftState [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 13 01 00 [11:14:10]Write to MH i2c: E2 08 00 20 8B 80 13 01 00 00 00 00 00 28 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:10]Read from MH i2c: E2 0E 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 0E 00 20 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 02 [11:14:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:14:10]wFMCommunicate OK [11:14:10]SAM_PROTO_GetShiftState done [11:14:10]FM_GetShiftState done [11:14:10]opened in 1729557342 [11:14:10]opened+sec_in_day 1729643742 [11:14:10]quantity*price = 100015 [11:14:10]sum+1 = 100017 [11:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 104 22.10.2024 11:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30871 ФПД: 185822490188463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111420&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30871&fm=185822490188463&tin=02508201610067®Number=0000000000186857&sum=100000 [11:14:11]StoreToDocumentArchive [11:14:11]shift 116 fd 30871 [11:14:11]save to /storage/0116/doc_00030871 [11:14:11]save last doc name /storage/0116/doc_00030871 to /storage/kkm_last_doc_name [11:14:11]save OK [11:14:11]Clear old archive folders... [11:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:11]tlvbuf is 01DB26F0 [11:14:11]SAM_PROTO_ClearQueue [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 09 00 00 [11:14:11]Write to MH i2c: E2 08 00 2D 8B 80 09 00 00 00 00 00 00 2A [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 03 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 03 00 2D 8B 00 90 00 2C [11:14:11]RAPDU: 90 00 [11:14:11]wFMCommunicate OK [11:14:11]SAM_PROTO_ClearQueue done [11:14:11]KKMCreateOFDPacket [11:14:11]OFDProtocolAddRootSTLVToBuf [11:14:11]FM_MakeSignedData [11:14:11]FM_MakeSignedData [11:14:11]SAM_PROTO_SignData [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 0D 01 02 [11:14:11]Write to MH i2c: E2 08 00 2E 8B 80 0D 01 02 00 00 00 00 32 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 03 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 03 00 2E 8B 00 90 00 2D [11:14:11]RAPDU: 90 00 [11:14:11]wFMCommunicate OK [11:14:11]wFMCommunicate request_size=255 [11:14:11]MH_SAM_APDU [11:14: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 78 00 00 35 04 06 00 A9 [11:14:11]Write to MH i2c: E2 02 01 2F 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 78 00 00 35 04 06 00 A9 00 00 64 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 03 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 03 00 2F 8B 00 90 00 2E [11:14:12]RAPDU: 90 00 [11:14:12]wFMCommunicate OK [11:14:12]wFMCommunicate request_size=10 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 0D 02 02 05 01 2B 84 DA AF [11:14:12]Write to MH i2c: E2 0D 00 30 8B 80 0D 02 02 05 00 01 2B 84 DA AF 00 00 78 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 03 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 03 00 30 8B 00 90 00 2F [11:14:12]RAPDU: 90 00 [11:14:12]wFMCommunicate OK [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 0D 03 02 [11:14:12]Write to MH i2c: E2 08 00 31 8B 80 0D 03 02 00 00 00 00 37 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0B 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0B 00 31 8B 00 82 22 52 84 56 4B AC D4 90 00 D3 [11:14:12]RAPDU: 82 22 52 84 56 4B AC D4 90 00 [11:14:12]wFMCommunicate OK [11:14:12]SAM_PROTO_SignData done [11:14:12]FM_MakeSignedData done [11:14:12]CreateOFDProtocolMessage [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 11 00 00 [11:14:12]Write to MH i2c: E2 08 00 32 8B 80 11 00 00 00 00 00 00 37 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 32 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [11:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:14:12]wFMCommunicate OK [11:14:12]CreateOFDProtocolMessage done [11:14:12]OFDSenderStorePacket 30871 [11:14:12]StoreOFDPacket docnum=30871 [11:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA C6 07 01 DF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 78 00 00 35 04 06 00 A9 01 2B 84 DA AF 82 22 52 84 56 4B AC D4 [11:14:12]CheckFolder [11:14:12]dirname=/storage/ofd_packets [11:14:12]CheckFolder done [11:14:12]ProducePacketName [11:14:12]name=ofd_packets/00030871 [11:14:12]NVStorageSaveData ofd_packets/00030871 [11:14:12]File name is /storage/ofd_packets/00030871 [11:14:12]Write 301 bytes [11:14:12]NVStorageSaveData done [11:14:12]OFDSenderStorePacket done [11:14:12]KKMCreateOFDPacket done [11:14:12]NVStorageSaveData kkm_last_timestamp [11:14:12]File name is /storage/kkm_last_timestamp [11:14:12]Write 4 bytes [11:14:12]NVStorageSaveData done [11:14:12]ExternCall_PrintAddStr [11:14:12]wPrintStart [11:14:12]Write to MH i2c: 01 00 00 33 8B BE [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: 01 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: 01 07 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: 01 07 00 33 8B 00 00 00 00 00 FF 0F D3 [11:14:12]RasterBufferAndPrint [11:14:12]line Счет N : (1)343290 [11:14:12]line ИНН: 02508201610067 [11:14:12]line Контрольно-Кассовый Чек [11:14:12]line ПРОДАЖА [11:14:12]line ТРК (МРК, ГНК) : 63 [11:14:12]line Товар: 2710124130 [11:14:12]line Аи-92-К-2 [11:14:12]line 14.950 * 66.90 [11:14:12]line = 1000.16 [11:14:12]line НДС 12% НСП 1% [11:14:12]line > о реализуемом товаре [11:14:12]line ОКРУГЛЕНИЕ: -0.16 [11:14:12]line ИТОГО: 1000.00 [11:14:12]line Внесено: 1000.00 [11:14:12]line СДАЧА: 0.00 [11:14:12]line НСП 1% : 8.85 [11:14:12]line НДС 12% : 106.21 [11:14:12]line Наличными: 1000.00 [11:14:12]line Безнал.: 0.00 [11:14:12]line Место: АЗС № 78 "Партнер Нефть" [11:14:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:14:12]line СНО: Общий режим [11:14:12]line Чек 104 22.10.2024 11:14 [11:14:12]line Смена: 116 ФФД: 1.0 [11:14:12]line ЗНМ: 0300000137 [11:14:12]line РНМ: 0000000000186857 [11:14:12]line Версия ККМ: v1.0 [11:14:12]line ФМ: 0000000002094219 [11:14:12]line ФД: 30871 [11:14:12]line ФПД: 185822490188463 [11:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111420&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30871&fm=185822490188463&tin=02508201610067®Number=0000000000186857&sum=100000 [11:14:12]written 0, free lines is 4095 [11:14:12]OFD Sender: Processing packet 30871 [packets to send 10, broken 9] [11:14:12]ProducePacketName [11:14:12]name=ofd_packets/00030871 [11:14:12]OFD Sender: To server: pG, [11:14:12]CommunicateWithHost lk.salyk.kg:30040 [11:14:12]ConnectInit lk.salyk.kg [11:14:12]Connected sock=10 [11:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA C6 07 01 DF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 78 00 00 35 04 06 00 A9 01 2B 84 DA AF 82 22 52 84 56 4B AC D4 [11:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F2 B6 47 00 F4 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 78 00 00 F4 03 04 00 8A 33 17 67 B6 04 01 00 00 A4 74 9A 4B FD ED E2 7F [11:14:13]CommunicateWithHost err = 0 [11:14:13]CheckOFDResponse [11:14:13]1017 (14) - 77093643461234 [11:14:13]1041 (16) - 0000000002094219 [11:14:13]1040 (4) - 30871 [11:14:13]1012 (4) - 22.10.2024 05:09 [11:14:13]1206 (1) - 0 [11:14:13]OFD Sender: Remove packet 30871 [11:14:13]ProducePacketName [11:14:13]name=ofd_packets/00030871 [11:14:13]NVStorageDeleteData [11:14:13]Write to MH i2c: 01 00 00 5E 8B E9 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: 01 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: 01 07 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: 01 07 00 5E 8B 00 00 00 00 00 04 0D 01 [11:14:13]RasterBufferAndPrint [11:14:13]line [11:14:13]line [11:14:13]line [11:14:13]line [11:14:13]line [11:14:13]written 0, free lines is 3347 [11:14:13]MH_Cut [11:14:13]Write to MH i2c: D1 01 00 65 8B 01 C2 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: D1 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: D1 01 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: D1 01 00 65 8B 00 C1 [11:14:13]Write to MH i2c: 01 00 00 66 8B F1 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]OFD Sender: No OFD packet to send [11:14:13]*** Cut start [11:14:13]*** Partial cut [11:14:13]*** CUTSNS_PIN = 1 [11:14:13]*** CUTSNS_PIN = 0 [11:14:13]*** Brake cut motor [11:14:14]Read from MH i2c: 01 [11:14:14]MH_I2C_Read... [11:14:14]*** Stop cut motor [11:14:14]*** Cut end [11:14:14]Read from MH i2c: 01 07 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: 01 07 00 66 8B 00 00 00 00 00 FF 0F 06 [11:14:14]process_action close_receipt done [11:14:14]requested_data is exist [11:14:14]produce_requested_data [11:14:14]requested_item fm.sn is exist - process it [11:14:14]wFMCommunicate request_size=4 [11:14:14]MH_SAM_APDU [11:14:14]CAPDU: 80 11 00 00 [11:14:14]Write to MH i2c: E2 08 00 67 8B 80 11 00 00 00 00 00 00 6C [11:14:14]Write i2c OK [11:14:14]MH_I2C_Read... [11:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:14]Read from MH i2c: E2 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 17 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 17 00 67 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [11:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:14:14]wFMCommunicate OK [11:14:14]requested_item fd.num is exist - process it [11:14:14]SAM_PROTO_GetFieldsCounters [11:14:14]wFMCommunicate request_size=4 [11:14:14]MH_SAM_APDU [11:14:14]CAPDU: 80 13 00 00 [11:14:14]Write to MH i2c: E2 08 00 68 8B 80 13 00 00 00 00 00 00 6F [11:14:14]Write i2c OK [11:14:14]MH_I2C_Read... [11:14:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:14]Read from MH i2c: E2 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 62 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 62 00 68 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 78 00 00 0E 04 04 00 74 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 50 [11:14:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 78 00 00 0E 04 04 00 74 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 [11:14:14]wFMCommunicate OK [11:14:14]SAM_PROTO_GetFieldsCounters done [11:14:14]requested_item shift.num is exist - process it [11:14:14]requested_item shift.opened is exist - process it [11:14:14]req_shift_opened [11:14:14]FM_GetShiftState [11:14:14]SAM_PROTO_GetShiftState [11:14:14]wFMCommunicate request_size=4 [11:14:14]MH_SAM_APDU [11:14:14]CAPDU: 80 13 01 00 [11:14:14]Write to MH i2c: E2 08 00 69 8B 80 13 01 00 00 00 00 00 71 [11:14:14]Write i2c OK [11:14:14]MH_I2C_Read... [11:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:14]Read from MH i2c: E2 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 0E 00 [11:14:14]MH_I2C_Read... [11:14:14]Read from MH i2c: E2 0E 00 69 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4B [11:14:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:14:14]wFMCommunicate OK [11:14:14]SAM_PROTO_GetShiftState done [11:14:14]FM_GetShiftState done [11:14:14]req_shift_opened done [11:14:14]requested_item shift.open_date is exist - process it [11:14:14]req_shift_open_date [11:14:14]req_shift_open_date done [11:14:14]produce_requested_data done [11:14:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30871,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:14:14]process_action_free close_receipt [11:14:14]json_value_free [11:14:14]json_value_free done [11:14:14]process_json_proto returns [11:14:14]Send response to host [11:14:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30871,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:14:14]free response buf [11:14:14]execute_script done [11:14:14]execute_script returns [11:14:14]free content buf [11:14:14]Sock 7.Close socket [11:14:14]Sock 7.Thread stoped [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:16]accept exits with 9 [11:16:16]New connection [11:16:16]New thread 3067489636 created [11:16:16]Thread 3067346276 joined [11:16:16]Waiting for new connection... [11:16:16] Sock 9.Parse request [11:16:16]Sock 9.Check first char [11:16:16]Sock 9.First char is OK [11:16:16]request: POST /json_proto HTTP/1.0 [11:16:16]Method: POST [11:16:16]URL: /json_proto [11:16:16]Method is POST - this is cgi request [11:16:16]url: /json_proto [11:16:16]query_string will be loaded in cgi processing [11:16:16]execute_cgi json_proto POST (null) [11:16:16]execute_cgi path=json_proto method=POST [11:16:16]POST find Content-Length [11:16:16]Host: 172.17.51.3:8080 [11:16:16]Content-Length: 677 [11:16:16]Content-Type: application/json [11:16:16] [11:16:16]POST finish read [11:16:16]Found Content-Length = 677 [11:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:16]execute_script... [11:16: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)343292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:16]POST & json_proto [11:16:16]process_json_proto [11:16:16]json parsed OK: [11:16:16]protocol is kg_v1.0 [11:16:16]action value=close_receipt [11:16:16]process_action close_receipt [11:16:16]cmd_close_receipt [11:16:16]MH_GetDate [11:16:16]Write to MH i2c: F0 00 00 6A 8B E4 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 09 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 09 00 6A 8B 00 8A 89 17 67 04 C1 95 66 3E [11:16:16]GetLastDocTimeStamp 1729595660 [11:16:16]current date 1729595786 [11:16:16]FM_GetShiftState [11:16:16]SAM_PROTO_GetShiftState [11:16:16]wFMCommunicate request_size=4 [11:16:16]MH_SAM_APDU [11:16:16]CAPDU: 80 13 01 00 [11:16:16]Write to MH i2c: E2 08 00 6B 8B 80 13 01 00 00 00 00 00 73 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:16]Read from MH i2c: E2 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0E 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0E 00 6B 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4D [11:16:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:16:16]wFMCommunicate OK [11:16:16]SAM_PROTO_GetShiftState done [11:16:16]FM_GetShiftState done [11:16:16]opened in 1729557342 [11:16:16]opened+sec_in_day 1729643742 [11:16:16]quantity*price = 30038 [11:16:16]sum+1 = 30039 [11:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 105 22.10.2024 11:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30872 ФПД: 275054563768185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30872&fm=275054563768185&tin=02508201610067®Number=0000000000186857&sum=30000 [11:16:17]StoreToDocumentArchive [11:16:17]shift 116 fd 30872 [11:16:17]save to /storage/0116/doc_00030872 [11:16:17]save last doc name /storage/0116/doc_00030872 to /storage/kkm_last_doc_name [11:16:17]save OK [11:16:17]Clear old archive folders... [11:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:17]tlvbuf is 01DF6A10 [11:16:17]SAM_PROTO_ClearQueue [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 09 00 00 [11:16:17]Write to MH i2c: E2 08 00 78 8B 80 09 00 00 00 00 00 00 75 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 78 8B 00 90 00 77 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]SAM_PROTO_ClearQueue done [11:16:17]KKMCreateOFDPacket [11:16:17]OFDProtocolAddRootSTLVToBuf [11:16:17]FM_MakeSignedData [11:16:17]FM_MakeSignedData [11:16:17]SAM_PROTO_SignData [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 01 02 [11:16:17]Write to MH i2c: E2 08 00 79 8B 80 0D 01 02 00 00 00 00 7D [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 79 8B 00 90 00 78 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=255 [11:16:17]MH_SAM_APDU [11:16: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8A 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 78 00 00 35 04 06 00 FA [11:16:17]Write to MH i2c: E2 02 01 7A 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8A 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 78 00 00 35 04 06 00 FA 00 00 7A [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 7A 8B 00 90 00 79 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=10 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 02 02 05 29 21 91 37 79 [11:16:17]Write to MH i2c: E2 0D 00 7B 8B 80 0D 02 02 05 00 29 21 91 37 79 00 00 15 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 7B 8B 00 90 00 7A [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 03 02 [11:16:17]Write to MH i2c: E2 08 00 7C 8B 80 0D 03 02 00 00 00 00 82 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 0B 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 0B 00 7C 8B 00 E5 BA 72 87 E7 61 10 40 90 00 B3 [11:16:17]RAPDU: E5 BA 72 87 E7 61 10 40 90 00 [11:16:17]wFMCommunicate OK [11:16:17]SAM_PROTO_SignData done [11:16:17]FM_MakeSignedData done [11:16:17]CreateOFDProtocolMessage [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 11 00 00 [11:16:17]Write to MH i2c: E2 08 00 7D 8B 80 11 00 00 00 00 00 00 82 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 17 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 17 00 7D 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [11:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:17]wFMCommunicate OK [11:16:17]CreateOFDProtocolMessage done [11:16:17]OFDSenderStorePacket 30872 [11:16:17]StoreOFDPacket docnum=30872 [11:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD 83 07 01 B4 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8A 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 78 00 00 35 04 06 00 FA 29 21 91 37 79 E5 BA 72 87 E7 61 10 40 [11:16:17]CheckFolder [11:16:17]dirname=/storage/ofd_packets [11:16:17]CheckFolder done [11:16:17]ProducePacketName [11:16:17]name=ofd_packets/00030872 [11:16:17]NVStorageSaveData ofd_packets/00030872 [11:16:17]File name is /storage/ofd_packets/00030872 [11:16:17]Write 301 bytes [11:16:17]NVStorageSaveData done [11:16:17]OFDSenderStorePacket done [11:16:17]KKMCreateOFDPacket done [11:16:17]NVStorageSaveData kkm_last_timestamp [11:16:17]File name is /storage/kkm_last_timestamp [11:16:17]Write 4 bytes [11:16:17]NVStorageSaveData done [11:16:17]ExternCall_PrintAddStr [11:16:17]wPrintStart [11:16:17]Write to MH i2c: 01 00 00 7E 8B 09 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 07 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 07 00 7E 8B 00 00 00 00 00 FF 0F 1E [11:16:17]RasterBufferAndPrint [11:16:17]line Счет N : (1)343292 [11:16:17]line ИНН: 02508201610067 [11:16:17]line Контрольно-Кассовый Чек [11:16:17]line ПРОДАЖА [11:16:17]line ТРК (МРК, ГНК) : 63 [11:16:17]line Товар: 2710124130 [11:16:17]line Аи-92-К-2 [11:16:17]line 4.490 * 66.90 [11:16:17]line = 300.38 [11:16:17]line НДС 12% НСП 1% [11:16:17]line > о реализуемом товаре [11:16:17]line ОКРУГЛЕНИЕ: -0.38 [11:16:17]line ИТОГО: 300.00 [11:16:17]line Внесено: 300.00 [11:16:17]line СДАЧА: 0.00 [11:16:17]line НСП 1% : 2.66 [11:16:17]line НДС 12% : 31.90 [11:16:17]line Наличными: 300.00 [11:16:17]line Безнал.: 0.00 [11:16:17]line Место: АЗС № 78 "Партнер Нефть" [11:16:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:16:17]line СНО: Общий режим [11:16:17]line Чек 105 22.10.2024 11:16 [11:16:17]line Смена: 116 ФФД: 1.0 [11:16:17]line ЗНМ: 0300000137 [11:16:17]line РНМ: 0000000000186857 [11:16:17]line Версия ККМ: v1.0 [11:16:17]line ФМ: 0000000002094219 [11:16:17]line ФД: 30872 [11:16:17]line ФПД: 275054563768185 [11:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30872&fm=275054563768185&tin=02508201610067®Number=0000000000186857&sum=30000 [11:16:18]written 0, free lines is 4095 [11:16:18]OFD Sender: Processing packet 30872 [packets to send 10, broken 9] [11:16:18]ProducePacketName [11:16:18]name=ofd_packets/00030872 [11:16:18]OFD Sender: To server: pG, [11:16:18]CommunicateWithHost lk.salyk.kg:30040 [11:16:18]ConnectInit lk.salyk.kg [11:16:18]Connected sock=7 [11:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD 83 07 01 B4 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 8A 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 78 00 00 35 04 06 00 FA 29 21 91 37 79 E5 BA 72 87 E7 61 10 40 [11:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 12 63 47 00 E8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 78 00 00 F4 03 04 00 08 34 17 67 B6 04 01 00 00 6B 4A C5 C3 93 4D A1 69 [11:16:18]CommunicateWithHost err = 0 [11:16:18]CheckOFDResponse [11:16:18]1017 (14) - 77093643461234 [11:16:18]1041 (16) - 0000000002094219 [11:16:18]1040 (4) - 30872 [11:16:18]1012 (4) - 22.10.2024 05:11 [11:16:18]1206 (1) - 0 [11:16:18]OFD Sender: Remove packet 30872 [11:16:18]ProducePacketName [11:16:18]name=ofd_packets/00030872 [11:16:18]NVStorageDeleteData [11:16:18]Write to MH i2c: 01 00 00 A9 8B 34 [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 A9 8B 00 00 00 00 00 EF 0C 36 [11:16:18]RasterBufferAndPrint [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]written 0, free lines is 3320 [11:16:18]MH_Cut [11:16:18]Write to MH i2c: D1 01 00 B0 8B 01 0D [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 01 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 01 00 B0 8B 00 0C [11:16:18]Write to MH i2c: 01 00 00 B1 8B 3C [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:19]OFD Sender: No OFD packet to send [11:16:19]*** Cut start [11:16:19]*** Partial cut [11:16:19]*** CUTSNS_PIN = 1 [11:16:19]*** CUTSNS_PIN = 0 [11:16:19]*** Brake cut motor [11:16:19]Read from MH i2c: 01 [11:16:19]MH_I2C_Read... [11:16:19]*** Stop cut motor [11:16:19]*** Cut end [11:16:19]Read from MH i2c: 01 07 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: 01 07 00 B1 8B 00 00 00 00 00 FF 0F 51 [11:16:19]process_action close_receipt done [11:16:19]requested_data is exist [11:16:19]produce_requested_data [11:16:19]requested_item fm.sn is exist - process it [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 11 00 00 [11:16:19]Write to MH i2c: E2 08 00 B2 8B 80 11 00 00 00 00 00 00 B7 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 B2 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [11:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:20]wFMCommunicate OK [11:16:20]requested_item fd.num is exist - process it [11:16:20]SAM_PROTO_GetFieldsCounters [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 13 00 00 [11:16:20]Write to MH i2c: E2 08 00 B3 8B 80 13 00 00 00 00 00 00 BA [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 62 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 62 00 B3 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 78 00 00 0E 04 04 00 74 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 9F [11:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 78 00 00 0E 04 04 00 74 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 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_GetFieldsCounters done [11:16:20]requested_item shift.num is exist - process it [11:16:20]requested_item shift.opened is exist - process it [11:16:20]req_shift_opened [11:16:20]FM_GetShiftState [11:16:20]SAM_PROTO_GetShiftState [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 13 01 00 [11:16:20]Write to MH i2c: E2 08 00 B4 8B 80 13 01 00 00 00 00 00 BC [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 B4 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 96 [11:16:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_GetShiftState done [11:16:20]FM_GetShiftState done [11:16:20]req_shift_opened done [11:16:20]requested_item shift.open_date is exist - process it [11:16:20]req_shift_open_date [11:16:20]req_shift_open_date done [11:16:20]produce_requested_data done [11:16:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30872,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:16:20]process_action_free close_receipt [11:16:20]json_value_free [11:16:20]json_value_free done [11:16:20]process_json_proto returns [11:16:20]Send response to host [11:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30872,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:16:20]free response buf [11:16:20]execute_script done [11:16:20]execute_script returns [11:16:20]free content buf [11:16:20]Sock 9.Close socket [11:16:20]Sock 9.Thread stoped [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:46]accept exits with 10 [11:16:46]New connection [11:16:46]New thread 3067346276 created [11:16:46]Thread 3067489636 joined [11:16:46]Waiting for new connection... [11:16:46] Sock 10.Parse request [11:16:46]Sock 10.Check first char [11:16:46]Sock 10.First char is OK [11:16:46]request: POST /json_proto HTTP/1.0 [11:16:46]Method: POST [11:16:46]URL: /json_proto [11:16:46]Method is POST - this is cgi request [11:16:46]url: /json_proto [11:16:46]query_string will be loaded in cgi processing [11:16:46]execute_cgi json_proto POST (null) [11:16:46]execute_cgi path=json_proto method=POST [11:16:46]POST find Content-Length [11:16:46]Host: 172.17.51.3:8080 [11:16:46]Content-Length: 682 [11:16:46]Content-Type: application/json [11:16:46] [11:16:46]POST finish read [11:16:46]Found Content-Length = 682 [11:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]execute_script... [11:16: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)343293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]POST & json_proto [11:16:46]process_json_proto [11:16:46]json parsed OK: [11:16:46]protocol is kg_v1.0 [11:16:46]action value=close_receipt [11:16:46]process_action close_receipt [11:16:46]cmd_close_receipt [11:16:46]MH_GetDate [11:16:46]Write to MH i2c: F0 00 00 B5 8B 2F [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 B5 8B 00 A8 89 17 67 04 C1 95 66 A7 [11:16:46]GetLastDocTimeStamp 1729595786 [11:16:46]current date 1729595816 [11:16:46]FM_GetShiftState [11:16:46]SAM_PROTO_GetShiftState [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 13 01 00 [11:16:46]Write to MH i2c: E2 08 00 B6 8B 80 13 01 00 00 00 00 00 BE [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 B6 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 98 [11:16:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_GetShiftState done [11:16:46]FM_GetShiftState done [11:16:46]opened in 1729557342 [11:16:46]opened+sec_in_day 1729643742 [11:16:46]quantity*price = 100021 [11:16:46]sum+1 = 100023 [11:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 106 22.10.2024 11:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30873 ФПД: 273581188054139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30873&fm=273581188054139&tin=02508201610067®Number=0000000000186857&sum=100000 [11:16:47]StoreToDocumentArchive [11:16:47]shift 116 fd 30873 [11:16:47]save to /storage/0116/doc_00030873 [11:16:47]save last doc name /storage/0116/doc_00030873 to /storage/kkm_last_doc_name [11:16:47]save OK [11:16:47]Clear old archive folders... [11:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:47]tlvbuf is 0208E020 [11:16:47]SAM_PROTO_ClearQueue [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 09 00 00 [11:16:47]Write to MH i2c: E2 08 00 C3 8B 80 09 00 00 00 00 00 00 C0 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 C3 8B 00 90 00 C2 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_ClearQueue done [11:16:47]KKMCreateOFDPacket [11:16:47]OFDProtocolAddRootSTLVToBuf [11:16:47]FM_MakeSignedData [11:16:47]FM_MakeSignedData [11:16:47]SAM_PROTO_SignData [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 01 02 [11:16:47]Write to MH i2c: E2 08 00 C4 8B 80 0D 01 02 00 00 00 00 C8 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 C4 8B 00 90 00 C3 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=255 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A8 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 78 00 00 35 04 06 00 F8 [11:16:47]Write to MH i2c: E2 02 01 C5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A8 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 78 00 00 35 04 06 00 F8 00 00 0D [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 C5 8B 00 90 00 C4 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=10 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 05 D2 15 87 FC 7B [11:16:47]Write to MH i2c: E2 0D 00 C6 8B 80 0D 02 02 05 00 D2 15 87 FC 7B 00 00 BA [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 C6 8B 00 90 00 C5 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 03 02 [11:16:47]Write to MH i2c: E2 08 00 C7 8B 80 0D 03 02 00 00 00 00 CD [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 C7 8B 00 5C E2 65 68 B2 CF EC 48 90 00 8E [11:16:47]RAPDU: 5C E2 65 68 B2 CF EC 48 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_SignData done [11:16:47]FM_MakeSignedData done [11:16:47]CreateOFDProtocolMessage [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 11 00 00 [11:16:47]Write to MH i2c: E2 08 00 C8 8B 80 11 00 00 00 00 00 00 CD [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 C8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [11:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:47]wFMCommunicate OK [11:16:47]CreateOFDProtocolMessage done [11:16:47]OFDSenderStorePacket 30873 [11:16:47]StoreOFDPacket docnum=30873 [11:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 DE 07 01 45 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A8 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 78 00 00 35 04 06 00 F8 D2 15 87 FC 7B 5C E2 65 68 B2 CF EC 48 [11:16:47]CheckFolder [11:16:47]dirname=/storage/ofd_packets [11:16:47]CheckFolder done [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00030873 [11:16:47]NVStorageSaveData ofd_packets/00030873 [11:16:47]File name is /storage/ofd_packets/00030873 [11:16:47]Write 301 bytes [11:16:47]NVStorageSaveData done [11:16:47]OFDSenderStorePacket done [11:16:47]KKMCreateOFDPacket done [11:16:47]NVStorageSaveData kkm_last_timestamp [11:16:47]File name is /storage/kkm_last_timestamp [11:16:47]Write 4 bytes [11:16:47]NVStorageSaveData done [11:16:47]ExternCall_PrintAddStr [11:16:47]wPrintStart [11:16:47]Write to MH i2c: 01 00 00 C9 8B 54 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 C9 8B 00 00 00 00 00 FF 0F 69 [11:16:47]RasterBufferAndPrint [11:16:47]line Счет N : (1)343293 [11:16:47]line ИНН: 02508201610067 [11:16:47]line Контрольно-Кассовый Чек [11:16:47]line ПРОДАЖА [11:16:47]line ТРК (МРК, ГНК) : 42 [11:16:47]line Товар: 2710124500 [11:16:47]line Аи-95-К-3 [11:16:47]line 13.480 * 74.20 [11:16:47]line = 1000.22 [11:16:47]line НДС 12% НСП 1% [11:16:47]line > о реализуемом товаре [11:16:47]line ОКРУГЛЕНИЕ: -0.22 [11:16:47]line ИТОГО: 1000.00 [11:16:47]line Внесено: 1000.00 [11:16:47]line СДАЧА: 0.00 [11:16:47]line НСП 1% : 8.85 [11:16:47]line НДС 12% : 106.22 [11:16:47]line Наличными: 1000.00 [11:16:47]line Безнал.: 0.00 [11:16:47]line Место: АЗС № 78 "Партнер Нефть" [11:16:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:16:47]line СНО: Общий режим [11:16:47]line Чек 106 22.10.2024 11:16 [11:16:47]line Смена: 116 ФФД: 1.0 [11:16:47]line ЗНМ: 0300000137 [11:16:47]line РНМ: 0000000000186857 [11:16:47]line Версия ККМ: v1.0 [11:16:47]line ФМ: 0000000002094219 [11:16:47]line ФД: 30873 [11:16:47]line ФПД: 273581188054139 [11:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30873&fm=273581188054139&tin=02508201610067®Number=0000000000186857&sum=100000 [11:16:47]written 0, free lines is 4095 [11:16:47]OFD Sender: Processing packet 30873 [packets to send 10, broken 9] [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00030873 [11:16:47]OFD Sender: To server: pG, [11:16:47]CommunicateWithHost lk.salyk.kg:30040 [11:16:47]ConnectInit lk.salyk.kg [11:16:48]Connected sock=11 [11:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 DE 07 01 45 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A8 89 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 78 00 00 35 04 06 00 F8 D2 15 87 FC 7B 5C E2 65 68 B2 CF EC 48 [11:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2F 62 47 00 17 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 78 00 00 F4 03 04 00 25 34 17 67 B6 04 01 00 00 40 4A AE 13 7D 00 20 06 [11:16:48]CommunicateWithHost err = 0 [11:16:48]CheckOFDResponse [11:16:48]1017 (14) - 77093643461234 [11:16:48]1041 (16) - 0000000002094219 [11:16:48]1040 (4) - 30873 [11:16:48]1012 (4) - 22.10.2024 05:12 [11:16:48]1206 (1) - 0 [11:16:48]OFD Sender: Remove packet 30873 [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00030873 [11:16:48]NVStorageDeleteData [11:16:48]Write to MH i2c: 01 00 00 F4 8B 7F [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 F4 8B 00 00 00 00 00 ED 0C 7F [11:16:48]RasterBufferAndPrint [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]written 0, free lines is 3315 [11:16:48]MH_Cut [11:16:48]Write to MH i2c: D1 01 00 FB 8B 01 58 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 FB 8B 00 57 [11:16:48]Write to MH i2c: 01 00 00 FC 8B 87 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]OFD Sender: No OFD packet to send [11:16:49]*** Cut start [11:16:49]*** Partial cut [11:16:49]*** CUTSNS_PIN = 1 [11:16:49]*** CUTSNS_PIN = 0 [11:16:49]*** Brake cut motor [11:16:49]Read from MH i2c: 01 [11:16:49]MH_I2C_Read... [11:16:49]*** Stop cut motor [11:16:49]*** Cut end [11:16:49]Read from MH i2c: 01 07 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 FC 8B 00 00 00 00 00 FF 0F 9C [11:16:49]process_action close_receipt done [11:16:49]requested_data is exist [11:16:49]produce_requested_data [11:16:49]requested_item fm.sn is exist - process it [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 11 00 00 [11:16:49]Write to MH i2c: E2 08 00 FD 8B 80 11 00 00 00 00 00 00 02 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 FD 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 50 [11:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:49]wFMCommunicate OK [11:16:49]requested_item fd.num is exist - process it [11:16:49]SAM_PROTO_GetFieldsCounters [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 00 00 [11:16:49]Write to MH i2c: E2 08 00 FE 8B 80 13 00 00 00 00 00 00 05 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 FE 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 78 00 00 0E 04 04 00 74 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 EE [11:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 78 00 00 0E 04 04 00 74 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 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetFieldsCounters done [11:16:49]requested_item shift.num is exist - process it [11:16:49]requested_item shift.opened is exist - process it [11:16:49]req_shift_opened [11:16:49]FM_GetShiftState [11:16:49]SAM_PROTO_GetShiftState [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 01 00 [11:16:49]Write to MH i2c: E2 08 00 FF 8B 80 13 01 00 00 00 00 00 07 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 FF 8B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E1 [11:16:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetShiftState done [11:16:49]FM_GetShiftState done [11:16:49]req_shift_opened done [11:16:49]requested_item shift.open_date is exist - process it [11:16:49]req_shift_open_date [11:16:49]req_shift_open_date done [11:16:49]produce_requested_data done [11:16:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30873,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:16:49]process_action_free close_receipt [11:16:49]json_value_free [11:16:49]json_value_free done [11:16:49]process_json_proto returns [11:16:49]Send response to host [11:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30873,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:16:49]free response buf [11:16:49]execute_script done [11:16:49]execute_script returns [11:16:49]free content buf [11:16:49]Sock 10.Close socket [11:16:49]Sock 10.Thread stoped [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:13]accept exits with 7 [11:22:13]New connection [11:22:13]New thread 3067489636 created [11:22:13]Thread 3067346276 joined [11:22:13]Waiting for new connection... [11:22:13] Sock 7.Parse request [11:22:13]Sock 7.Check first char [11:22:13]Sock 7.First char is OK [11:22:13]request: POST /json_proto HTTP/1.0 [11:22:13]Method: POST [11:22:13]URL: /json_proto [11:22:13]Method is POST - this is cgi request [11:22:13]url: /json_proto [11:22:13]query_string will be loaded in cgi processing [11:22:13]execute_cgi json_proto POST (null) [11:22:13]execute_cgi path=json_proto method=POST [11:22:13]POST find Content-Length [11:22:13]Host: 172.17.51.3:8080 [11:22:13]Content-Length: 977 [11:22:13]Content-Type: application/json [11:22:13] [11:22:13]POST finish read [11:22:13]Found Content-Length = 977 [11:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:13]execute_script... [11:22: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)343294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:13]POST & json_proto [11:22:13]process_json_proto [11:22:13]json parsed OK: [11:22:13]protocol is kg_v1.0 [11:22:13]action value=close_receipt [11:22:13]process_action close_receipt [11:22:13]cmd_close_receipt [11:22:13]MH_GetDate [11:22:13]Write to MH i2c: F0 00 00 00 8C 7B [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: F0 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: F0 09 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: F0 09 00 00 8C 00 EF 8A 17 67 04 C1 95 66 3B [11:22:13]GetLastDocTimeStamp 1729595816 [11:22:13]current date 1729596143 [11:22:13]FM_GetShiftState [11:22:13]SAM_PROTO_GetShiftState [11:22:13]wFMCommunicate request_size=4 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 13 01 00 [11:22:13]Write to MH i2c: E2 08 00 01 8C 80 13 01 00 00 00 00 00 0A [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 0E 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 0E 00 01 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E4 [11:22:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:22:13]wFMCommunicate OK [11:22:13]SAM_PROTO_GetShiftState done [11:22:13]FM_GetShiftState done [11:22:13]opened in 1729557342 [11:22:13]opened+sec_in_day 1729643742 [11:22:13]quantity*price = 400064 [11:22:13]sum+1 = 400065 [11:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 107 22.10.2024 11:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 53.20 сом ФМ: 0000000002094219 ФД: 30874 ФПД: 201791798641321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112223&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30874&fm=201791798641321&tin=02508201610067®Number=0000000000186857&sum=400000 [11:22:14]StoreToDocumentArchive [11:22:14]shift 116 fd 30874 [11:22:14]save to /storage/0116/doc_00030874 [11:22:14]save last doc name /storage/0116/doc_00030874 to /storage/kkm_last_doc_name [11:22:14]save OK [11:22:14]Clear old archive folders... [11:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:14]tlvbuf is 01FE1220 [11:22:14]SAM_PROTO_ClearQueue [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 09 00 00 [11:22:14]Write to MH i2c: E2 08 00 0E 8C 80 09 00 00 00 00 00 00 0C [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 03 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 03 00 0E 8C 00 90 00 0E [11:22:14]RAPDU: 90 00 [11:22:14]wFMCommunicate OK [11:22:14]SAM_PROTO_ClearQueue done [11:22:14]KKMCreateOFDPacket [11:22:14]OFDProtocolAddRootSTLVToBuf [11:22:14]FM_MakeSignedData [11:22:14]FM_MakeSignedData [11:22:14]SAM_PROTO_SignData [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 0D 01 02 [11:22:14]Write to MH i2c: E2 08 00 0F 8C 80 0D 01 02 00 00 00 00 14 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 03 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 03 00 0F 8C 00 90 00 0F [11:22:14]RAPDU: 90 00 [11:22:14]wFMCommunicate OK [11:22:14]wFMCommunicate request_size=255 [11:22:14]MH_SAM_APDU [11:22: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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 EF 8A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 78 00 00 35 04 06 00 B7 87 50 7A [11:22:14]Write to MH i2c: E2 02 01 10 8C 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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 EF 8A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 78 00 00 35 04 06 00 B7 87 50 7A 00 00 1A [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 03 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 03 00 10 8C 00 90 00 10 [11:22:15]RAPDU: 90 00 [11:22:15]wFMCommunicate OK [11:22:15]wFMCommunicate request_size=7 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 0D 02 02 02 02 A9 [11:22:15]Write to MH i2c: E2 0A 00 11 8C 80 0D 02 02 02 00 02 A9 00 00 C6 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 03 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 03 00 11 8C 00 90 00 11 [11:22:15]RAPDU: 90 00 [11:22:15]wFMCommunicate OK [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 0D 03 02 [11:22:15]Write to MH i2c: E2 08 00 12 8C 80 0D 03 02 00 00 00 00 19 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0B 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0B 00 12 8C 00 AF 40 45 A3 D1 BE A3 0E 90 00 31 [11:22:15]RAPDU: AF 40 45 A3 D1 BE A3 0E 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_SignData done [11:22:15]FM_MakeSignedData done [11:22:15]CreateOFDProtocolMessage [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 11 00 00 [11:22:15]Write to MH i2c: E2 08 00 13 8C 80 11 00 00 00 00 00 00 19 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 17 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 17 00 13 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [11:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:22:15]wFMCommunicate OK [11:22:15]CreateOFDProtocolMessage done [11:22:15]OFDSenderStorePacket 30874 [11:22:15]StoreOFDPacket docnum=30874 [11:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CD 1C 04 01 78 FD 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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 EF 8A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 78 00 00 35 04 06 00 B7 87 50 7A 02 A9 AF 40 45 A3 D1 BE A3 0E [11:22:15]CheckFolder [11:22:15]dirname=/storage/ofd_packets [11:22:15]CheckFolder done [11:22:15]ProducePacketName [11:22:15]name=ofd_packets/00030874 [11:22:15]NVStorageSaveData ofd_packets/00030874 [11:22:15]File name is /storage/ofd_packets/00030874 [11:22:15]Write 298 bytes [11:22:15]NVStorageSaveData done [11:22:15]OFDSenderStorePacket done [11:22:15]KKMCreateOFDPacket done [11:22:15]NVStorageSaveData kkm_last_timestamp [11:22:15]File name is /storage/kkm_last_timestamp [11:22:15]Write 4 bytes [11:22:15]NVStorageSaveData done [11:22:15]ExternCall_PrintAddStr [11:22:15]wPrintStart [11:22:15]Write to MH i2c: 01 00 00 14 8C A0 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: 01 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: 01 07 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: 01 07 00 14 8C 00 00 00 00 00 FF 0F B5 [11:22:15]RasterBufferAndPrint [11:22:15]line Счет N : (1)343294 [11:22:15]line ИНН: 02508201610067 [11:22:15]line Контрольно-Кассовый Чек [11:22:15]line ПРОДАЖА [11:22:15]line ТРК (МРК, ГНК) : 54 [11:22:15]line Товар: 2710194210 [11:22:15]line ДТ-К-2 [11:22:15]line 53.200 * 75.20 [11:22:15]line = 4000.64 [11:22:15]line НДС 12% НСП 1% [11:22:15]line > о реализуемом товаре [11:22:15]line ОКРУГЛЕНИЕ: -0.64 [11:22:15]line ИТОГО: 4000.00 [11:22:15]line Внесено: 4000.00 [11:22:15]line СДАЧА: 0.00 [11:22:15]line НСП 1% : 35.40 [11:22:15]line НДС 12% : 424.85 [11:22:15]line Наличными: 4000.00 [11:22:15]line Безнал.: 0.00 [11:22:15]line Место: АЗС № 78 "Партнер Нефть" [11:22:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:22:15]line СНО: Общий режим [11:22:15]line Чек 107 22.10.2024 11:22 [11:22:15]line Смена: 116 ФФД: 1.0 [11:22:15]line ЗНМ: 0300000137 [11:22:15]line РНМ: 0000000000186857 [11:22:15]line Версия ККМ: v1.0 [11:22:15]line [11:22:15]line Дисконтная программа [11:22:15]line ДТ [11:22:15]line номер 78 [11:22:15]line сэкономлено 53.20 сом [11:22:15]line ФМ: 0000000002094219 [11:22:15]line ФД: 30874 [11:22:15]line ФПД: 201791798641321 [11:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112223&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30874&fm=201791798641321&tin=02508201610067®Number=0000000000186857&sum=400000 [11:22:15]OFD Sender: Processing packet 30874 [packets to send 10, broken 9] [11:22:15]ProducePacketName [11:22:15]name=ofd_packets/00030874 [11:22:15]OFD Sender: To server: pG, [11:22:15]CommunicateWithHost lk.salyk.kg:30040 [11:22:15]ConnectInit lk.salyk.kg [11:22:15]written 0, free lines is 4095 [11:22:15]Connected sock=10 [11:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CD 1C 04 01 78 FD 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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 EF 8A 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 78 00 00 35 04 06 00 B7 87 50 7A 02 A9 AF 40 45 A3 D1 BE A3 0E [11:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 0C 47 00 92 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 32 30 39 34 32 31 39 10 04 04 00 9A 78 00 00 F4 03 04 00 6D 35 17 67 B6 04 01 00 00 03 CB 4D 2E 0A 98 96 14 [11:22:15]CommunicateWithHost err = 0 [11:22:15]CheckOFDResponse [11:22:15]1017 (14) - 77093643461234 [11:22:15]1041 (16) - 0000000002094219 [11:22:15]1040 (4) - 30874 [11:22:15]1012 (4) - 22.10.2024 05:17 [11:22:15]1206 (1) - 0 [11:22:15]OFD Sender: Remove packet 30874 [11:22:15]ProducePacketName [11:22:15]name=ofd_packets/00030874 [11:22:15]NVStorageDeleteData [11:22:16]Write to MH i2c: 01 00 00 44 8C D0 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 44 8C 00 00 00 00 00 8D 0C 70 [11:22:16]RasterBufferAndPrint [11:22:16]line [11:22:16]line [11:22:16]line [11:22:16]line [11:22:16]line [11:22:16]written 0, free lines is 3220 [11:22:16]MH_Cut [11:22:16]Write to MH i2c: D1 01 00 4B 8C 01 A9 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: D1 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: D1 01 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: D1 01 00 4B 8C 00 A8 [11:22:16]Write to MH i2c: 01 00 00 4C 8C D8 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]OFD Sender: No OFD packet to send [11:22:16]*** Cut start [11:22:16]*** Partial cut [11:22:16]*** CUTSNS_PIN = 1 [11:22:16]*** CUTSNS_PIN = 0 [11:22:17]*** Brake cut motor [11:22:17]Read from MH i2c: 01 [11:22:17]MH_I2C_Read... [11:22:17]*** Stop cut motor [11:22:17]*** Cut end [11:22:17]Read from MH i2c: 01 07 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 4C 8C 00 00 00 00 00 FF 0F ED [11:22:17]process_action close_receipt done [11:22:17]requested_data is exist [11:22:17]produce_requested_data [11:22:17]requested_item fm.sn is exist - process it [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 11 00 00 [11:22:17]Write to MH i2c: E2 08 00 4D 8C 80 11 00 00 00 00 00 00 53 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 17 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 17 00 4D 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [11:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:22:17]wFMCommunicate OK [11:22:17]requested_item fd.num is exist - process it [11:22:17]SAM_PROTO_GetFieldsCounters [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 13 00 00 [11:22:17]Write to MH i2c: E2 08 00 4E 8C 80 13 00 00 00 00 00 00 56 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 62 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 62 00 4E 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 78 00 00 0E 04 04 00 74 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 43 [11:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 78 00 00 0E 04 04 00 74 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 [11:22:17]wFMCommunicate OK [11:22:17]SAM_PROTO_GetFieldsCounters done [11:22:17]requested_item shift.num is exist - process it [11:22:17]requested_item shift.opened is exist - process it [11:22:17]req_shift_opened [11:22:17]FM_GetShiftState [11:22:17]SAM_PROTO_GetShiftState [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 13 01 00 [11:22:17]Write to MH i2c: E2 08 00 4F 8C 80 13 01 00 00 00 00 00 58 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 0E 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 0E 00 4F 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 32 [11:22:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:22:17]wFMCommunicate OK [11:22:17]SAM_PROTO_GetShiftState done [11:22:17]FM_GetShiftState done [11:22:17]req_shift_opened done [11:22:17]requested_item shift.open_date is exist - process it [11:22:17]req_shift_open_date [11:22:17]req_shift_open_date done [11:22:17]produce_requested_data done [11:22:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30874,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:22:17]process_action_free close_receipt [11:22:17]json_value_free [11:22:17]json_value_free done [11:22:17]process_json_proto returns [11:22:17]Send response to host [11:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30874,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:22:17]free response buf [11:22:17]execute_script done [11:22:17]execute_script returns [11:22:17]free content buf [11:22:17]Sock 7.Close socket [11:22:17]Sock 7.Thread stoped [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:22]accept exits with 9 [11:24:22]New connection [11:24:22]New thread 3067346276 created [11:24:22]Thread 3067489636 joined [11:24:22]Waiting for new connection... [11:24:22] Sock 9.Parse request [11:24:22]Sock 9.Check first char [11:24:22]Sock 9.First char is OK [11:24:22]request: POST /json_proto HTTP/1.0 [11:24:22]Method: POST [11:24:22]URL: /json_proto [11:24:22]Method is POST - this is cgi request [11:24:22]url: /json_proto [11:24:22]query_string will be loaded in cgi processing [11:24:22]execute_cgi json_proto POST (null) [11:24:22]execute_cgi path=json_proto method=POST [11:24:22]POST find Content-Length [11:24:22]Host: 172.17.51.3:8080 [11:24:22]Content-Length: 792 [11:24:22]Content-Type: application/json [11:24:22] [11:24:22]POST finish read [11:24:22]Found Content-Length = 792 [11:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31172", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:22]execute_script... [11:24: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)343295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31172", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:22]POST & json_proto [11:24:22]process_json_proto [11:24:22]json parsed OK: [11:24:22]protocol is kg_v1.0 [11:24:22]action value=close_receipt [11:24:22]process_action close_receipt [11:24:22]cmd_close_receipt [11:24:22]MH_GetDate [11:24:22]Write to MH i2c: F0 00 00 50 8C CB [11:24:22]Write i2c OK [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 09 00 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 09 00 50 8C 00 71 8B 17 67 04 C1 95 66 0E [11:24:22]GetLastDocTimeStamp 1729596143 [11:24:22]current date 1729596273 [11:24:22]FM_GetShiftState [11:24:22]SAM_PROTO_GetShiftState [11:24:22]wFMCommunicate request_size=4 [11:24:22]MH_SAM_APDU [11:24:22]CAPDU: 80 13 01 00 [11:24:22]Write to MH i2c: E2 08 00 51 8C 80 13 01 00 00 00 00 00 5A [11:24:22]Write i2c OK [11:24:22]MH_I2C_Read... [11:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:22]Read from MH i2c: E2 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: E2 0E 00 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: E2 0E 00 51 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 34 [11:24:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:24:22]wFMCommunicate OK [11:24:22]SAM_PROTO_GetShiftState done [11:24:22]FM_GetShiftState done [11:24:22]opened in 1729557342 [11:24:22]opened+sec_in_day 1729643742 [11:24:22]quantity*price = 0 [11:24:22]sum+1 = 1 [11:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 108 22.10.2024 11:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31172 ФМ: 0000000002094219 ФД: 30875 ФПД: 206753306801272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30875&fm=206753306801272&tin=02508201610067®Number=0000000000186857&sum=0 [11:24:24]StoreToDocumentArchive [11:24:24]shift 116 fd 30875 [11:24:24]save to /storage/0116/doc_00030875 [11:24:24]save last doc name /storage/0116/doc_00030875 to /storage/kkm_last_doc_name [11:24:24]save OK [11:24:24]Clear old archive folders... [11:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:24]tlvbuf is 01DE3280 [11:24:24]SAM_PROTO_ClearQueue [11:24:24]wFMCommunicate request_size=4 [11:24:24]MH_SAM_APDU [11:24:24]CAPDU: 80 09 00 00 [11:24:24]Write to MH i2c: E2 08 00 5E 8C 80 09 00 00 00 00 00 00 5C [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 5E 8C 00 90 00 5E [11:24:24]RAPDU: 90 00 [11:24:24]wFMCommunicate OK [11:24:24]SAM_PROTO_ClearQueue done [11:24:24]KKMCreateOFDPacket [11:24:24]OFDProtocolAddRootSTLVToBuf [11:24:24]FM_MakeSignedData [11:24:24]FM_MakeSignedData [11:24:24]SAM_PROTO_SignData [11:24:24]wFMCommunicate request_size=4 [11:24:24]MH_SAM_APDU [11:24:24]CAPDU: 80 0D 01 02 [11:24:24]Write to MH i2c: E2 08 00 5F 8C 80 0D 01 02 00 00 00 00 64 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 5F 8C 00 90 00 5F [11:24:24]RAPDU: 90 00 [11:24:24]wFMCommunicate OK [11:24:24]wFMCommunicate request_size=255 [11:24:24]MH_SAM_APDU [11:24: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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 71 8B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 78 00 00 35 04 06 00 BC [11:24:24]Write to MH i2c: E2 02 01 60 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 71 8B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 78 00 00 35 04 06 00 BC 00 00 3E [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 60 8C 00 90 00 60 [11:24:24]RAPDU: 90 00 [11:24:24]wFMCommunicate OK [11:24:24]wFMCommunicate request_size=10 [11:24:24]MH_SAM_APDU [11:24:24]CAPDU: 80 0D 02 02 05 0A 81 68 74 78 [11:24:24]Write to MH i2c: E2 0D 00 61 8C 80 0D 02 02 05 00 0A 81 68 74 78 00 00 50 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 03 00 61 8C 00 90 00 61 [11:24:24]RAPDU: 90 00 [11:24:24]wFMCommunicate OK [11:24:24]wFMCommunicate request_size=4 [11:24:24]MH_SAM_APDU [11:24:24]CAPDU: 80 0D 03 02 [11:24:24]Write to MH i2c: E2 08 00 62 8C 80 0D 03 02 00 00 00 00 69 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 0B 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 0B 00 62 8C 00 CA 1E 1A D3 F7 62 83 5C 90 00 77 [11:24:24]RAPDU: CA 1E 1A D3 F7 62 83 5C 90 00 [11:24:24]wFMCommunicate OK [11:24:24]SAM_PROTO_SignData done [11:24:24]FM_MakeSignedData done [11:24:24]CreateOFDProtocolMessage [11:24:24]wFMCommunicate request_size=4 [11:24:24]MH_SAM_APDU [11:24:24]CAPDU: 80 11 00 00 [11:24:24]Write to MH i2c: E2 08 00 63 8C 80 11 00 00 00 00 00 00 69 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:24]Read from MH i2c: E2 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 17 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: E2 17 00 63 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [11:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:24:24]wFMCommunicate OK [11:24:24]CreateOFDProtocolMessage done [11:24:24]OFDSenderStorePacket 30875 [11:24:24]StoreOFDPacket docnum=30875 [11:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 57 BF 07 01 EF 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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 71 8B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 78 00 00 35 04 06 00 BC 0A 81 68 74 78 CA 1E 1A D3 F7 62 83 5C [11:24:24]CheckFolder [11:24:24]dirname=/storage/ofd_packets [11:24:24]CheckFolder done [11:24:24]ProducePacketName [11:24:24]name=ofd_packets/00030875 [11:24:24]NVStorageSaveData ofd_packets/00030875 [11:24:24]File name is /storage/ofd_packets/00030875 [11:24:24]Write 301 bytes [11:24:24]NVStorageSaveData done [11:24:24]OFDSenderStorePacket done [11:24:24]KKMCreateOFDPacket done [11:24:24]NVStorageSaveData kkm_last_timestamp [11:24:24]File name is /storage/kkm_last_timestamp [11:24:24]Write 4 bytes [11:24:24]NVStorageSaveData done [11:24:24]ExternCall_PrintAddStr [11:24:24]wPrintStart [11:24:24]Write to MH i2c: 01 00 00 64 8C F0 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 07 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 07 00 64 8C 00 00 00 00 00 FF 0F 05 [11:24:24]RasterBufferAndPrint [11:24:24]line Счет N : (1)343295 [11:24:24]line ИНН: 02508201610067 [11:24:24]line Контрольно-Кассовый Чек [11:24:24]line ПРОДАЖА [11:24:24]line ТРК (МРК, ГНК) : 33 [11:24:24]line Товар: 2710124130 [11:24:24]line Аи-92-К-2 [11:24:24]line 30.000 * 0.00 [11:24:24]line = 0.00 [11:24:24]line НДС 12% НСП 1% [11:24:24]line > о реализуемом товаре [11:24:24]line ИТОГО: 0.00 [11:24:24]line НСП 1% : 0.00 [11:24:24]line НДС 12% : 0.00 [11:24:24]line Наличными: 0.00 [11:24:24]line Безнал.: 0.00 [11:24:24]line Место: АЗС № 78 "Партнер Нефть" [11:24:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:24:24]line СНО: Общий режим [11:24:24]line Чек 108 22.10.2024 11:24 [11:24:24]line Смена: 116 ФФД: 1.0 [11:24:24]line ЗНМ: 0300000137 [11:24:24]line РНМ: 0000000000186857 [11:24:24]line Версия ККМ: v1.0 [11:24:24]line Талоны: Топливная Карта [11:24:24]line 31172 [11:24:24]line ФМ: 0000000002094219 [11:24:24]line ФД: 30875 [11:24:24]line ФПД: 206753306801272 [11:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30875&fm=206753306801272&tin=02508201610067®Number=0000000000186857&sum=0 [11:24:24]OFD Sender: Processing packet 30875 [packets to send 10, broken 9] [11:24:24]ProducePacketName [11:24:24]name=ofd_packets/00030875 [11:24:24]OFD Sender: To server: pG, [11:24:24]CommunicateWithHost lk.salyk.kg:30040 [11:24:24]ConnectInit lk.salyk.kg [11:24:24]written 0, free lines is 4095 [11:24:25]Connected sock=10 [11:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 57 BF 07 01 EF 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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 71 8B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 78 00 00 35 04 06 00 BC 0A 81 68 74 78 CA 1E 1A D3 F7 62 83 5C [11:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F3 3A 47 00 AC 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 32 30 39 34 32 31 39 10 04 04 00 9B 78 00 00 F4 03 04 00 EE 35 17 67 B6 04 01 00 00 21 7B 33 5C 5B 7A 4F FF [11:24:25]CommunicateWithHost err = 0 [11:24:25]CheckOFDResponse [11:24:25]1017 (14) - 77093643461234 [11:24:25]1041 (16) - 0000000002094219 [11:24:25]1040 (4) - 30875 [11:24:25]1012 (4) - 22.10.2024 05:19 [11:24:25]1206 (1) - 0 [11:24:25]OFD Sender: Remove packet 30875 [11:24:25]ProducePacketName [11:24:25]name=ofd_packets/00030875 [11:24:25]NVStorageDeleteData [11:24:25]Write to MH i2c: 01 00 00 8E 8C 1A [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: 01 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: 01 07 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: 01 07 00 8E 8C 00 00 00 00 00 F5 0C 22 [11:24:25]RasterBufferAndPrint [11:24:25]line [11:24:25]line [11:24:25]line [11:24:25]line [11:24:25]line [11:24:25]written 0, free lines is 3326 [11:24:25]MH_Cut [11:24:25]Write to MH i2c: D1 01 00 95 8C 01 F3 [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: D1 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: D1 01 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: D1 01 00 95 8C 00 F2 [11:24:25]Write to MH i2c: 01 00 00 96 8C 22 [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]OFD Sender: No OFD packet to send [11:24:26]*** Cut start [11:24:26]*** Partial cut [11:24:26]*** CUTSNS_PIN = 1 [11:24:26]*** CUTSNS_PIN = 0 [11:24:26]*** Brake cut motor [11:24:26]Read from MH i2c: 01 [11:24:26]MH_I2C_Read... [11:24:26]*** Stop cut motor [11:24:26]*** Cut end [11:24:26]Read from MH i2c: 01 07 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: 01 07 00 96 8C 00 00 00 00 00 FF 0F 37 [11:24:26]process_action close_receipt done [11:24:26]requested_data is exist [11:24:26]produce_requested_data [11:24:26]requested_item fm.sn is exist - process it [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 11 00 00 [11:24:26]Write to MH i2c: E2 08 00 97 8C 80 11 00 00 00 00 00 00 9D [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 17 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 17 00 97 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EB [11:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:24:26]wFMCommunicate OK [11:24:26]requested_item fd.num is exist - process it [11:24:26]SAM_PROTO_GetFieldsCounters [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 13 00 00 [11:24:26]Write to MH i2c: E2 08 00 98 8C 80 13 00 00 00 00 00 00 A0 [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 62 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 62 00 98 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 91 [11:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 [11:24:26]wFMCommunicate OK [11:24:26]SAM_PROTO_GetFieldsCounters done [11:24:26]requested_item shift.num is exist - process it [11:24:26]requested_item shift.opened is exist - process it [11:24:26]req_shift_opened [11:24:26]FM_GetShiftState [11:24:26]SAM_PROTO_GetShiftState [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 13 01 00 [11:24:26]Write to MH i2c: E2 08 00 99 8C 80 13 01 00 00 00 00 00 A2 [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 0E 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 0E 00 99 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7C [11:24:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:24:26]wFMCommunicate OK [11:24:26]SAM_PROTO_GetShiftState done [11:24:26]FM_GetShiftState done [11:24:26]req_shift_opened done [11:24:26]requested_item shift.open_date is exist - process it [11:24:26]req_shift_open_date [11:24:26]req_shift_open_date done [11:24:26]produce_requested_data done [11:24:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:24:26]process_action_free close_receipt [11:24:26]json_value_free [11:24:26]json_value_free done [11:24:26]process_json_proto returns [11:24:26]Send response to host [11:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:24:26]free response buf [11:24:26]execute_script done [11:24:26]execute_script returns [11:24:26]free content buf [11:24:26]Sock 9.Close socket [11:24:26]Sock 9.Thread stoped [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:00]accept exits with 7 [11:36:00]New connection [11:36:00]New thread 3067489636 created [11:36:00]Thread 3067346276 joined [11:36:00]Waiting for new connection... [11:36:00] Sock 7.Parse request [11:36:00]Sock 7.Check first char [11:36:00]Sock 7.First char is OK [11:36:00]request: POST /json_proto HTTP/1.0 [11:36:00]Method: POST [11:36:00]URL: /json_proto [11:36:00]Method is POST - this is cgi request [11:36:00]url: /json_proto [11:36:00]query_string will be loaded in cgi processing [11:36:00]execute_cgi json_proto POST (null) [11:36:00]execute_cgi path=json_proto method=POST [11:36:00]POST find Content-Length [11:36:00]Host: 172.17.51.3:8080 [11:36:00]Content-Length: 215 [11:36:00]Content-Type: application/json [11:36:00] [11:36:00]POST finish read [11:36:00]Found Content-Length = 215 [11:36:00]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" ] } } [11:36:00]execute_script... [11:36:00]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" ] } } [11:36:00]POST & json_proto [11:36:00]process_json_proto [11:36:00]json parsed OK: [11:36:00]protocol is kg_v1.0 [11:36:00]action value=get_value [11:36:00]process_action get_value [11:36:00]cmd_get_value [11:36:00]process_action get_value done [11:36:00]requested_data is exist [11:36:00]produce_requested_data [11:36:00]requested_item kkm.sn is exist - process it [11:36:00]requested_item kkm.ver is exist - process it [11:36:00]requested_item fm.sn is exist - process it [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 11 00 00 [11:36:00]Write to MH i2c: E2 08 00 9A 8C 80 11 00 00 00 00 00 00 A0 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 17 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 17 00 9A 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [11:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:00]wFMCommunicate OK [11:36:00]requested_item fd.num is exist - process it [11:36:00]SAM_PROTO_GetFieldsCounters [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 13 00 00 [11:36:00]Write to MH i2c: E2 08 00 9B 8C 80 13 00 00 00 00 00 00 A3 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 62 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 62 00 9B 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 94 [11:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 [11:36:00]wFMCommunicate OK [11:36:00]SAM_PROTO_GetFieldsCounters done [11:36:00]requested_item shift.num is exist - process it [11:36:00]requested_item shift.opened is exist - process it [11:36:00]req_shift_opened [11:36:00]FM_GetShiftState [11:36:00]SAM_PROTO_GetShiftState [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 13 01 00 [11:36:00]Write to MH i2c: E2 08 00 9C 8C 80 13 01 00 00 00 00 00 A5 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0E 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0E 00 9C 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7F [11:36:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:00]wFMCommunicate OK [11:36:00]SAM_PROTO_GetShiftState done [11:36:00]FM_GetShiftState done [11:36:00]req_shift_opened done [11:36:00]requested_item shift.open_date is exist - process it [11:36:00]req_shift_open_date [11:36:00]req_shift_open_date done [11:36:00]produce_requested_data done [11:36:00]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:36:00]process_action_free get_value [11:36:00]json_value_free [11:36:00]json_value_free done [11:36:00]process_json_proto returns [11:36:00]Send response to host [11:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:36:00]free response buf [11:36:00]execute_script done [11:36:00]execute_script returns [11:36:00]free content buf [11:36:00]Sock 7.Close socket [11:36:00]Sock 7.Thread stoped [11:36:00]accept exits with 9 [11:36:00]New connection [11:36:00]New thread 3067346276 created [11:36:00]Thread 3067489636 joined [11:36:00]Waiting for new connection... [11:36:00] Sock 9.Parse request [11:36:00]Sock 9.Check first char [11:36:00]Sock 9.First char is OK [11:36:00]request: POST /json_proto HTTP/1.0 [11:36:00]Method: POST [11:36:00]URL: /json_proto [11:36:00]Method is POST - this is cgi request [11:36:00]url: /json_proto [11:36:00]query_string will be loaded in cgi processing [11:36:00]execute_cgi json_proto POST (null) [11:36:00]execute_cgi path=json_proto method=POST [11:36:00]POST find Content-Length [11:36:00]Host: 172.17.51.3:8080 [11:36:00]Content-Length: 331 [11:36:00]Content-Type: application/json [11:36:00] [11:36:00]POST finish read [11:36:00]Found Content-Length = 331 [11:36:00]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" ] } } [11:36:00]execute_script... [11:36:00]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" ] } } [11:36:00]POST & json_proto [11:36:00]process_json_proto [11:36:00]json parsed OK: [11:36:00]protocol is kg_v1.0 [11:36:00]action value=get_value [11:36:00]process_action get_value [11:36:00]cmd_get_value [11:36:00]process_action get_value done [11:36:00]requested_data is exist [11:36:00]produce_requested_data [11:36:00]requested_item fm.sale.total is exist - process it [11:36:00]SAM_PROTO_GetFMData [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 13 03 00 [11:36:00]Write to MH i2c: E2 08 00 9D 8C 80 13 03 00 00 00 00 00 A8 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 9D 8C 00 BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 AA [11:36:01]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 17 00 00 [11:36:01]Write to MH i2c: E2 08 00 9E 8C 80 17 00 00 00 00 00 00 AA [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:01]OFD Sender: No OFD packet to send [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 9E 8C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [11:36:01]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 17 00 00 [11:36:01]Write to MH i2c: E2 08 00 9F 8C 80 17 00 00 00 00 00 00 AB [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 9F 8C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [11:36:01]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 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 17 00 00 [11:36:01]Write to MH i2c: E2 08 00 A0 8C 80 17 00 00 00 00 00 00 AC [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 FD 00 A0 8C 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 26 [11:36:01]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 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 17 00 00 [11:36:01]Write to MH i2c: E2 08 00 A1 8C 80 17 00 00 00 00 00 00 AD [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 DC 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 DC 00 A1 8C 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 91 [11:36:02]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 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_GetFMData done [11:36:02]requested_item fm.sale_refund.total is exist - process it [11:36:02]requested_item fm.buy.total is exist - process it [11:36:02]requested_item shift.sale.total is exist - process it [11:36:02]SAM_PROTO_GetShiftData [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 13 02 00 [11:36:02]Write to MH i2c: E2 08 00 A2 8C 80 13 02 00 00 00 00 00 AC [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 FD 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 FD 00 A2 8C 00 AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 02 [11:36:02]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 [11:36:02]wFMCommunicate OK [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 17 00 00 [11:36:02]Write to MH i2c: E2 08 00 A3 8C 80 17 00 00 00 00 00 00 AF [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 FD 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 FD 00 A3 8C 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 C8 [11:36:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:36:02]wFMCommunicate OK [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 17 00 00 [11:36:02]Write to MH i2c: E2 08 00 A4 8C 80 17 00 00 00 00 00 00 B0 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 FD 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 FD 00 A4 8C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 [11:36:03]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 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 17 00 00 [11:36:03]Write to MH i2c: E2 08 00 A5 8C 80 17 00 00 00 00 00 00 B1 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 FD 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 FD 00 A5 8C 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 2F [11:36:03]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 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 17 00 00 [11:36:03]Write to MH i2c: E2 08 00 A6 8C 80 17 00 00 00 00 00 00 B2 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 CC 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 CC 00 A6 8C 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 93 [11:36:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_GetShiftData done [11:36:03]requested_item shift.sale.total_cash is exist - process it [11:36:03]requested_item shift.sale_refund.total is exist - process it [11:36:03]requested_item shift.sale_refund.total_cash is exist - process it [11:36:03]requested_item shift.buy.total is exist - process it [11:36:03]requested_item shift.buy.total_cash is exist - process it [11:36:03]produce_requested_data done [11:36:03]produce_requested_data return {"fm.sale.total":27807856.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":119304.30,"shift.sale.total_cash":104799.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} [11:36:03]process_action_free get_value [11:36:03]json_value_free [11:36:03]json_value_free done [11:36:03]process_json_proto returns [11:36:03]Send response to host [11:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27807856.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":119304.30,"shift.sale.total_cash":104799.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}}} [11:36:03]free response buf [11:36:03]execute_script done [11:36:03]execute_script returns [11:36:03]free content buf [11:36:03]Sock 9.Close socket [11:36:03]Sock 9.Thread stoped [11:36:04]accept exits with 7 [11:36:04]New connection [11:36:04]New thread 3067489636 created [11:36:04]Thread 3067346276 joined [11:36:04]Waiting for new connection... [11:36:04] Sock 7.Parse request [11:36:04]Sock 7.Check first char [11:36:04]Sock 7.First char is OK [11:36:04]request: POST /json_proto HTTP/1.0 [11:36:04]Method: POST [11:36:04]URL: /json_proto [11:36:04]Method is POST - this is cgi request [11:36:04]url: /json_proto [11:36:04]query_string will be loaded in cgi processing [11:36:04]execute_cgi json_proto POST (null) [11:36:04]execute_cgi path=json_proto method=POST [11:36:04]POST find Content-Length [11:36:04]Host: 172.17.51.3:8080 [11:36:04]Content-Length: 331 [11:36:04]Content-Type: application/json [11:36:04] [11:36:04]POST finish read [11:36:04]Found Content-Length = 331 [11:36:04]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" ] } } [11:36:04]execute_script... [11:36:04]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" ] } } [11:36:04]POST & json_proto [11:36:04]process_json_proto [11:36:04]json parsed OK: [11:36:04]protocol is kg_v1.0 [11:36:04]action value=get_value [11:36:04]process_action get_value [11:36:04]cmd_get_value [11:36:04]process_action get_value done [11:36:04]requested_data is exist [11:36:04]produce_requested_data [11:36:04]requested_item fm.sale.total is exist - process it [11:36:04]SAM_PROTO_GetFMData [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 13 03 00 [11:36:04]Write to MH i2c: E2 08 00 A7 8C 80 13 03 00 00 00 00 00 B2 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 FD 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 FD 00 A7 8C 00 BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 B4 [11:36:04]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:36:04]wFMCommunicate OK [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 17 00 00 [11:36:04]Write to MH i2c: E2 08 00 A8 8C 80 17 00 00 00 00 00 00 B4 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 FD 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 FD 00 A8 8C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [11:36:04]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:36:04]wFMCommunicate OK [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 17 00 00 [11:36:04]Write to MH i2c: E2 08 00 A9 8C 80 17 00 00 00 00 00 00 B5 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 FD 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 FD 00 A9 8C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [11:36:05]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 [11:36:05]wFMCommunicate OK [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 17 00 00 [11:36:05]Write to MH i2c: E2 08 00 AA 8C 80 17 00 00 00 00 00 00 B6 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 FD 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 FD 00 AA 8C 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 30 [11:36:05]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 [11:36:05]wFMCommunicate OK [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 17 00 00 [11:36:05]Write to MH i2c: E2 08 00 AB 8C 80 17 00 00 00 00 00 00 B7 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 DC 00 [11:36:05]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 DC 00 AB 8C 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 9B [11:36:06]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 [11:36:06]wFMCommunicate OK [11:36:06]SAM_PROTO_GetFMData done [11:36:06]requested_item fm.sale_refund.total is exist - process it [11:36:06]requested_item fm.buy.total is exist - process it [11:36:06]requested_item shift.sale.total is exist - process it [11:36:06]SAM_PROTO_GetShiftData [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 13 02 00 [11:36:06]Write to MH i2c: E2 08 00 AC 8C 80 13 02 00 00 00 00 00 B6 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]OFD Sender: No OFD packet to send [11:36:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 FD 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 FD 00 AC 8C 00 AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 0C [11:36:06]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 [11:36:06]wFMCommunicate OK [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 17 00 00 [11:36:06]Write to MH i2c: E2 08 00 AD 8C 80 17 00 00 00 00 00 00 B9 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:07]Read from MH i2c: E2 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 AD 8C 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 D2 [11:36:07]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 [11:36:07]wFMCommunicate OK [11:36:07]wFMCommunicate request_size=4 [11:36:07]MH_SAM_APDU [11:36:07]CAPDU: 80 17 00 00 [11:36:07]Write to MH i2c: E2 08 00 AE 8C 80 17 00 00 00 00 00 00 BA [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:07]Read from MH i2c: E2 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 AE 8C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6E [11:36:07]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 [11:36:07]wFMCommunicate OK [11:36:07]wFMCommunicate request_size=4 [11:36:07]MH_SAM_APDU [11:36:07]CAPDU: 80 17 00 00 [11:36:07]Write to MH i2c: E2 08 00 AF 8C 80 17 00 00 00 00 00 00 BB [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:07]Read from MH i2c: E2 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 FD 00 AF 8C 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 39 [11:36:07]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 [11:36:08]wFMCommunicate OK [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 17 00 00 [11:36:08]Write to MH i2c: E2 08 00 B0 8C 80 17 00 00 00 00 00 00 BC [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 CC 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 CC 00 B0 8C 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 9D [11:36:08]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 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetShiftData done [11:36:08]requested_item shift.sale.total_cash is exist - process it [11:36:08]requested_item shift.sale_refund.total is exist - process it [11:36:08]requested_item shift.sale_refund.total_cash is exist - process it [11:36:08]requested_item shift.buy.total is exist - process it [11:36:08]requested_item shift.buy.total_cash is exist - process it [11:36:08]produce_requested_data done [11:36:08]produce_requested_data return {"fm.sale.total":27807856.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":119304.30,"shift.sale.total_cash":104799.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} [11:36:08]process_action_free get_value [11:36:08]json_value_free [11:36:08]json_value_free done [11:36:08]process_json_proto returns [11:36:08]Send response to host [11:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27807856.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":119304.30,"shift.sale.total_cash":104799.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}}} [11:36:08]free response buf [11:36:08]execute_script done [11:36:08]execute_script returns [11:36:08]free content buf [11:36:08]Sock 7.Close socket [11:36:08]Sock 7.Thread stoped [11:36:08]accept exits with 9 [11:36:08]New connection [11:36:08]New thread 3067346276 created [11:36:08]Thread 3067489636 joined [11:36:08]Waiting for new connection... [11:36:08] Sock 9.Parse request [11:36:08]Sock 9.Check first char [11:36:08]Sock 9.First char is OK [11:36:08]request: POST /json_proto HTTP/1.0 [11:36:08]Method: POST [11:36:08]URL: /json_proto [11:36:08]Method is POST - this is cgi request [11:36:08]url: /json_proto [11:36:08]query_string will be loaded in cgi processing [11:36:08]execute_cgi json_proto POST (null) [11:36:08]execute_cgi path=json_proto method=POST [11:36:08]POST find Content-Length [11:36:08]Host: 172.17.51.3:8080 [11:36:08]Content-Length: 288 [11:36:08]Content-Type: application/json [11:36:08] [11:36:08]POST finish read [11:36:08]Found Content-Length = 288 [11:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:08]execute_script... [11:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:08]POST & json_proto [11:36:08]process_json_proto [11:36:08]json parsed OK: [11:36:08]protocol is kg_v1.0 [11:36:08]action value=x_report [11:36:08]process_action x_report [11:36:08]cmd_x_report [11:36:08]MH_GetDate [11:36:08]Write to MH i2c: F0 00 00 B1 8C 2C [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 B1 8C 00 32 8E 17 67 04 C1 95 66 33 [11:36:08]GetLastDocTimeStamp 1729596273 [11:36:08]current date 1729596978 [11:36:08]FM_GetShiftState [11:36:08]SAM_PROTO_GetShiftState [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 13 01 00 [11:36:08]Write to MH i2c: E2 08 00 B2 8C 80 13 01 00 00 00 00 00 BB [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 B2 8C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 95 [11:36:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetShiftState done [11:36:08]FM_GetShiftState done [11:36:08]KKMCreateXReportDocument [11:36:08]Load OK [11:36:08]Malloc new data [11:36:08]MH_GetDate [11:36:08]Write to MH i2c: F0 00 00 B3 8C 2E [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 B3 8C 00 32 8E 17 67 04 C1 95 66 35 [11:36:08]Malloc new data [11:36:08]Malloc new data [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 11 00 00 [11:36:08]Write to MH i2c: E2 08 00 B4 8C 80 11 00 00 00 00 00 00 BA [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 17 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 17 00 B4 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [11:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetFieldsCounters [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 13 00 00 [11:36:08]Write to MH i2c: E2 08 00 B5 8C 80 13 00 00 00 00 00 00 BD [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 62 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 62 00 B5 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 AE [11:36:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetFieldsCounters done [11:36:08]Malloc new data [11:36:08]Malloc new data [11:36:08]Malloc new data [11:36:08]KKMCreateXReportDocument OK [11:36:08]KKMSetXReportData OK [11:36:09]KKMPrepareXReportFMData [11:36:09]SAM_PROTO_GetShiftData [11:36:09]wFMCommunicate request_size=4 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 13 02 00 [11:36:09]Write to MH i2c: E2 08 00 B6 8C 80 13 02 00 00 00 00 00 C0 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 FD 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 FD 00 B6 8C 00 AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 16 [11:36:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6C 00 00 00 69 04 9C 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 3E 0B B6 70 04 03 00 1C E9 9F 72 04 03 00 22 22 16 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 2B 56 13 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 80 9C 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 [11:36:09]wFMCommunicate OK [11:36:09]wFMCommunicate request_size=4 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 17 00 00 [11:36:09]Write to MH i2c: E2 08 00 B7 8C 80 17 00 00 00 00 00 00 C3 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 FD 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 FD 00 B7 8C 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 DC [11:36:10]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 [11:36:10]wFMCommunicate OK [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 17 00 00 [11:36:10]Write to MH i2c: E2 08 00 B8 8C 80 17 00 00 00 00 00 00 C4 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 FD 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 FD 00 B8 8C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [11:36: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 [11:36:10]wFMCommunicate OK [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 17 00 00 [11:36:10]Write to MH i2c: E2 08 00 B9 8C 80 17 00 00 00 00 00 00 C5 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 FD 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 FD 00 B9 8C 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 43 [11:36: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 [11:36:11]wFMCommunicate OK [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 17 00 00 [11:36:11]Write to MH i2c: E2 08 00 BA 8C 80 17 00 00 00 00 00 00 C6 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 CC 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 CC 00 BA 8C 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 A7 [11:36:11]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 [11:36:11]wFMCommunicate OK [11:36:11]SAM_PROTO_GetShiftData done [11:36:11]1194 (1195) - счетчики итогов смены [11:36:11] 1134 (4) - 108 - количество чеков со всеми признаками расчетов [11:36:11] 1129 (156) - счетчики операций «приход» [11:36:11] 1135 (4) - 108 - количество чеков по признаку расчетов [11:36:11] 1201 (3) - 119304.30 - общая итоговая сумма в чеках [11:36:11] 1136 (3) - 104799.00 - итоговая сумма в чеках наличными [11:36:11] 1138 (3) - 14505.30 - итоговая сумма в чеках безналичными [11:36:11] 1024 (123) - суммы налогов [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 0% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1006 (12) - суммы НДС [11:36:11] 1010 (1) - 12% - код ставки НДС [11:36:11] 1011 (3) - 12672.43 - сумма НДС по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (12) - суммы НСП [11:36:11] 1014 (1) - 1% - код ставки НСП [11:36:11] 1015 (3) - 1056.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 2% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 3% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 5% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1130 (141) - счетчики операций «возврат прихода» [11:36:11] 1135 (4) - 0 - количество чеков по признаку расчетов [11:36:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:36:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:36:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:36:11] 1024 (117) - суммы налогов [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 0% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 12% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 2% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 3% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 5% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1131 (141) - счетчики операций «расход» [11:36:11] 1135 (4) - 0 - количество чеков по признаку расчетов [11:36:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:36:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:36:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:36:11] 1024 (117) - суммы налогов [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 0% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 12%OFD Sender: No OFD packet to send [11:36:11] - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 2% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 3% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 5% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1132 (141) - счетчики операций «возврат расхода» [11:36:11] 1135 (4) - 0 - количество чеков по признаку расчетов [11:36:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:36:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:36:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:36:11] 1024 (117) - суммы налогов [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 0% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1006 (9) - суммы НДС [11:36:11] 1010 (1) - 12% - код ставки НДС [11:36:11] 1011 (0) - 0.00 - сумма НДС по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 2% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 3% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 5% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 0,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1007 (9) - суммы НСП [11:36:11] 1014 (1) - 1,50% - код ставки НСП [11:36:11] 1015 (0) - 0.00 - сумма НСП по ставке [11:36:11] 1133 (588) - - счетчики коррекции - не используются [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1194 (04AA) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1134 (046E) [11:36:11]Malloc new data [11:36:11]Processing tag 1129 (0469) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1135 (046F) [11:36:11]Malloc new data [11:36:11]Processing tag 1201 (04B1) [11:36:11]Malloc new data [11:36:11]Processing tag 1136 (0470) [11:36:11]Malloc new data [11:36:11]Processing tag 1138 (0472) [11:36:11]Malloc new data [11:36:11]Processing tag 1024 (0400) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1006 (03EE) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1010 (03F2) [11:36:11]Malloc new data [11:36:11]Processing tag 1011 (03F3) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1006 (03EE) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1010 (03F2) [11:36:11]Malloc new data [11:36:11]Processing tag 1011 (03F3) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1007 (03EF) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1014 (03F6) [11:36:11]Malloc new data [11:36:11]Processing tag 1015 (03F7) [11:36:11]Malloc new data [11:36:11]SetTLVBufToDocument err=0 [11:36:11]SetTLVBufToDocument err=0 [11:36:11]SetTLVBufToDocument err=0 [11:36:11]Processing tag 1130 (046A) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1135 (046F) [11:36:11]Malloc new data [11:36:11]Processing tag 1201 (04B1) [11:36:11]Malloc new data [11:36:11]Processing tag 1136 (0470) [11:36:11]Malloc new data [11:36:11]Processing tag 1138 (0472) [11:36:11]Malloc new data [11:36:11]Processing tag 1024 (0400) [11:36:11]Load OK [11:36:11]SetTLVBufToDocument [11:36:11]Processing tag 1006 (03EE) [11:36:11]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1006 (03EE) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1131 (046B) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1135 (046F) [11:36:12]Malloc new data [11:36:12]Processing tag 1201 (04B1) [11:36:12]Malloc new data [11:36:12]Processing tag 1136 (0470) [11:36:12]Malloc new data [11:36:12]Processing tag 1138 (0472) [11:36:12]Malloc new data [11:36:12]Processing tag 1024 (0400) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1006 (03EE) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1006 (03EE) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1132 (046C) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1135 (046F) [11:36:12]Malloc new data [11:36:12]Processing tag 1201 (04B1) [11:36:12]Malloc new data [11:36:12]Processing tag 1136 (0470) [11:36:12]Malloc new data [11:36:12]Processing tag 1138 (0472) [11:36:12]Malloc new data [11:36:12]Processing tag 1024 (0400) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1006 (03EE) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1006 (03EE) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1010 (03F2) [11:36:12]Malloc new data [11:36:12]Processing tag 1011 (03F3) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1007 (03EF) [11:36:12]Load OK [11:36:12]SetTLVBufToDocument [11:36:12]Processing tag 1014 (03F6) [11:36:12]Malloc new data [11:36:12]Processing tag 1015 (03F7) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Processing tag 1133 (046D) [11:36:12]Malloc new data [11:36:12]SetTLVBufToDocument err=0 [11:36:12]SetTLVBufToDocument err=0 [11:36:12]Malloc new data [11:36:12]SAM_PROTO_GetFMData [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 13 03 00 [11:36:12]Write to MH i2c: E2 08 00 BB 8C 80 13 03 00 00 00 00 00 C6 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 FD 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 FD 00 BB 8C 00 BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 C8 [11:36:13]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:36:13]wFMCommunicate OK [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 17 00 00 [11:36:13]Write to MH i2c: E2 08 00 BC 8C 80 17 00 00 00 00 00 00 C8 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 FD 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 FD 00 BC 8C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [11:36:13]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:36:14]wFMCommunicate OK [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 17 00 00 [11:36:14]Write to MH i2c: E2 08 00 BD 8C 80 17 00 00 00 00 00 00 C9 [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 FD 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 FD 00 BD 8C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [11:36:14]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 [11:36:14]wFMCommunicate OK [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 17 00 00 [11:36:14]Write to MH i2c: E2 08 00 BE 8C 80 17 00 00 00 00 00 00 CA [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 FD 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 FD 00 BE 8C 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 44 [11:36:14]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 [11:36:15]wFMCommunicate OK [11:36:15]wFMCommunicate request_size=4 [11:36:15]MH_SAM_APDU [11:36:15]CAPDU: 80 17 00 00 [11:36:15]Write to MH i2c: E2 08 00 BF 8C 80 17 00 00 00 00 00 00 CB [11:36:15]Write i2c OK [11:36:15]MH_I2C_Read... [11:36:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:36:15]Read from MH i2c: E2 [11:36:15]MH_I2C_Read... [11:36:15]Read from MH i2c: E2 DC 00 [11:36:15]MH_I2C_Read... [11:36:15]Read from MH i2c: E2 DC 00 BF 8C 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 AF [11:36:15]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 [11:36:15]wFMCommunicate OK [11:36:15]SAM_PROTO_GetFMData done [11:36:15]FM_GetFMData:85 04 BB 04 6E 04 04 00 B3 77 00 00 69 04 A1 00 6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:36:16]oper:6F 04 04 00 A4 77 00 00 B1 04 04 00 E9 6B BF A5 70 04 04 00 4C 49 EA 84 72 04 04 00 9D 22 D5 20 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 F8 41 9B 11 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 CC 98 77 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 [11:36:16]total:E9 6B BF A5 [11:36:16]Malloc new data [11:36:16]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:36:16]total:88 7F 52 [11:36:16]Malloc new data [11:36:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:36:16]total: [11:36:16]Malloc new data [11:36:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:36:16]total: [11:36:16]Malloc new data [11:36:16]KKMPrepareXReportFMData err=0 [11:36:16]Х отчет ИНН: 02508201610067 Кассир: Таалайбек кызы А. 22.10.2024 11:36 Смена: 10 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Всего чеков: 108 ИТОГИ ПРИХОД Чеков: 108 Общий итог: 119304.30 Итого наличными: 104799.00 Итого безнал.: 14505.30 НДС 0% : 0.00 НДС 12% : 12672.43 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1056.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 Общий итог: 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 Нал. в кассе: 104799.00 НС Приход: 27807856.41 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094219 [11:36:16]StoreToDocumentArchive [11:36:16]MH_GetDate [11:36:16]Write to MH i2c: F0 00 00 C0 8C 3B [11:36:16]OFD Sender: No OFD packet to send [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 C0 8C 00 3B 8E 17 67 04 C1 95 66 4B [11:36:16]shift 10 fd 1729596987 [11:36:16]Create dir for shift 0010 [11:36:16]save to /storage/0010/doc_1729596987 [11:36:16]save last doc name /storage/0010/doc_1729596987 to /storage/kkm_last_doc_name [11:36:16]save OK [11:36:16]Clear old archive folders... [11:36:16]NVStorageSaveData kkm_last_timestamp [11:36:16]File name is /storage/kkm_last_timestamp [11:36:16]Write 4 bytes [11:36:16]NVStorageSaveData done [11:36:16]ExternCall_PrintAddStr [11:36:16]wPrintStart [11:36:16]Write to MH i2c: 01 00 00 C1 8C 4D [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: 01 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: 01 07 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: 01 07 00 C1 8C 00 00 00 00 00 FF 0F 62 [11:36:16]RasterBufferAndPrint [11:36:16]line Х отчет [11:36:16]line ИНН: 02508201610067 [11:36:16]line Кассир: Таалайбек кызы А. [11:36:16]line 22.10.2024 11:36 [11:36:16]line Смена: 10 [11:36:16]line РНМ: 0000000000186857 [11:36:16]line ЗНМ: 0300000137 [11:36:16]line СНО: Общий режим [11:36:16]line Всего чеков: 108 [11:36:16]line ИТОГИ ПРИХОД [11:36:16]line Чеков: 108 [11:36:16]line Общий итог: 119304.30 [11:36:16]line Итого наличными: 104799.00 [11:36:16]line Итого безнал.: 14505.30 [11:36:16]line НДС 0% : 0.00 [11:36:16]line НДС 12% : 12672.43 [11:36:16]line НСП 0% : 0.00 [11:36:16]line НСП 1,50% : 0.00 [11:36:16]line НСП 0,50% : 0.00 [11:36:16]line НСП 5% : 0.00 [11:36:16]line НСП 3% : 0.00 [11:36:16]line НСП 2% : 0.00 [11:36:16]line НСП 1% : 1056.00 [11:36:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:36:16]line Чеков: 0 [11:36:16]line Общий итог: 0.00 [11:36:16]line Итого наличными: 0.00 [11:36:16]line Итого безнал.: 0.00 [11:36:16]line НДС 0% : 0.00 [11:36:16]line НДС 12% : 0.00 [11:36:16]line НСП 0% : 0.00 [11:36:16]line НСП 1,50% : 0.00 [11:36:16]line НСП 0,50% : 0.00 [11:36:16]line НСП 5% : 0.00 [11:36:16]line НСП 3% : 0.00 [11:36:16]line НСП 2% : 0.00 [11:36:16]line НСП 1% : 0.00 [11:36:16]line ИТОГИ РАСХОД [11:36:16]line Чеков: 0 [11:36:16]line Общий итог: 0.00 [11:36:16]line Итого наличными: 0.00 [11:36:16]line Итого безнал.: 0.00 [11:36:16]line НДС 0% : 0.00 [11:36:16]line НДС 12% : 0.00 [11:36:16]line НСП 0% : 0.00 [11:36:16]line НСП 1,50% : 0.00 [11:36:16]line НСП 0,50% : 0.00 [11:36:16]line НСП 5% : 0.00 [11:36:16]line НСП 3% : 0.00 [11:36:16]line НСП 2% : 0.00 [11:36:16]line НСП 1% : 0.00 [11:36:16]line ИТОГИ ВОЗВРАТ РАСХОДА [11:36:16]line Чеков: 0 [11:36:16]line Общий итог: 0.00 [11:36:16]line Итого наличными: 0.00 [11:36:16]line Итого безнал.: 0.00 [11:36:16]line НДС 0% : 0.00 [11:36:16]line НДС 12% : 0.00 [11:36:16]line НСП 0% : 0.00 [11:36:16]line НСП 1,50% : 0.00 [11:36:16]line НСП 0,50% : 0.00 [11:36:16]line НСП 5% : 0.00 [11:36:16]line НСП 3% : 0.00 [11:36:16]line НСП 2% : 0.00 [11:36:16]line НСП 1% : 0.00 [11:36:16]line Сумма внесений: 0.00 [11:36:16]line Сумма выплат: 0.00 [11:36:16]line Нал. в кассе: 104799.00 [11:36:16]line НС Приход: 27807856.41 [11:36:16]line НС Возвр.Прихода: 54066.00 [11:36:16]line НС Расход: 0.00 [11:36:16]line НС Возвр.Расхода: 0.00 [11:36:16]line ФМ: 0000000002094219 [11:36:16]written 0, free lines is 4095 [11:36:17]Write to MH i2c: 01 00 00 0C 8D 99 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: 01 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: 01 07 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: 01 07 00 0C 8D 00 00 00 00 00 0B 0B B6 [11:36:17]RasterBufferAndPrint [11:36:17]line [11:36:17]line [11:36:17]line [11:36:17]line [11:36:17]line [11:36:17]written 0, free lines is 2866 [11:36:17]MH_Cut [11:36:17]Write to MH i2c: D1 01 00 13 8D 01 72 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: D1 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: D1 01 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: D1 01 00 13 8D 00 71 [11:36:17]Write to MH i2c: 01 00 00 14 8D A1 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:18]*** Cut start [11:36:18]*** Partial cut [11:36:18]*** CUTSNS_PIN = 1 [11:36:18]*** CUTSNS_PIN = 0 [11:36:18]*** Brake cut motor [11:36:19]Read from MH i2c: 01 [11:36:19]MH_I2C_Read... [11:36:19]*** Stop cut motor [11:36:19]*** Cut end [11:36:19]Read from MH i2c: 01 07 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: 01 07 00 14 8D 00 00 00 00 00 FF 0F B6 [11:36:19]process_action x_report done [11:36:19]requested_data is exist [11:36:19]produce_requested_data [11:36:19]requested_item fd.num is exist - process it [11:36:19]SAM_PROTO_GetFieldsCounters [11:36:19]wFMCommunicate request_size=4 [11:36:19]MH_SAM_APDU [11:36:19]CAPDU: 80 13 00 00 [11:36:19]Write to MH i2c: E2 08 00 15 8D 80 13 00 00 00 00 00 00 1E [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:19]Read from MH i2c: E2 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 62 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 62 00 15 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 0F [11:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 78 00 00 0E 04 04 00 74 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 [11:36:19]wFMCommunicate OK [11:36:19]SAM_PROTO_GetFieldsCounters done [11:36:19]requested_item shift.num is exist - process it [11:36:19]requested_item shift.opened is exist - process it [11:36:19]req_shift_opened [11:36:19]FM_GetShiftState [11:36:19]SAM_PROTO_GetShiftState [11:36:19]wFMCommunicate request_size=4 [11:36:19]MH_SAM_APDU [11:36:19]CAPDU: 80 13 01 00 [11:36:19]Write to MH i2c: E2 08 00 16 8D 80 13 01 00 00 00 00 00 20 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:19]Read from MH i2c: E2 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 0E 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 0E 00 16 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FA [11:36:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:19]wFMCommunicate OK [11:36:19]SAM_PROTO_GetShiftState done [11:36:19]FM_GetShiftState done [11:36:19]req_shift_opened done [11:36:19]requested_item shift.open_date is exist - process it [11:36:19]req_shift_open_date [11:36:19]req_shift_open_date done [11:36:19]produce_requested_data done [11:36:19]produce_requested_data return {"fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:36:19]process_action_free x_report [11:36:19]json_value_free [11:36:19]json_value_free done [11:36:19]process_json_proto returns [11:36:19]Send response to host [11:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30875,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:36:19]free response buf [11:36:19]execute_script done [11:36:19]execute_script returns [11:36:19]free content buf [11:36:19]Sock 9.Close socket [11:36:19]Sock 9.Thread stoped [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:27]accept exits with 7 [11:36:27]New connection [11:36:27]New thread 3067489636 created [11:36:27]Thread 3067346276 joined [11:36:27]Waiting for new connection... [11:36:27] Sock 7.Parse request [11:36:27]Sock 7.Check first char [11:36:27]Sock 7.First char is OK [11:36:27]request: POST /json_proto HTTP/1.0 [11:36:27]Method: POST [11:36:27]URL: /json_proto [11:36:27]Method is POST - this is cgi request [11:36:27]url: /json_proto [11:36:27]query_string will be loaded in cgi processing [11:36:27]execute_cgi json_proto POST (null) [11:36:27]execute_cgi path=json_proto method=POST [11:36:27]POST find Content-Length [11:36:27]Host: 172.17.51.3:8080 [11:36:27]Content-Length: 677 [11:36:27]Content-Type: application/json [11:36:27] [11:36:27]POST finish read [11:36:27]Found Content-Length = 677 [11:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:27]execute_script... [11:36: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)343297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:27]POST & json_proto [11:36:27]process_json_proto [11:36:27]json parsed OK: [11:36:27]protocol is kg_v1.0 [11:36:27]action value=close_receipt [11:36:27]process_action close_receipt [11:36:27]cmd_close_receipt [11:36:27]MH_GetDate [11:36:27]Write to MH i2c: F0 00 00 17 8D 93 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 09 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 09 00 17 8D 00 45 8E 17 67 04 C1 95 66 AD [11:36:27]GetLastDocTimeStamp 1729596978 [11:36:27]current date 1729596997 [11:36:27]FM_GetShiftState [11:36:27]SAM_PROTO_GetShiftState [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 13 01 00 [11:36:27]Write to MH i2c: E2 08 00 18 8D 80 13 01 00 00 00 00 00 22 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0E 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0E 00 18 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FC [11:36:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:27]wFMCommunicate OK [11:36:27]SAM_PROTO_GetShiftState done [11:36:27]FM_GetShiftState done [11:36:27]opened in 1729557342 [11:36:27]opened+sec_in_day 1729643742 [11:36:27]quantity*price = 50041 [11:36:27]sum+1 = 50042 [11:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 109 22.10.2024 11:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30876 ФПД: 247352833687682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30876&fm=247352833687682&tin=02508201610067®Number=0000000000186857&sum=50000 [11:36:29]StoreToDocumentArchive [11:36:29]shift 116 fd 30876 [11:36:29]save to /storage/0116/doc_00030876 [11:36:29]save last doc name /storage/0116/doc_00030876 to /storage/kkm_last_doc_name [11:36:29]save OK [11:36:29]Clear old archive folders... [11:36:29]Remove dir /storage/0010 [11:36:29]opendir ok [11:36:29]file . [11:36:29]file .. [11:36:29]file doc_1729596987 [11:36:29]remove file /storage/0010/doc_1729596987 [11:36:29]remove dir /storage/0010 [11:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:29]tlvbuf is 01FDA5D0 [11:36:29]SAM_PROTO_ClearQueue [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 09 00 00 [11:36:29]Write to MH i2c: E2 08 00 25 8D 80 09 00 00 00 00 00 00 24 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 25 8D 00 90 00 26 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_ClearQueue done [11:36:29]KKMCreateOFDPacket [11:36:29]OFDProtocolAddRootSTLVToBuf [11:36:29]FM_MakeSignedData [11:36:29]FM_MakeSignedData [11:36:29]SAM_PROTO_SignData [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 01 02 [11:36:29]Write to MH i2c: E2 08 00 26 8D 80 0D 01 02 00 00 00 00 2C [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 26 8D 00 90 00 27 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=255 [11:36:29]MH_SAM_APDU [11:36: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 45 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 78 00 00 35 04 06 00 E0 [11:36:29]Write to MH i2c: E2 02 01 27 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 45 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 78 00 00 35 04 06 00 E0 00 00 E3 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 27 8D 00 90 00 28 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=10 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 02 02 05 F7 51 C9 40 82 [11:36:29]Write to MH i2c: E2 0D 00 28 8D 80 0D 02 02 05 00 F7 51 C9 40 82 00 00 0C [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 28 8D 00 90 00 29 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 03 02 [11:36:29]Write to MH i2c: E2 08 00 29 8D 80 0D 03 02 00 00 00 00 31 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 29 8D 00 2A 70 3E 2B BF 30 74 A3 90 00 3B [11:36:29]RAPDU: 2A 70 3E 2B BF 30 74 A3 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_SignData done [11:36:29]FM_MakeSignedData done [11:36:29]CreateOFDProtocolMessage [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 2A 8D 80 11 00 00 00 00 00 00 31 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 2A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:30]wFMCommunicate OK [11:36:30]CreateOFDProtocolMessage done [11:36:30]OFDSenderStorePacket 30876 [11:36:30]StoreOFDPacket docnum=30876 [11:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 7C 07 01 1B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 45 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 78 00 00 35 04 06 00 E0 F7 51 C9 40 82 2A 70 3E 2B BF 30 74 A3 [11:36:30]CheckFolder [11:36:30]dirname=/storage/ofd_packets [11:36:30]CheckFolder done [11:36:30]ProducePacketName [11:36:30]name=ofd_packets/00030876 [11:36:30]NVStorageSaveData ofd_packets/00030876 [11:36:30]File name is /storage/ofd_packets/00030876 [11:36:30]Write 301 bytes [11:36:30]NVStorageSaveData done [11:36:30]OFDSenderStorePacket done [11:36:30]KKMCreateOFDPacket done [11:36:30]NVStorageSaveData kkm_last_timestamp [11:36:30]File name is /storage/kkm_last_timestamp [11:36:30]Write 4 bytes [11:36:30]NVStorageSaveData done [11:36:30]ExternCall_PrintAddStr [11:36:30]wPrintStart [11:36:30]Write to MH i2c: 01 00 00 2B 8D B8 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 2B 8D 00 00 00 00 00 FF 0F CD [11:36:30]RasterBufferAndPrint [11:36:30]line Счет N : (1)343297 [11:36:30]line ИНН: 02508201610067 [11:36:30]line Контрольно-Кассовый Чек [11:36:30]line ПРОДАЖА [11:36:30]line ТРК (МРК, ГНК) : 53 [11:36:30]line Товар: 2710124130 [11:36:30]line Аи-92-К-2 [11:36:30]line 7.480 * 66.90 [11:36:30]line = 500.41 [11:36:30]line НДС 12% НСП 1% [11:36:30]line > о реализуемом товаре [11:36:30]line ОКРУГЛЕНИЕ: -0.41 [11:36:30]line ИТОГО: 500.00 [11:36:30]line Внесено: 500.00 [11:36:30]line СДАЧА: 0.00 [11:36:30]line НСП 1% : 4.43 [11:36:30]line НДС 12% : 53.14 [11:36:30]line Наличными: 500.00 [11:36:30]line Безнал.: 0.00 [11:36:30]line Место: АЗС № 78 "Партнер Нефть" [11:36:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:36:30]line СНО: Общий режим [11:36:30]line Чек 109 22.10.2024 11:36 [11:36:30]line Смена: 116 ФФД: 1.0 [11:36:30]line ЗНМ: 0300000137 [11:36:30]line РНМ: 0000000000186857 [11:36:30]line Версия ККМ: v1.0 [11:36:30]line ФМ: 0000000002094219 [11:36:30]line ФД: 30876 [11:36:30]line ФПД: 247352833687682 [11:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30876&fm=247352833687682&tin=02508201610067®Number=0000000000186857&sum=50000 [11:36:30]written 0, free lines is 4095 [11:36:30]OFD Sender: Processing packet 30876 [packets to send 10, broken 9] [11:36:30]ProducePacketName [11:36:30]name=ofd_packets/00030876 [11:36:30]OFD Sender: To server: pG, [11:36:30]CommunicateWithHost lk.salyk.kg:30040 [11:36:30]ConnectInit lk.salyk.kg [11:36:30]Connected sock=10 [11:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 7C 07 01 1B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 45 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 78 00 00 35 04 06 00 E0 F7 51 C9 40 82 2A 70 3E 2B BF 30 74 A3 [11:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A7 8F 47 00 D6 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 32 30 39 34 32 31 39 10 04 04 00 9C 78 00 00 F4 03 04 00 C4 38 17 67 B6 04 01 00 00 84 AB A9 09 DA B1 7D 27 [11:36:30]CommunicateWithHost err = 0 [11:36:30]CheckOFDResponse [11:36:30]1017 (14) - 77093643461234 [11:36:30]1041 (16) - 0000000002094219 [11:36:30]1040 (4) - 30876 [11:36:30]1012 (4) - 22.10.2024 05:31 [11:36:30]1206 (1) - 0 [11:36:30]OFD Sender: Remove packet 30876 [11:36:30]ProducePacketName [11:36:30]name=ofd_packets/00030876 [11:36:30]NVStorageDeleteData [11:36:30]Write to MH i2c: 01 00 00 56 8D E3 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 56 8D 00 00 00 00 00 DA 0D D1 [11:36:30]RasterBufferAndPrint [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]written 0, free lines is 3577 [11:36:30]MH_Cut [11:36:30]Write to MH i2c: D1 01 00 5D 8D 01 BC [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 5D 8D 00 BB [11:36:30]Write to MH i2c: 01 00 00 5E 8D EB [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:31]OFD Sender: No OFD packet to send [11:36:31]*** Cut start [11:36:31]*** Partial cut [11:36:31]*** CUTSNS_PIN = 1 [11:36:31]*** CUTSNS_PIN = 0 [11:36:31]*** Brake cut motor [11:36:31]Read from MH i2c: 01 [11:36:31]MH_I2C_Read... [11:36:31]*** Stop cut motor [11:36:31]*** Cut end [11:36:31]Read from MH i2c: 01 07 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 5E 8D 00 00 00 00 00 FF 0F 00 [11:36:31]process_action close_receipt done [11:36:31]requested_data is exist [11:36:31]produce_requested_data [11:36:31]requested_item fm.sn is exist - process it [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 11 00 00 [11:36:31]Write to MH i2c: E2 08 00 5F 8D 80 11 00 00 00 00 00 00 66 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 5F 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [11:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:31]wFMCommunicate OK [11:36:31]requested_item fd.num is exist - process it [11:36:31]SAM_PROTO_GetFieldsCounters [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 13 00 00 [11:36:31]Write to MH i2c: E2 08 00 60 8D 80 13 00 00 00 00 00 00 69 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 60 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 78 00 00 0E 04 04 00 74 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 5E [11:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 78 00 00 0E 04 04 00 74 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 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetFieldsCounters done [11:36:32]requested_item shift.num is exist - process it [11:36:32]requested_item shift.opened is exist - process it [11:36:32]req_shift_opened [11:36:32]FM_GetShiftState [11:36:32]SAM_PROTO_GetShiftState [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 01 00 [11:36:32]Write to MH i2c: E2 08 00 61 8D 80 13 01 00 00 00 00 00 6B [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 61 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 45 [11:36:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetShiftState done [11:36:32]FM_GetShiftState done [11:36:32]req_shift_opened done [11:36:32]requested_item shift.open_date is exist - process it [11:36:32]req_shift_open_date [11:36:32]req_shift_open_date done [11:36:32]produce_requested_data done [11:36:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30876,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:36:32]process_action_free close_receipt [11:36:32]json_value_free [11:36:32]json_value_free done [11:36:32]process_json_proto returns [11:36:32]Send response to host [11:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30876,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:36:32]free response buf [11:36:32]execute_script done [11:36:32]execute_script returns [11:36:32]free content buf [11:36:32]Sock 7.Close socket [11:36:32]Sock 7.Thread stoped [11:36:36]OFD Sender: No OFD packet to send [11:36:40]accept exits with 9 [11:36:40]New connection [11:36:40]New thread 3067346276 created [11:36:40]Thread 3067489636 joined [11:36:40]Waiting for new connection... [11:36:40] Sock 9.Parse request [11:36:40]Sock 9.Check first char [11:36:40]Sock 9.First char is OK [11:36:40]request: POST /json_proto HTTP/1.0 [11:36:40]Method: POST [11:36:40]URL: /json_proto [11:36:40]Method is POST - this is cgi request [11:36:40]url: /json_proto [11:36:40]query_string will be loaded in cgi processing [11:36:40]execute_cgi json_proto POST (null) [11:36:40]execute_cgi path=json_proto method=POST [11:36:40]POST find Content-Length [11:36:40]Host: 172.17.51.3:8080 [11:36:40]Content-Length: 677 [11:36:40]Content-Type: application/json [11:36:40] [11:36:40]POST finish read [11:36:40]Found Content-Length = 677 [11:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:40]execute_script... [11:36: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)343296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:40]POST & json_proto [11:36:40]process_json_proto [11:36:40]json parsed OK: [11:36:40]protocol is kg_v1.0 [11:36:40]action value=close_receipt [11:36:40]process_action close_receipt [11:36:40]cmd_close_receipt [11:36:40]MH_GetDate [11:36:40]Write to MH i2c: F0 00 00 62 8D DE [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: F0 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: F0 09 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: F0 09 00 62 8D 00 52 8E 17 67 04 C1 95 66 05 [11:36:40]GetLastDocTimeStamp 1729596997 [11:36:40]current date 1729597010 [11:36:40]FM_GetShiftState [11:36:40]SAM_PROTO_GetShiftState [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 13 01 00 [11:36:40]Write to MH i2c: E2 08 00 63 8D 80 13 01 00 00 00 00 00 6D [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 63 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 47 [11:36:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:40]wFMCommunicate OK [11:36:40]SAM_PROTO_GetShiftState done [11:36:40]FM_GetShiftState done [11:36:40]opened in 1729557342 [11:36:40]opened+sec_in_day 1729643742 [11:36:40]quantity*price = 40006 [11:36:40]sum+1 = 40007 [11:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 110 22.10.2024 11:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30877 ФПД: 185249138763531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30877&fm=185249138763531&tin=02508201610067®Number=0000000000186857&sum=40000 [11:36:41]StoreToDocumentArchive [11:36:41]shift 116 fd 30877 [11:36:41]save to /storage/0116/doc_00030877 [11:36:41]save last doc name /storage/0116/doc_00030877 to /storage/kkm_last_doc_name [11:36:41]save OK [11:36:41]Clear old archive folders... [11:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:41]tlvbuf is 0212B390 [11:36:41]SAM_PROTO_ClearQueue [11:36:41]wFMCommunicate request_size=4 [11:36:41]MH_SAM_APDU [11:36:41]CAPDU: 80 09 00 00 [11:36:41]Write to MH i2c: E2 08 00 70 8D 80 09 00 00 00 00 00 00 6F [11:36:41]Write i2c OK [11:36:41]MH_I2C_Read... [11:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:41]Read from MH i2c: E2 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 03 00 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 03 00 70 8D 00 90 00 71 [11:36:41]RAPDU: 90 00 [11:36:41]wFMCommunicate OK [11:36:41]SAM_PROTO_ClearQueue done [11:36:41]KKMCreateOFDPacket [11:36:41]OFDProtocolAddRootSTLVToBuf [11:36:41]FM_MakeSignedData [11:36:41]FM_MakeSignedData [11:36:41]SAM_PROTO_SignData [11:36:41]wFMCommunicate request_size=4 [11:36:41]MH_SAM_APDU [11:36:41]CAPDU: 80 0D 01 02 [11:36:41]Write to MH i2c: E2 08 00 71 8D 80 0D 01 02 00 00 00 00 77 [11:36:41]Write i2c OK [11:36:41]MH_I2C_Read... [11:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:41]Read from MH i2c: E2 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 03 00 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 03 00 71 8D 00 90 00 72 [11:36:41]RAPDU: 90 00 [11:36:41]wFMCommunicate OK [11:36:41]wFMCommunicate request_size=255 [11:36:41]MH_SAM_APDU [11:36:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 78 00 00 35 04 06 00 A8 [11:36:42]Write to MH i2c: E2 02 01 72 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 78 00 00 35 04 06 00 A8 00 00 D4 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 72 8D 00 90 00 73 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]wFMCommunicate request_size=10 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 0D 02 02 05 7B AD 1C 67 0B [11:36:42]Write to MH i2c: E2 0D 00 73 8D 80 0D 02 02 05 00 7B AD 1C 67 0B 00 00 3A [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 73 8D 00 90 00 74 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 0D 03 02 [11:36:42]Write to MH i2c: E2 08 00 74 8D 80 0D 03 02 00 00 00 00 7C [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0B 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0B 00 74 8D 00 89 56 36 19 E8 58 60 E9 90 00 34 [11:36:42]RAPDU: 89 56 36 19 E8 58 60 E9 90 00 [11:36:42]wFMCommunicate OK [11:36:42]SAM_PROTO_SignData done [11:36:42]FM_MakeSignedData done [11:36:42]CreateOFDProtocolMessage [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 11 00 00 [11:36:42]Write to MH i2c: E2 08 00 75 8D 80 11 00 00 00 00 00 00 7C [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 17 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 17 00 75 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [11:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:42]wFMCommunicate OK [11:36:42]CreateOFDProtocolMessage done [11:36:42]OFDSenderStorePacket 30877 [11:36:42]StoreOFDPacket docnum=30877 [11:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 97 07 01 E3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 78 00 00 35 04 06 00 A8 7B AD 1C 67 0B 89 56 36 19 E8 58 60 E9 [11:36:42]CheckFolder [11:36:42]dirname=/storage/ofd_packets [11:36:42]CheckFolder done [11:36:42]ProducePacketName [11:36:42]name=ofd_packets/00030877 [11:36:42]NVStorageSaveData ofd_packets/00030877 [11:36:42]File name is /storage/ofd_packets/00030877 [11:36:42]Write 301 bytes [11:36:42]NVStorageSaveData done [11:36:42]OFDSenderStorePacket done [11:36:42]KKMCreateOFDPacket done [11:36:42]NVStorageSaveData kkm_last_timestamp [11:36:42]File name is /storage/kkm_last_timestamp [11:36:42]Write 4 bytes [11:36:42]NVStorageSaveData done [11:36:42]ExternCall_PrintAddStr [11:36:42]wPrintStart [11:36:42]Write to MH i2c: 01 00 00 76 8D 03 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 07 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 07 00 76 8D 00 00 00 00 00 FF 0F 18 [11:36:42]RasterBufferAndPrint [11:36:42]line Счет N : (1)343296 [11:36:42]line ИНН: 02508201610067 [11:36:42]line Контрольно-Кассовый Чек [11:36:42]line ПРОДАЖА [11:36:42]line ТРК (МРК, ГНК) : 63 [11:36:42]line Товар: 2710124130 [11:36:42]line Аи-92-К-2 [11:36:42]line 5.980 * 66.90 [11:36:42]line = 400.06 [11:36:42]line НДС 12% НСП 1% [11:36:42]line > о реализуемом товаре [11:36:42]line ОКРУГЛЕНИЕ: -0.06 [11:36:42]line ИТОГО: 400.00 [11:36:42]line Внесено: 400.00 [11:36:42]line СДАЧА: 0.00 [11:36:42]line НСП 1% : 3.54 [11:36:42]line НДС 12% : 42.48 [11:36:42]line Наличными: 400.00 [11:36:42]line Безнал.: 0.00 [11:36:42]line Место: АЗС № 78 "Партнер Нефть" [11:36:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:36:42]line СНО: Общий режим [11:36:42]line Чек 110 22.10.2024 11:36 [11:36:42]line Смена: 116 ФФД: 1.0 [11:36:42]line ЗНМ: 0300000137 [11:36:42]line РНМ: 0000000000186857 [11:36:42]line Версия ККМ: v1.0 [11:36:42]line ФМ: 0000000002094219 [11:36:42]line ФД: 30877 [11:36:42]line ФПД: 185249138763531 [11:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30877&fm=185249138763531&tin=02508201610067®Number=0000000000186857&sum=40000 [11:36:42]OFD Sender: Processing packet 30877 [packets to send 10, broken 9] [11:36:42]ProducePacketName [11:36:42]name=ofd_packets/00030877 [11:36:42]OFD Sender: To server: pG, [11:36:42]CommunicateWithHost lk.salyk.kg:30040 [11:36:42]ConnectInit lk.salyk.kg [11:36:42]written 0, free lines is 4095 [11:36:42]Connected sock=10 [11:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 97 07 01 E3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 8E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 78 00 00 35 04 06 00 A8 7B AD 1C 67 0B 89 56 36 19 E8 58 60 E9 [11:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F3 8B 47 00 F5 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 78 00 00 F4 03 04 00 D0 38 17 67 B6 04 01 00 00 66 8A 65 3B FA E7 64 24 [11:36:43]CommunicateWithHost err = 0 [11:36:43]CheckOFDResponse [11:36:43]1017 (14) - 77093643461234 [11:36:43]1041 (16) - 0000000002094219 [11:36:43]1040 (4) - 30877 [11:36:43]1012 (4) - 22.10.2024 05:32 [11:36:43]1206 (1) - 0 [11:36:43]OFD Sender: Remove packet 30877 [11:36:43]ProducePacketName [11:36:43]name=ofd_packets/00030877 [11:36:43]NVStorageDeleteData [11:36:43]Write to MH i2c: 01 00 00 A1 8D 2E [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 A1 8D 00 00 00 00 00 B1 0D F3 [11:36:43]RasterBufferAndPrint [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]written 0, free lines is 3539 [11:36:43]MH_Cut [11:36:43]Write to MH i2c: D1 01 00 A8 8D 01 07 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 01 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 01 00 A8 8D 00 06 [11:36:43]Write to MH i2c: 01 00 00 A9 8D 36 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]OFD Sender: No OFD packet to send [11:36:43]*** Cut start [11:36:43]*** Partial cut [11:36:43]*** CUTSNS_PIN = 1 [11:36:44]*** CUTSNS_PIN = 0 [11:36:44]*** Brake cut motor [11:36:44]Read from MH i2c: 01 [11:36:44]MH_I2C_Read... [11:36:44]*** Stop cut motor [11:36:44]*** Cut end [11:36:44]Read from MH i2c: 01 07 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: 01 07 00 A9 8D 00 00 00 00 00 FF 0F 4B [11:36:44]process_action close_receipt done [11:36:44]requested_data is exist [11:36:44]produce_requested_data [11:36:44]requested_item fm.sn is exist - process it [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 11 00 00 [11:36:44]Write to MH i2c: E2 08 00 AA 8D 80 11 00 00 00 00 00 00 B1 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:44]Read from MH i2c: E2 17 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 17 00 AA 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [11:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:44]wFMCommunicate OK [11:36:44]requested_item fd.num is exist - process it [11:36:44]SAM_PROTO_GetFieldsCounters [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 00 00 [11:36:44]Write to MH i2c: E2 08 00 AB 8D 80 13 00 00 00 00 00 00 B4 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 62 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 62 00 AB 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 AD [11:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 [11:36:44]wFMCommunicate OK [11:36:44]SAM_PROTO_GetFieldsCounters done [11:36:44]requested_item shift.num is exist - process it [11:36:44]requested_item shift.opened is exist - process it [11:36:44]req_shift_opened [11:36:44]FM_GetShiftState [11:36:44]SAM_PROTO_GetShiftState [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 01 00 [11:36:45]Write to MH i2c: E2 08 00 AC 8D 80 13 01 00 00 00 00 00 B6 [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:45]Read from MH i2c: E2 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 0E 00 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 0E 00 AC 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 90 [11:36:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:36:45]wFMCommunicate OK [11:36:45]SAM_PROTO_GetShiftState done [11:36:45]FM_GetShiftState done [11:36:45]req_shift_opened done [11:36:45]requested_item shift.open_date is exist - process it [11:36:45]req_shift_open_date [11:36:45]req_shift_open_date done [11:36:45]produce_requested_data done [11:36:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:36:45]process_action_free close_receipt [11:36:45]json_value_free [11:36:45]json_value_free done [11:36:45]process_json_proto returns [11:36:45]Send response to host [11:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:36:45]free response buf [11:36:45]execute_script done [11:36:45]execute_script returns [11:36:45]free content buf [11:36:45]Sock 9.Close socket [11:36:45]Sock 9.Thread stoped [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:24]accept exits with 7 [11:37:24]New connection [11:37:24]New thread 3067489636 created [11:37:24]Thread 3067346276 joined [11:37:24]Waiting for new connection... [11:37:24] Sock 7.Parse request [11:37:24]Sock 7.Check first char [11:37:24]Sock 7.First char is OK [11:37:24]request: POST /json_proto HTTP/1.0 [11:37:24]Method: POST [11:37:24]URL: /json_proto [11:37:24]Method is POST - this is cgi request [11:37:24]url: /json_proto [11:37:24]query_string will be loaded in cgi processing [11:37:24]execute_cgi json_proto POST (null) [11:37:24]execute_cgi path=json_proto method=POST [11:37:24]POST find Content-Length [11:37:24]Host: 172.17.51.3:8080 [11:37:24]Content-Length: 215 [11:37:24]Content-Type: application/json [11:37:24] [11:37:24]POST finish read [11:37:24]Found Content-Length = 215 [11:37:24]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" ] } } [11:37:24]execute_script... [11:37:24]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" ] } } [11:37:24]POST & json_proto [11:37:24]process_json_proto [11:37:24]json parsed OK: [11:37:24]protocol is kg_v1.0 [11:37:24]action value=get_value [11:37:24]process_action get_value [11:37:24]cmd_get_value [11:37:24]process_action get_value done [11:37:24]requested_data is exist [11:37:24]produce_requested_data [11:37:24]requested_item kkm.sn is exist - process it [11:37:24]requested_item kkm.ver is exist - process it [11:37:24]requested_item fm.sn is exist - process it [11:37:24]wFMCommunicate request_size=4 [11:37:24]MH_SAM_APDU [11:37:24]CAPDU: 80 11 00 00 [11:37:24]Write to MH i2c: E2 08 00 AD 8D 80 11 00 00 00 00 00 00 B4 [11:37:24]Write i2c OK [11:37:24]MH_I2C_Read... [11:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:24]Read from MH i2c: E2 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 17 00 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 17 00 AD 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [11:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:37:24]wFMCommunicate OK [11:37:24]requested_item fd.num is exist - process it [11:37:24]SAM_PROTO_GetFieldsCounters [11:37:24]wFMCommunicate request_size=4 [11:37:24]MH_SAM_APDU [11:37:24]CAPDU: 80 13 00 00 [11:37:24]Write to MH i2c: E2 08 00 AE 8D 80 13 00 00 00 00 00 00 B7 [11:37:24]Write i2c OK [11:37:24]MH_I2C_Read... [11:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:24]Read from MH i2c: E2 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 62 00 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 62 00 AE 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 B0 [11:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 [11:37:24]wFMCommunicate OK [11:37:24]SAM_PROTO_GetFieldsCounters done [11:37:24]requested_item shift.num is exist - process it [11:37:24]requested_item shift.opened is exist - process it [11:37:24]req_shift_opened [11:37:24]FM_GetShiftState [11:37:24]SAM_PROTO_GetShiftState [11:37:24]wFMCommunicate request_size=4 [11:37:24]MH_SAM_APDU [11:37:24]CAPDU: 80 13 01 00 [11:37:24]Write to MH i2c: E2 08 00 AF 8D 80 13 01 00 00 00 00 00 B9 [11:37:24]Write i2c OK [11:37:24]MH_I2C_Read... [11:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:24]Read from MH i2c: E2 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 0E 00 [11:37:24]MH_I2C_Read... [11:37:24]Read from MH i2c: E2 0E 00 AF 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 93 [11:37:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:37:24]wFMCommunicate OK [11:37:24]SAM_PROTO_GetShiftState done [11:37:24]FM_GetShiftState done [11:37:24]req_shift_opened done [11:37:24]requested_item shift.open_date is exist - process it [11:37:24]req_shift_open_date [11:37:24]req_shift_open_date done [11:37:24]produce_requested_data done [11:37:24]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:37:24]process_action_free get_value [11:37:24]json_value_free [11:37:24]json_value_free done [11:37:24]process_json_proto returns [11:37:24]Send response to host [11:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:37:24]free response buf [11:37:24]execute_script done [11:37:24]execute_script returns [11:37:24]free content buf [11:37:24]Sock 7.Close socket [11:37:24]Sock 7.Thread stoped [11:37:24]accept exits with 9 [11:37:24]New connection [11:37:24]New thread 3067346276 created [11:37:24]Thread 3067489636 joined [11:37:24]Waiting for new connection... [11:37:24] Sock 9.Parse request [11:37:24]Sock 9.Check first char [11:37:24]Sock 9.First char is OK [11:37:24]request: POST /json_proto HTTP/1.0 [11:37:24]Method: POST [11:37:24]URL: /json_proto [11:37:24]Method is POST - this is cgi request [11:37:24]url: /json_proto [11:37:24]query_string will be loaded in cgi processing [11:37:24]execute_cgi json_proto POST (null) [11:37:24]execute_cgi path=json_proto method=POST [11:37:24]POST find Content-Length [11:37:24]Host: 172.17.51.3:8080 [11:37:24]Content-Length: 331 [11:37:24]Content-Type: application/json [11:37:24] [11:37:24]POST finish read [11:37:24]Found Content-Length = 331 [11:37:24]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" ] } } [11:37:24]execute_script... [11:37:24]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" ] } } [11:37:24]POST & json_proto [11:37:24]process_json_proto [11:37:24]json parsed OK: [11:37:24]protocol is kg_v1.0 [11:37:24]action value=get_value [11:37:25]process_action get_value [11:37:25]cmd_get_value [11:37:25]process_action get_value done [11:37:25]requested_data is exist [11:37:25]produce_requested_data [11:37:25]requested_item fm.sale.total is exist - process it [11:37:25]SAM_PROTO_GetFMData [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 13 03 00 [11:37:25]Write to MH i2c: E2 08 00 B0 8D 80 13 03 00 00 00 00 00 BC [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:37:25]Read from MH i2c: E2 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 FD 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 FD 00 B0 8D 00 BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 43 [11:37:25]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:37:25]wFMCommunicate OK [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 17 00 00 [11:37:25]Write to MH i2c: E2 08 00 B1 8D 80 17 00 00 00 00 00 00 BE [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:25]Read from MH i2c: E2 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 FD 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 FD 00 B1 8D 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [11:37:25]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:37:25]wFMCommunicate OK [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 17 00 00 [11:37:25]Write to MH i2c: E2 08 00 B2 8D 80 17 00 00 00 00 00 00 BF [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 FD 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 FD 00 B2 8D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [11:37:26]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 [11:37:26]wFMCommunicate OK [11:37:26]wFMCommunicate request_size=4 [11:37:26]MH_SAM_APDU [11:37:26]CAPDU: 80 17 00 00 [11:37:26]Write to MH i2c: E2 08 00 B3 8D 80 17 00 00 00 00 00 00 C0 [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 FD 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 FD 00 B3 8D 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 3A [11:37:26]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 [11:37:26]wFMCommunicate OK [11:37:26]wFMCommunicate request_size=4 [11:37:26]MH_SAM_APDU [11:37:26]CAPDU: 80 17 00 00 [11:37:26]Write to MH i2c: E2 08 00 B4 8D 80 17 00 00 00 00 00 00 C1 [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 DC 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 DC 00 B4 8D 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 A5 [11:37:26]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 [11:37:26]wFMCommunicate OK [11:37:26]SAM_PROTO_GetFMData done [11:37:26]requested_item fm.sale_refund.total is exist - process it [11:37:26]requested_item fm.buy.total is exist - process it [11:37:26]requested_item shift.sale.total is exist - process it [11:37:26]SAM_PROTO_GetShiftData [11:37:26]wFMCommunicate request_size=4 [11:37:26]MH_SAM_APDU [11:37:26]CAPDU: 80 13 02 00 [11:37:26]Write to MH i2c: E2 08 00 B5 8D 80 13 02 00 00 00 00 00 C0 [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 B5 8D 00 AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 9A [11:37:27]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 [11:37:27]wFMCommunicate OK [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 17 00 00 [11:37:27]Write to MH i2c: E2 08 00 B6 8D 80 17 00 00 00 00 00 00 C3 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 B6 8D 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 DC [11:37:27]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 [11:37:27]wFMCommunicate OK [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 17 00 00 [11:37:27]Write to MH i2c: E2 08 00 B7 8D 80 17 00 00 00 00 00 00 C4 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 FD 00 B7 8D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [11:37:28]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 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 17 00 00 [11:37:28]Write to MH i2c: E2 08 00 B8 8D 80 17 00 00 00 00 00 00 C5 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 FD 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 FD 00 B8 8D 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 43 [11:37:28]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 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 17 00 00 [11:37:28]Write to MH i2c: E2 08 00 B9 8D 80 17 00 00 00 00 00 00 C6 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 CC 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 CC 00 B9 8D 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 A7 [11:37:28]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 [11:37:28]wFMCommunicate OK [11:37:28]SAM_PROTO_GetShiftData done [11:37:28]requested_item shift.sale.total_cash is exist - process it [11:37:28]requested_item shift.sale_refund.total is exist - process it [11:37:28]requested_item shift.sale_refund.total_cash is exist - process it [11:37:28]requested_item shift.buy.total is exist - process it [11:37:28]requested_item shift.buy.total_cash is exist - process it [11:37:28]produce_requested_data done [11:37:28]produce_requested_data return {"fm.sale.total":27808756.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":120204.30,"shift.sale.total_cash":105699.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} [11:37:28]process_action_free get_value [11:37:28]json_value_free [11:37:28]json_value_free done [11:37:28]process_json_proto returns [11:37:28]Send response to host [11:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27808756.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":120204.30,"shift.sale.total_cash":105699.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}}} [11:37:28]free response buf [11:37:28]execute_script done [11:37:28]execute_script returns [11:37:28]free content buf [11:37:28]Sock 9.Close socket [11:37:28]Sock 9.Thread stoped [11:37:28]accept exits with 7 [11:37:28]New connection [11:37:28]New thread 3067489636 created [11:37:28]Thread 3067346276 joined [11:37:28]Waiting for new connection... [11:37:28] Sock 7.Parse request [11:37:28]Sock 7.Check first char [11:37:28]Sock 7.First char is OK [11:37:28]request: POST /json_proto HTTP/1.0 [11:37:28]Method: POST [11:37:28]URL: /json_proto [11:37:28]Method is POST - this is cgi request [11:37:28]url: /json_proto [11:37:28]query_string will be loaded in cgi processing [11:37:28]execute_cgi json_proto POST (null) [11:37:28]execute_cgi path=json_proto method=POST [11:37:28]POST find Content-Length [11:37:28]Host: 172.17.51.3:8080 [11:37:28]Content-Length: 331 [11:37:28]Content-Type: application/json [11:37:28] [11:37:28]POST finish read [11:37:28]Found Content-Length = 331 [11:37:28]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" ] } } [11:37:28]execute_script... [11:37:28]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" ] } } [11:37:28]POST & json_proto [11:37:28]process_json_proto [11:37:28]json parsed OK: [11:37:28]protocol is kg_v1.0 [11:37:28]action value=get_value [11:37:28]process_action get_value [11:37:28]cmd_get_value [11:37:28]process_action get_value done [11:37:28]requested_data is exist [11:37:28]produce_requested_data [11:37:28]requested_item fm.sale.total is exist - process it [11:37:28]SAM_PROTO_GetFMData [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 13 03 00 [11:37:28]Write to MH i2c: E2 08 00 BA 8D 80 13 03 00 00 00 00 00 C6 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:29]OFD Sender: No OFD packet to send [11:37:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 FD 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 FD 00 BA 8D 00 BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 4D [11:37:29]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:37:29]wFMCommunicate OK [11:37:29]wFMCommunicate request_size=4 [11:37:29]MH_SAM_APDU [11:37:29]CAPDU: 80 17 00 00 [11:37:29]Write to MH i2c: E2 08 00 BB 8D 80 17 00 00 00 00 00 00 C8 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 FD 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 FD 00 BB 8D 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [11:37:29]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:37:29]wFMCommunicate OK [11:37:29]wFMCommunicate request_size=4 [11:37:29]MH_SAM_APDU [11:37:29]CAPDU: 80 17 00 00 [11:37:29]Write to MH i2c: E2 08 00 BC 8D 80 17 00 00 00 00 00 00 C9 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 FD 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 FD 00 BC 8D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [11:37: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 [11:37:30]wFMCommunicate OK [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 17 00 00 [11:37:30]Write to MH i2c: E2 08 00 BD 8D 80 17 00 00 00 00 00 00 CA [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 FD 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 FD 00 BD 8D 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 44 [11:37:30]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 [11:37:30]wFMCommunicate OK [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 17 00 00 [11:37:30]Write to MH i2c: E2 08 00 BE 8D 80 17 00 00 00 00 00 00 CB [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 DC 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 DC 00 BE 8D 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 AF [11:37: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 [11:37:31]wFMCommunicate OK [11:37:31]SAM_PROTO_GetFMData done [11:37:31]requested_item fm.sale_refund.total is exist - process it [11:37:31]requested_item fm.buy.total is exist - process it [11:37:31]requested_item shift.sale.total is exist - process it [11:37:31]SAM_PROTO_GetShiftData [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 13 02 00 [11:37:31]Write to MH i2c: E2 08 00 BF 8D 80 13 02 00 00 00 00 00 CA [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 FD 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 FD 00 BF 8D 00 AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 A4 [11:37:31]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 [11:37:31]wFMCommunicate OK [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 17 00 00 [11:37:31]Write to MH i2c: E2 08 00 C0 8D 80 17 00 00 00 00 00 00 CD [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 FD 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 FD 00 C0 8D 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 E6 [11:37:32]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 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 17 00 00 [11:37:32]Write to MH i2c: E2 08 00 C1 8D 80 17 00 00 00 00 00 00 CE [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 FD 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 FD 00 C1 8D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [11:37:32]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 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 17 00 00 [11:37:32]Write to MH i2c: E2 08 00 C2 8D 80 17 00 00 00 00 00 00 CF [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 FD 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 FD 00 C2 8D 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 4D [11:37:33]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 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 17 00 00 [11:37:33]Write to MH i2c: E2 08 00 C3 8D 80 17 00 00 00 00 00 00 D0 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 CC 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 CC 00 C3 8D 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 B1 [11:37:33]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 [11:37:33]wFMCommunicate OK [11:37:33]SAM_PROTO_GetShiftData done [11:37:33]requested_item shift.sale.total_cash is exist - process it [11:37:33]requested_item shift.sale_refund.total is exist - process it [11:37:33]requested_item shift.sale_refund.total_cash is exist - process it [11:37:33]requested_item shift.buy.total is exist - process it [11:37:33]requested_item shift.buy.total_cash is exist - process it [11:37:33]produce_requested_data done [11:37:33]produce_requested_data return {"fm.sale.total":27808756.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":120204.30,"shift.sale.total_cash":105699.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} [11:37:33]process_action_free get_value [11:37:33]json_value_free [11:37:33]json_value_free done [11:37:33]process_json_proto returns [11:37:33]Send response to host [11:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27808756.41,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":120204.30,"shift.sale.total_cash":105699.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}}} [11:37:33]free response buf [11:37:33]execute_script done [11:37:33]execute_script returns [11:37:33]free content buf [11:37:33]Sock 7.Close socket [11:37:33]Sock 7.Thread stoped [11:37:33]accept exits with 9 [11:37:33]New connection [11:37:33]New thread 3067346276 created [11:37:33]Thread 3067489636 joined [11:37:33]Waiting for new connection... [11:37:33] Sock 9.Parse request [11:37:33]Sock 9.Check first char [11:37:33]Sock 9.First char is OK [11:37:33]request: POST /json_proto HTTP/1.0 [11:37:33]Method: POST [11:37:33]URL: /json_proto [11:37:33]Method is POST - this is cgi request [11:37:33]url: /json_proto [11:37:33]query_string will be loaded in cgi processing [11:37:33]execute_cgi json_proto POST (null) [11:37:33]execute_cgi path=json_proto method=POST [11:37:33]POST find Content-Length [11:37:33]Host: 172.17.51.3:8080 [11:37:33]Content-Length: 288 [11:37:33]Content-Type: application/json [11:37:33] [11:37:33]POST finish read [11:37:33]Found Content-Length = 288 [11:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:33]execute_script... [11:37:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:33]POST & json_proto [11:37:33]process_json_proto [11:37:33]json parsed OK: [11:37:33]protocol is kg_v1.0 [11:37:33]action value=x_report [11:37:33]process_action x_report [11:37:33]cmd_x_report [11:37:33]MH_GetDate [11:37:33]Write to MH i2c: F0 00 00 C4 8D 40 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 09 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 09 00 C4 8D 00 88 8E 17 67 04 C1 95 66 9D [11:37:33]GetLastDocTimeStamp 1729597010 [11:37:33]current date 1729597064 [11:37:33]FM_GetShiftState [11:37:33]SAM_PROTO_GetShiftState [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 13 01 00 [11:37:33]Write to MH i2c: E2 08 00 C5 8D 80 13 01 00 00 00 00 00 CF [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0E 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0E 00 C5 8D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A9 [11:37:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:37:33]wFMCommunicate OK [11:37:33]SAM_PROTO_GetShiftState done [11:37:33]FM_GetShiftState done [11:37:33]KKMCreateXReportDocument [11:37:33]Load OK [11:37:33]Malloc new data [11:37:33]MH_GetDate [11:37:33]Write to MH i2c: F0 00 00 C6 8D 42 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 09 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: F0 09 00 C6 8D 00 88 8E 17 67 04 C1 95 66 9F [11:37:33]Malloc new data [11:37:33]Malloc new data [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 11 00 00 [11:37:33]Write to MH i2c: E2 08 00 C7 8D 80 11 00 00 00 00 00 00 CE [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 17 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 17 00 C7 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [11:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:37:34]wFMCommunicate OK [11:37:34]SAM_PROTO_GetFieldsCounters [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 13 00 00 [11:37:34]Write to MH i2c: E2 08 00 C8 8D 80 13 00 00 00 00 00 00 D1 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]OFD Sender: No OFD packet to send [11:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 62 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 62 00 C8 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 CA [11:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 [11:37:34]wFMCommunicate OK [11:37:34]SAM_PROTO_GetFieldsCounters done [11:37:34]Malloc new data [11:37:34]Malloc new data [11:37:34]Malloc new data [11:37:34]KKMCreateXReportDocument OK [11:37:34]KKMSetXReportData OK [11:37:34]KKMPrepareXReportFMData [11:37:34]SAM_PROTO_GetShiftData [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 13 02 00 [11:37:34]Write to MH i2c: E2 08 00 C9 8D 80 13 02 00 00 00 00 00 D4 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 FD 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 FD 00 C9 8D 00 AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 AE [11:37:34]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6E 00 00 00 69 04 9C 00 6F 04 04 00 6E 00 00 00 B1 04 03 00 CE 6A B7 70 04 03 00 AC 48 A1 72 04 03 00 22 22 16 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 85 7B 13 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 9D 9F 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 [11:37:35]wFMCommunicate OK [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 17 00 00 [11:37:35]Write to MH i2c: E2 08 00 CA 8D 80 17 00 00 00 00 00 00 D7 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 FD 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 FD 00 CA 8D 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 F0 [11:37:35]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 [11:37:35]wFMCommunicate OK [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 17 00 00 [11:37:35]Write to MH i2c: E2 08 00 CB 8D 80 17 00 00 00 00 00 00 D8 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 FD 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 FD 00 CB 8D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8C [11:37: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 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 17 00 00 [11:37:36]Write to MH i2c: E2 08 00 CC 8D 80 17 00 00 00 00 00 00 D9 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 FD 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 FD 00 CC 8D 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 57 [11:37:36]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 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 17 00 00 [11:37:36]Write to MH i2c: E2 08 00 CD 8D 80 17 00 00 00 00 00 00 DA [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 CC 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 CC 00 CD 8D 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 BB [11:37: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 [11:37:37]wFMCommunicate OK [11:37:37]SAM_PROTO_GetShiftData done [11:37:37]1194 (1195) - счетчики итогов смены [11:37:37] 1134 (4) - 110 - количество чеков со всеми признаками расчетов [11:37:37] 1129 (156) - счетчики операций «приход» [11:37:37] 1135 (4) - 110 - количество чеков по признаку расчетов [11:37:37] 1201 (3) - 120204.30 - общая итоговая сумма в чеках [11:37:37] 1136 (3) - 105699.00 - итоговая сумма в чеках наличными [11:37:37] 1138 (3) - 14505.30 - итоговая сумма в чеках безналичными [11:37:37] 1024 (123) - суммы налогов [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 0% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1006 (12) - суммы НДС [11:37:37] 1010 (1) - 12% - код ставки НДС [11:37:37] 1011 (3) - 12768.05 - сумма НДС по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (12) - суммы НСП [11:37:37] 1014 (1) - 1% - код ставки НСП [11:37:37] 1015 (3) - 1063.97 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 2% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 3% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 5% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1130 (141) - счетчики операций «возврат прихода» [11:37:37] 1135 (4) - 0 - количество чеков по признаку расчетов [11:37:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:37:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:37:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:37:37] 1024 (117) - суммы налогов [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 0% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 12% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 2% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 3% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 5% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1131 (141) - счетчики операций «расход» [11:37:37] 1135 (4) - 0 - количество чеков по признаку расчетов [11:37:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:37:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:37:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:37:37] 1024 (117) - суммы налогов [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 0% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 12% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 2% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 3% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 5% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1132 (141) - счетчики операций «возврат расхода» [11:37:37] 1135 (4) - 0 - количество чеков по признаку расчетов [11:37:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:37:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:37:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:37:37] 1024 (117) - суммы налогов [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 0% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1006 (9) - суммы НДС [11:37:37] 1010 (1) - 12% - код ставки НДС [11:37:37] 1011 (0) - 0.00 - сумма НДС по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 2% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 3% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 5% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 0,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1007 (9) - суммы НСП [11:37:37] 1014 (1) - 1,50% - код ставки НСП [11:37:37] 1015 (0) - 0.00 - сумма НСП по ставке [11:37:37] 1133 (588) - - счетчики коррекции - не используются [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1194 (04AA) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1134 (046E) [11:37:37]Malloc new data [11:37:37]Processing tag 1129 (0469) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1135 (046F) [11:37:37]Malloc new data [11:37:37]Processing tag 1201 (04B1) [11:37:37]Malloc new data [11:37:37]Processing tag 1136 (0470) [11:37:37]Malloc new data [11:37:37]Processing tag 1138 (0472) [11:37:37]Malloc new data [11:37:37]Processing tag 1024 (0400) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]SetTLVBufToDocument err=0 [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1130 (046A) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1135 (046F) [11:37:37]Malloc new data [11:37:37]Processing tag 1201 (04B1) [11:37:37]Malloc new data [11:37:37]Processing tag 1136 (0470) [11:37:37]Malloc new data [11:37:37]Processing tag 1138 (0472) [11:37:37]Malloc new data [11:37:37]Processing tag 1024 (0400) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]SetTLVBufToDocument err=0 [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1131 (046B) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1135 (046F) [11:37:37]Malloc new data [11:37:37]Processing tag 1201 (04B1) [11:37:37]Malloc new data [11:37:37]Processing tag 1136 (0470) [11:37:37]Malloc new data [11:37:37]Processing tag 1138 (0472) [11:37:37]Malloc new data [11:37:37]Processing tag 1024 (0400) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1006 (03EE) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1010 (03F2) [11:37:37]Malloc new data [11:37:37]Processing tag 1011 (03F3) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:37]SetTLVBufToDocument [11:37:37]Processing tag 1014 (03F6) [11:37:37]Malloc new data [11:37:37]Processing tag 1015 (03F7) [11:37:37]Malloc new data [11:37:37]SetTLVBufToDocument err=0 [11:37:37]Processing tag 1007 (03EF) [11:37:37]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]SetTLVBufToDocument err=0 [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1132 (046C) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1135 (046F) [11:37:38]Malloc new data [11:37:38]Processing tag 1201 (04B1) [11:37:38]Malloc new data [11:37:38]Processing tag 1136 (0470) [11:37:38]Malloc new data [11:37:38]Processing tag 1138 (0472) [11:37:38]Malloc new data [11:37:38]Processing tag 1024 (0400) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1006 (03EE) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1010 (03F2) [11:37:38]Malloc new data [11:37:38]Processing tag 1011 (03F3) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1006 (03EE) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1010 (03F2) [11:37:38]Malloc new data [11:37:38]Processing tag 1011 (03F3) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1007 (03EF) [11:37:38]Load OK [11:37:38]SetTLVBufToDocument [11:37:38]Processing tag 1014 (03F6) [11:37:38]Malloc new data [11:37:38]Processing tag 1015 (03F7) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]SetTLVBufToDocument err=0 [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Processing tag 1133 (046D) [11:37:38]Malloc new data [11:37:38]SetTLVBufToDocument err=0 [11:37:38]SetTLVBufToDocument err=0 [11:37:38]Malloc new data [11:37:38]SAM_PROTO_GetFMData [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 13 03 00 [11:37:38]Write to MH i2c: E2 08 00 CE 8D 80 13 03 00 00 00 00 00 DA [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 FD 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 FD 00 CE 8D 00 BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 61 [11:37:38]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [11:37:38]wFMCommunicate OK [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 17 00 00 [11:37:38]Write to MH i2c: E2 08 00 CF 8D 80 17 00 00 00 00 00 00 DC [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 FD 00 [11:37:39]MH_I2C_Read... [11:37:39]OFD Sender: No OFD packet to send [11:37:39]Read from MH i2c: E2 FD 00 CF 8D 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [11:37:39]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 17 00 00 [11:37:39]Write to MH i2c: E2 08 00 D0 8D 80 17 00 00 00 00 00 00 DD [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 FD 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 FD 00 D0 8D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [11:37:40]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [11:37:40]wFMCommunicate OK [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 17 00 00 [11:37:40]Write to MH i2c: E2 08 00 D1 8D 80 17 00 00 00 00 00 00 DE [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 FD 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 FD 00 D1 8D 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 58 [11:37:40]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 [11:37:40]wFMCommunicate OK [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 17 00 00 [11:37:40]Write to MH i2c: E2 08 00 D2 8D 80 17 00 00 00 00 00 00 DF [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 DC 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 DC 00 D2 8D 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 C3 [11:37:41]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_GetFMData done [11:37:41]FM_GetFMData:85 04 BB 04 6E 04 04 00 B5 77 00 00 69 04 A1 00 6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:37:42]oper:6F 04 04 00 A6 77 00 00 B1 04 04 00 79 CB C0 A5 70 04 04 00 DC A8 EB 84 72 04 04 00 9D 22 D5 20 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 52 67 9B 11 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 E9 9B 77 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 [11:37:42]total:79 CB C0 A5 [11:37:42]Malloc new data [11:37:42]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:37:42]total:88 7F 52 [11:37:42]Malloc new data [11:37:42]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 [11:37:42]total: [11:37:42]Malloc new data [11:37:42]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 [11:37:42]total: [11:37:42]Malloc new data [11:37:42]KKMPrepareXReportFMData err=0 [11:37:42]Х отчет ИНН: 02508201610067 Кассир: Таалайбек кызы А. 22.10.2024 11:37 Смена: 10 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Всего чеков: 110 ИТОГИ ПРИХОД Чеков: 110 Общий итог: 120204.30 Итого наличными: 105699.00 Итого безнал.: 14505.30 НДС 0% : 0.00 НДС 12% : 12768.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1063.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 105699.00 НС Приход: 27808756.41 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094219 [11:37:42]StoreToDocumentArchive [11:37:42]MH_GetDate [11:37:42]Write to MH i2c: F0 00 00 D3 8D 4F [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: F0 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: F0 09 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: F0 09 00 D3 8D 00 90 8E 17 67 04 C1 95 66 B4 [11:37:42]shift 10 fd 1729597072 [11:37:42]Create dir for shift 0010 [11:37:42]save to /storage/0010/doc_1729597072 [11:37:42]save last doc name /storage/0010/doc_1729597072 to /storage/kkm_last_doc_name [11:37:42]save OK [11:37:42]Clear old archive folders... [11:37:42]NVStorageSaveData kkm_last_timestamp [11:37:42]File name is /storage/kkm_last_timestamp [11:37:42]Write 4 bytes [11:37:42]NVStorageSaveData done [11:37:42]ExternCall_PrintAddStr [11:37:42]wPrintStart [11:37:42]Write to MH i2c: 01 00 00 D4 8D 61 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 D4 8D 00 00 00 00 00 FF 0F 76 [11:37:42]RasterBufferAndPrint [11:37:42]line Х отчет [11:37:42]line ИНН: 02508201610067 [11:37:42]line Кассир: Таалайбек кызы А. [11:37:42]line 22.10.2024 11:37 [11:37:42]line Смена: 10 [11:37:42]line РНМ: 0000000000186857 [11:37:42]line ЗНМ: 0300000137 [11:37:42]line СНО: Общий режим [11:37:42]line Всего чеков: 110 [11:37:42]line ИТОГИ ПРИХОД [11:37:42]line Чеков: 110 [11:37:42]line Общий итог: 120204.30 [11:37:42]line Итого наличными: 105699.00 [11:37:42]line Итого безнал.: 14505.30 [11:37:42]line НДС 0% : 0.00 [11:37:42]line НДС 12% : 12768.05 [11:37:42]line НСП 0% : 0.00 [11:37:42]line НСП 1,50% : 0.00 [11:37:42]line НСП 0,50% : 0.00 [11:37:42]line НСП 5% : 0.00 [11:37:42]line НСП 3% : 0.00 [11:37:42]line НСП 2% : 0.00 [11:37:42]line НСП 1% : 1063.97 [11:37:42]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:37:42]line Чеков: 0 [11:37:42]line Общий итог: 0.00 [11:37:42]line Итого наличными: 0.00 [11:37:42]line Итого безнал.: 0.00 [11:37:42]line НДС 0% : 0.00 [11:37:42]line НДС 12% : 0.00 [11:37:42]line НСП 0% : 0.00 [11:37:42]line НСП 1,50% : 0.00 [11:37:42]line НСП 0,50% : 0.00 [11:37:42]line НСП 5% : 0.00 [11:37:42]line НСП 3% : 0.00 [11:37:42]line НСП 2% : 0.00 [11:37:42]line НСП 1% : 0.00 [11:37:42]line ИТОГИ РАСХОД [11:37:42]line Чеков: 0 [11:37:42]line Общий итог: 0.00 [11:37:42]line Итого наличными: 0.00 [11:37:42]line Итого безнал.: 0.00 [11:37:42]line НДС 0% : 0.00 [11:37:42]line НДС 12% : 0.00 [11:37:42]line НСП 0% : 0.00 [11:37:42]line НСП 1,50% : 0.00 [11:37:42]line НСП 0,50% : 0.00 [11:37:42]line НСП 5% : 0.00 [11:37:42]line НСП 3% : 0.00 [11:37:42]line НСП 2% : 0.00 [11:37:42]line НСП 1% : 0.00 [11:37:42]line ИТОГИ ВОЗВРАТ РАСХОДА [11:37:42]line Чеков: 0 [11:37:42]line Общий итог: 0.00 [11:37:42]line Итого наличными: 0.00 [11:37:42]line Итого безнал.: 0.00 [11:37:42]line НДС 0% : 0.00 [11:37:42]line НДС 12% : 0.00 [11:37:42]line НСП 0% : 0.00 [11:37:42]line НСП 1,50% : 0.00 [11:37:42]line НСП 0,50% : 0.00 [11:37:42]line НСП 5% : 0.00 [11:37:42]line НСП 3% : 0.00 [11:37:42]line НСП 2% : 0.00 [11:37:42]line НСП 1% : 0.00 [11:37:42]line Сумма внесений: 0.00 [11:37:42]line Сумма выплат: 0.00 [11:37:42]line Нал. в кассе: 105699.00 [11:37:42]line НС Приход: 27808756.41 [11:37:42]line НС Возвр.Прихода: 54066.00 [11:37:42]line НС Расход: 0.00 [11:37:42]line НС Возвр.Расхода: 0.00 [11:37:42]line ФМ: 0000000002094219 [11:37:42]written 0, free lines is 4095 [11:37:43]Write to MH i2c: 01 00 00 1F 8E AD [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 1F 8E 00 00 00 00 00 13 0B D2 [11:37:43]RasterBufferAndPrint [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]written 0, free lines is 2883 [11:37:43]MH_Cut [11:37:43]Write to MH i2c: D1 01 00 26 8E 01 86 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 26 8E 00 85 [11:37:43]Write to MH i2c: 01 00 00 27 8E B5 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:44]OFD Sender: No OFD packet to send [11:37:44]*** Cut start [11:37:44]*** Partial cut [11:37:44]*** CUTSNS_PIN = 1 [11:37:44]*** CUTSNS_PIN = 0 [11:37:44]*** Brake cut motor [11:37:45]Read from MH i2c: 01 [11:37:45]MH_I2C_Read... [11:37:45]*** Stop cut motor [11:37:45]*** Cut end [11:37:45]Read from MH i2c: 01 07 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 07 00 27 8E 00 00 00 00 00 FF 0F CA [11:37:45]process_action x_report done [11:37:45]requested_data is exist [11:37:45]produce_requested_data [11:37:45]requested_item fd.num is exist - process it [11:37:45]SAM_PROTO_GetFieldsCounters [11:37:45]wFMCommunicate request_size=4 [11:37:45]MH_SAM_APDU [11:37:45]CAPDU: 80 13 00 00 [11:37:45]Write to MH i2c: E2 08 00 28 8E 80 13 00 00 00 00 00 00 32 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:45]Read from MH i2c: E2 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 62 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 62 00 28 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 2B [11:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 78 00 00 0E 04 04 00 74 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 [11:37:45]wFMCommunicate OK [11:37:45]SAM_PROTO_GetFieldsCounters done [11:37:45]requested_item shift.num is exist - process it [11:37:45]requested_item shift.opened is exist - process it [11:37:45]req_shift_opened [11:37:45]FM_GetShiftState [11:37:45]SAM_PROTO_GetShiftState [11:37:45]wFMCommunicate request_size=4 [11:37:45]MH_SAM_APDU [11:37:45]CAPDU: 80 13 01 00 [11:37:45]Write to MH i2c: E2 08 00 29 8E 80 13 01 00 00 00 00 00 34 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:45]Read from MH i2c: E2 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 29 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0E [11:37:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:37:45]wFMCommunicate OK [11:37:45]SAM_PROTO_GetShiftState done [11:37:45]FM_GetShiftState done [11:37:45]req_shift_opened done [11:37:45]requested_item shift.open_date is exist - process it [11:37:45]req_shift_open_date [11:37:45]req_shift_open_date done [11:37:45]produce_requested_data done [11:37:45]produce_requested_data return {"fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:37:45]process_action_free x_report [11:37:45]json_value_free [11:37:45]json_value_free done [11:37:45]process_json_proto returns [11:37:45]Send response to host [11:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30877,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:37:45]free response buf [11:37:45]execute_script done [11:37:45]execute_script returns [11:37:45]free content buf [11:37:45]Sock 9.Close socket [11:37:45]Sock 9.Thread stoped [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:47]accept exits with 7 [11:40:47]New connection [11:40:47]New thread 3067489636 created [11:40:47]Thread 3067346276 joined [11:40:47]Waiting for new connection... [11:40:47] Sock 7.Parse request [11:40:47]Sock 7.Check first char [11:40:47]Sock 7.First char is OK [11:40:47]request: POST /json_proto HTTP/1.0 [11:40:47]Method: POST [11:40:47]URL: /json_proto [11:40:47]Method is POST - this is cgi request [11:40:47]url: /json_proto [11:40:47]query_string will be loaded in cgi processing [11:40:47]execute_cgi json_proto POST (null) [11:40:47]execute_cgi path=json_proto method=POST [11:40:47]POST find Content-Length [11:40:47]Host: 172.17.51.3:8080 [11:40:47]Content-Length: 682 [11:40:47]Content-Type: application/json [11:40:47] [11:40:47]POST finish read [11:40:47]Found Content-Length = 682 [11:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [11:40:47]execute_script... [11:40: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)343298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [11:40:47]POST & json_proto [11:40:47]process_json_proto [11:40:47]json parsed OK: [11:40:47]protocol is kg_v1.0 [11:40:47]action value=close_receipt [11:40:47]process_action close_receipt [11:40:47]cmd_close_receipt [11:40:47]MH_GetDate [11:40:47]Write to MH i2c: F0 00 00 2A 8E A7 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 09 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 09 00 2A 8E 00 49 8F 17 67 04 C1 95 66 C6 [11:40:47]GetLastDocTimeStamp 1729597064 [11:40:47]current date 1729597257 [11:40:47]FM_GetShiftState [11:40:47]SAM_PROTO_GetShiftState [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 13 01 00 [11:40:47]Write to MH i2c: E2 08 00 2B 8E 80 13 01 00 00 00 00 00 36 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 2B 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 10 [11:40:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:40:47]wFMCommunicate OK [11:40:47]SAM_PROTO_GetShiftState done [11:40:47]FM_GetShiftState done [11:40:47]opened in 1729557342 [11:40:47]opened+sec_in_day 1729643742 [11:40:47]quantity*price = 120018 [11:40:47]sum+1 = 120020 [11:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 111 22.10.2024 11:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30878 ФПД: 173543313136577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30878&fm=173543313136577&tin=02508201610067®Number=0000000000186857&sum=120000 [11:40:48]StoreToDocumentArchive [11:40:48]shift 116 fd 30878 [11:40:48]save to /storage/0116/doc_00030878 [11:40:48]save last doc name /storage/0116/doc_00030878 to /storage/kkm_last_doc_name [11:40:48]save OK [11:40:48]Clear old archive folders... [11:40:48]Remove dir /storage/0010 [11:40:48]opendir ok [11:40:48]file . [11:40:48]file .. [11:40:48]file doc_1729597072 [11:40:48]remove file /storage/0010/doc_1729597072 [11:40:48]remove dir /storage/0010 [11:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:48]tlvbuf is 01E7B510 [11:40:48]SAM_PROTO_ClearQueue [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 09 00 00 [11:40:48]Write to MH i2c: E2 08 00 38 8E 80 09 00 00 00 00 00 00 38 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 38 8E 00 90 00 3A [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_ClearQueue done [11:40:48]KKMCreateOFDPacket [11:40:48]OFDProtocolAddRootSTLVToBuf [11:40:48]FM_MakeSignedData [11:40:48]FM_MakeSignedData [11:40:48]SAM_PROTO_SignData [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 01 02 [11:40:48]Write to MH i2c: E2 08 00 39 8E 80 0D 01 02 00 00 00 00 40 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 39 8E 00 90 00 3B [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=255 [11:40:48]MH_SAM_APDU [11:40: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 78 00 00 35 04 06 00 9D [11:40:48]Write to MH i2c: E2 02 01 3A 8E 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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 78 00 00 35 04 06 00 9D 00 00 C4 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 3A 8E 00 90 00 3C [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=10 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 05 D6 33 88 5B C1 [11:40:48]Write to MH i2c: E2 0D 00 3B 8E 80 0D 02 02 05 00 D6 33 88 5B C1 00 00 FA [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 3B 8E 00 90 00 3D [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 03 02 [11:40:48]Write to MH i2c: E2 08 00 3C 8E 80 0D 03 02 00 00 00 00 45 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 0B 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 0B 00 3C 8E 00 5A AA 92 25 52 08 3F 7C 90 00 16 [11:40:49]RAPDU: 5A AA 92 25 52 08 3F 7C 90 00 [11:40:49]wFMCommunicate OK [11:40:49]SAM_PROTO_SignData done [11:40:49]FM_MakeSignedData done [11:40:49]CreateOFDProtocolMessage [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 11 00 00 [11:40:49]Write to MH i2c: E2 08 00 3D 8E 80 11 00 00 00 00 00 00 45 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 17 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 17 00 3D 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [11:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:40:49]wFMCommunicate OK [11:40:49]CreateOFDProtocolMessage done [11:40:49]OFDSenderStorePacket 30878 [11:40:49]StoreOFDPacket docnum=30878 [11:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 42 07 01 41 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 78 00 00 35 04 06 00 9D D6 33 88 5B C1 5A AA 92 25 52 08 3F 7C [11:40:49]CheckFolder [11:40:49]dirname=/storage/ofd_packets [11:40:49]CheckFolder done [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00030878 [11:40:49]NVStorageSaveData ofd_packets/00030878 [11:40:49]File name is /storage/ofd_packets/00030878 [11:40:49]Write 301 bytes [11:40:49]NVStorageSaveData done [11:40:49]OFDSenderStorePacket done [11:40:49]KKMCreateOFDPacket done [11:40:49]NVStorageSaveData kkm_last_timestamp [11:40:49]File name is /storage/kkm_last_timestamp [11:40:49]Write 4 bytes [11:40:49]NVStorageSaveData done [11:40:49]ExternCall_PrintAddStr [11:40:49]wPrintStart [11:40:49]Write to MH i2c: 01 00 00 3E 8E CC [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 3E 8E 00 00 00 00 00 FF 0F E1 [11:40:49]RasterBufferAndPrint [11:40:49]line Счет N : (1)343298 [11:40:49]line ИНН: 02508201610067 [11:40:49]line Контрольно-Кассовый Чек [11:40:49]line ПРОДАЖА [11:40:49]line ТРК (МРК, ГНК) : 63 [11:40:49]line Товар: 2710124130 [11:40:49]line Аи-92-К-2 [11:40:49]line 17.940 * 66.90 [11:40:49]line = 1200.19 [11:40:49]line НДС 12% НСП 1% [11:40:49]line > о реализуемом товаре [11:40:49]line ОКРУГЛЕНИЕ: -0.19 [11:40:49]line ИТОГО: 1200.00 [11:40:49]line Внесено: 1200.00 [11:40:49]line СДАЧА: 0.00 [11:40:49]line НСП 1% : 10.62 [11:40:49]line НДС 12% : 127.45 [11:40:49]line Наличными: 1200.00 [11:40:49]line Безнал.: 0.00 [11:40:49]line Место: АЗС № 78 "Партнер Нефть" [11:40:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:40:49]line СНО: Общий режим [11:40:49]line Чек 111 22.10.2024 11:40 [11:40:49]line Смена: 116 ФФД: 1.0 [11:40:49]line ЗНМ: 0300000137 [11:40:49]line РНМ: 0000000000186857 [11:40:49]line Версия ККМ: v1.0 [11:40:49]line ФМ: 0000000002094219 [11:40:49]line ФД: 30878 [11:40:49]line ФПД: 173543313136577 [11:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30878&fm=173543313136577&tin=02508201610067®Number=0000000000186857&sum=120000 [11:40:49]OFD Sender: Processing packet 30878 [packets to send 10, broken 9] [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00030878 [11:40:49]OFD Sender: To server: pG, [11:40:49]CommunicateWithHost lk.salyk.kg:30040 [11:40:49]ConnectInit lk.salyk.kg [11:40:49]written 0, free lines is 4095 [11:40:49]Connected sock=10 [11:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 42 07 01 41 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 78 00 00 35 04 06 00 9D D6 33 88 5B C1 5A AA 92 25 52 08 3F 7C [11:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 99 5F 47 00 69 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 32 30 39 34 32 31 39 10 04 04 00 9E 78 00 00 F4 03 04 00 C7 39 17 67 B6 04 01 00 00 A6 04 A4 96 CA 67 6C B2 [11:40:49]CommunicateWithHost err = 0 [11:40:49]CheckOFDResponse [11:40:49]1017 (14) - 77093643461234 [11:40:49]1041 (16) - 0000000002094219 [11:40:49]1040 (4) - 30878 [11:40:49]1012 (4) - 22.10.2024 05:36 [11:40:49]1206 (1) - 0 [11:40:49]OFD Sender: Remove packet 30878 [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00030878 [11:40:49]NVStorageDeleteData [11:40:49]Write to MH i2c: 01 00 00 69 8E F7 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 69 8E 00 00 00 00 00 EC 0C F6 [11:40:49]RasterBufferAndPrint [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]written 0, free lines is 3317 [11:40:49]MH_Cut [11:40:49]Write to MH i2c: D1 01 00 70 8E 01 D0 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 70 8E 00 CF [11:40:49]Write to MH i2c: 01 00 00 71 8E FF [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:50]OFD Sender: No OFD packet to send [11:40:50]*** Cut start [11:40:50]*** Partial cut [11:40:50]*** CUTSNS_PIN = 1 [11:40:50]*** CUTSNS_PIN = 0 [11:40:50]*** Brake cut motor [11:40:51]Read from MH i2c: 01 [11:40:51]MH_I2C_Read... [11:40:51]*** Stop cut motor [11:40:51]*** Cut end [11:40:51]Read from MH i2c: 01 07 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: 01 07 00 71 8E 00 00 00 00 00 FF 0F 14 [11:40:51]process_action close_receipt done [11:40:51]requested_data is exist [11:40:51]produce_requested_data [11:40:51]requested_item fm.sn is exist - process it [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 11 00 00 [11:40:51]Write to MH i2c: E2 08 00 72 8E 80 11 00 00 00 00 00 00 7A [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 17 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 17 00 72 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [11:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:40:51]wFMCommunicate OK [11:40:51]requested_item fd.num is exist - process it [11:40:51]SAM_PROTO_GetFieldsCounters [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 13 00 00 [11:40:51]Write to MH i2c: E2 08 00 73 8E 80 13 00 00 00 00 00 00 7D [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 62 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 62 00 73 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 78 00 00 0E 04 04 00 74 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 7A [11:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 78 00 00 0E 04 04 00 74 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 [11:40:51]wFMCommunicate OK [11:40:51]SAM_PROTO_GetFieldsCounters done [11:40:51]requested_item shift.num is exist - process it [11:40:51]requested_item shift.opened is exist - process it [11:40:51]req_shift_opened [11:40:51]FM_GetShiftState [11:40:51]SAM_PROTO_GetShiftState [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 13 01 00 [11:40:51]Write to MH i2c: E2 08 00 74 8E 80 13 01 00 00 00 00 00 7F [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 0E 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 0E 00 74 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 59 [11:40:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:40:51]wFMCommunicate OK [11:40:51]SAM_PROTO_GetShiftState done [11:40:51]FM_GetShiftState done [11:40:51]req_shift_opened done [11:40:51]requested_item shift.open_date is exist - process it [11:40:51]req_shift_open_date [11:40:51]req_shift_open_date done [11:40:51]produce_requested_data done [11:40:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30878,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:40:51]process_action_free close_receipt [11:40:51]json_value_free [11:40:51]json_value_free done [11:40:51]process_json_proto returns [11:40:51]Send response to host [11:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30878,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:40:51]free response buf [11:40:51]execute_script done [11:40:51]execute_script returns [11:40:51]free content buf [11:40:51]Sock 7.Close socket [11:40:51]Sock 7.Thread stoped [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:46]accept exits with 9 [11:41:46]New connection [11:41:46]New thread 3067346276 created [11:41:46]Thread 3067489636 joined [11:41:46]Waiting for new connection... [11:41:46] Sock 9.Parse request [11:41:46]Sock 9.Check first char [11:41:46]Sock 9.First char is OK [11:41:46]request: POST /json_proto HTTP/1.0 [11:41:46]Method: POST [11:41:46]URL: /json_proto [11:41:46]Method is POST - this is cgi request [11:41:46]url: /json_proto [11:41:46]query_string will be loaded in cgi processing [11:41:46]execute_cgi json_proto POST (null) [11:41:46]execute_cgi path=json_proto method=POST [11:41:46]POST find Content-Length [11:41:46]Host: 172.17.51.3:8080 [11:41:46]Content-Length: 677 [11:41:46]Content-Type: application/json [11:41:46] [11:41:46]POST finish read [11:41:46]Found Content-Length = 677 [11:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:46]execute_script... [11:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:46]POST & json_proto [11:41:46]process_json_proto [11:41:46]json parsed OK: [11:41:46]protocol is kg_v1.0 [11:41:46]action value=close_receipt [11:41:46]process_action close_receipt [11:41:46]cmd_close_receipt [11:41:46]MH_GetDate [11:41:46]Write to MH i2c: F0 00 00 75 8E F2 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 09 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 09 00 75 8E 00 85 8F 17 67 04 C1 95 66 4D [11:41:46]GetLastDocTimeStamp 1729597257 [11:41:46]current date 1729597317 [11:41:46]FM_GetShiftState [11:41:46]SAM_PROTO_GetShiftState [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 13 01 00 [11:41:46]Write to MH i2c: E2 08 00 76 8E 80 13 01 00 00 00 00 00 81 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0E 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0E 00 76 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5B [11:41:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:41:46]wFMCommunicate OK [11:41:46]SAM_PROTO_GetShiftState done [11:41:46]FM_GetShiftState done [11:41:46]opened in 1729557342 [11:41:46]opened+sec_in_day 1729643742 [11:41:46]quantity*price = 40006 [11:41:46]sum+1 = 40007 [11:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 112 22.10.2024 11:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30879 ФПД: 206716885844968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114157&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30879&fm=206716885844968&tin=02508201610067®Number=0000000000186857&sum=40000 [11:41:47]StoreToDocumentArchive [11:41:47]shift 116 fd 30879 [11:41:47]save to /storage/0116/doc_00030879 [11:41:47]save last doc name /storage/0116/doc_00030879 to /storage/kkm_last_doc_name [11:41:47]save OK [11:41:47]Clear old archive folders... [11:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:47]tlvbuf is 01E6F520 [11:41:47]SAM_PROTO_ClearQueue [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 09 00 00 [11:41:47]Write to MH i2c: E2 08 00 83 8E 80 09 00 00 00 00 00 00 83 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 83 8E 00 90 00 85 [11:41:48]RAPDU: 90 00 [11:41:48]wFMCommunicate OK [11:41:48]SAM_PROTO_ClearQueue done [11:41:48]KKMCreateOFDPacket [11:41:48]OFDProtocolAddRootSTLVToBuf [11:41:48]FM_MakeSignedData [11:41:48]FM_MakeSignedData [11:41:48]SAM_PROTO_SignData [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 0D 01 02 [11:41:48]Write to MH i2c: E2 08 00 84 8E 80 0D 01 02 00 00 00 00 8B [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 84 8E 00 90 00 86 [11:41:48]RAPDU: 90 00 [11:41:48]wFMCommunicate OK [11:41:48]wFMCommunicate request_size=255 [11:41:48]MH_SAM_APDU [11:41: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 85 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 78 00 00 35 04 06 00 BC [11:41:48]Write to MH i2c: E2 02 01 85 8E 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 85 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 78 00 00 35 04 06 00 BC 00 00 34 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 85 8E 00 90 00 87 [11:41:48]RAPDU: 90 00 [11:41:48]wFMCommunicate OK [11:41:48]wFMCommunicate request_size=10 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 0D 02 02 05 02 06 8C C3 E8 [11:41:48]Write to MH i2c: E2 0D 00 86 8E 80 0D 02 02 05 00 02 06 8C C3 E8 00 00 D7 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 03 00 86 8E 00 90 00 88 [11:41:48]RAPDU: 90 00 [11:41:48]wFMCommunicate OK [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 0D 03 02 [11:41:48]Write to MH i2c: E2 08 00 87 8E 80 0D 03 02 00 00 00 00 90 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 0B 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 0B 00 87 8E 00 DF A1 1A 0F ED C4 40 16 90 00 41 [11:41:48]RAPDU: DF A1 1A 0F ED C4 40 16 90 00 [11:41:48]wFMCommunicate OK [11:41:48]SAM_PROTO_SignData done [11:41:48]FM_MakeSignedData done [11:41:48]CreateOFDProtocolMessage [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 11 00 00 [11:41:48]Write to MH i2c: E2 08 00 88 8E 80 11 00 00 00 00 00 00 90 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 17 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 17 00 88 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [11:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:41:48]wFMCommunicate OK [11:41:48]CreateOFDProtocolMessage done [11:41:48]OFDSenderStorePacket 30879 [11:41:48]StoreOFDPacket docnum=30879 [11:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E2 D7 07 01 9B 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 85 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 78 00 00 35 04 06 00 BC 02 06 8C C3 E8 DF A1 1A 0F ED C4 40 16 [11:41:48]CheckFolder [11:41:48]dirname=/storage/ofd_packets [11:41:48]CheckFolder done [11:41:48]ProducePacketName [11:41:48]name=ofd_packets/00030879 [11:41:48]NVStorageSaveData ofd_packets/00030879 [11:41:48]File name is /storage/ofd_packets/00030879 [11:41:48]Write 301 bytes [11:41:48]NVStorageSaveData done [11:41:48]OFDSenderStorePacket done [11:41:48]KKMCreateOFDPacket done [11:41:48]NVStorageSaveData kkm_last_timestamp [11:41:48]File name is /storage/kkm_last_timestamp [11:41:48]Write 4 bytes [11:41:48]NVStorageSaveData done [11:41:48]ExternCall_PrintAddStr [11:41:48]wPrintStart [11:41:48]Write to MH i2c: 01 00 00 89 8E 17 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 89 8E 00 00 00 00 00 FF 0F 2C [11:41:48]RasterBufferAndPrint [11:41:48]line Счет N : (1)343299 [11:41:48]line ИНН: 02508201610067 [11:41:48]line Контрольно-Кассовый Чек [11:41:48]line ПРОДАЖА [11:41:48]line ТРК (МРК, ГНК) : 53 [11:41:48]line Товар: 2710124130 [11:41:48]line Аи-92-К-2 [11:41:48]line 5.980 * 66.90 [11:41:48]line = 400.06 [11:41:48]line НДС 12% НСП 1% [11:41:48]line > о реализуемом товаре [11:41:48]line ОКРУГЛЕНИЕ: -0.06 [11:41:48]line ИТОГО: 400.00 [11:41:48]line Внесено: 400.00 [11:41:48]line СДАЧА: 0.00 [11:41:48]line НСП 1% : 3.54 [11:41:48]line НДС 12% : 42.48 [11:41:48]line Наличными: 400.00 [11:41:48]line Безнал.: 0.00 [11:41:48]line Место: АЗС № 78 "Партнер Нефть" [11:41:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:41:48]line СНО: Общий режим [11:41:48]line Чек 112 22.10.2024 11:41 [11:41:48]line Смена: 116 ФФД: 1.0 [11:41:48]line ЗНМ: 0300000137 [11:41:48]line РНМ: 0000000000186857 [11:41:48]line Версия ККМ: v1.0 [11:41:48]line ФМ: 0000000002094219 [11:41:48]line ФД: 30879 [11:41:48]line ФПД: 206716885844968 [11:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114157&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30879&fm=206716885844968&tin=02508201610067®Number=0000000000186857&sum=40000 [11:41:48]written 0, free lines is 4095 [11:41:48]OFD Sender: Processing packet 30879 [packets to send 10, broken 9] [11:41:48]ProducePacketName [11:41:48]name=ofd_packets/00030879 [11:41:48]OFD Sender: To server: pG, [11:41:48]CommunicateWithHost lk.salyk.kg:30040 [11:41:48]ConnectInit lk.salyk.kg [11:41:48]Connected sock=11 [11:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E2 D7 07 01 9B 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 85 8F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 78 00 00 35 04 06 00 BC 02 06 8C C3 E8 DF A1 1A 0F ED C4 40 16 [11:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D8 00 47 00 45 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 78 00 00 F4 03 04 00 02 3A 17 67 B6 04 01 00 00 E6 8F CE 8D 13 7D A4 B3 [11:41:49]CommunicateWithHost err = 0 [11:41:49]CheckOFDResponse [11:41:49]1017 (14) - 77093643461234 [11:41:49]1041 (16) - 0000000002094219 [11:41:49]1040 (4) - 30879 [11:41:49]1012 (4) - 22.10.2024 05:37 [11:41:49]1206 (1) - 0 [11:41:49]OFD Sender: Remove packet 30879 [11:41:49]ProducePacketName [11:41:49]name=ofd_packets/00030879 [11:41:49]NVStorageDeleteData [11:41:49]Write to MH i2c: 01 00 00 B4 8E 42 [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: 01 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: 01 07 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: 01 07 00 B4 8E 00 00 00 00 00 FA 0C 4F [11:41:49]RasterBufferAndPrint [11:41:49]line [11:41:49]line [11:41:49]line [11:41:49]line [11:41:49]line [11:41:49]written 0, free lines is 3328 [11:41:49]MH_Cut [11:41:49]Write to MH i2c: D1 01 00 BB 8E 01 1B [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: D1 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: D1 01 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: D1 01 00 BB 8E 00 1A [11:41:49]Write to MH i2c: 01 00 00 BC 8E 4A [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]OFD Sender: No OFD packet to send [11:41:49]*** Cut start [11:41:49]*** Partial cut [11:41:49]*** CUTSNS_PIN = 1 [11:41:50]*** CUTSNS_PIN = 0 [11:41:50]*** Brake cut motor [11:41:50]Read from MH i2c: 01 [11:41:50]MH_I2C_Read... [11:41:50]*** Stop cut motor [11:41:50]Read from MH i2c: 01 07 00 [11:41:50]MH_I2C_Read... [11:41:50]*** Cut end [11:41:50]Read from MH i2c: 01 07 00 BC 8E 00 00 00 00 00 FF 0F 5F [11:41:50]process_action close_receipt done [11:41:50]requested_data is exist [11:41:50]produce_requested_data [11:41:50]requested_item fm.sn is exist - process it [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 11 00 00 [11:41:50]Write to MH i2c: E2 08 00 BD 8E 80 11 00 00 00 00 00 00 C5 [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 17 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 17 00 BD 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [11:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:41:50]wFMCommunicate OK [11:41:50]requested_item fd.num is exist - process it [11:41:50]SAM_PROTO_GetFieldsCounters [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 13 00 00 [11:41:50]Write to MH i2c: E2 08 00 BE 8E 80 13 00 00 00 00 00 00 C8 [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 62 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 62 00 BE 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 78 00 00 0E 04 04 00 74 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 C9 [11:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 78 00 00 0E 04 04 00 74 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 [11:41:50]wFMCommunicate OK [11:41:50]SAM_PROTO_GetFieldsCounters done [11:41:50]requested_item shift.num is exist - process it [11:41:50]requested_item shift.opened is exist - process it [11:41:50]req_shift_opened [11:41:50]FM_GetShiftState [11:41:50]SAM_PROTO_GetShiftState [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 13 01 00 [11:41:50]Write to MH i2c: E2 08 00 BF 8E 80 13 01 00 00 00 00 00 CA [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 0E 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 0E 00 BF 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A4 [11:41:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:41:50]wFMCommunicate OK [11:41:50]SAM_PROTO_GetShiftState done [11:41:50]FM_GetShiftState done [11:41:50]req_shift_opened done [11:41:50]requested_item shift.open_date is exist - process it [11:41:50]req_shift_open_date [11:41:50]req_shift_open_date done [11:41:50]produce_requested_data done [11:41:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30879,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:41:50]process_action_free close_receipt [11:41:50]json_value_free [11:41:50]json_value_free done [11:41:50]process_json_proto returns [11:41:50]Send response to host [11:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30879,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:41:50]free response buf [11:41:50]execute_script done [11:41:50]execute_script returns [11:41:50]free content buf [11:41:50]Sock 9.Close socket [11:41:50]Sock 9.Thread stoped [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]accept exits with 7 [11:45:59]New connection [11:45:59]New thread 3067489636 created [11:45:59]Thread 3067346276 joined [11:45:59]Waiting for new connection... [11:45:59] Sock 7.Parse request [11:45:59]Sock 7.Check first char [11:45:59]Sock 7.First char is OK [11:45:59]request: POST /json_proto HTTP/1.0 [11:45:59]Method: POST [11:45:59]URL: /json_proto [11:45:59]Method is POST - this is cgi request [11:45:59]url: /json_proto [11:45:59]query_string will be loaded in cgi processing [11:45:59]execute_cgi json_proto POST (null) [11:45:59]execute_cgi path=json_proto method=POST [11:45:59]POST find Content-Length [11:45:59]Host: 172.17.51.3:8080 [11:45:59]Content-Length: 677 [11:45:59]Content-Type: application/json [11:45:59] [11:45:59]POST finish read [11:45:59]Found Content-Length = 677 [11:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:59]execute_script... [11:45: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)343300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:59]POST & json_proto [11:45:59]process_json_proto [11:45:59]json parsed OK: [11:45:59]protocol is kg_v1.0 [11:45:59]action value=close_receipt [11:45:59]process_action close_receipt [11:45:59]cmd_close_receipt [11:45:59]MH_GetDate [11:45:59]Write to MH i2c: F0 00 00 C0 8E 3D [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 09 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: F0 09 00 C0 8E 00 81 90 17 67 04 C1 95 66 95 [11:45:59]GetLastDocTimeStamp 1729597317 [11:45:59]current date 1729597569 [11:45:59]FM_GetShiftState [11:45:59]SAM_PROTO_GetShiftState [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 01 00 [11:45:59]Write to MH i2c: E2 08 00 C1 8E 80 13 01 00 00 00 00 00 CC [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 C1 8E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A6 [11:45:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetShiftState done [11:45:59]FM_GetShiftState done [11:45:59]opened in 1729557342 [11:45:59]opened+sec_in_day 1729643742 [11:45:59]quantity*price = 50041 [11:45:59]sum+1 = 50042 [11:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 113 22.10.2024 11:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30880 ФПД: 92765860892864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114609&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30880&fm=92765860892864&tin=02508201610067®Number=0000000000186857&sum=50000 [11:46:00]StoreToDocumentArchive [11:46:00]shift 116 fd 30880 [11:46:00]save to /storage/0116/doc_00030880 [11:46:00]save last doc name /storage/0116/doc_00030880 to /storage/kkm_last_doc_name [11:46:00]save OK [11:46:00]Clear old archive folders... [11:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:00]tlvbuf is 020A7020 [11:46:00]SAM_PROTO_ClearQueue [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 09 00 00 [11:46:00]Write to MH i2c: E2 08 00 CE 8E 80 09 00 00 00 00 00 00 CE [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 CE 8E 00 90 00 D0 [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]SAM_PROTO_ClearQueue done [11:46:00]KKMCreateOFDPacket [11:46:00]OFDProtocolAddRootSTLVToBuf [11:46:00]FM_MakeSignedData [11:46:00]FM_MakeSignedData [11:46:00]SAM_PROTO_SignData [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 0D 01 02 [11:46:00]Write to MH i2c: E2 08 00 CF 8E 80 0D 01 02 00 00 00 00 D6 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 CF 8E 00 90 00 D1 [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]wFMCommunicate request_size=255 [11:46:00]MH_SAM_APDU [11: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 90 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 78 00 00 35 04 06 00 54 [11:46:00]Write to MH i2c: E2 02 01 D0 8E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 90 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 78 00 00 35 04 06 00 54 00 00 47 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 D0 8E 00 90 00 D2 [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]wFMCommunicate request_size=10 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 0D 02 02 05 5E BC 2F 90 C0 [11:46:00]Write to MH i2c: E2 0D 00 D1 8E 80 0D 02 02 05 00 5E BC 2F 90 C0 00 00 7C [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 03 00 D1 8E 00 90 00 D3 [11:46:00]RAPDU: 90 00 [11:46:00]wFMCommunicate OK [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 0D 03 02 [11:46:00]Write to MH i2c: E2 08 00 D2 8E 80 0D 03 02 00 00 00 00 DB [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 0B 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 0B 00 D2 8E 00 3F 4B 83 1A 7C 0C BD E0 90 00 28 [11:46:00]RAPDU: 3F 4B 83 1A 7C 0C BD E0 90 00 [11:46:00]wFMCommunicate OK [11:46:00]SAM_PROTO_SignData done [11:46:00]FM_MakeSignedData done [11:46:00]CreateOFDProtocolMessage [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 11 00 00 [11:46:00]Write to MH i2c: E2 08 00 D3 8E 80 11 00 00 00 00 00 00 DB [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 17 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 17 00 D3 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [11:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:46:00]wFMCommunicate OK [11:46:00]CreateOFDProtocolMessage done [11:46:00]OFDSenderStorePacket 30880 [11:46:00]StoreOFDPacket docnum=30880 [11:46:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D4 56 07 01 F4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 90 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 78 00 00 35 04 06 00 54 5E BC 2F 90 C0 3F 4B 83 1A 7C 0C BD E0 [11:46:00]CheckFolder [11:46:00]dirname=/storage/ofd_packets [11:46:00]CheckFolder done [11:46:00]ProducePacketName [11:46:00]name=ofd_packets/00030880 [11:46:00]NVStorageSaveData ofd_packets/00030880 [11:46:00]File name is /storage/ofd_packets/00030880 [11:46:00]Write 301 bytes [11:46:00]NVStorageSaveData done [11:46:00]OFDSenderStorePacket done [11:46:00]KKMCreateOFDPacket done [11:46:00]NVStorageSaveData kkm_last_timestamp [11:46:00]File name is /storage/kkm_last_timestamp [11:46:00]Write 4 bytes [11:46:00]NVStorageSaveData done [11:46:00]ExternCall_PrintAddStr [11:46:00]wPrintStart [11:46:00]Write to MH i2c: 01 00 00 D4 8E 62 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 07 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 07 00 D4 8E 00 00 00 00 00 FF 0F 77 [11:46:00]RasterBufferAndPrint [11:46:00]line Счет N : (1)343300 [11:46:00]line ИНН: 02508201610067 [11:46:00]line Контрольно-Кассовый Чек [11:46:00]line ПРОДАЖА [11:46:00]line ТРК (МРК, ГНК) : 63 [11:46:00]line Товар: 2710124130 [11:46:00]line Аи-92-К-2 [11:46:00]line 7.480 * 66.90 [11:46:00]line = 500.41 [11:46:00]line НДС 12% НСП 1% [11:46:00]line > о реализуемом товаре [11:46:00]line ОКРУГЛЕНИЕ: -0.41 [11:46:00]line ИТОГО: 500.00 [11:46:00]line Внесено: 500.00 [11:46:00]line СДАЧА: 0.00 [11:46:00]line НСП 1% : 4.43 [11:46:00]line НДС 12% : 53.14 [11:46:00]line Наличными: 500.00 [11:46:00]line Безнал.: 0.00 [11:46:00]line Место: АЗС № 78 "Партнер Нефть" [11:46:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:46:00]line СНО: Общий режим [11:46:00]line Чек 113 22.10.2024 11:46 [11:46:00]line Смена: 116 ФФД: 1.0 [11:46:00]line ЗНМ: 0300000137 [11:46:00]line РНМ: 0000000000186857 [11:46:00]line Версия ККМ: v1.0 [11:46:00]line ФМ: 0000000002094219 [11:46:00]line ФД: 30880 [11:46:00]line ФПД: 92765860892864 [11:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114609&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30880&fm=92765860892864&tin=02508201610067®Number=0000000000186857&sum=50000 [11:46:01]OFD Sender: Processing packet 30880 [packets to send 10, broken 9] [11:46:01]ProducePacketName [11:46:01]name=ofd_packets/00030880 [11:46:01]OFD Sender: To server: pG, [11:46:01]CommunicateWithHost lk.salyk.kg:30040 [11:46:01]ConnectInit lk.salyk.kg [11:46:01]written 0, free lines is 4095 [11:46:01]Connected sock=10 [11:46:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D4 56 07 01 F4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 90 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 78 00 00 35 04 06 00 54 5E BC 2F 90 C0 3F 4B 83 1A 7C 0C BD E0 [11:46:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3C F9 47 00 C3 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 78 00 00 F4 03 04 00 FF 3A 17 67 B6 04 01 00 00 03 0E DC 76 24 AB FB A1 [11:46:01]CommunicateWithHost err = 0 [11:46:01]CheckOFDResponse [11:46:01]1017 (14) - 77093643461234 [11:46:01]1041 (16) - 0000000002094219 [11:46:01]1040 (4) - 30880 [11:46:01]1012 (4) - 22.10.2024 05:41 [11:46:01]1206 (1) - 0 [11:46:01]OFD Sender: Remove packet 30880 [11:46:01]ProducePacketName [11:46:01]name=ofd_packets/00030880 [11:46:01]NVStorageDeleteData [11:46:01]Write to MH i2c: 01 00 00 FF 8E 8D [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 07 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: 01 07 00 FF 8E 00 00 00 00 00 0A 0D AB [11:46:01]RasterBufferAndPrint [11:46:01]line [11:46:01]line [11:46:01]line [11:46:01]line [11:46:01]line [11:46:01]written 0, free lines is 3348 [11:46:01]MH_Cut [11:46:01]Write to MH i2c: D1 01 00 06 8F 01 67 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: D1 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: D1 01 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: D1 01 00 06 8F 00 66 [11:46:01]Write to MH i2c: 01 00 00 07 8F 96 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:02]OFD Sender: No OFD packet to send [11:46:02]*** Cut start [11:46:02]*** Partial cut [11:46:02]*** CUTSNS_PIN = 1 [11:46:02]*** CUTSNS_PIN = 0 [11:46:02]*** Brake cut motor [11:46:02]Read from MH i2c: 01 [11:46:02]MH_I2C_Read... [11:46:02]*** Stop cut motor [11:46:02]*** Cut end [11:46:02]Read from MH i2c: 01 07 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 07 8F 00 00 00 00 00 FF 0F AB [11:46:02]process_action close_receipt done [11:46:02]requested_data is exist [11:46:02]produce_requested_data [11:46:02]requested_item fm.sn is exist - process it [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 11 00 00 [11:46:02]Write to MH i2c: E2 08 00 08 8F 80 11 00 00 00 00 00 00 11 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 08 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [11:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:46:02]wFMCommunicate OK [11:46:02]requested_item fd.num is exist - process it [11:46:02]SAM_PROTO_GetFieldsCounters [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 13 00 00 [11:46:02]Write to MH i2c: E2 08 00 09 8F 80 13 00 00 00 00 00 00 14 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 62 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 62 00 09 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 78 00 00 0E 04 04 00 74 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 19 [11:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 78 00 00 0E 04 04 00 74 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 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_GetFieldsCounters done [11:46:03]requested_item shift.num is exist - process it [11:46:03]requested_item shift.opened is exist - process it [11:46:03]req_shift_opened [11:46:03]FM_GetShiftState [11:46:03]SAM_PROTO_GetShiftState [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 13 01 00 [11:46:03]Write to MH i2c: E2 08 00 0A 8F 80 13 01 00 00 00 00 00 16 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 0A 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F0 [11:46:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_GetShiftState done [11:46:03]FM_GetShiftState done [11:46:03]req_shift_opened done [11:46:03]requested_item shift.open_date is exist - process it [11:46:03]req_shift_open_date [11:46:03]req_shift_open_date done [11:46:03]produce_requested_data done [11:46:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30880,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:46:03]process_action_free close_receipt [11:46:03]json_value_free [11:46:03]json_value_free done [11:46:03]process_json_proto returns [11:46:03]Send response to host [11:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30880,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:46:03]free response buf [11:46:03]execute_script done [11:46:03]execute_script returns [11:46:03]free content buf [11:46:03]Sock 7.Close socket [11:46:03]Sock 7.Thread stoped [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:41]accept exits with 9 [11:49:41]New connection [11:49:41]New thread 3067346276 created [11:49:41]Thread 3067489636 joined [11:49:41]Waiting for new connection... [11:49:41] Sock 9.Parse request [11:49:41]Sock 9.Check first char [11:49:41]Sock 9.First char is OK [11:49:41]request: POST /json_proto HTTP/1.0 [11:49:41]Method: POST [11:49:41]URL: /json_proto [11:49:41]Method is POST - this is cgi request [11:49:41]url: /json_proto [11:49:41]query_string will be loaded in cgi processing [11:49:41]execute_cgi json_proto POST (null) [11:49:41]execute_cgi path=json_proto method=POST [11:49:41]POST find Content-Length [11:49:41]Host: 172.17.51.3:8080 [11:49:41]Content-Length: 677 [11:49:41]Content-Type: application/json [11:49:41] [11:49:41]POST finish read [11:49:41]Found Content-Length = 677 [11:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:41]execute_script... [11:49: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)343301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:41]POST & json_proto [11:49:41]process_json_proto [11:49:41]json parsed OK: [11:49:41]protocol is kg_v1.0 [11:49:41]action value=close_receipt [11:49:41]process_action close_receipt [11:49:41]cmd_close_receipt [11:49:41]MH_GetDate [11:49:41]Write to MH i2c: F0 00 00 0B 8F 89 [11:49:41]Write i2c OK [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 09 00 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 09 00 0B 8F 00 5F 91 17 67 04 C1 95 66 C0 [11:49:41]GetLastDocTimeStamp 1729597569 [11:49:41]current date 1729597791 [11:49:41]FM_GetShiftState [11:49:41]SAM_PROTO_GetShiftState [11:49:41]wFMCommunicate request_size=4 [11:49:41]MH_SAM_APDU [11:49:41]CAPDU: 80 13 01 00 [11:49:41]Write to MH i2c: E2 08 00 0C 8F 80 13 01 00 00 00 00 00 18 [11:49:41]Write i2c OK [11:49:41]MH_I2C_Read... [11:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:41]Read from MH i2c: E2 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: E2 0E 00 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: E2 0E 00 0C 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F2 [11:49:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:49:41]wFMCommunicate OK [11:49:41]SAM_PROTO_GetShiftState done [11:49:41]FM_GetShiftState done [11:49:41]opened in 1729557342 [11:49:41]opened+sec_in_day 1729643742 [11:49:41]quantity*price = 50041 [11:49:41]sum+1 = 50042 [11:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 114 22.10.2024 11:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30881 ФПД: 262714132734373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30881&fm=262714132734373&tin=02508201610067®Number=0000000000186857&sum=50000 [11:49:42]StoreToDocumentArchive [11:49:42]shift 116 fd 30881 [11:49:42]save to /storage/0116/doc_00030881 [11:49:42]save last doc name /storage/0116/doc_00030881 to /storage/kkm_last_doc_name [11:49:42]save OK [11:49:42]Clear old archive folders... [11:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:42]tlvbuf is 01DEAC00 [11:49:42]SAM_PROTO_ClearQueue [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 09 00 00 [11:49:42]Write to MH i2c: E2 08 00 19 8F 80 09 00 00 00 00 00 00 1A [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 19 8F 00 90 00 1C [11:49:42]RAPDU: 90 00 [11:49:42]wFMCommunicate OK [11:49:42]SAM_PROTO_ClearQueue done [11:49:42]KKMCreateOFDPacket [11:49:42]OFDProtocolAddRootSTLVToBuf [11:49:42]FM_MakeSignedData [11:49:42]FM_MakeSignedData [11:49:42]SAM_PROTO_SignData [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 0D 01 02 [11:49:42]Write to MH i2c: E2 08 00 1A 8F 80 0D 01 02 00 00 00 00 22 [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 1A 8F 00 90 00 1D [11:49:42]RAPDU: 90 00 [11:49:42]wFMCommunicate OK [11:49:42]wFMCommunicate request_size=255 [11:49:42]MH_SAM_APDU [11:49: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5F 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 78 00 00 35 04 06 00 EE [11:49:42]Write to MH i2c: E2 02 01 1B 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5F 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 78 00 00 35 04 06 00 EE 00 00 0E [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 1B 8F 00 90 00 1E [11:49:43]RAPDU: 90 00 [11:49:43]wFMCommunicate OK [11:49:43]wFMCommunicate request_size=10 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 0D 02 02 05 EF E6 8F 21 A5 [11:49:43]Write to MH i2c: E2 0D 00 1C 8F 80 0D 02 02 05 00 EF E6 8F 21 A5 00 00 59 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 1C 8F 00 90 00 1F [11:49:43]RAPDU: 90 00 [11:49:43]wFMCommunicate OK [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 0D 03 02 [11:49:43]Write to MH i2c: E2 08 00 1D 8F 80 0D 03 02 00 00 00 00 27 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0B 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0B 00 1D 8F 00 96 8A E5 EC CA 62 FE AE 90 00 F1 [11:49:43]RAPDU: 96 8A E5 EC CA 62 FE AE 90 00 [11:49:43]wFMCommunicate OK [11:49:43]SAM_PROTO_SignData done [11:49:43]FM_MakeSignedData done [11:49:43]CreateOFDProtocolMessage [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 11 00 00 [11:49:43]Write to MH i2c: E2 08 00 1E 8F 80 11 00 00 00 00 00 00 27 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 17 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 17 00 1E 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [11:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:49:43]wFMCommunicate OK [11:49:43]CreateOFDProtocolMessage done [11:49:43]OFDSenderStorePacket 30881 [11:49:43]StoreOFDPacket docnum=30881 [11:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EA 08 07 01 7A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5F 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 78 00 00 35 04 06 00 EE EF E6 8F 21 A5 96 8A E5 EC CA 62 FE AE [11:49:43]CheckFolder [11:49:43]dirname=/storage/ofd_packets [11:49:43]CheckFolder done [11:49:43]ProducePacketName [11:49:43]name=ofd_packets/00030881 [11:49:43]NVStorageSaveData ofd_packets/00030881 [11:49:43]File name is /storage/ofd_packets/00030881 [11:49:43]Write 301 bytes [11:49:43]NVStorageSaveData done [11:49:43]OFDSenderStorePacket done [11:49:43]KKMCreateOFDPacket done [11:49:43]NVStorageSaveData kkm_last_timestamp [11:49:43]File name is /storage/kkm_last_timestamp [11:49:43]Write 4 bytes [11:49:43]NVStorageSaveData done [11:49:43]ExternCall_PrintAddStr [11:49:43]wPrintStart [11:49:43]Write to MH i2c: 01 00 00 1F 8F AE [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 07 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 07 00 1F 8F 00 00 00 00 00 FF 0F C3 [11:49:43]RasterBufferAndPrint [11:49:43]line Счет N : (1)343301 [11:49:43]line ИНН: 02508201610067 [11:49:43]line Контрольно-Кассовый Чек [11:49:43]line ПРОДАЖА [11:49:43]line ТРК (МРК, ГНК) : 53 [11:49:43]line Товар: 2710124130 [11:49:43]line Аи-92-К-2 [11:49:43]line 7.480 * 66.90 [11:49:43]line = 500.41 [11:49:43]line НДС 12% НСП 1% [11:49:43]line > о реализуемом товаре [11:49:43]line ОКРУГЛЕНИЕ: -0.41 [11:49:43]line ИТОГО: 500.00 [11:49:43]line Внесено: 500.00 [11:49:43]line СДАЧА: 0.00 [11:49:43]line НСП 1% : 4.43 [11:49:43]line НДС 12% : 53.14 [11:49:43]line Наличными: 500.00 [11:49:43]line Безнал.: 0.00 [11:49:43]line Место: АЗС № 78 "Партнер Нефть" [11:49:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:49:43]line СНО: Общий режим [11:49:43]line Чек 114 22.10.2024 11:49 [11:49:43]line Смена: 116 ФФД: 1.0 [11:49:43]line ЗНМ: 0300000137 [11:49:43]line РНМ: 0000000000186857 [11:49:43]line Версия ККМ: v1.0 [11:49:43]line ФМ: 0000000002094219 [11:49:43]line ФД: 30881 [11:49:43]line ФПД: 262714132734373 [11:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30881&fm=262714132734373&tin=02508201610067®Number=0000000000186857&sum=50000 [11:49:43]OFD Sender: Processing packet 30881 [packets to send 10, broken 9] [11:49:43]ProducePacketName [11:49:43]name=ofd_packets/00030881 [11:49:43]OFD Sender: To server: pG, [11:49:43]CommunicateWithHost lk.salyk.kg:30040 [11:49:43]ConnectInit lk.salyk.kg [11:49:43]written 0, free lines is 4095 [11:49:43]Connected sock=10 [11:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EA 08 07 01 7A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5F 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 78 00 00 35 04 06 00 EE EF E6 8F 21 A5 96 8A E5 EC CA 62 FE AE [11:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F9 CC 47 00 07 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 78 00 00 F4 03 04 00 DD 3B 17 67 B6 04 01 00 00 AB 9B 80 EC E2 65 1B C9 [11:49:43]CommunicateWithHost err = 0 [11:49:43]CheckOFDResponse [11:49:43]1017 (14) - 77093643461234 [11:49:43]1041 (16) - 0000000002094219 [11:49:43]1040 (4) - 30881 [11:49:43]1012 (4) - 22.10.2024 05:45 [11:49:43]1206 (1) - 0 [11:49:43]OFD Sender: Remove packet 30881 [11:49:43]ProducePacketName [11:49:43]name=ofd_packets/00030881 [11:49:43]NVStorageDeleteData [11:49:44]Write to MH i2c: 01 00 00 4A 8F D9 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 4A 8F 00 00 00 00 00 F3 0C DF [11:49:44]RasterBufferAndPrint [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]written 0, free lines is 3321 [11:49:44]MH_Cut [11:49:44]Write to MH i2c: D1 01 00 51 8F 01 B2 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 01 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 01 00 51 8F 00 B1 [11:49:44]Write to MH i2c: 01 00 00 52 8F E1 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]OFD Sender: No OFD packet to send [11:49:44]*** Cut start [11:49:44]*** Partial cut [11:49:44]*** CUTSNS_PIN = 1 [11:49:44]*** CUTSNS_PIN = 0 [11:49:44]*** Brake cut motor [11:49:45]Read from MH i2c: 01 [11:49:45]MH_I2C_Read... [11:49:45]*** Stop cut motor [11:49:45]*** Cut end [11:49:45]Read from MH i2c: 01 07 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 52 8F 00 00 00 00 00 FF 0F F6 [11:49:45]process_action close_receipt done [11:49:45]requested_data is exist [11:49:45]produce_requested_data [11:49:45]requested_item fm.sn is exist - process it [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 11 00 00 [11:49:45]Write to MH i2c: E2 08 00 53 8F 80 11 00 00 00 00 00 00 5C [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 53 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [11:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:49:45]wFMCommunicate OK [11:49:45]requested_item fd.num is exist - process it [11:49:45]SAM_PROTO_GetFieldsCounters [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 13 00 00 [11:49:45]Write to MH i2c: E2 08 00 54 8F 80 13 00 00 00 00 00 00 5F [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 62 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 62 00 54 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 78 00 00 0E 04 04 00 74 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 68 [11:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 78 00 00 0E 04 04 00 74 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 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_GetFieldsCounters done [11:49:45]requested_item shift.num is exist - process it [11:49:45]requested_item shift.opened is exist - process it [11:49:45]req_shift_opened [11:49:45]FM_GetShiftState [11:49:45]SAM_PROTO_GetShiftState [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 13 01 00 [11:49:45]Write to MH i2c: E2 08 00 55 8F 80 13 01 00 00 00 00 00 61 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 55 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3B [11:49:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_GetShiftState done [11:49:45]FM_GetShiftState done [11:49:45]req_shift_opened done [11:49:45]requested_item shift.open_date is exist - process it [11:49:45]req_shift_open_date [11:49:45]req_shift_open_date done [11:49:45]produce_requested_data done [11:49:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30881,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:49:45]process_action_free close_receipt [11:49:45]json_value_free [11:49:45]json_value_free done [11:49:45]process_json_proto returns [11:49:45]Send response to host [11:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30881,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:49:45]free response buf [11:49:45]execute_script done [11:49:45]execute_script returns [11:49:45]free content buf [11:49:45]Sock 9.Close socket [11:49:45]Sock 9.Thread stoped [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:12]accept exits with 7 [11:52:12]New connection [11:52:12]New thread 3067489636 created [11:52:12]Thread 3067346276 joined [11:52:12]Waiting for new connection... [11:52:12] Sock 7.Parse request [11:52:12]Sock 7.Check first char [11:52:12]Sock 7.First char is OK [11:52:12]request: POST /json_proto HTTP/1.0 [11:52:12]Method: POST [11:52:12]URL: /json_proto [11:52:12]Method is POST - this is cgi request [11:52:12]url: /json_proto [11:52:12]query_string will be loaded in cgi processing [11:52:12]execute_cgi json_proto POST (null) [11:52:12]execute_cgi path=json_proto method=POST [11:52:12]POST find Content-Length [11:52:12]Host: 172.17.51.3:8080 [11:52:12]Content-Length: 754 [11:52:12]Content-Type: application/json [11:52:12] [11:52:12]POST finish read [11:52:12]Found Content-Length = 754 [11:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120358", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:12]execute_script... [11:52:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120358", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:12]POST & json_proto [11:52:12]process_json_proto [11:52:12]json parsed OK: [11:52:12]protocol is kg_v1.0 [11:52:12]action value=close_receipt [11:52:12]process_action close_receipt [11:52:12]cmd_close_receipt [11:52:12]MH_GetDate [11:52:12]Write to MH i2c: F0 00 00 56 8F D4 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 56 8F 00 F6 91 17 67 04 C1 95 66 A2 [11:52:12]GetLastDocTimeStamp 1729597791 [11:52:12]current date 1729597942 [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 57 8F 80 13 01 00 00 00 00 00 63 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 57 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3D [11:52:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]opened in 1729557342 [11:52:12]opened+sec_in_day 1729643742 [11:52:12]quantity*price = 0 [11:52:12]sum+1 = 1 [11:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 115 22.10.2024 11:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30120358 ФМ: 0000000002094219 ФД: 30882 ФПД: 105704881076446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115222&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30882&fm=105704881076446&tin=02508201610067®Number=0000000000186857&sum=0 [11:52:13]StoreToDocumentArchive [11:52:13]shift 116 fd 30882 [11:52:13]save to /storage/0116/doc_00030882 [11:52:13]save last doc name /storage/0116/doc_00030882 to /storage/kkm_last_doc_name [11:52:13]save OK [11:52:13]Clear old archive folders... [11:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:13]tlvbuf is 01DFEFD0 [11:52:13]SAM_PROTO_ClearQueue [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 09 00 00 [11:52:13]Write to MH i2c: E2 08 00 64 8F 80 09 00 00 00 00 00 00 65 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 64 8F 00 90 00 67 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_ClearQueue done [11:52:13]KKMCreateOFDPacket [11:52:13]OFDProtocolAddRootSTLVToBuf [11:52:13]FM_MakeSignedData [11:52:13]FM_MakeSignedData [11:52:13]SAM_PROTO_SignData [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 01 02 [11:52:13]Write to MH i2c: E2 08 00 65 8F 80 0D 01 02 00 00 00 00 6D [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 65 8F 00 90 00 68 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=255 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F6 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 78 00 00 35 04 06 00 60 [11:52:13]Write to MH i2c: E2 02 01 66 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F6 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 78 00 00 35 04 06 00 60 00 00 89 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 66 8F 00 90 00 69 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=10 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 05 23 55 E3 38 DE [11:52:13]Write to MH i2c: E2 0D 00 67 8F 80 0D 02 02 05 00 23 55 E3 38 DE 00 00 EB [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 67 8F 00 90 00 6A [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 03 02 [11:52:13]Write to MH i2c: E2 08 00 68 8F 80 0D 03 02 00 00 00 00 72 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 68 8F 00 2B 7F 50 02 3F 0E 8A 88 90 00 CE [11:52:13]RAPDU: 2B 7F 50 02 3F 0E 8A 88 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_SignData done [11:52:13]FM_MakeSignedData done [11:52:13]CreateOFDProtocolMessage [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 11 00 00 [11:52:13]Write to MH i2c: E2 08 00 69 8F 80 11 00 00 00 00 00 00 72 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 69 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [11:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:52:14]wFMCommunicate OK [11:52:14]CreateOFDProtocolMessage done [11:52:14]OFDSenderStorePacket 30882 [11:52:14]StoreOFDPacket docnum=30882 [11:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F9 42 07 01 B8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F6 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 78 00 00 35 04 06 00 60 23 55 E3 38 DE 2B 7F 50 02 3F 0E 8A 88 [11:52:14]CheckFolder [11:52:14]dirname=/storage/ofd_packets [11:52:14]CheckFolder done [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00030882 [11:52:14]NVStorageSaveData ofd_packets/00030882 [11:52:14]File name is /storage/ofd_packets/00030882 [11:52:14]Write 301 bytes [11:52:14]NVStorageSaveData done [11:52:14]OFDSenderStorePacket done [11:52:14]KKMCreateOFDPacket done [11:52:14]NVStorageSaveData kkm_last_timestamp [11:52:14]File name is /storage/kkm_last_timestamp [11:52:14]Write 4 bytes [11:52:14]NVStorageSaveData done [11:52:14]ExternCall_PrintAddStr [11:52:14]wPrintStart [11:52:14]Write to MH i2c: 01 00 00 6A 8F F9 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 6A 8F 00 00 00 00 00 FF 0F 0E [11:52:14]RasterBufferAndPrint [11:52:14]line Счет N : (1)343302 [11:52:14]line ИНН: 02508201610067 [11:52:14]line Контрольно-Кассовый Чек [11:52:14]line ПРОДАЖА [11:52:14]line ТРК (МРК, ГНК) : 32 [11:52:14]line Товар: 2710124500 [11:52:14]line Аи-95-К-3 [11:52:14]line 30.000 * 0.00 [11:52:14]line = 0.00 [11:52:14]line НДС 12% НСП 1% [11:52:14]line > о реализуемом товаре [11:52:14]line ИТОГО: 0.00 [11:52:14]line НСП 1% : 0.00 [11:52:14]line НДС 12% : 0.00 [11:52:14]line Наличными: 0.00 [11:52:14]line Безнал.: 0.00 [11:52:14]line Место: АЗС № 78 "Партнер Нефть" [11:52:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:52:14]line СНО: Общий режим [11:52:14]line Чек 115 22.10.2024 11:52 [11:52:14]line Смена: 116 ФФД: 1.0 [11:52:14]line ЗНМ: 0300000137 [11:52:14]line РНМ: 0000000000186857 [11:52:14]line Версия ККМ: v1.0 [11:52:14]line Талоны: ТК ГПНА Online [11:52:14]line 30120358 [11:52:14]line ФМ: 0000000002094219 [11:52:14]line ФД: 30882 [11:52:14]line ФПД: 105704881076446 [11:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115222&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30882&fm=105704881076446&tin=02508201610067®Number=0000000000186857&sum=0 [11:52:14]OFD Sender: Processing packet 30882 [packets to send 10, broken 9] [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00030882 [11:52:14]OFD Sender: To server: pG, [11:52:14]CommunicateWithHost lk.salyk.kg:30040 [11:52:14]ConnectInit lk.salyk.kg [11:52:14]written 0, free lines is 4095 [11:52:14]Connected sock=10 [11:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F9 42 07 01 B8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F6 91 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 78 00 00 35 04 06 00 60 23 55 E3 38 DE 2B 7F 50 02 3F 0E 8A 88 [11:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6F DE 47 00 12 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 78 00 00 F4 03 04 00 74 3C 17 67 B6 04 01 00 00 DB F6 51 AF 88 E1 7C CB [11:52:14]CommunicateWithHost err = 0 [11:52:14]CheckOFDResponse [11:52:14]1017 (14) - 77093643461234 [11:52:14]1041 (16) - 0000000002094219 [11:52:14]1040 (4) - 30882 [11:52:14]1012 (4) - 22.10.2024 05:47 [11:52:14]1206 (1) - 0 [11:52:14]OFD Sender: Remove packet 30882 [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00030882 [11:52:14]NVStorageDeleteData [11:52:14]Write to MH i2c: 01 00 00 94 8F 23 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 94 8F 00 00 00 00 00 0E 0D 45 [11:52:14]RasterBufferAndPrint [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]written 0, free lines is 3350 [11:52:14]MH_Cut [11:52:14]Write to MH i2c: D1 01 00 9B 8F 01 FC [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 9B 8F 00 FB [11:52:14]Write to MH i2c: 01 00 00 9C 8F 2B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:15]OFD Sender: No OFD packet to send [11:52:15]*** Cut start [11:52:15]*** Partial cut [11:52:15]*** CUTSNS_PIN = 1 [11:52:15]*** CUTSNS_PIN = 0 [11:52:15]*** Brake cut motor [11:52:16]Read from MH i2c: 01 [11:52:16]MH_I2C_Read... [11:52:16]*** Stop cut motor [11:52:16]*** Cut end [11:52:16]Read from MH i2c: 01 07 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: 01 07 00 9C 8F 00 00 00 00 00 FF 0F 40 [11:52:16]process_action close_receipt done [11:52:16]requested_data is exist [11:52:16]produce_requested_data [11:52:16]requested_item fm.sn is exist - process it [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 11 00 00 [11:52:16]Write to MH i2c: E2 08 00 9D 8F 80 11 00 00 00 00 00 00 A6 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 9D 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [11:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:52:16]wFMCommunicate OK [11:52:16]requested_item fd.num is exist - process it [11:52:16]SAM_PROTO_GetFieldsCounters [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 00 00 [11:52:16]Write to MH i2c: E2 08 00 9E 8F 80 13 00 00 00 00 00 00 A9 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 9E 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 78 00 00 0E 04 04 00 74 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 B6 [11:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 78 00 00 0E 04 04 00 74 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 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetFieldsCounters done [11:52:16]requested_item shift.num is exist - process it [11:52:16]requested_item shift.opened is exist - process it [11:52:16]req_shift_opened [11:52:16]FM_GetShiftState [11:52:16]SAM_PROTO_GetShiftState [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 01 00 [11:52:16]Write to MH i2c: E2 08 00 9F 8F 80 13 01 00 00 00 00 00 AB [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 9F 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 85 [11:52:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetShiftState done [11:52:16]FM_GetShiftState done [11:52:16]req_shift_opened done [11:52:16]requested_item shift.open_date is exist - process it [11:52:16]req_shift_open_date [11:52:16]req_shift_open_date done [11:52:16]produce_requested_data done [11:52:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30882,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:52:16]process_action_free close_receipt [11:52:16]json_value_free [11:52:16]json_value_free done [11:52:16]process_json_proto returns [11:52:16]Send response to host [11:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30882,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:52:16]free response buf [11:52:16]execute_script done [11:52:16]execute_script returns [11:52:16]free content buf [11:52:16]Sock 7.Close socket [11:52:16]Sock 7.Thread stoped [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:03]accept exits with 9 [11:53:03]New connection [11:53:03]New thread 3067346276 created [11:53:03]Thread 3067489636 joined [11:53:03]Waiting for new connection... [11:53:03] Sock 9.Parse request [11:53:03]Sock 9.Check first char [11:53:03]Sock 9.First char is OK [11:53:03]request: POST /json_proto HTTP/1.0 [11:53:03]Method: POST [11:53:03]URL: /json_proto [11:53:03]Method is POST - this is cgi request [11:53:03]url: /json_proto [11:53:03]query_string will be loaded in cgi processing [11:53:03]execute_cgi json_proto POST (null) [11:53:03]execute_cgi path=json_proto method=POST [11:53:03]POST find Content-Length [11:53:03]Host: 172.17.51.3:8080 [11:53:03]Content-Length: 682 [11:53:03]Content-Type: application/json [11:53:03] [11:53:03]POST finish read [11:53:03]Found Content-Length = 682 [11:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:03]execute_script... [11:53: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)343303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:03]POST & json_proto [11:53:03]process_json_proto [11:53:03]json parsed OK: [11:53:03]protocol is kg_v1.0 [11:53:03]action value=close_receipt [11:53:03]process_action close_receipt [11:53:03]cmd_close_receipt [11:53:03]MH_GetDate [11:53:03]Write to MH i2c: F0 00 00 A0 8F 1E [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 09 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: F0 09 00 A0 8F 00 29 92 17 67 04 C1 95 66 20 [11:53:03]GetLastDocTimeStamp 1729597942 [11:53:03]current date 1729597993 [11:53:03]FM_GetShiftState [11:53:03]SAM_PROTO_GetShiftState [11:53:03]wFMCommunicate request_size=4 [11:53:03]MH_SAM_APDU [11:53:03]CAPDU: 80 13 01 00 [11:53:03]Write to MH i2c: E2 08 00 A1 8F 80 13 01 00 00 00 00 00 AD [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:03]Read from MH i2c: E2 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 A1 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 87 [11:53:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:53:03]wFMCommunicate OK [11:53:03]SAM_PROTO_GetShiftState done [11:53:03]FM_GetShiftState done [11:53:03]opened in 1729557342 [11:53:03]opened+sec_in_day 1729643742 [11:53:03]quantity*price = 100015 [11:53:03]sum+1 = 100017 [11:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 116 22.10.2024 11:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30883 ФПД: 109555960957112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30883&fm=109555960957112&tin=02508201610067®Number=0000000000186857&sum=100000 [11:53:04]StoreToDocumentArchive [11:53:04]shift 116 fd 30883 [11:53:04]save to /storage/0116/doc_00030883 [11:53:04]save last doc name /storage/0116/doc_00030883 to /storage/kkm_last_doc_name [11:53:04]save OK [11:53:04]Clear old archive folders... [11:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:04]tlvbuf is 01DAF600 [11:53:04]SAM_PROTO_ClearQueue [11:53:04]wFMCommunicate request_size=4 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 09 00 00 [11:53:04]Write to MH i2c: E2 08 00 AE 8F 80 09 00 00 00 00 00 00 AF [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 AE 8F 00 90 00 B1 [11:53:04]RAPDU: 90 00 [11:53:04]wFMCommunicate OK [11:53:04]SAM_PROTO_ClearQueue done [11:53:04]KKMCreateOFDPacket [11:53:04]OFDProtocolAddRootSTLVToBuf [11:53:04]FM_MakeSignedData [11:53:04]FM_MakeSignedData [11:53:04]SAM_PROTO_SignData [11:53:04]wFMCommunicate request_size=4 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 0D 01 02 [11:53:04]Write to MH i2c: E2 08 00 AF 8F 80 0D 01 02 00 00 00 00 B7 [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 AF 8F 00 90 00 B2 [11:53:04]RAPDU: 90 00 [11:53:04]wFMCommunicate OK [11:53:04]wFMCommunicate request_size=255 [11:53:04]MH_SAM_APDU [11:53: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 29 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 78 00 00 35 04 06 00 63 [11:53:04]Write to MH i2c: E2 02 01 B0 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 29 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 78 00 00 35 04 06 00 63 00 00 E1 [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 B0 8F 00 90 00 B3 [11:53:04]RAPDU: 90 00 [11:53:04]wFMCommunicate OK [11:53:04]wFMCommunicate request_size=10 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 0D 02 02 05 A3 FC 22 C8 B8 [11:53:04]Write to MH i2c: E2 0D 00 B1 8F 80 0D 02 02 05 00 A3 FC 22 C8 B8 00 00 05 [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 03 00 B1 8F 00 90 00 B4 [11:53:04]RAPDU: 90 00 [11:53:04]wFMCommunicate OK [11:53:04]wFMCommunicate request_size=4 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 0D 03 02 [11:53:04]Write to MH i2c: E2 08 00 B2 8F 80 0D 03 02 00 00 00 00 BC [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 0B 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 0B 00 B2 8F 00 60 B8 86 4B FF 6E 7E 92 90 00 23 [11:53:04]RAPDU: 60 B8 86 4B FF 6E 7E 92 90 00 [11:53:04]wFMCommunicate OK [11:53:04]SAM_PROTO_SignData done [11:53:04]FM_MakeSignedData done [11:53:04]CreateOFDProtocolMessage [11:53:04]wFMCommunicate request_size=4 [11:53:04]MH_SAM_APDU [11:53:04]CAPDU: 80 11 00 00 [11:53:04]Write to MH i2c: E2 08 00 B3 8F 80 11 00 00 00 00 00 00 BC [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:04]Read from MH i2c: E2 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 17 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: E2 17 00 B3 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [11:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:53:04]wFMCommunicate OK [11:53:04]CreateOFDProtocolMessage done [11:53:04]OFDSenderStorePacket 30883 [11:53:04]StoreOFDPacket docnum=30883 [11:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 64 E6 07 01 1E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 29 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 78 00 00 35 04 06 00 63 A3 FC 22 C8 B8 60 B8 86 4B FF 6E 7E 92 [11:53:04]CheckFolder [11:53:04]dirname=/storage/ofd_packets [11:53:04]CheckFolder done [11:53:04]ProducePacketName [11:53:04]name=ofd_packets/00030883 [11:53:04]NVStorageSaveData ofd_packets/00030883 [11:53:04]File name is /storage/ofd_packets/00030883 [11:53:04]Write 301 bytes [11:53:04]NVStorageSaveData done [11:53:04]OFDSenderStorePacket done [11:53:04]KKMCreateOFDPacket done [11:53:04]NVStorageSaveData kkm_last_timestamp [11:53:04]File name is /storage/kkm_last_timestamp [11:53:04]Write 4 bytes [11:53:04]NVStorageSaveData done [11:53:04]ExternCall_PrintAddStr [11:53:04]wPrintStart [11:53:04]Write to MH i2c: 01 00 00 B4 8F 43 [11:53:04]Write i2c OK [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: 01 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: 01 07 00 [11:53:04]MH_I2C_Read... [11:53:04]Read from MH i2c: 01 07 00 B4 8F 00 00 00 00 00 FF 0F 58 [11:53:04]RasterBufferAndPrint [11:53:04]line Счет N : (1)343303 [11:53:04]line ИНН: 02508201610067 [11:53:04]line Контрольно-Кассовый Чек [11:53:04]line ПРОДАЖА [11:53:04]line ТРК (МРК, ГНК) : 43 [11:53:04]line Товар: 2710124130 [11:53:04]line Аи-92-К-2 [11:53:04]line 14.950 * 66.90 [11:53:04]line = 1000.16 [11:53:04]line НДС 12% НСП 1% [11:53:04]line > о реализуемом товаре [11:53:04]line ОКРУГЛЕНИЕ: -0.16 [11:53:04]line ИТОГО: 1000.00 [11:53:04]line Внесено: 1000.00 [11:53:04]line СДАЧА: 0.00 [11:53:04]line НСП 1% : 8.85 [11:53:04]line НДС 12% : 106.21 [11:53:04]line Наличными: 1000.00 [11:53:04]line Безнал.: 0.00 [11:53:04]line Место: АЗС № 78 "Партнер Нефть" [11:53:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:53:04]line СНО: Общий режим [11:53:04]line Чек 116 22.10.2024 11:53 [11:53:04]line Смена: 116 ФФД: 1.0 [11:53:04]line ЗНМ: 0300000137 [11:53:04]line РНМ: 0000000000186857 [11:53:04]line Версия ККМ: v1.0 [11:53:04]line ФМ: 0000000002094219 [11:53:04]line ФД: 30883 [11:53:04]line ФПД: 109555960957112 [11:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30883&fm=109555960957112&tin=02508201610067®Number=0000000000186857&sum=100000 [11:53:05]OFD Sender: Processing packet 30883 [packets to send 10, broken 9] [11:53:05]ProducePacketName [11:53:05]name=ofd_packets/00030883 [11:53:05]OFD Sender: To server: pG, [11:53:05]CommunicateWithHost lk.salyk.kg:30040 [11:53:05]ConnectInit lk.salyk.kg [11:53:05]written 0, free lines is 4095 [11:53:05]Connected sock=10 [11:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 64 E6 07 01 1E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 29 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 78 00 00 35 04 06 00 63 A3 FC 22 C8 B8 60 B8 86 4B FF 6E 7E 92 [11:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 57 58 47 00 FF 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 78 00 00 F4 03 04 00 A7 3C 17 67 B6 04 01 00 00 1E 99 CB 30 1D 5F 87 ED [11:53:05]CommunicateWithHost err = 0 [11:53:05]CheckOFDResponse [11:53:05]1017 (14) - 77093643461234 [11:53:05]1041 (16) - 0000000002094219 [11:53:05]1040 (4) - 30883 [11:53:05]1012 (4) - 22.10.2024 05:48 [11:53:05]1206 (1) - 0 [11:53:05]OFD Sender: Remove packet 30883 [11:53:05]ProducePacketName [11:53:05]name=ofd_packets/00030883 [11:53:05]NVStorageDeleteData [11:53:05]Write to MH i2c: 01 00 00 DF 8F 6E [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 07 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: 01 07 00 DF 8F 00 00 00 00 00 EE 0C 6F [11:53:05]RasterBufferAndPrint [11:53:05]line [11:53:05]line [11:53:05]line [11:53:05]line [11:53:05]line [11:53:05]written 0, free lines is 3316 [11:53:05]MH_Cut [11:53:05]Write to MH i2c: D1 01 00 E6 8F 01 47 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: D1 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: D1 01 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: D1 01 00 E6 8F 00 46 [11:53:05]Write to MH i2c: 01 00 00 E7 8F 76 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:06]OFD Sender: No OFD packet to send [11:53:06]*** Cut start [11:53:06]*** Partial cut [11:53:06]*** CUTSNS_PIN = 1 [11:53:06]*** CUTSNS_PIN = 0 [11:53:06]*** Brake cut motor [11:53:06]Read from MH i2c: 01 [11:53:06]MH_I2C_Read... [11:53:06]*** Stop cut motor [11:53:06]*** Cut end [11:53:06]Read from MH i2c: 01 07 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: 01 07 00 E7 8F 00 00 00 00 00 FF 0F 8B [11:53:06]process_action close_receipt done [11:53:06]requested_data is exist [11:53:06]produce_requested_data [11:53:06]requested_item fm.sn is exist - process it [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 11 00 00 [11:53:06]Write to MH i2c: E2 08 00 E8 8F 80 11 00 00 00 00 00 00 F1 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 17 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 17 00 E8 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [11:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:53:06]wFMCommunicate OK [11:53:06]requested_item fd.num is exist - process it [11:53:06]SAM_PROTO_GetFieldsCounters [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 13 00 00 [11:53:06]Write to MH i2c: E2 08 00 E9 8F 80 13 00 00 00 00 00 00 F4 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 62 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 62 00 E9 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 78 00 00 0E 04 04 00 74 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 05 [11:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 78 00 00 0E 04 04 00 74 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 [11:53:07]wFMCommunicate OK [11:53:07]SAM_PROTO_GetFieldsCounters done [11:53:07]requested_item shift.num is exist - process it [11:53:07]requested_item shift.opened is exist - process it [11:53:07]req_shift_opened [11:53:07]FM_GetShiftState [11:53:07]SAM_PROTO_GetShiftState [11:53:07]wFMCommunicate request_size=4 [11:53:07]MH_SAM_APDU [11:53:07]CAPDU: 80 13 01 00 [11:53:07]Write to MH i2c: E2 08 00 EA 8F 80 13 01 00 00 00 00 00 F6 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 0E 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 0E 00 EA 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D0 [11:53:07]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:53:07]wFMCommunicate OK [11:53:07]SAM_PROTO_GetShiftState done [11:53:07]FM_GetShiftState done [11:53:07]req_shift_opened done [11:53:07]requested_item shift.open_date is exist - process it [11:53:07]req_shift_open_date [11:53:07]req_shift_open_date done [11:53:07]produce_requested_data done [11:53:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30883,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:53:07]process_action_free close_receipt [11:53:07]json_value_free [11:53:07]json_value_free done [11:53:07]process_json_proto returns [11:53:07]Send response to host [11:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30883,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:53:07]free response buf [11:53:07]execute_script done [11:53:07]execute_script returns [11:53:07]free content buf [11:53:07]Sock 9.Close socket [11:53:07]Sock 9.Thread stoped [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:01]accept exits with 7 [11:55:01]New connection [11:55:01]New thread 3067489636 created [11:55:01]Thread 3067346276 joined [11:55:01]Waiting for new connection... [11:55:01] Sock 7.Parse request [11:55:01]Sock 7.Check first char [11:55:01]Sock 7.First char is OK [11:55:01]request: POST /json_proto HTTP/1.0 [11:55:01]Method: POST [11:55:01]URL: /json_proto [11:55:01]Method is POST - this is cgi request [11:55:01]url: /json_proto [11:55:01]query_string will be loaded in cgi processing [11:55:01]execute_cgi json_proto POST (null) [11:55:01]execute_cgi path=json_proto method=POST [11:55:01]POST find Content-Length [11:55:01]Host: 172.17.51.3:8080 [11:55:01]Content-Length: 678 [11:55:01]Content-Type: application/json [11:55:01] [11:55:01]POST finish read [11:55:01]Found Content-Length = 678 [11:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:01]execute_script... [11:55:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:01]POST & json_proto [11:55:01]process_json_proto [11:55:01]json parsed OK: [11:55:01]protocol is kg_v1.0 [11:55:01]action value=close_receipt [11:55:01]process_action close_receipt [11:55:01]cmd_close_receipt [11:55:01]MH_GetDate [11:55:01]Write to MH i2c: F0 00 00 EB 8F 69 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 09 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 09 00 EB 8F 00 A0 92 17 67 04 C1 95 66 E2 [11:55:01]GetLastDocTimeStamp 1729597993 [11:55:01]current date 1729598112 [11:55:01]FM_GetShiftState [11:55:01]SAM_PROTO_GetShiftState [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 13 01 00 [11:55:01]Write to MH i2c: E2 08 00 EC 8F 80 13 01 00 00 00 00 00 F8 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0E 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0E 00 EC 8F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D2 [11:55:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:55:02]wFMCommunicate OK [11:55:02]SAM_PROTO_GetShiftState done [11:55:02]FM_GetShiftState done [11:55:02]opened in 1729557342 [11:55:02]opened+sec_in_day 1729643742 [11:55:02]quantity*price = 90047 [11:55:02]sum+1 = 90048 [11:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 117 22.10.2024 11:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30884 ФПД: 26909058467362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30884&fm=26909058467362&tin=02508201610067®Number=0000000000186857&sum=90000 [11:55:03]StoreToDocumentArchive [11:55:03]shift 116 fd 30884 [11:55:03]save to /storage/0116/doc_00030884 [11:55:03]save last doc name /storage/0116/doc_00030884 to /storage/kkm_last_doc_name [11:55:03]save OK [11:55:03]Clear old archive folders... [11:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:03]tlvbuf is 01E6F210 [11:55:03]SAM_PROTO_ClearQueue [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 09 00 00 [11:55:03]Write to MH i2c: E2 08 00 F9 8F 80 09 00 00 00 00 00 00 FA [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 F9 8F 00 90 00 FC [11:55:03]RAPDU: 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_ClearQueue done [11:55:03]KKMCreateOFDPacket [11:55:03]OFDProtocolAddRootSTLVToBuf [11:55:03]FM_MakeSignedData [11:55:03]FM_MakeSignedData [11:55:03]SAM_PROTO_SignData [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 0D 01 02 [11:55:03]Write to MH i2c: E2 08 00 FA 8F 80 0D 01 02 00 00 00 00 02 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 FA 8F 00 90 00 FD [11:55:03]RAPDU: 90 00 [11:55:03]wFMCommunicate OK [11:55:03]wFMCommunicate request_size=255 [11:55:03]MH_SAM_APDU [11:55: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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 A0 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 78 00 00 35 04 06 00 18 [11:55:03]Write to MH i2c: E2 02 01 FB 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 A0 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 78 00 00 35 04 06 00 18 00 00 7D [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 FB 8F 00 90 00 FE [11:55:03]RAPDU: 90 00 [11:55:03]wFMCommunicate OK [11:55:03]wFMCommunicate request_size=10 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 0D 02 02 05 79 40 DF 06 22 [11:55:03]Write to MH i2c: E2 0D 00 FC 8F 80 0D 02 02 05 00 79 40 DF 06 22 00 00 CF [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 03 00 FC 8F 00 90 00 FF [11:55:03]RAPDU: 90 00 [11:55:03]wFMCommunicate OK [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 0D 03 02 [11:55:03]Write to MH i2c: E2 08 00 FD 8F 80 0D 03 02 00 00 00 00 07 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0B 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0B 00 FD 8F 00 32 8B AB AD 57 A9 4D A0 90 00 0A [11:55:03]RAPDU: 32 8B AB AD 57 A9 4D A0 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_SignData done [11:55:03]FM_MakeSignedData done [11:55:03]CreateOFDProtocolMessage [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 11 00 00 [11:55:03]Write to MH i2c: E2 08 00 FE 8F 80 11 00 00 00 00 00 00 07 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 FE 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [11:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:03]wFMCommunicate OK [11:55:03]CreateOFDProtocolMessage done [11:55:03]OFDSenderStorePacket 30884 [11:55:03]StoreOFDPacket docnum=30884 [11:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 77 D2 07 01 80 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 A0 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 78 00 00 35 04 06 00 18 79 40 DF 06 22 32 8B AB AD 57 A9 4D A0 [11:55:03]CheckFolder [11:55:03]dirname=/storage/ofd_packets [11:55:03]CheckFolder done [11:55:03]ProducePacketName [11:55:03]name=ofd_packets/00030884 [11:55:03]NVStorageSaveData ofd_packets/00030884 [11:55:03]File name is /storage/ofd_packets/00030884 [11:55:03]Write 301 bytes [11:55:03]NVStorageSaveData done [11:55:03]OFDSenderStorePacket done [11:55:03]KKMCreateOFDPacket done [11:55:03]NVStorageSaveData kkm_last_timestamp [11:55:03]File name is /storage/kkm_last_timestamp [11:55:03]Write 4 bytes [11:55:03]NVStorageSaveData done [11:55:03]ExternCall_PrintAddStr [11:55:03]wPrintStart [11:55:03]Write to MH i2c: 01 00 00 FF 8F 8E [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 FF 8F 00 00 00 00 00 FF 0F A3 [11:55:03]RasterBufferAndPrint [11:55:03]line Счет N : (1)343304 [11:55:03]line ИНН: 02508201610067 [11:55:03]line Контрольно-Кассовый Чек [11:55:03]line ПРОДАЖА [11:55:03]line ТРК (МРК, ГНК) : 63 [11:55:03]line Товар: 2710124130 [11:55:03]line Аи-92-К-2 [11:55:03]line 13.460 * 66.90 [11:55:03]line = 900.47 [11:55:03]line НДС 12% НСП 1% [11:55:03]line > о реализуемом товаре [11:55:03]line ОКРУГЛЕНИЕ: -0.47 [11:55:03]line ИТОГО: 900.00 [11:55:03]line Внесено: 900.00 [11:55:03]line СДАЧА: 0.00 [11:55:03]line НСП 1% : 7.97 [11:55:03]line НДС 12% : 95.62 [11:55:03]line Наличными: 900.00 [11:55:03]line Безнал.: 0.00 [11:55:03]line Место: АЗС № 78 "Партнер Нефть" [11:55:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:55:03]line СНО: Общий режим [11:55:03]line Чек 117 22.10.2024 11:55 [11:55:03]line Смена: 116 ФФД: 1.0 [11:55:03]line ЗНМ: 0300000137 [11:55:03]line РНМ: 0000000000186857 [11:55:03]line Версия ККМ: v1.0 [11:55:03]line ФМ: 0000000002094219 [11:55:03]line ФД: 30884 [11:55:03]line ФПД: 26909058467362 [11:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30884&fm=26909058467362&tin=02508201610067®Number=0000000000186857&sum=90000 [11:55:04]OFD Sender: Processing packet 30884 [packets to send 10, broken 9] [11:55:04]ProducePacketName [11:55:04]name=ofd_packets/00030884 [11:55:04]OFD Sender: To server: pG, [11:55:04]CommunicateWithHost lk.salyk.kg:30040 [11:55:04]ConnectInit lk.salyk.kg [11:55:04]written 0, free lines is 4095 [11:55:04]Connected sock=10 [11:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 77 D2 07 01 80 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 A0 92 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 78 00 00 35 04 06 00 18 79 40 DF 06 22 32 8B AB AD 57 A9 4D A0 [11:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AA FC 47 00 49 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 32 30 39 34 32 31 39 10 04 04 00 A4 78 00 00 F4 03 04 00 1E 3D 17 67 B6 04 01 00 00 D3 41 41 CE 80 AB F7 94 [11:55:04]CommunicateWithHost err = 0 [11:55:04]CheckOFDResponse [11:55:04]1017 (14) - 77093643461234 [11:55:04]1041 (16) - 0000000002094219 [11:55:04]1040 (4) - 30884 [11:55:04]1012 (4) - 22.10.2024 05:50 [11:55:04]1206 (1) - 0 [11:55:04]OFD Sender: Remove packet 30884 [11:55:04]ProducePacketName [11:55:04]name=ofd_packets/00030884 [11:55:04]NVStorageDeleteData [11:55:04]Write to MH i2c: 01 00 00 2A 90 BA [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 07 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 07 00 2A 90 00 00 00 00 00 F6 0C C3 [11:55:04]RasterBufferAndPrint [11:55:04]line [11:55:04]line [11:55:04]line [11:55:04]line [11:55:04]line [11:55:04]written 0, free lines is 3328 [11:55:04]MH_Cut [11:55:04]Write to MH i2c: D1 01 00 31 90 01 93 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: D1 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: D1 01 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: D1 01 00 31 90 00 92 [11:55:04]Write to MH i2c: 01 00 00 32 90 C2 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]OFD Sender: No OFD packet to send [11:55:05]*** Cut start [11:55:05]*** Partial cut [11:55:05]*** CUTSNS_PIN = 1 [11:55:05]*** CUTSNS_PIN = 0 [11:55:05]*** Brake cut motor [11:55:05]Read from MH i2c: 01 [11:55:05]MH_I2C_Read... [11:55:05]*** Stop cut motor [11:55:05]*** Cut end [11:55:05]Read from MH i2c: 01 07 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 32 90 00 00 00 00 00 FF 0F D7 [11:55:05]process_action close_receipt done [11:55:05]requested_data is exist [11:55:05]produce_requested_data [11:55:05]requested_item fm.sn is exist - process it [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 11 00 00 [11:55:05]Write to MH i2c: E2 08 00 33 90 80 11 00 00 00 00 00 00 3D [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 33 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [11:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:05]wFMCommunicate OK [11:55:05]requested_item fd.num is exist - process it [11:55:05]SAM_PROTO_GetFieldsCounters [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 00 00 [11:55:05]Write to MH i2c: E2 08 00 34 90 80 13 00 00 00 00 00 00 40 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 34 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 78 00 00 0E 04 04 00 74 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 55 [11:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 78 00 00 0E 04 04 00 74 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 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetFieldsCounters done [11:55:05]requested_item shift.num is exist - process it [11:55:05]requested_item shift.opened is exist - process it [11:55:05]req_shift_opened [11:55:05]FM_GetShiftState [11:55:05]SAM_PROTO_GetShiftState [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 01 00 [11:55:05]Write to MH i2c: E2 08 00 35 90 80 13 01 00 00 00 00 00 42 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 35 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1C [11:55:06]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:55:06]wFMCommunicate OK [11:55:06]SAM_PROTO_GetShiftState done [11:55:06]FM_GetShiftState done [11:55:06]req_shift_opened done [11:55:06]requested_item shift.open_date is exist - process it [11:55:06]req_shift_open_date [11:55:06]req_shift_open_date done [11:55:06]produce_requested_data done [11:55:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30884,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:55:06]process_action_free close_receipt [11:55:06]json_value_free [11:55:06]json_value_free done [11:55:06]process_json_proto returns [11:55:06]Send response to host [11:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30884,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:55:06]free response buf [11:55:06]execute_script done [11:55:06]execute_script returns [11:55:06]free content buf [11:55:06]Sock 7.Close socket [11:55:06]Sock 7.Thread stoped [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:40]accept exits with 9 [11:58:40]New connection [11:58:40]New thread 3067346276 created [11:58:40]Thread 3067489636 joined [11:58:40]Waiting for new connection... [11:58:40] Sock 9.Parse request [11:58:40]Sock 9.Check first char [11:58:40]Sock 9.First char is OK [11:58:40]request: POST /json_proto HTTP/1.0 [11:58:40]Method: POST [11:58:40]URL: /json_proto [11:58:40]Method is POST - this is cgi request [11:58:40]url: /json_proto [11:58:40]query_string will be loaded in cgi processing [11:58:40]execute_cgi json_proto POST (null) [11:58:40]execute_cgi path=json_proto method=POST [11:58:40]POST find Content-Length [11:58:40]Host: 172.17.51.3:8080 [11:58:40]Content-Length: 677 [11:58:40]Content-Type: application/json [11:58:40] [11:58:40]POST finish read [11:58:40]Found Content-Length = 677 [11:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:40]execute_script... [11:58: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)343305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:40]POST & json_proto [11:58:40]process_json_proto [11:58:40]json parsed OK: [11:58:40]protocol is kg_v1.0 [11:58:40]action value=close_receipt [11:58:40]process_action close_receipt [11:58:40]cmd_close_receipt [11:58:40]MH_GetDate [11:58:40]Write to MH i2c: F0 00 00 36 90 B5 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 09 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: F0 09 00 36 90 00 7B 93 17 67 04 C1 95 66 0A [11:58:40]GetLastDocTimeStamp 1729598112 [11:58:40]current date 1729598331 [11:58:40]FM_GetShiftState [11:58:40]SAM_PROTO_GetShiftState [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 13 01 00 [11:58:40]Write to MH i2c: E2 08 00 37 90 80 13 01 00 00 00 00 00 44 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 0E 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 0E 00 37 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1E [11:58:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:58:40]wFMCommunicate OK [11:58:40]SAM_PROTO_GetShiftState done [11:58:40]FM_GetShiftState done [11:58:40]opened in 1729557342 [11:58:40]opened+sec_in_day 1729643742 [11:58:40]quantity*price = 50041 [11:58:40]sum+1 = 50042 [11:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 118 22.10.2024 11:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30885 ФПД: 155810629189126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30885&fm=155810629189126&tin=02508201610067®Number=0000000000186857&sum=50000 [11:58:41]StoreToDocumentArchive [11:58:41]shift 116 fd 30885 [11:58:41]save to /storage/0116/doc_00030885 [11:58:41]save last doc name /storage/0116/doc_00030885 to /storage/kkm_last_doc_name [11:58:41]save OK [11:58:41]Clear old archive folders... [11:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:41]tlvbuf is 01DFEE90 [11:58:41]SAM_PROTO_ClearQueue [11:58:41]wFMCommunicate request_size=4 [11:58:41]MH_SAM_APDU [11:58:41]CAPDU: 80 09 00 00 [11:58:41]Write to MH i2c: E2 08 00 44 90 80 09 00 00 00 00 00 00 46 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 44 90 00 90 00 48 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_ClearQueue done [11:58:42]KKMCreateOFDPacket [11:58:42]OFDProtocolAddRootSTLVToBuf [11:58:42]FM_MakeSignedData [11:58:42]FM_MakeSignedData [11:58:42]SAM_PROTO_SignData [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 01 02 [11:58:42]Write to MH i2c: E2 08 00 45 90 80 0D 01 02 00 00 00 00 4E [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 45 90 00 90 00 49 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=255 [11:58:42]MH_SAM_APDU [11:58: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B 93 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 78 00 00 35 04 06 00 8D [11:58:42]Write to MH i2c: E2 02 01 46 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B 93 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 78 00 00 35 04 06 00 8D 00 00 FF [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 46 90 00 90 00 4A [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=10 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 02 02 05 B5 7D 34 7E 06 [11:58:42]Write to MH i2c: E2 0D 00 47 90 80 0D 02 02 05 00 B5 7D 34 7E 06 00 00 45 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 47 90 00 90 00 4B [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 03 02 [11:58:42]Write to MH i2c: E2 08 00 48 90 80 0D 03 02 00 00 00 00 53 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 48 90 00 0D 9A DA 6B 09 05 E1 1D 90 00 4C [11:58:42]RAPDU: 0D 9A DA 6B 09 05 E1 1D 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_SignData done [11:58:42]FM_MakeSignedData done [11:58:42]CreateOFDProtocolMessage [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 11 00 00 [11:58:42]Write to MH i2c: E2 08 00 49 90 80 11 00 00 00 00 00 00 53 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 49 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [11:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:58:42]wFMCommunicate OK [11:58:42]CreateOFDProtocolMessage done [11:58:42]OFDSenderStorePacket 30885 [11:58:42]StoreOFDPacket docnum=30885 [11:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D CF 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B 93 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 78 00 00 35 04 06 00 8D B5 7D 34 7E 06 0D 9A DA 6B 09 05 E1 1D [11:58:42]CheckFolder [11:58:42]dirname=/storage/ofd_packets [11:58:42]CheckFolder done [11:58:42]ProducePacketName [11:58:42]name=ofd_packets/00030885 [11:58:42]NVStorageSaveData ofd_packets/00030885 [11:58:42]File name is /storage/ofd_packets/00030885 [11:58:42]Write 301 bytes [11:58:42]NVStorageSaveData done [11:58:42]OFDSenderStorePacket done [11:58:42]KKMCreateOFDPacket done [11:58:42]NVStorageSaveData kkm_last_timestamp [11:58:42]File name is /storage/kkm_last_timestamp [11:58:42]Write 4 bytes [11:58:42]NVStorageSaveData done [11:58:42]ExternCall_PrintAddStr [11:58:42]wPrintStart [11:58:42]Write to MH i2c: 01 00 00 4A 90 DA [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 4A 90 00 00 00 00 00 FF 0F EF [11:58:42]RasterBufferAndPrint [11:58:42]line Счет N : (1)343305 [11:58:42]line ИНН: 02508201610067 [11:58:42]line Контрольно-Кассовый Чек [11:58:42]line ПРОДАЖА [11:58:42]line ТРК (МРК, ГНК) : 53 [11:58:42]line Товар: 2710124130 [11:58:42]line Аи-92-К-2 [11:58:42]line 7.480 * 66.90 [11:58:42]line = 500.41 [11:58:42]line НДС 12% НСП 1% [11:58:42]line > о реализуемом товаре [11:58:42]line ОКРУГЛЕНИЕ: -0.41 [11:58:42]line ИТОГО: 500.00 [11:58:42]line Внесено: 500.00 [11:58:42]line СДАЧА: 0.00 [11:58:42]line НСП 1% : 4.43 [11:58:42]line НДС 12% : 53.14 [11:58:42]line Наличными: 500.00 [11:58:42]line Безнал.: 0.00 [11:58:42]line Место: АЗС № 78 "Партнер Нефть" [11:58:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:58:42]line СНО: Общий режим [11:58:42]line Чек 118 22.10.2024 11:58 [11:58:42]line Смена: 116 ФФД: 1.0 [11:58:42]line ЗНМ: 0300000137 [11:58:42]line РНМ: 0000000000186857 [11:58:42]line Версия ККМ: v1.0 [11:58:42]line ФМ: 0000000002094219 [11:58:42]line ФД: 30885 [11:58:42]line ФПД: 155810629189126 [11:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30885&fm=155810629189126&tin=02508201610067®Number=0000000000186857&sum=50000 [11:58:42]OFD Sender: Processing packet 30885 [packets to send 10, broken 9] [11:58:42]ProducePacketName [11:58:42]name=ofd_packets/00030885 [11:58:42]OFD Sender: To server: pG, [11:58:42]CommunicateWithHost lk.salyk.kg:30040 [11:58:42]ConnectInit lk.salyk.kg [11:58:42]written 0, free lines is 4095 [11:58:42]Connected sock=10 [11:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D CF 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B 93 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 78 00 00 35 04 06 00 8D B5 7D 34 7E 06 0D 9A DA 6B 09 05 E1 1D [11:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9F 71 47 00 D5 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 32 30 39 34 32 31 39 10 04 04 00 A5 78 00 00 F4 03 04 00 F8 3D 17 67 B6 04 01 00 00 A6 95 FA 99 22 AF 47 BD [11:58:43]CommunicateWithHost err = 0 [11:58:43]CheckOFDResponse [11:58:43]1017 (14) - 77093643461234 [11:58:43]1041 (16) - 0000000002094219 [11:58:43]1040 (4) - 30885 [11:58:43]1012 (4) - 22.10.2024 05:54 [11:58:43]1206 (1) - 0 [11:58:43]OFD Sender: Remove packet 30885 [11:58:43]ProducePacketName [11:58:43]name=ofd_packets/00030885 [11:58:43]NVStorageDeleteData [11:58:43]Write to MH i2c: 01 00 00 75 90 05 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 75 90 00 00 00 00 00 FC 0C 14 [11:58:43]RasterBufferAndPrint [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]written 0, free lines is 3330 [11:58:43]MH_Cut [11:58:43]Write to MH i2c: D1 01 00 7C 90 01 DE [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 7C 90 00 DD [11:58:43]Write to MH i2c: 01 00 00 7D 90 0D [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]OFD Sender: No OFD packet to send [11:58:43]*** Cut start [11:58:43]*** Partial cut [11:58:43]*** CUTSNS_PIN = 1 [11:58:44]*** CUTSNS_PIN = 0 [11:58:44]*** Brake cut motor [11:58:44]Read from MH i2c: 01 [11:58:44]MH_I2C_Read... [11:58:44]*** Stop cut motor [11:58:44]*** Cut end [11:58:44]Read from MH i2c: 01 07 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: 01 07 00 7D 90 00 00 00 00 00 FF 0F 22 [11:58:44]process_action close_receipt done [11:58:44]requested_data is exist [11:58:44]produce_requested_data [11:58:44]requested_item fm.sn is exist - process it [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 11 00 00 [11:58:44]Write to MH i2c: E2 08 00 7E 90 80 11 00 00 00 00 00 00 88 [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:44]Read from MH i2c: E2 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 7E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [11:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:58:44]wFMCommunicate OK [11:58:44]requested_item fd.num is exist - process it [11:58:44]SAM_PROTO_GetFieldsCounters [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 13 00 00 [11:58:44]Write to MH i2c: E2 08 00 7F 90 80 13 00 00 00 00 00 00 8B [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:44]Read from MH i2c: E2 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 62 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 62 00 7F 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 78 00 00 0E 04 04 00 74 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 A4 [11:58:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 78 00 00 0E 04 04 00 74 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 [11:58:44]wFMCommunicate OK [11:58:44]SAM_PROTO_GetFieldsCounters done [11:58:44]requested_item shift.num is exist - process it [11:58:44]requested_item shift.opened is exist - process it [11:58:44]req_shift_opened [11:58:44]FM_GetShiftState [11:58:44]SAM_PROTO_GetShiftState [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 13 01 00 [11:58:44]Write to MH i2c: E2 08 00 80 90 80 13 01 00 00 00 00 00 8D [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:44]Read from MH i2c: E2 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 0E 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 0E 00 80 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 67 [11:58:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [11:58:44]wFMCommunicate OK [11:58:44]SAM_PROTO_GetShiftState done [11:58:44]FM_GetShiftState done [11:58:44]req_shift_opened done [11:58:44]requested_item shift.open_date is exist - process it [11:58:44]req_shift_open_date [11:58:44]req_shift_open_date done [11:58:44]produce_requested_data done [11:58:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30885,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [11:58:44]process_action_free close_receipt [11:58:44]json_value_free [11:58:44]json_value_free done [11:58:44]process_json_proto returns [11:58:44]Send response to host [11:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30885,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [11:58:44]free response buf [11:58:44]execute_script done [11:58:44]execute_script returns [11:58:44]free content buf [11:58:44]Sock 9.Close socket [11:58:44]Sock 9.Thread stoped [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:47]accept exits with 7 [12:01:47]New connection [12:01:47]New thread 3067489636 created [12:01:47]Thread 3067346276 joined [12:01:47]Waiting for new connection... [12:01:47] Sock 7.Parse request [12:01:47]Sock 7.Check first char [12:01:47]Sock 7.First char is OK [12:01:47]request: POST /json_proto HTTP/1.0 [12:01:47]Method: POST [12:01:47]URL: /json_proto [12:01:47]Method is POST - this is cgi request [12:01:47]url: /json_proto [12:01:47]query_string will be loaded in cgi processing [12:01:47]execute_cgi json_proto POST (null) [12:01:47]execute_cgi path=json_proto method=POST [12:01:47]POST find Content-Length [12:01:47]Host: 172.17.51.3:8080 [12:01:47]Content-Length: 679 [12:01:47]Content-Type: application/json [12:01:47] [12:01:47]POST finish read [12:01:47]Found Content-Length = 679 [12:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:47]execute_script... [12:01: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)343306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:47]POST & json_proto [12:01:47]process_json_proto [12:01:47]json parsed OK: [12:01:47]protocol is kg_v1.0 [12:01:47]action value=close_receipt [12:01:47]process_action close_receipt [12:01:47]cmd_close_receipt [12:01:47]MH_GetDate [12:01:47]Write to MH i2c: F0 00 00 81 90 00 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 09 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 09 00 81 90 00 36 94 17 67 04 C1 95 66 11 [12:01:47]GetLastDocTimeStamp 1729598331 [12:01:47]current date 1729598518 [12:01:47]FM_GetShiftState [12:01:47]SAM_PROTO_GetShiftState [12:01:47]wFMCommunicate request_size=4 [12:01:47]MH_SAM_APDU [12:01:47]CAPDU: 80 13 01 00 [12:01:47]Write to MH i2c: E2 08 00 82 90 80 13 01 00 00 00 00 00 8F [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:47]Read from MH i2c: E2 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 0E 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 0E 00 82 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 69 [12:01:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:01:47]wFMCommunicate OK [12:01:47]SAM_PROTO_GetShiftState done [12:01:47]FM_GetShiftState done [12:01:47]opened in 1729557342 [12:01:47]opened+sec_in_day 1729643742 [12:01:47]quantity*price = 100050 [12:01:47]sum+1 = 100052 [12:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 119 22.10.2024 12:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30886 ФПД: 69215213228183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30886&fm=69215213228183&tin=02508201610067®Number=0000000000186857&sum=100000 [12:01:49]StoreToDocumentArchive [12:01:49]shift 116 fd 30886 [12:01:49]save to /storage/0116/doc_00030886 [12:01:49]save last doc name /storage/0116/doc_00030886 to /storage/kkm_last_doc_name [12:01:49]save OK [12:01:49]Clear old archive folders... [12:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:49]tlvbuf is 01DFEF00 [12:01:49]SAM_PROTO_ClearQueue [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 09 00 00 [12:01:49]Write to MH i2c: E2 08 00 8F 90 80 09 00 00 00 00 00 00 91 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 8F 90 00 90 00 93 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]SAM_PROTO_ClearQueue done [12:01:49]KKMCreateOFDPacket [12:01:49]OFDProtocolAddRootSTLVToBuf [12:01:49]FM_MakeSignedData [12:01:49]FM_MakeSignedData [12:01:49]SAM_PROTO_SignData [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 01 02 [12:01:49]Write to MH i2c: E2 08 00 90 90 80 0D 01 02 00 00 00 00 99 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 90 90 00 90 00 94 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=255 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 36 94 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 78 00 00 35 04 06 00 3E F3 6C 32 [12:01:49]Write to MH i2c: E2 02 01 91 90 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 36 94 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 78 00 00 35 04 06 00 3E F3 6C 32 00 00 40 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 91 90 00 90 00 95 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=7 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 02 02 02 90 97 [12:01:49]Write to MH i2c: E2 0A 00 92 90 80 0D 02 02 02 00 90 97 00 00 C7 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 92 90 00 90 00 96 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 03 02 [12:01:49]Write to MH i2c: E2 08 00 93 90 80 0D 03 02 00 00 00 00 9E [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 0B 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 0B 00 93 90 00 FC F2 1C 55 A6 C3 CA 0F 90 00 40 [12:01:49]RAPDU: FC F2 1C 55 A6 C3 CA 0F 90 00 [12:01:49]wFMCommunicate OK [12:01:49]SAM_PROTO_SignData done [12:01:49]FM_MakeSignedData done [12:01:49]CreateOFDProtocolMessage [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 11 00 00 [12:01:49]Write to MH i2c: E2 08 00 94 90 80 11 00 00 00 00 00 00 9E [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 17 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 17 00 94 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [12:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:49]wFMCommunicate OK [12:01:49]CreateOFDProtocolMessage done [12:01:49]OFDSenderStorePacket 30886 [12:01:49]StoreOFDPacket docnum=30886 [12:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 C2 3B 04 01 EF 55 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 36 94 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 78 00 00 35 04 06 00 3E F3 6C 32 90 97 FC F2 1C 55 A6 C3 CA 0F [12:01:49]CheckFolder [12:01:49]dirname=/storage/ofd_packets [12:01:49]CheckFolder done [12:01:49]ProducePacketName [12:01:49]name=ofd_packets/00030886 [12:01:49]NVStorageSaveData ofd_packets/00030886 [12:01:49]File name is /storage/ofd_packets/00030886 [12:01:49]Write 298 bytes [12:01:49]NVStorageSaveData done [12:01:49]OFDSenderStorePacket done [12:01:49]KKMCreateOFDPacket done [12:01:49]NVStorageSaveData kkm_last_timestamp [12:01:49]File name is /storage/kkm_last_timestamp [12:01:49]Write 4 bytes [12:01:49]NVStorageSaveData done [12:01:49]ExternCall_PrintAddStr [12:01:49]wPrintStart [12:01:49]Write to MH i2c: 01 00 00 95 90 25 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 07 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 07 00 95 90 00 00 00 00 00 FF 0F 3A [12:01:49]RasterBufferAndPrint [12:01:49]line Счет N : (1)343306 [12:01:49]line ИНН: 02508201610067 [12:01:49]line Контрольно-Кассовый Чек [12:01:49]line ПРОДАЖА [12:01:49]line ТРК (МРК, ГНК) : 44 [12:01:49]line Товар: 2710194210 [12:01:49]line ДТ-К-2 [12:01:49]line 13.130 * 76.20 [12:01:49]line = 1000.51 [12:01:49]line НДС 12% НСП 1% [12:01:49]line > о реализуемом товаре [12:01:49]line ОКРУГЛЕНИЕ: -0.51 [12:01:49]line ИТОГО: 1000.00 [12:01:49]line Внесено: 1000.00 [12:01:49]line СДАЧА: 0.00 [12:01:49]line НСП 1% : 8.85 [12:01:49]line НДС 12% : 106.25 [12:01:49]line Наличными: 1000.00 [12:01:49]line Безнал.: 0.00 [12:01:49]line Место: АЗС № 78 "Партнер Нефть" [12:01:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:01:49]line СНО: Общий режим [12:01:49]line Чек 119 22.10.2024 12:01 [12:01:49]line Смена: 116 ФФД: 1.0 [12:01:49]line ЗНМ: 0300000137 [12:01:49]line РНМ: 0000000000186857 [12:01:49]line Версия ККМ: v1.0 [12:01:49]line ФМ: 0000000002094219 [12:01:49]line ФД: 30886 [12:01:49]line ФПД: 69215213228183 [12:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30886&fm=69215213228183&tin=02508201610067®Number=0000000000186857&sum=100000 [12:01:49]OFD Sender: Processing packet 30886 [packets to send 10, broken 9] [12:01:49]ProducePacketName [12:01:49]name=ofd_packets/00030886 [12:01:49]OFD Sender: To server: pG, [12:01:49]CommunicateWithHost lk.salyk.kg:30040 [12:01:49]ConnectInit lk.salyk.kg [12:01:49]written 0, free lines is 4095 [12:01:50]Connected sock=10 [12:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 C2 3B 04 01 EF 55 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 36 94 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 78 00 00 35 04 06 00 3E F3 6C 32 90 97 FC F2 1C 55 A6 C3 CA 0F [12:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 E8 47 00 B5 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 32 30 39 34 32 31 39 10 04 04 00 A6 78 00 00 F4 03 04 00 B3 3E 17 67 B6 04 01 00 00 82 9F 43 DB AF 49 68 2E [12:01:50]CommunicateWithHost err = 0 [12:01:50]CheckOFDResponse [12:01:50]1017 (14) - 77093643461234 [12:01:50]1041 (16) - 0000000002094219 [12:01:50]1040 (4) - 30886 [12:01:50]1012 (4) - 22.10.2024 05:57 [12:01:50]1206 (1) - 0 [12:01:50]OFD Sender: Remove packet 30886 [12:01:50]ProducePacketName [12:01:50]name=ofd_packets/00030886 [12:01:50]NVStorageDeleteData [12:01:50]Write to MH i2c: 01 00 00 C0 90 50 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 C0 90 00 00 00 00 00 EE 0C 51 [12:01:50]RasterBufferAndPrint [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]written 0, free lines is 3319 [12:01:50]MH_Cut [12:01:50]Write to MH i2c: D1 01 00 C7 90 01 29 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 01 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 01 00 C7 90 00 28 [12:01:50]Write to MH i2c: 01 00 00 C8 90 58 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]OFD Sender: No OFD packet to send [12:01:51]*** Cut start [12:01:51]*** Partial cut [12:01:51]*** CUTSNS_PIN = 1 [12:01:51]*** CUTSNS_PIN = 0 [12:01:51]*** Brake cut motor [12:01:51]Read from MH i2c: 01 [12:01:51]MH_I2C_Read... [12:01:51]*** Stop cut motor [12:01:51]*** Cut end [12:01:51]Read from MH i2c: 01 07 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: 01 07 00 C8 90 00 00 00 00 00 FF 0F 6D [12:01:51]process_action close_receipt done [12:01:51]requested_data is exist [12:01:51]produce_requested_data [12:01:51]requested_item fm.sn is exist - process it [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 11 00 00 [12:01:51]Write to MH i2c: E2 08 00 C9 90 80 11 00 00 00 00 00 00 D3 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 17 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 17 00 C9 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [12:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:51]wFMCommunicate OK [12:01:51]requested_item fd.num is exist - process it [12:01:51]SAM_PROTO_GetFieldsCounters [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 13 00 00 [12:01:51]Write to MH i2c: E2 08 00 CA 90 80 13 00 00 00 00 00 00 D6 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 62 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 62 00 CA 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 78 00 00 0E 04 04 00 74 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 F3 [12:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 78 00 00 0E 04 04 00 74 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 [12:01:51]wFMCommunicate OK [12:01:51]SAM_PROTO_GetFieldsCounters done [12:01:51]requested_item shift.num is exist - process it [12:01:51]requested_item shift.opened is exist - process it [12:01:51]req_shift_opened [12:01:51]FM_GetShiftState [12:01:51]SAM_PROTO_GetShiftState [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 13 01 00 [12:01:51]Write to MH i2c: E2 08 00 CB 90 80 13 01 00 00 00 00 00 D8 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 CB 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B2 [12:01:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:01:51]wFMCommunicate OK [12:01:51]SAM_PROTO_GetShiftState done [12:01:51]FM_GetShiftState done [12:01:51]req_shift_opened done [12:01:51]requested_item shift.open_date is exist - process it [12:01:51]req_shift_open_date [12:01:51]req_shift_open_date done [12:01:51]produce_requested_data done [12:01:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30886,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:01:51]process_action_free close_receipt [12:01:51]json_value_free [12:01:51]json_value_free done [12:01:51]process_json_proto returns [12:01:51]Send response to host [12:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30886,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:01:51]free response buf [12:01:51]execute_script done [12:01:51]execute_script returns [12:01:51]free content buf [12:01:51]Sock 7.Close socket [12:01:51]Sock 7.Thread stoped [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [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:19]accept exits with 9 [12:06:19]New connection [12:06:19]New thread 3067346276 created [12:06:19]Thread 3067489636 joined [12:06:19]Waiting for new connection... [12:06:19] Sock 9.Parse request [12:06:19]Sock 9.Check first char [12:06:19]Sock 9.First char is OK [12:06:19]request: POST /json_proto HTTP/1.0 [12:06:19]Method: POST [12:06:19]URL: /json_proto [12:06:19]Method is POST - this is cgi request [12:06:19]url: /json_proto [12:06:19]query_string will be loaded in cgi processing [12:06:19]execute_cgi json_proto POST (null) [12:06:19]execute_cgi path=json_proto method=POST [12:06:19]POST find Content-Length [12:06:19]Host: 172.17.51.3:8080 [12:06:19]Content-Length: 840 [12:06:19]Content-Type: application/json [12:06:19] [12:06:19]POST finish read [12:06:19]Found Content-Length = 840 [12:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:19]execute_script... [12:06: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)343307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:19]POST & json_proto [12:06:19]process_json_proto [12:06:19]json parsed OK: [12:06:19]protocol is kg_v1.0 [12:06:19]action value=close_receipt [12:06:19]process_action close_receipt [12:06:19]cmd_close_receipt [12:06:19]MH_GetDate [12:06:19]Write to MH i2c: F0 00 00 CC 90 4B [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: F0 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: F0 09 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: F0 09 00 CC 90 00 45 95 17 67 04 C1 95 66 6C [12:06:19]GetLastDocTimeStamp 1729598518 [12:06:19]current date 1729598789 [12:06:19]FM_GetShiftState [12:06:19]SAM_PROTO_GetShiftState [12:06:19]wFMCommunicate request_size=4 [12:06:19]MH_SAM_APDU [12:06:19]CAPDU: 80 13 01 00 [12:06:19]Write to MH i2c: E2 08 00 CD 90 80 13 01 00 00 00 00 00 DA [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:19]Read from MH i2c: E2 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 0E 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 0E 00 CD 90 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B4 [12:06:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:06:19]wFMCommunicate OK [12:06:19]SAM_PROTO_GetShiftState done [12:06:19]FM_GetShiftState done [12:06:19]opened in 1729557342 [12:06:19]opened+sec_in_day 1729643742 [12:06:19]quantity*price = 20003 [12:06:19]sum+1 = 20004 [12:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 120 22.10.2024 12:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30887 ФПД: 68532246781591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120630&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30887&fm=68532246781591&tin=02508201610067®Number=0000000000186857&sum=20003 [12:06:20]StoreToDocumentArchive [12:06:20]shift 116 fd 30887 [12:06:20]save to /storage/0116/doc_00030887 [12:06:20]save last doc name /storage/0116/doc_00030887 to /storage/kkm_last_doc_name [12:06:20]save OK [12:06:20]Clear old archive folders... [12:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:20]tlvbuf is 01E2AF90 [12:06:20]SAM_PROTO_ClearQueue [12:06:20]wFMCommunicate request_size=4 [12:06:20]MH_SAM_APDU [12:06:20]CAPDU: 80 09 00 00 [12:06:20]Write to MH i2c: E2 08 00 DA 90 80 09 00 00 00 00 00 00 DC [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:20]Read from MH i2c: E2 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 03 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 03 00 DA 90 00 90 00 DE [12:06:20]RAPDU: 90 00 [12:06:20]wFMCommunicate OK [12:06:20]SAM_PROTO_ClearQueue done [12:06:20]KKMCreateOFDPacket [12:06:20]OFDProtocolAddRootSTLVToBuf [12:06:20]FM_MakeSignedData [12:06:20]FM_MakeSignedData [12:06:20]SAM_PROTO_SignData [12:06:20]wFMCommunicate request_size=4 [12:06:20]MH_SAM_APDU [12:06:20]CAPDU: 80 0D 01 02 [12:06:20]Write to MH i2c: E2 08 00 DB 90 80 0D 01 02 00 00 00 00 E4 [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:20]Read from MH i2c: E2 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 03 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 03 00 DB 90 00 90 00 DF [12:06:20]RAPDU: 90 00 [12:06:20]wFMCommunicate OK [12:06:20]wFMCommunicate request_size=255 [12:06:20]MH_SAM_APDU [12:06: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 46 95 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 78 00 00 35 04 06 00 3E [12:06:20]Write to MH i2c: E2 02 01 DC 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 46 95 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 78 00 00 35 04 06 00 3E 00 00 DF [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]OFD Sender: No OFD packet to send [12:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 03 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 03 00 DC 90 00 90 00 E0 [12:06:21]RAPDU: 90 00 [12:06:21]wFMCommunicate OK [12:06:21]wFMCommunicate request_size=10 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 0D 02 02 05 54 68 39 9E 97 [12:06:21]Write to MH i2c: E2 0D 00 DD 90 80 0D 02 02 05 00 54 68 39 9E 97 00 00 1B [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 03 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 03 00 DD 90 00 90 00 E1 [12:06:21]RAPDU: 90 00 [12:06:21]wFMCommunicate OK [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 0D 03 02 [12:06:21]Write to MH i2c: E2 08 00 DE 90 80 0D 03 02 00 00 00 00 E9 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0B 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0B 00 DE 90 00 E8 0A 9A AB 4D BC 52 C3 90 00 3F [12:06:21]RAPDU: E8 0A 9A AB 4D BC 52 C3 90 00 [12:06:21]wFMCommunicate OK [12:06:21]SAM_PROTO_SignData done [12:06:21]FM_MakeSignedData done [12:06:21]CreateOFDProtocolMessage [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 11 00 00 [12:06:21]Write to MH i2c: E2 08 00 DF 90 80 11 00 00 00 00 00 00 E9 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 17 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 17 00 DF 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [12:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:06:21]wFMCommunicate OK [12:06:21]CreateOFDProtocolMessage done [12:06:21]OFDSenderStorePacket 30887 [12:06:21]StoreOFDPacket docnum=30887 [12:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 47 07 01 9F 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 46 95 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 78 00 00 35 04 06 00 3E 54 68 39 9E 97 E8 0A 9A AB 4D BC 52 C3 [12:06:21]CheckFolder [12:06:21]dirname=/storage/ofd_packets [12:06:21]CheckFolder done [12:06:21]ProducePacketName [12:06:21]name=ofd_packets/00030887 [12:06:21]NVStorageSaveData ofd_packets/00030887 [12:06:21]File name is /storage/ofd_packets/00030887 [12:06:21]Write 301 bytes [12:06:21]NVStorageSaveData done [12:06:21]OFDSenderStorePacket done [12:06:21]KKMCreateOFDPacket done [12:06:21]NVStorageSaveData kkm_last_timestamp [12:06:21]File name is /storage/kkm_last_timestamp [12:06:21]Write 4 bytes [12:06:21]NVStorageSaveData done [12:06:21]ExternCall_PrintAddStr [12:06:21]wPrintStart [12:06:21]Write to MH i2c: 01 00 00 E0 90 70 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: 01 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: 01 07 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: 01 07 00 E0 90 00 00 00 00 00 FF 0F 85 [12:06:21]RasterBufferAndPrint [12:06:21]line Счет N : (1)343307 [12:06:21]line ИНН: 02508201610067 [12:06:21]line Контрольно-Кассовый Чек [12:06:21]line ПРОДАЖА [12:06:21]line ТРК (МРК, ГНК) : 33 [12:06:21]line Товар: 2710124130 [12:06:21]line Аи-92-К-2 [12:06:21]line 2.990 * 66.90 [12:06:21]line = 200.03 [12:06:21]line НДС 12% НСП 1% [12:06:21]line > о реализуемом товаре [12:06:21]line ИТОГО: 200.03 [12:06:21]line НСП 1% : 1.77 [12:06:21]line НДС 12% : 21.24 [12:06:21]line Наличными: 0.00 [12:06:21]line Безнал.: 200.03 [12:06:21]line Место: АЗС № 78 "Партнер Нефть" [12:06:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:06:21]line СНО: Общий режим [12:06:21]line Чек 120 22.10.2024 12:06 [12:06:21]line Смена: 116 ФФД: 1.0 [12:06:21]line ЗНМ: 0300000137 [12:06:21]line РНМ: 0000000000186857 [12:06:21]line Версия ККМ: v1.0 [12:06:21]line Платежная система: АКБ Кыргызстан [12:06:21]line ФМ: 0000000002094219 [12:06:21]line ФД: 30887 [12:06:21]line ФПД: 68532246781591 [12:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120630&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30887&fm=68532246781591&tin=02508201610067®Number=0000000000186857&sum=20003 [12:06:21]OFD Sender: Processing packet 30887 [packets to send 10, broken 9] [12:06:21]ProducePacketName [12:06:21]name=ofd_packets/00030887 [12:06:21]OFD Sender: To server: pG, [12:06:21]CommunicateWithHost lk.salyk.kg:30040 [12:06:21]ConnectInit lk.salyk.kg [12:06:21]written 0, free lines is 4095 [12:06:21]Connected sock=10 [12:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 47 07 01 9F 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 46 95 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 78 00 00 35 04 06 00 3E 54 68 39 9E 97 E8 0A 9A AB 4D BC 52 C3 [12:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 05 47 00 53 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 78 00 00 F4 03 04 00 C3 3F 17 67 B6 04 01 00 00 B8 CB 93 9F 14 A6 96 35 [12:06:21]CommunicateWithHost err = 0 [12:06:21]CheckOFDResponse [12:06:21]1017 (14) - 77093643461234 [12:06:21]1041 (16) - 0000000002094219 [12:06:21]1040 (4) - 30887 [12:06:21]1012 (4) - 22.10.2024 06:01 [12:06:21]1206 (1) - 0 [12:06:21]OFD Sender: Remove packet 30887 [12:06:21]ProducePacketName [12:06:21]name=ofd_packets/00030887 [12:06:21]NVStorageDeleteData [12:06:22]Write to MH i2c: 01 00 00 0A 91 9B [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 07 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: 01 07 00 0A 91 00 00 00 00 00 0E 0D BD [12:06:22]RasterBufferAndPrint [12:06:22]line [12:06:22]line [12:06:22]line [12:06:22]line [12:06:22]line [12:06:22]written 0, free lines is 3351 [12:06:22]MH_Cut [12:06:22]Write to MH i2c: D1 01 00 11 91 01 74 [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: D1 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: D1 01 00 [12:06:22]MH_I2C_Read... [12:06:22]Read from MH i2c: D1 01 00 11 91 00 73 [12:06:22]Write to MH i2c: 01 00 00 12 91 A3 [12:06:22]Write i2c OK [12:06:22]MH_I2C_Read... [12:06:22]OFD Sender: No OFD packet to send [12:06:22]*** Cut start [12:06:22]*** Partial cut [12:06:22]*** CUTSNS_PIN = 1 [12:06:22]*** CUTSNS_PIN = 0 [12:06:23]*** Brake cut motor [12:06:23]Read from MH i2c: 01 [12:06:23]MH_I2C_Read... [12:06:23]*** Stop cut motor [12:06:23]*** Cut end [12:06:23]Read from MH i2c: 01 07 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: 01 07 00 12 91 00 00 00 00 00 FF 0F B8 [12:06:23]process_action close_receipt done [12:06:23]requested_data is exist [12:06:23]produce_requested_data [12:06:23]requested_item fm.sn is exist - process it [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 11 00 00 [12:06:23]Write to MH i2c: E2 08 00 13 91 80 11 00 00 00 00 00 00 1E [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 17 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 17 00 13 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [12:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:06:23]wFMCommunicate OK [12:06:23]requested_item fd.num is exist - process it [12:06:23]SAM_PROTO_GetFieldsCounters [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 13 00 00 [12:06:23]Write to MH i2c: E2 08 00 14 91 80 13 00 00 00 00 00 00 21 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 62 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 62 00 14 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 78 00 00 0E 04 04 00 74 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 42 [12:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 78 00 00 0E 04 04 00 74 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 [12:06:23]wFMCommunicate OK [12:06:23]SAM_PROTO_GetFieldsCounters done [12:06:23]requested_item shift.num is exist - process it [12:06:23]requested_item shift.opened is exist - process it [12:06:23]req_shift_opened [12:06:23]FM_GetShiftState [12:06:23]SAM_PROTO_GetShiftState [12:06:23]wFMCommunicate request_size=4 [12:06:23]MH_SAM_APDU [12:06:23]CAPDU: 80 13 01 00 [12:06:23]Write to MH i2c: E2 08 00 15 91 80 13 01 00 00 00 00 00 23 [12:06:23]Write i2c OK [12:06:23]MH_I2C_Read... [12:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:23]Read from MH i2c: E2 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 0E 00 [12:06:23]MH_I2C_Read... [12:06:23]Read from MH i2c: E2 0E 00 15 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FD [12:06:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:06:23]wFMCommunicate OK [12:06:23]SAM_PROTO_GetShiftState done [12:06:23]FM_GetShiftState done [12:06:23]req_shift_opened done [12:06:23]requested_item shift.open_date is exist - process it [12:06:23]req_shift_open_date [12:06:23]req_shift_open_date done [12:06:23]produce_requested_data done [12:06:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30887,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:06:23]process_action_free close_receipt [12:06:23]json_value_free [12:06:23]json_value_free done [12:06:23]process_json_proto returns [12:06:23]Send response to host [12:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30887,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:06:23]free response buf [12:06:23]execute_script done [12:06:23]execute_script returns [12:06:23]free content buf [12:06:23]Sock 9.Close socket [12:06:23]Sock 9.Thread stoped [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [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:43]accept exits with 7 [12:09:43]New connection [12:09:43]New thread 3067489636 created [12:09:43]Thread 3067346276 joined [12:09:43]Waiting for new connection... [12:09:43] Sock 7.Parse request [12:09:43]Sock 7.Check first char [12:09:43]Sock 7.First char is OK [12:09:43]request: POST /json_proto HTTP/1.0 [12:09:43]Method: POST [12:09:43]URL: /json_proto [12:09:43]Method is POST - this is cgi request [12:09:43]url: /json_proto [12:09:43]query_string will be loaded in cgi processing [12:09:43]execute_cgi json_proto POST (null) [12:09:43]execute_cgi path=json_proto method=POST [12:09:43]POST find Content-Length [12:09:43]Host: 172.17.51.3:8080 [12:09:43]Content-Length: 677 [12:09:43]Content-Type: application/json [12:09:43] [12:09:43]POST finish read [12:09:43]Found Content-Length = 677 [12:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:43]execute_script... [12:09:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:43]POST & json_proto [12:09:43]process_json_proto [12:09:43]json parsed OK: [12:09:43]protocol is kg_v1.0 [12:09:43]action value=close_receipt [12:09:43]process_action close_receipt [12:09:43]cmd_close_receipt [12:09:43]MH_GetDate [12:09:43]Write to MH i2c: F0 00 00 16 91 96 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: F0 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: F0 09 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: F0 09 00 16 91 00 11 96 17 67 04 C1 95 66 84 [12:09:43]GetLastDocTimeStamp 1729598790 [12:09:43]current date 1729598993 [12:09:43]FM_GetShiftState [12:09:43]SAM_PROTO_GetShiftState [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 13 01 00 [12:09:43]Write to MH i2c: E2 08 00 17 91 80 13 01 00 00 00 00 00 25 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 0E 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 0E 00 17 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FF [12:09:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:09:43]wFMCommunicate OK [12:09:43]SAM_PROTO_GetShiftState done [12:09:43]FM_GetShiftState done [12:09:43]opened in 1729557342 [12:09:43]opened+sec_in_day 1729643742 [12:09:43]quantity*price = 30038 [12:09:43]sum+1 = 30039 [12:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 121 22.10.2024 12:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30888 ФПД: 11775274524201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120953&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30888&fm=11775274524201&tin=02508201610067®Number=0000000000186857&sum=30000 [12:09:44]StoreToDocumentArchive [12:09:44]shift 116 fd 30888 [12:09:44]save to /storage/0116/doc_00030888 [12:09:44]save last doc name /storage/0116/doc_00030888 to /storage/kkm_last_doc_name [12:09:44]save OK [12:09:44]Clear old archive folders... [12:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:44]tlvbuf is 01E6F2E0 [12:09:44]SAM_PROTO_ClearQueue [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 09 00 00 [12:09:44]Write to MH i2c: E2 08 00 24 91 80 09 00 00 00 00 00 00 27 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 24 91 00 90 00 29 [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_ClearQueue done [12:09:44]KKMCreateOFDPacket [12:09:44]OFDProtocolAddRootSTLVToBuf [12:09:44]FM_MakeSignedData [12:09:44]FM_MakeSignedData [12:09:44]SAM_PROTO_SignData [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 01 02 [12:09:44]Write to MH i2c: E2 08 00 25 91 80 0D 01 02 00 00 00 00 2F [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 25 91 00 90 00 2A [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=255 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 11 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 78 00 00 35 04 06 00 0A [12:09:44]Write to MH i2c: E2 02 01 26 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 11 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 78 00 00 35 04 06 00 0A 00 00 F0 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 26 91 00 90 00 2B [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=10 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 02 02 05 B5 A5 0E 1E 29 [12:09:44]Write to MH i2c: E2 0D 00 27 91 80 0D 02 02 05 00 B5 A5 0E 1E 29 00 00 EB [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 27 91 00 90 00 2C [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 03 02 [12:09:44]Write to MH i2c: E2 08 00 28 91 80 0D 03 02 00 00 00 00 34 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 28 91 00 90 1C A3 4F 92 8F 80 5B 90 00 CF [12:09:44]RAPDU: 90 1C A3 4F 92 8F 80 5B 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_SignData done [12:09:44]FM_MakeSignedData done [12:09:44]CreateOFDProtocolMessage [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 11 00 00 [12:09:44]Write to MH i2c: E2 08 00 29 91 80 11 00 00 00 00 00 00 34 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 29 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [12:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:09:45]wFMCommunicate OK [12:09:45]CreateOFDProtocolMessage done [12:09:45]OFDSenderStorePacket 30888 [12:09:45]StoreOFDPacket docnum=30888 [12:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 62 07 01 88 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 11 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 78 00 00 35 04 06 00 0A B5 A5 0E 1E 29 90 1C A3 4F 92 8F 80 5B [12:09:45]CheckFolder [12:09:45]dirname=/storage/ofd_packets [12:09:45]CheckFolder done [12:09:45]ProducePacketName [12:09:45]name=ofd_packets/00030888 [12:09:45]NVStorageSaveData ofd_packets/00030888 [12:09:45]File name is /storage/ofd_packets/00030888 [12:09:45]Write 301 bytes [12:09:45]NVStorageSaveData done [12:09:45]OFDSenderStorePacket done [12:09:45]KKMCreateOFDPacket done [12:09:45]NVStorageSaveData kkm_last_timestamp [12:09:45]File name is /storage/kkm_last_timestamp [12:09:45]Write 4 bytes [12:09:45]NVStorageSaveData done [12:09:45]ExternCall_PrintAddStr [12:09:45]wPrintStart [12:09:45]Write to MH i2c: 01 00 00 2A 91 BB [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 2A 91 00 00 00 00 00 FF 0F D0 [12:09:45]RasterBufferAndPrint [12:09:45]line Счет N : (1)343308 [12:09:45]line ИНН: 02508201610067 [12:09:45]line Контрольно-Кассовый Чек [12:09:45]line ПРОДАЖА [12:09:45]line ТРК (МРК, ГНК) : 53 [12:09:45]line Товар: 2710124130 [12:09:45]line Аи-92-К-2 [12:09:45]line 4.490 * 66.90 [12:09:45]line = 300.38 [12:09:45]line НДС 12% НСП 1% [12:09:45]line > о реализуемом товаре [12:09:45]line ОКРУГЛЕНИЕ: -0.38 [12:09:45]line ИТОГО: 300.00 [12:09:45]line Внесено: 300.00 [12:09:45]line СДАЧА: 0.00 [12:09:45]line НСП 1% : 2.66 [12:09:45]line НДС 12% : 31.90 [12:09:45]line Наличными: 300.00 [12:09:45]line Безнал.: 0.00 [12:09:45]line Место: АЗС № 78 "Партнер Нефть" [12:09:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:09:45]line СНО: Общий режим [12:09:45]line Чек 121 22.10.2024 12:09 [12:09:45]line Смена: 116 ФФД: 1.0 [12:09:45]line ЗНМ: 0300000137 [12:09:45]line РНМ: 0000000000186857 [12:09:45]line Версия ККМ: v1.0 [12:09:45]line ФМ: 0000000002094219 [12:09:45]line ФД: 30888 [12:09:45]line ФПД: 11775274524201 [12:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120953&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30888&fm=11775274524201&tin=02508201610067®Number=0000000000186857&sum=30000 [12:09:45]OFD Sender: Processing packet 30888 [packets to send 10, broken 9] [12:09:45]ProducePacketName [12:09:45]name=ofd_packets/00030888 [12:09:45]OFD Sender: To server: pG, [12:09:45]CommunicateWithHost lk.salyk.kg:30040 [12:09:45]ConnectInit lk.salyk.kg [12:09:45]written 0, free lines is 4095 [12:09:45]Connected sock=10 [12:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 62 07 01 88 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 11 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 78 00 00 35 04 06 00 0A B5 A5 0E 1E 29 90 1C A3 4F 92 8F 80 5B [12:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1F 5B 47 00 64 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 78 00 00 F4 03 04 00 8F 40 17 67 B6 04 01 00 00 93 FB 79 9B 95 20 E9 F6 [12:09:45]CommunicateWithHost err = 0 [12:09:45]CheckOFDResponse [12:09:45]1017 (14) - 77093643461234 [12:09:45]1041 (16) - 0000000002094219 [12:09:45]1040 (4) - 30888 [12:09:45]1012 (4) - 22.10.2024 06:05 [12:09:45]1206 (1) - 0 [12:09:45]OFD Sender: Remove packet 30888 [12:09:45]ProducePacketName [12:09:45]name=ofd_packets/00030888 [12:09:45]NVStorageDeleteData [12:09:45]Write to MH i2c: 01 00 00 55 91 E6 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 55 91 00 00 00 00 00 F7 0C F0 [12:09:45]RasterBufferAndPrint [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]written 0, free lines is 3326 [12:09:45]MH_Cut [12:09:45]Write to MH i2c: D1 01 00 5C 91 01 BF [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 01 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 01 00 5C 91 00 BE [12:09:45]Write to MH i2c: 01 00 00 5D 91 EE [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:46]OFD Sender: No OFD packet to send [12:09:46]*** Cut start [12:09:46]*** Partial cut [12:09:46]*** CUTSNS_PIN = 1 [12:09:46]*** CUTSNS_PIN = 0 [12:09:46]*** Brake cut motor [12:09:47]Read from MH i2c: 01 [12:09:47]MH_I2C_Read... [12:09:47]*** Stop cut motor [12:09:47]*** Cut end [12:09:47]Read from MH i2c: 01 07 00 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: 01 07 00 5D 91 00 00 00 00 00 FF 0F 03 [12:09:47]process_action close_receipt done [12:09:47]requested_data is exist [12:09:47]produce_requested_data [12:09:47]requested_item fm.sn is exist - process it [12:09:47]wFMCommunicate request_size=4 [12:09:47]MH_SAM_APDU [12:09:47]CAPDU: 80 11 00 00 [12:09:47]Write to MH i2c: E2 08 00 5E 91 80 11 00 00 00 00 00 00 69 [12:09:47]Write i2c OK [12:09:47]MH_I2C_Read... [12:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:47]Read from MH i2c: E2 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 17 00 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 17 00 5E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [12:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:09:47]wFMCommunicate OK [12:09:47]requested_item fd.num is exist - process it [12:09:47]SAM_PROTO_GetFieldsCounters [12:09:47]wFMCommunicate request_size=4 [12:09:47]MH_SAM_APDU [12:09:47]CAPDU: 80 13 00 00 [12:09:47]Write to MH i2c: E2 08 00 5F 91 80 13 00 00 00 00 00 00 6C [12:09:47]Write i2c OK [12:09:47]MH_I2C_Read... [12:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:47]Read from MH i2c: E2 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 62 00 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 62 00 5F 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 78 00 00 0E 04 04 00 74 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 91 [12:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 78 00 00 0E 04 04 00 74 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 [12:09:47]wFMCommunicate OK [12:09:47]SAM_PROTO_GetFieldsCounters done [12:09:47]requested_item shift.num is exist - process it [12:09:47]requested_item shift.opened is exist - process it [12:09:47]req_shift_opened [12:09:47]FM_GetShiftState [12:09:47]SAM_PROTO_GetShiftState [12:09:47]wFMCommunicate request_size=4 [12:09:47]MH_SAM_APDU [12:09:47]CAPDU: 80 13 01 00 [12:09:47]Write to MH i2c: E2 08 00 60 91 80 13 01 00 00 00 00 00 6E [12:09:47]Write i2c OK [12:09:47]MH_I2C_Read... [12:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:47]Read from MH i2c: E2 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 0E 00 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 0E 00 60 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 48 [12:09:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:09:47]wFMCommunicate OK [12:09:47]SAM_PROTO_GetShiftState done [12:09:47]FM_GetShiftState done [12:09:47]req_shift_opened done [12:09:47]requested_item shift.open_date is exist - process it [12:09:47]req_shift_open_date [12:09:47]req_shift_open_date done [12:09:47]produce_requested_data done [12:09:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30888,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:09:47]process_action_free close_receipt [12:09:47]json_value_free [12:09:47]json_value_free done [12:09:47]process_json_proto returns [12:09:47]Send response to host [12:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30888,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:09:47]free response buf [12:09:47]execute_script done [12:09:47]execute_script returns [12:09:47]free content buf [12:09:47]Sock 7.Close socket [12:09:47]Sock 7.Thread stoped [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:10]accept exits with 9 [12:11:10]New connection [12:11:10]New thread 3067346276 created [12:11:10]Thread 3067489636 joined [12:11:10]Waiting for new connection... [12:11:10] Sock 9.Parse request [12:11:10]Sock 9.Check first char [12:11:10]Sock 9.First char is OK [12:11:10]request: POST /json_proto HTTP/1.0 [12:11:10]Method: POST [12:11:10]URL: /json_proto [12:11:10]Method is POST - this is cgi request [12:11:10]url: /json_proto [12:11:10]query_string will be loaded in cgi processing [12:11:10]execute_cgi json_proto POST (null) [12:11:10]execute_cgi path=json_proto method=POST [12:11:10]POST find Content-Length [12:11:10]Host: 172.17.51.3:8080 [12:11:10]Content-Length: 677 [12:11:10]Content-Type: application/json [12:11:10] [12:11:10]POST finish read [12:11:10]Found Content-Length = 677 [12:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:10]execute_script... [12:11: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)343309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:10]POST & json_proto [12:11:10]process_json_proto [12:11:10]json parsed OK: [12:11:10]protocol is kg_v1.0 [12:11:10]action value=close_receipt [12:11:10]process_action close_receipt [12:11:10]cmd_close_receipt [12:11:10]MH_GetDate [12:11:10]Write to MH i2c: F0 00 00 61 91 E1 [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 09 00 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 09 00 61 91 00 68 96 17 67 04 C1 95 66 26 [12:11:10]GetLastDocTimeStamp 1729598993 [12:11:10]current date 1729599080 [12:11:10]FM_GetShiftState [12:11:10]SAM_PROTO_GetShiftState [12:11:10]wFMCommunicate request_size=4 [12:11:10]MH_SAM_APDU [12:11:10]CAPDU: 80 13 01 00 [12:11:10]Write to MH i2c: E2 08 00 62 91 80 13 01 00 00 00 00 00 70 [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:10]Read from MH i2c: E2 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 0E 00 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 0E 00 62 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4A [12:11:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:11:10]wFMCommunicate OK [12:11:10]SAM_PROTO_GetShiftState done [12:11:10]FM_GetShiftState done [12:11:10]opened in 1729557342 [12:11:10]opened+sec_in_day 1729643742 [12:11:10]quantity*price = 50010 [12:11:10]sum+1 = 50012 [12:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 122 22.10.2024 12:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30889 ФПД: 241406505720536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30889&fm=241406505720536&tin=02508201610067®Number=0000000000186857&sum=50000 [12:11:11]StoreToDocumentArchive [12:11:11]shift 116 fd 30889 [12:11:11]save to /storage/0116/doc_00030889 [12:11:11]save last doc name /storage/0116/doc_00030889 to /storage/kkm_last_doc_name [12:11:11]save OK [12:11:11]Clear old archive folders... [12:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:11]tlvbuf is 01E0C7D0 [12:11:11]SAM_PROTO_ClearQueue [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 09 00 00 [12:11:11]Write to MH i2c: E2 08 00 6F 91 80 09 00 00 00 00 00 00 72 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 6F 91 00 90 00 74 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_ClearQueue done [12:11:11]KKMCreateOFDPacket [12:11:11]OFDProtocolAddRootSTLVToBuf [12:11:11]FM_MakeSignedData [12:11:11]FM_MakeSignedData [12:11:11]SAM_PROTO_SignData [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 01 02 [12:11:11]Write to MH i2c: E2 08 00 70 91 80 0D 01 02 00 00 00 00 7A [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]OFD Sender: No OFD packet to send [12:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 70 91 00 90 00 75 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=255 [12:11:11]MH_SAM_APDU [12:11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 68 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 78 00 00 35 04 06 00 DB [12:11:11]Write to MH i2c: E2 02 01 71 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 68 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 78 00 00 35 04 06 00 DB 00 00 4A [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 71 91 00 90 00 76 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=10 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 02 02 05 8E D5 05 1A D8 [12:11:11]Write to MH i2c: E2 0D 00 72 91 80 0D 02 02 05 00 8E D5 05 1A D8 00 00 E1 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 72 91 00 90 00 77 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 03 02 [12:11:11]Write to MH i2c: E2 08 00 73 91 80 0D 03 02 00 00 00 00 7F [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 73 91 00 75 92 3B 85 91 C1 D9 07 90 00 79 [12:11:11]RAPDU: 75 92 3B 85 91 C1 D9 07 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_SignData done [12:11:11]FM_MakeSignedData done [12:11:11]CreateOFDProtocolMessage [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 11 00 00 [12:11:11]Write to MH i2c: E2 08 00 74 91 80 11 00 00 00 00 00 00 7F [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 74 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CD [12:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:11:11]wFMCommunicate OK [12:11:11]CreateOFDProtocolMessage done [12:11:11]OFDSenderStorePacket 30889 [12:11:11]StoreOFDPacket docnum=30889 [12:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 44 41 07 01 2C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 68 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 78 00 00 35 04 06 00 DB 8E D5 05 1A D8 75 92 3B 85 91 C1 D9 07 [12:11:11]CheckFolder [12:11:11]dirname=/storage/ofd_packets [12:11:11]CheckFolder done [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00030889 [12:11:11]NVStorageSaveData ofd_packets/00030889 [12:11:11]File name is /storage/ofd_packets/00030889 [12:11:11]Write 301 bytes [12:11:11]NVStorageSaveData done [12:11:11]OFDSenderStorePacket done [12:11:11]KKMCreateOFDPacket done [12:11:11]NVStorageSaveData kkm_last_timestamp [12:11:11]File name is /storage/kkm_last_timestamp [12:11:11]Write 4 bytes [12:11:11]NVStorageSaveData done [12:11:11]ExternCall_PrintAddStr [12:11:11]wPrintStart [12:11:11]Write to MH i2c: 01 00 00 75 91 06 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 75 91 00 00 00 00 00 FF 0F 1B [12:11:11]RasterBufferAndPrint [12:11:11]line Счет N : (1)343309 [12:11:11]line ИНН: 02508201610067 [12:11:11]line Контрольно-Кассовый Чек [12:11:11]line ПРОДАЖА [12:11:11]line ТРК (МРК, ГНК) : 32 [12:11:11]line Товар: 2710124500 [12:11:11]line Аи-95-К-3 [12:11:11]line 6.740 * 74.20 [12:11:11]line = 500.11 [12:11:11]line НДС 12% НСП 1% [12:11:11]line > о реализуемом товаре [12:11:11]line ОКРУГЛЕНИЕ: -0.11 [12:11:11]line ИТОГО: 500.00 [12:11:11]line Внесено: 500.00 [12:11:11]line СДАЧА: 0.00 [12:11:11]line НСП 1% : 4.43 [12:11:11]line НДС 12% : 53.11 [12:11:11]line Наличными: 500.00 [12:11:11]line Безнал.: 0.00 [12:11:11]line Место: АЗС № 78 "Партнер Нефть" [12:11:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:11:11]line СНО: Общий режим [12:11:11]line Чек 122 22.10.2024 12:11 [12:11:11]line Смена: 116 ФФД: 1.0 [12:11:11]line ЗНМ: 0300000137 [12:11:11]line РНМ: 0000000000186857 [12:11:11]line Версия ККМ: v1.0 [12:11:11]line ФМ: 0000000002094219 [12:11:11]line ФД: 30889 [12:11:11]line ФПД: 241406505720536 [12:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30889&fm=241406505720536&tin=02508201610067®Number=0000000000186857&sum=50000 [12:11:12]OFD Sender: Processing packet 30889 [packets to send 10, broken 9] [12:11:12]ProducePacketName [12:11:12]name=ofd_packets/00030889 [12:11:12]OFD Sender: To server: pG, [12:11:12]CommunicateWithHost lk.salyk.kg:30040 [12:11:12]ConnectInit lk.salyk.kg [12:11:12]written 0, free lines is 4095 [12:11:12]Connected sock=10 [12:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 44 41 07 01 2C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 68 96 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 78 00 00 35 04 06 00 DB 8E D5 05 1A D8 75 92 3B 85 91 C1 D9 07 [12:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 20 FE 47 00 58 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 78 00 00 F4 03 04 00 E6 40 17 67 B6 04 01 00 00 86 EE F7 E8 C3 0F B3 27 [12:11:12]CommunicateWithHost err = 0 [12:11:12]CheckOFDResponse [12:11:12]1017 (14) - 77093643461234 [12:11:12]1041 (16) - 0000000002094219 [12:11:12]1040 (4) - 30889 [12:11:12]1012 (4) - 22.10.2024 06:06 [12:11:12]1206 (1) - 0 [12:11:12]OFD Sender: Remove packet 30889 [12:11:12]ProducePacketName [12:11:12]name=ofd_packets/00030889 [12:11:12]NVStorageDeleteData [12:11:12]Write to MH i2c: 01 00 00 A0 91 31 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 07 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 07 00 A0 91 00 00 00 00 00 F5 0C 39 [12:11:12]RasterBufferAndPrint [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]written 0, free lines is 3323 [12:11:12]MH_Cut [12:11:12]Write to MH i2c: D1 01 00 A7 91 01 0A [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 01 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 01 00 A7 91 00 09 [12:11:12]Write to MH i2c: 01 00 00 A8 91 39 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]OFD Sender: No OFD packet to send [12:11:13]*** Cut start [12:11:13]*** Partial cut [12:11:13]*** CUTSNS_PIN = 1 [12:11:13]*** CUTSNS_PIN = 0 [12:11:13]*** Brake cut motor [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]*** Stop cut motor [12:11:13]*** Cut end [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 A8 91 00 00 00 00 00 FF 0F 4E [12:11:13]process_action close_receipt done [12:11:13]requested_data is exist [12:11:13]produce_requested_data [12:11:13]requested_item fm.sn is exist - process it [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 11 00 00 [12:11:13]Write to MH i2c: E2 08 00 A9 91 80 11 00 00 00 00 00 00 B4 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 A9 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [12:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:11:13]wFMCommunicate OK [12:11:13]requested_item fd.num is exist - process it [12:11:13]SAM_PROTO_GetFieldsCounters [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 13 00 00 [12:11:13]Write to MH i2c: E2 08 00 AA 91 80 13 00 00 00 00 00 00 B7 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 62 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 62 00 AA 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 78 00 00 0E 04 04 00 74 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 E0 [12:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 78 00 00 0E 04 04 00 74 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 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetFieldsCounters done [12:11:14]requested_item shift.num is exist - process it [12:11:14]requested_item shift.opened is exist - process it [12:11:14]req_shift_opened [12:11:14]FM_GetShiftState [12:11:14]SAM_PROTO_GetShiftState [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 01 00 [12:11:14]Write to MH i2c: E2 08 00 AB 91 80 13 01 00 00 00 00 00 B9 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 AB 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 93 [12:11:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetShiftState done [12:11:14]FM_GetShiftState done [12:11:14]req_shift_opened done [12:11:14]requested_item shift.open_date is exist - process it [12:11:14]req_shift_open_date [12:11:14]req_shift_open_date done [12:11:14]produce_requested_data done [12:11:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30889,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:11:14]process_action_free close_receipt [12:11:14]json_value_free [12:11:14]json_value_free done [12:11:14]process_json_proto returns [12:11:14]Send response to host [12:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30889,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:11:14]free response buf [12:11:14]execute_script done [12:11:14]execute_script returns [12:11:14]free content buf [12:11:14]Sock 9.Close socket [12:11:14]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:13]accept exits with 7 [12:17:13]New connection [12:17:13]New thread 3067489636 created [12:17:13]Thread 3067346276 joined [12:17:13]Waiting for new connection... [12:17:13] Sock 7.Parse request [12:17:13]Sock 7.Check first char [12:17:13]Sock 7.First char is OK [12:17:13]request: POST /json_proto HTTP/1.0 [12:17:13]Method: POST [12:17:13]URL: /json_proto [12:17:13]Method is POST - this is cgi request [12:17:13]url: /json_proto [12:17:13]query_string will be loaded in cgi processing [12:17:13]execute_cgi json_proto POST (null) [12:17:13]execute_cgi path=json_proto method=POST [12:17:13]POST find Content-Length [12:17:13]Host: 172.17.51.3:8080 [12:17:13]Content-Length: 679 [12:17:13]Content-Type: application/json [12:17:13] [12:17:13]POST finish read [12:17:13]Found Content-Length = 679 [12:17:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.390, "sum" : 1020.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:13]execute_script... [12:17: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)343310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.390, "sum" : 1020.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:13]POST & json_proto [12:17:13]process_json_proto [12:17:13]json parsed OK: [12:17:13]protocol is kg_v1.0 [12:17:13]action value=close_receipt [12:17:13]process_action close_receipt [12:17:13]cmd_close_receipt [12:17:13]MH_GetDate [12:17:13]Write to MH i2c: F0 00 00 AC 91 2C [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: F0 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: F0 09 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: F0 09 00 AC 91 00 D4 97 17 67 04 C1 95 66 DE [12:17:13]GetLastDocTimeStamp 1729599080 [12:17:13]current date 1729599444 [12:17:13]FM_GetShiftState [12:17:13]SAM_PROTO_GetShiftState [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 13 01 00 [12:17:13]Write to MH i2c: E2 08 00 AD 91 80 13 01 00 00 00 00 00 BB [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 AD 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 95 [12:17:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_GetShiftState done [12:17:13]FM_GetShiftState done [12:17:13]opened in 1729557342 [12:17:13]opened+sec_in_day 1729643742 [12:17:13]quantity*price = 102031 [12:17:13]sum+1 = 102033 [12:17:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.35 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 123 22.10.2024 12:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30890 ФПД: 138459810452026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30890&fm=138459810452026&tin=02508201610067®Number=0000000000186857&sum=102000 [12:17:14]StoreToDocumentArchive [12:17:14]shift 116 fd 30890 [12:17:14]save to /storage/0116/doc_00030890 [12:17:14]save last doc name /storage/0116/doc_00030890 to /storage/kkm_last_doc_name [12:17:14]save OK [12:17:14]Clear old archive folders... [12:17:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:14]tlvbuf is 0204F390 [12:17:14]SAM_PROTO_ClearQueue [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 09 00 00 [12:17:14]Write to MH i2c: E2 08 00 BA 91 80 09 00 00 00 00 00 00 BD [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 03 00 BA 91 00 90 00 BF [12:17:14]RAPDU: 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_ClearQueue done [12:17:14]KKMCreateOFDPacket [12:17:14]OFDProtocolAddRootSTLVToBuf [12:17:14]FM_MakeSignedData [12:17:14]FM_MakeSignedData [12:17:14]SAM_PROTO_SignData [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 0D 01 02 [12:17:14]Write to MH i2c: E2 08 00 BB 91 80 0D 01 02 00 00 00 00 C5 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 BB 91 00 90 00 C0 [12:17:15]RAPDU: 90 00 [12:17:15]wFMCommunicate OK [12:17:15]wFMCommunicate request_size=255 [12:17:15]MH_SAM_APDU [12:17: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 32 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 97 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 78 00 00 35 04 06 00 7D ED AF D1 [12:17:15]Write to MH i2c: E2 02 01 BC 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 97 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 78 00 00 35 04 06 00 7D ED AF D1 00 00 8F [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 BC 91 00 90 00 C1 [12:17:15]RAPDU: 90 00 [12:17:15]wFMCommunicate OK [12:17:15]wFMCommunicate request_size=7 [12:17:15]MH_SAM_APDU [12:17:15]CAPDU: 80 0D 02 02 02 52 3A [12:17:15]Write to MH i2c: E2 0A 00 BD 91 80 0D 02 02 02 00 52 3A 00 00 58 [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 BD 91 00 90 00 C2 [12:17:15]RAPDU: 90 00 [12:17:15]wFMCommunicate OK [12:17:15]wFMCommunicate request_size=4 [12:17:15]MH_SAM_APDU [12:17:15]CAPDU: 80 0D 03 02 [12:17:15]Write to MH i2c: E2 08 00 BE 91 80 0D 03 02 00 00 00 00 CA [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 0B 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 0B 00 BE 91 00 D6 1A B2 B1 A5 D4 8C FA 90 00 1D [12:17:15]RAPDU: D6 1A B2 B1 A5 D4 8C FA 90 00 [12:17:15]wFMCommunicate OK [12:17:15]SAM_PROTO_SignData done [12:17:15]FM_MakeSignedData done [12:17:15]CreateOFDProtocolMessage [12:17:15]wFMCommunicate request_size=4 [12:17:15]MH_SAM_APDU [12:17:15]CAPDU: 80 11 00 00 [12:17:15]Write to MH i2c: E2 08 00 BF 91 80 11 00 00 00 00 00 00 CA [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 17 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 17 00 BF 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [12:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:17:15]wFMCommunicate OK [12:17:15]CreateOFDProtocolMessage done [12:17:15]OFDSenderStorePacket 30890 [12:17:15]StoreOFDPacket docnum=30890 [12:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7D EB 04 01 6A F4 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 32 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 97 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 78 00 00 35 04 06 00 7D ED AF D1 52 3A D6 1A B2 B1 A5 D4 8C FA [12:17:15]CheckFolder [12:17:15]dirname=/storage/ofd_packets [12:17:15]CheckFolder done [12:17:15]ProducePacketName [12:17:15]name=ofd_packets/00030890 [12:17:15]NVStorageSaveData ofd_packets/00030890 [12:17:15]File name is /storage/ofd_packets/00030890 [12:17:15]Write 298 bytes [12:17:15]NVStorageSaveData done [12:17:15]OFDSenderStorePacket done [12:17:15]KKMCreateOFDPacket done [12:17:15]NVStorageSaveData kkm_last_timestamp [12:17:15]File name is /storage/kkm_last_timestamp [12:17:15]Write 4 bytes [12:17:15]NVStorageSaveData done [12:17:15]ExternCall_PrintAddStr [12:17:15]wPrintStart [12:17:15]Write to MH i2c: 01 00 00 C0 91 51 [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 07 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: 01 07 00 C0 91 00 00 00 00 00 FF 0F 66 [12:17:15]RasterBufferAndPrint [12:17:15]line Счет N : (1)343310 [12:17:15]line ИНН: 02508201610067 [12:17:15]line Контрольно-Кассовый Чек [12:17:15]line ПРОДАЖА [12:17:15]line ТРК (МРК, ГНК) : 54 [12:17:15]line Товар: 2710194210 [12:17:15]line ДТ-К-2 [12:17:15]line 13.390 * 76.20 [12:17:15]line = 1020.32 [12:17:15]line НДС 12% НСП 1% [12:17:15]line > о реализуемом товаре [12:17:15]line ОКРУГЛЕНИЕ: -0.32 [12:17:15]line ИТОГО: 1020.00 [12:17:15]line Внесено: 1020.00 [12:17:15]line СДАЧА: 0.00 [12:17:15]line НСП 1% : 9.03 [12:17:15]line НДС 12% : 108.35 [12:17:15]line Наличными: 1020.00 [12:17:15]line Безнал.: 0.00 [12:17:15]line Место: АЗС № 78 "Партнер Нефть" [12:17:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:17:15]line СНО: Общий режим [12:17:15]line Чек 123 22.10.2024 12:17 [12:17:15]line Смена: 116 ФФД: 1.0 [12:17:15]line ЗНМ: 0300000137 [12:17:15]line РНМ: 0000000000186857 [12:17:15]line Версия ККМ: v1.0 [12:17:15]line ФМ: 0000000002094219 [12:17:15]line ФД: 30890 [12:17:15]line ФПД: 138459810452026 [12:17:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30890&fm=138459810452026&tin=02508201610067®Number=0000000000186857&sum=102000 [12:17:15]OFD Sender: Processing packet 30890 [packets to send 10, broken 9] [12:17:15]ProducePacketName [12:17:15]name=ofd_packets/00030890 [12:17:15]OFD Sender: To server: pG, [12:17:15]CommunicateWithHost lk.salyk.kg:30040 [12:17:15]ConnectInit lk.salyk.kg [12:17:15]written 0, free lines is 4095 [12:17:15]Connected sock=10 [12:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7D EB 04 01 6A F4 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 32 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 97 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 78 00 00 35 04 06 00 7D ED AF D1 52 3A D6 1A B2 B1 A5 D4 8C FA [12:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9D A2 47 00 72 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 78 00 00 F4 03 04 00 51 42 17 67 B6 04 01 00 00 04 F0 7A F8 73 0C 02 0F [12:17:16]CommunicateWithHost err = 0 [12:17:16]CheckOFDResponse [12:17:16]1017 (14) - 77093643461234 [12:17:16]1041 (16) - 0000000002094219 [12:17:16]1040 (4) - 30890 [12:17:16]1012 (4) - 22.10.2024 06:12 [12:17:16]1206 (1) - 0 [12:17:16]OFD Sender: Remove packet 30890 [12:17:16]ProducePacketName [12:17:16]name=ofd_packets/00030890 [12:17:16]NVStorageDeleteData [12:17:16]Write to MH i2c: 01 00 00 EB 91 7C [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 07 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 07 00 EB 91 00 00 00 00 00 F7 0C 86 [12:17:16]RasterBufferAndPrint [12:17:16]line [12:17:16]line [12:17:16]line [12:17:16]line [12:17:16]line [12:17:16]written 0, free lines is 3329 [12:17:16]MH_Cut [12:17:16]Write to MH i2c: D1 01 00 F2 91 01 55 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: D1 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: D1 01 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: D1 01 00 F2 91 00 54 [12:17:16]Write to MH i2c: 01 00 00 F3 91 84 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]OFD Sender: No OFD packet to send [12:17:16]*** Cut start [12:17:16]*** Partial cut [12:17:16]*** CUTSNS_PIN = 1 [12:17:16]*** CUTSNS_PIN = 0 [12:17:17]*** Brake cut motor [12:17:17]Read from MH i2c: 01 [12:17:17]MH_I2C_Read... [12:17:17]*** Stop cut motor [12:17:17]*** Cut end [12:17:17]Read from MH i2c: 01 07 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: 01 07 00 F3 91 00 00 00 00 00 FF 0F 99 [12:17:17]process_action close_receipt done [12:17:17]requested_data is exist [12:17:17]produce_requested_data [12:17:17]requested_item fm.sn is exist - process it [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 11 00 00 [12:17:17]Write to MH i2c: E2 08 00 F4 91 80 11 00 00 00 00 00 00 FF [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 17 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 17 00 F4 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [12:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:17:17]wFMCommunicate OK [12:17:17]requested_item fd.num is exist - process it [12:17:17]SAM_PROTO_GetFieldsCounters [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 13 00 00 [12:17:17]Write to MH i2c: E2 08 00 F5 91 80 13 00 00 00 00 00 00 02 [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 62 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 62 00 F5 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 78 00 00 0E 04 04 00 74 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 2F [12:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 78 00 00 0E 04 04 00 74 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 [12:17:17]wFMCommunicate OK [12:17:17]SAM_PROTO_GetFieldsCounters done [12:17:17]requested_item shift.num is exist - process it [12:17:17]requested_item shift.opened is exist - process it [12:17:17]req_shift_opened [12:17:17]FM_GetShiftState [12:17:17]SAM_PROTO_GetShiftState [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 13 01 00 [12:17:17]Write to MH i2c: E2 08 00 F6 91 80 13 01 00 00 00 00 00 04 [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 0E 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 0E 00 F6 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DE [12:17:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:17:17]wFMCommunicate OK [12:17:17]SAM_PROTO_GetShiftState done [12:17:17]FM_GetShiftState done [12:17:17]req_shift_opened done [12:17:17]requested_item shift.open_date is exist - process it [12:17:17]req_shift_open_date [12:17:17]req_shift_open_date done [12:17:17]produce_requested_data done [12:17:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30890,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:17:17]process_action_free close_receipt [12:17:17]json_value_free [12:17:17]json_value_free done [12:17:17]process_json_proto returns [12:17:17]Send response to host [12:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30890,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:17:17]free response buf [12:17:17]execute_script done [12:17:17]execute_script returns [12:17:17]free content buf [12:17:17]Sock 7.Close socket [12:17:17]Sock 7.Thread stoped [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]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:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:51]accept exits with 9 [12:32:51]New connection [12:32:51]New thread 3067346276 created [12:32:51]Thread 3067489636 joined [12:32:51]Waiting for new connection... [12:32:51] Sock 9.Parse request [12:32:51]Sock 9.Check first char [12:32:51]Sock 9.First char is OK [12:32:51]request: POST /json_proto HTTP/1.0 [12:32:51]Method: POST [12:32:51]URL: /json_proto [12:32:51]Method is POST - this is cgi request [12:32:51]url: /json_proto [12:32:51]query_string will be loaded in cgi processing [12:32:51]execute_cgi json_proto POST (null) [12:32:51]execute_cgi path=json_proto method=POST [12:32:51]POST find Content-Length [12:32:51]Host: 172.17.51.3:8080 [12:32:51]Content-Length: 679 [12:32:51]Content-Type: application/json [12:32:51] [12:32:51]POST finish read [12:32:51]Found Content-Length = 679 [12:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:51]execute_script... [12:32: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)343311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:51]POST & json_proto [12:32:51]process_json_proto [12:32:51]json parsed OK: [12:32:51]protocol is kg_v1.0 [12:32:51]action value=close_receipt [12:32:51]process_action close_receipt [12:32:51]cmd_close_receipt [12:32:51]MH_GetDate [12:32:51]Write to MH i2c: F0 00 00 F7 91 77 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 09 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 09 00 F7 91 00 7D 9B 17 67 04 C1 95 66 D6 [12:32:51]GetLastDocTimeStamp 1729599444 [12:32:51]current date 1729600381 [12:32:51]FM_GetShiftState [12:32:51]SAM_PROTO_GetShiftState [12:32:51]wFMCommunicate request_size=4 [12:32:51]MH_SAM_APDU [12:32:51]CAPDU: 80 13 01 00 [12:32:51]Write to MH i2c: E2 08 00 F8 91 80 13 01 00 00 00 00 00 06 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:51]Read from MH i2c: E2 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: E2 0E 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: E2 0E 00 F8 91 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E0 [12:32:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:32:51]wFMCommunicate OK [12:32:51]SAM_PROTO_GetShiftState done [12:32:51]FM_GetShiftState done [12:32:51]opened in 1729557342 [12:32:51]opened+sec_in_day 1729643742 [12:32:51]quantity*price = 150037 [12:32:51]sum+1 = 150039 [12:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 124 22.10.2024 12:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30891 ФПД: 272091994932429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30891&fm=272091994932429&tin=02508201610067®Number=0000000000186857&sum=150000 [12:32:52]StoreToDocumentArchive [12:32:52]shift 116 fd 30891 [12:32:52]save to /storage/0116/doc_00030891 [12:32:52]save last doc name /storage/0116/doc_00030891 to /storage/kkm_last_doc_name [12:32:52]save OK [12:32:52]Clear old archive folders... [12:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:32:52]tlvbuf is 01DFA370 [12:32:52]SAM_PROTO_ClearQueue [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 09 00 00 [12:32:52]Write to MH i2c: E2 08 00 05 92 80 09 00 00 00 00 00 00 09 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 05 92 00 90 00 0B [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_ClearQueue done [12:32:52]KKMCreateOFDPacket [12:32:52]OFDProtocolAddRootSTLVToBuf [12:32:52]FM_MakeSignedData [12:32:52]FM_MakeSignedData [12:32:52]SAM_PROTO_SignData [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 0D 01 02 [12:32:52]Write to MH i2c: E2 08 00 06 92 80 0D 01 02 00 00 00 00 11 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 06 92 00 90 00 0C [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]wFMCommunicate request_size=255 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 9B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 78 00 00 35 04 06 00 F7 77 5A B4 [12:32:52]Write to MH i2c: E2 02 01 07 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 9B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 78 00 00 35 04 06 00 F7 77 5A B4 00 00 34 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 07 92 00 90 00 0D [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]wFMCommunicate request_size=7 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 0D 02 02 02 44 CD [12:32:52]Write to MH i2c: E2 0A 00 08 92 80 0D 02 02 02 00 44 CD 00 00 29 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 08 92 00 90 00 0E [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 0D 03 02 [12:32:52]Write to MH i2c: E2 08 00 09 92 80 0D 03 02 00 00 00 00 16 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0B 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0B 00 09 92 00 06 FE D6 99 F2 68 CD 39 90 00 EA [12:32:52]RAPDU: 06 FE D6 99 F2 68 CD 39 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_SignData done [12:32:52]FM_MakeSignedData done [12:32:52]CreateOFDProtocolMessage [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 11 00 00 [12:32:52]Write to MH i2c: E2 08 00 0A 92 80 11 00 00 00 00 00 00 16 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 17 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 17 00 0A 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [12:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:32:52]wFMCommunicate OK [12:32:52]CreateOFDProtocolMessage done [12:32:52]OFDSenderStorePacket 30891 [12:32:52]StoreOFDPacket docnum=30891 [12:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 4D 30 04 01 05 12 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 9B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 78 00 00 35 04 06 00 F7 77 5A B4 44 CD 06 FE D6 99 F2 68 CD 39 [12:32:52]CheckFolder [12:32:52]dirname=/storage/ofd_packets [12:32:52]CheckFolder done [12:32:52]ProducePacketName [12:32:52]name=ofd_packets/00030891 [12:32:52]NVStorageSaveData ofd_packets/00030891 [12:32:52]File name is /storage/ofd_packets/00030891 [12:32:52]Write 298 bytes [12:32:52]NVStorageSaveData done [12:32:52]OFDSenderStorePacket done [12:32:52]KKMCreateOFDPacket done [12:32:52]NVStorageSaveData kkm_last_timestamp [12:32:52]File name is /storage/kkm_last_timestamp [12:32:52]Write 4 bytes [12:32:52]NVStorageSaveData done [12:32:52]ExternCall_PrintAddStr [12:32:52]wPrintStart [12:32:52]Write to MH i2c: 01 00 00 0B 92 9D [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: 01 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: 01 07 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: 01 07 00 0B 92 00 00 00 00 00 FF 0F B2 [12:32:52]RasterBufferAndPrint [12:32:52]line Счет N : (1)343311 [12:32:52]line ИНН: 02508201610067 [12:32:52]line Контрольно-Кассовый Чек [12:32:52]line ПРОДАЖА [12:32:52]line ТРК (МРК, ГНК) : 44 [12:32:52]line Товар: 2710194210 [12:32:52]line ДТ-К-2 [12:32:52]line 19.690 * 76.20 [12:32:52]line = 1500.38 [12:32:52]line НДС 12% НСП 1% [12:32:52]line > о реализуемом товаре [12:32:52]line ОКРУГЛЕНИЕ: -0.38 [12:32:52]line ИТОГО: 1500.00 [12:32:52]line Внесено: 1500.00 [12:32:52]line СДАЧА: 0.00 [12:32:52]line НСП 1% : 13.28 [12:32:52]line НДС 12% : 159.33 [12:32:52]line Наличными: 1500.00 [12:32:52]line Безнал.: 0.00 [12:32:52]line Место: АЗС № 78 "Партнер Нефть" [12:32:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:32:52]line СНО: Общий режим [12:32:52]line Чек 124 22.10.2024 12:33 [12:32:52]line Смена: 116 ФФД: 1.0 [12:32:52]line ЗНМ: 0300000137 [12:32:53]line РНМ: 0000000000186857 [12:32:53]line Версия ККМ: v1.0 [12:32:53]line ФМ: 0000000002094219 [12:32:53]line ФД: 30891 [12:32:53]line ФПД: 272091994932429 [12:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30891&fm=272091994932429&tin=02508201610067®Number=0000000000186857&sum=150000 [12:32:53]OFD Sender: Processing packet 30891 [packets to send 10, broken 9] [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00030891 [12:32:53]OFD Sender: To server: pG, [12:32:53]CommunicateWithHost lk.salyk.kg:30040 [12:32:53]ConnectInit lk.salyk.kg [12:32:53]written 0, free lines is 4095 [12:32:53]Connected sock=10 [12:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 4D 30 04 01 05 12 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 9B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 78 00 00 35 04 06 00 F7 77 5A B4 44 CD 06 FE D6 99 F2 68 CD 39 [12:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 42 B1 47 00 1B 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 32 30 39 34 32 31 39 10 04 04 00 AB 78 00 00 F4 03 04 00 FB 45 17 67 B6 04 01 00 00 FA 41 9A 80 56 F0 81 D7 [12:32:53]CommunicateWithHost err = 0 [12:32:53]CheckOFDResponse [12:32:53]1017 (14) - 77093643461234 [12:32:53]1041 (16) - 0000000002094219 [12:32:53]1040 (4) - 30891 [12:32:53]1012 (4) - 22.10.2024 06:28 [12:32:53]1206 (1) - 0 [12:32:53]OFD Sender: Remove packet 30891 [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00030891 [12:32:53]NVStorageDeleteData [12:32:53]Write to MH i2c: 01 00 00 36 92 C8 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 36 92 00 00 00 00 00 00 0D DC [12:32:53]RasterBufferAndPrint [12:32:53]line [12:32:53]line [12:32:53]line [12:32:53]line [12:32:53]line [12:32:53]written 0, free lines is 3334 [12:32:53]MH_Cut [12:32:53]Write to MH i2c: D1 01 00 3D 92 01 A1 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: D1 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: D1 01 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: D1 01 00 3D 92 00 A0 [12:32:53]Write to MH i2c: 01 00 00 3E 92 D0 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:54]OFD Sender: No OFD packet to send [12:32:54]*** Cut start [12:32:54]*** Partial cut [12:32:54]*** CUTSNS_PIN = 1 [12:32:54]*** CUTSNS_PIN = 0 [12:32:54]*** Brake cut motor [12:32:55]Read from MH i2c: 01 [12:32:55]MH_I2C_Read... [12:32:55]*** Stop cut motor [12:32:55]*** Cut end [12:32:55]Read from MH i2c: 01 07 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 07 00 3E 92 00 00 00 00 00 FF 0F E5 [12:32:55]process_action close_receipt done [12:32:55]requested_data is exist [12:32:55]produce_requested_data [12:32:55]requested_item fm.sn is exist - process it [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 11 00 00 [12:32:55]Write to MH i2c: E2 08 00 3F 92 80 11 00 00 00 00 00 00 4B [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 3F 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [12:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:32:55]wFMCommunicate OK [12:32:55]requested_item fd.num is exist - process it [12:32:55]SAM_PROTO_GetFieldsCounters [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 13 00 00 [12:32:55]Write to MH i2c: E2 08 00 40 92 80 13 00 00 00 00 00 00 4E [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 62 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 62 00 40 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 78 00 00 0E 04 04 00 74 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 7F [12:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 78 00 00 0E 04 04 00 74 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 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_GetFieldsCounters done [12:32:55]requested_item shift.num is exist - process it [12:32:55]requested_item shift.opened is exist - process it [12:32:55]req_shift_opened [12:32:55]FM_GetShiftState [12:32:55]SAM_PROTO_GetShiftState [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 13 01 00 [12:32:55]Write to MH i2c: E2 08 00 41 92 80 13 01 00 00 00 00 00 50 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0E 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0E 00 41 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2A [12:32:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_GetShiftState done [12:32:55]FM_GetShiftState done [12:32:55]req_shift_opened done [12:32:55]requested_item shift.open_date is exist - process it [12:32:55]req_shift_open_date [12:32:55]req_shift_open_date done [12:32:55]produce_requested_data done [12:32:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30891,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:32:55]process_action_free close_receipt [12:32:55]json_value_free [12:32:55]json_value_free done [12:32:55]process_json_proto returns [12:32:55]Send response to host [12:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30891,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:32:55]free response buf [12:32:55]execute_script done [12:32:55]execute_script returns [12:32:55]free content buf [12:32:55]Sock 9.Close socket [12:32:55]Sock 9.Thread stoped [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:30]accept exits with 7 [12:38:30]New connection [12:38:30]New thread 3067489636 created [12:38:30]Thread 3067346276 joined [12:38:30]Waiting for new connection... [12:38:30] Sock 7.Parse request [12:38:30]Sock 7.Check first char [12:38:30]Sock 7.First char is OK [12:38:30]request: POST /json_proto HTTP/1.0 [12:38:30]Method: POST [12:38:30]URL: /json_proto [12:38:30]Method is POST - this is cgi request [12:38:30]url: /json_proto [12:38:30]query_string will be loaded in cgi processing [12:38:30]execute_cgi json_proto POST (null) [12:38:30]execute_cgi path=json_proto method=POST [12:38:30]POST find Content-Length [12:38:30]Host: 172.17.51.3:8080 [12:38:30]Content-Length: 754 [12:38:30]Content-Type: application/json [12:38:30] [12:38:30]POST finish read [12:38:30]Found Content-Length = 754 [12:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118618", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:30]execute_script... [12:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118618", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:30]POST & json_proto [12:38:30]process_json_proto [12:38:30]json parsed OK: [12:38:30]protocol is kg_v1.0 [12:38:30]action value=close_receipt [12:38:30]process_action close_receipt [12:38:30]cmd_close_receipt [12:38:30]MH_GetDate [12:38:30]Write to MH i2c: F0 00 00 42 92 C3 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: F0 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: F0 09 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: F0 09 00 42 92 00 D0 9C 17 67 04 C1 95 66 76 [12:38:30]GetLastDocTimeStamp 1729600381 [12:38:30]current date 1729600720 [12:38:30]FM_GetShiftState [12:38:30]SAM_PROTO_GetShiftState [12:38:30]wFMCommunicate request_size=4 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 13 01 00 [12:38:30]Write to MH i2c: E2 08 00 43 92 80 13 01 00 00 00 00 00 52 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 0E 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 0E 00 43 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2C [12:38:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:38:30]wFMCommunicate OK [12:38:30]SAM_PROTO_GetShiftState done [12:38:30]FM_GetShiftState done [12:38:30]opened in 1729557342 [12:38:30]opened+sec_in_day 1729643742 [12:38:30]quantity*price = 0 [12:38:30]sum+1 = 1 [12:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 125 22.10.2024 12:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118618 ФМ: 0000000002094219 ФД: 30892 ФПД: 198142576068672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123840&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30892&fm=198142576068672&tin=02508201610067®Number=0000000000186857&sum=0 [12:38:31]StoreToDocumentArchive [12:38:31]shift 116 fd 30892 [12:38:31]save to /storage/0116/doc_00030892 [12:38:31]save last doc name /storage/0116/doc_00030892 to /storage/kkm_last_doc_name [12:38:31]save OK [12:38:31]Clear old archive folders... [12:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:31]tlvbuf is 0202F580 [12:38:31]SAM_PROTO_ClearQueue [12:38:31]wFMCommunicate request_size=4 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 09 00 00 [12:38:31]Write to MH i2c: E2 08 00 50 92 80 09 00 00 00 00 00 00 54 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 50 92 00 90 00 56 [12:38:31]RAPDU: 90 00 [12:38:31]wFMCommunicate OK [12:38:31]SAM_PROTO_ClearQueue done [12:38:31]KKMCreateOFDPacket [12:38:31]OFDProtocolAddRootSTLVToBuf [12:38:31]FM_MakeSignedData [12:38:31]FM_MakeSignedData [12:38:31]SAM_PROTO_SignData [12:38:31]wFMCommunicate request_size=4 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 0D 01 02 [12:38:31]Write to MH i2c: E2 08 00 51 92 80 0D 01 02 00 00 00 00 5C [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 51 92 00 90 00 57 [12:38:31]RAPDU: 90 00 [12:38:31]wFMCommunicate OK [12:38:31]wFMCommunicate request_size=255 [12:38:31]MH_SAM_APDU [12:38: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D0 9C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 78 00 00 35 04 06 00 B4 [12:38:31]Write to MH i2c: E2 02 01 52 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D0 9C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 78 00 00 35 04 06 00 B4 00 00 89 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 52 92 00 90 00 58 [12:38:31]RAPDU: 90 00 [12:38:31]wFMCommunicate OK [12:38:31]wFMCommunicate request_size=10 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 0D 02 02 05 35 A9 DC 88 40 [12:38:31]Write to MH i2c: E2 0D 00 53 92 80 0D 02 02 05 00 35 A9 DC 88 40 00 00 EB [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 53 92 00 90 00 59 [12:38:32]RAPDU: 90 00 [12:38:32]wFMCommunicate OK [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 0D 03 02 [12:38:32]Write to MH i2c: E2 08 00 54 92 80 0D 03 02 00 00 00 00 61 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0B 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0B 00 54 92 00 A7 EC 97 73 A7 BE 89 29 90 00 16 [12:38:32]RAPDU: A7 EC 97 73 A7 BE 89 29 90 00 [12:38:32]wFMCommunicate OK [12:38:32]SAM_PROTO_SignData done [12:38:32]FM_MakeSignedData done [12:38:32]CreateOFDProtocolMessage [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 11 00 00 [12:38:32]Write to MH i2c: E2 08 00 55 92 80 11 00 00 00 00 00 00 61 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 17 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 17 00 55 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [12:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:38:32]wFMCommunicate OK [12:38:32]CreateOFDProtocolMessage done [12:38:32]OFDSenderStorePacket 30892 [12:38:32]StoreOFDPacket docnum=30892 [12:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 2C 07 01 1C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D0 9C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 78 00 00 35 04 06 00 B4 35 A9 DC 88 40 A7 EC 97 73 A7 BE 89 29 [12:38:32]CheckFolder [12:38:32]dirname=/storage/ofd_packets [12:38:32]CheckFolder done [12:38:32]ProducePacketName [12:38:32]name=ofd_packets/00030892 [12:38:32]NVStorageSaveData ofd_packets/00030892 [12:38:32]File name is /storage/ofd_packets/00030892 [12:38:32]Write 301 bytes [12:38:32]NVStorageSaveData done [12:38:32]OFDSenderStorePacket done [12:38:32]KKMCreateOFDPacket done [12:38:32]NVStorageSaveData kkm_last_timestamp [12:38:32]File name is /storage/kkm_last_timestamp [12:38:32]Write 4 bytes [12:38:32]NVStorageSaveData done [12:38:32]ExternCall_PrintAddStr [12:38:32]wPrintStart [12:38:32]Write to MH i2c: 01 00 00 56 92 E8 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 07 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 07 00 56 92 00 00 00 00 00 FF 0F FD [12:38:32]RasterBufferAndPrint [12:38:32]line Счет N : (1)343312 [12:38:32]line ИНН: 02508201610067 [12:38:32]line Контрольно-Кассовый Чек [12:38:32]line ПРОДАЖА [12:38:32]line ТРК (МРК, ГНК) : 33 [12:38:32]line Товар: 2710124130 [12:38:32]line Аи-92-К-2 [12:38:32]line 20.000 * 0.00 [12:38:32]line = 0.00 [12:38:32]line НДС 12% НСП 1% [12:38:32]line > о реализуемом товаре [12:38:32]line ИТОГО: 0.00 [12:38:32]line НСП 1% : 0.00 [12:38:32]line НДС 12% : 0.00 [12:38:32]line Наличными: 0.00 [12:38:32]line Безнал.: 0.00 [12:38:32]line Место: АЗС № 78 "Партнер Нефть" [12:38:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:38:32]line СНО: Общий режим [12:38:32]line Чек 125 22.10.2024 12:38 [12:38:32]line Смена: 116 ФФД: 1.0 [12:38:32]line ЗНМ: 0300000137 [12:38:32]line РНМ: 0000000000186857 [12:38:32]line Версия ККМ: v1.0 [12:38:32]line Талоны: ТК ГПНА Online [12:38:32]line 30118618 [12:38:32]line ФМ: 0000000002094219 [12:38:32]line ФД: 30892 [12:38:32]line ФПД: 198142576068672 [12:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123840&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30892&fm=198142576068672&tin=02508201610067®Number=0000000000186857&sum=0 [12:38:32]written 0, free lines is 4095 [12:38:32]OFD Sender: Processing packet 30892 [packets to send 10, broken 9] [12:38:32]ProducePacketName [12:38:32]name=ofd_packets/00030892 [12:38:32]OFD Sender: To server: pG, [12:38:32]CommunicateWithHost lk.salyk.kg:30040 [12:38:32]ConnectInit lk.salyk.kg [12:38:32]Connected sock=10 [12:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 2C 07 01 1C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D0 9C 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 78 00 00 35 04 06 00 B4 35 A9 DC 88 40 A7 EC 97 73 A7 BE 89 29 [12:38:32]Write to MH i2c: 01 00 00 80 92 12 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 07 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: 01 07 00 80 92 00 00 00 00 00 05 0D 2B [12:38:32]RasterBufferAndPrint [12:38:32]line [12:38:32]line [12:38:32]line [12:38:32]line [12:38:32]line [12:38:32]written 0, free lines is 3339 [12:38:32]MH_Cut [12:38:32]Write to MH i2c: D1 01 00 87 92 01 EB [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: D1 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: D1 01 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: D1 01 00 87 92 00 EA [12:38:32]Write to MH i2c: 01 00 00 88 92 1A [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2C FB 47 00 93 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 32 30 39 34 32 31 39 10 04 04 00 AC 78 00 00 F4 03 04 00 4E 47 17 67 B6 04 01 00 00 2F 9A AE B6 3F 46 D6 90 [12:38:32]CommunicateWithHost err = 0 [12:38:32]CheckOFDResponse [12:38:32]1017 (14) - 77093643461234 [12:38:32]1041 (16) - 0000000002094219 [12:38:32]1040 (4) - 30892 [12:38:32]1012 (4) - 22.10.2024 06:33 [12:38:32]1206 (1) - 0 [12:38:32]OFD Sender: Remove packet 30892 [12:38:32]ProducePacketName [12:38:32]name=ofd_packets/00030892 [12:38:32]NVStorageDeleteData [12:38:33]*** Cut start [12:38:33]*** Partial cut [12:38:33]*** CUTSNS_PIN = 1 [12:38:33]OFD Sender: No OFD packet to send [12:38:33]*** CUTSNS_PIN = 0 [12:38:33]*** Brake cut motor [12:38:33]Read from MH i2c: 01 [12:38:33]MH_I2C_Read... [12:38:33]*** Stop cut motor [12:38:33]*** Cut end [12:38:33]Read from MH i2c: 01 07 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 88 92 00 00 00 00 00 FF 0F 2F [12:38:33]process_action close_receipt done [12:38:33]requested_data is exist [12:38:33]produce_requested_data [12:38:33]requested_item fm.sn is exist - process it [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 11 00 00 [12:38:33]Write to MH i2c: E2 08 00 89 92 80 11 00 00 00 00 00 00 95 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 89 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [12:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:38:33]wFMCommunicate OK [12:38:33]requested_item fd.num is exist - process it [12:38:33]SAM_PROTO_GetFieldsCounters [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 13 00 00 [12:38:33]Write to MH i2c: E2 08 00 8A 92 80 13 00 00 00 00 00 00 98 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:34]Read from MH i2c: E2 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: E2 62 00 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: E2 62 00 8A 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 78 00 00 0E 04 04 00 74 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 CD [12:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 78 00 00 0E 04 04 00 74 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 [12:38:34]wFMCommunicate OK [12:38:34]SAM_PROTO_GetFieldsCounters done [12:38:34]requested_item shift.num is exist - process it [12:38:34]requested_item shift.opened is exist - process it [12:38:34]req_shift_opened [12:38:34]FM_GetShiftState [12:38:34]SAM_PROTO_GetShiftState [12:38:34]wFMCommunicate request_size=4 [12:38:34]MH_SAM_APDU [12:38:34]CAPDU: 80 13 01 00 [12:38:34]Write to MH i2c: E2 08 00 8B 92 80 13 01 00 00 00 00 00 9A [12:38:34]Write i2c OK [12:38:34]MH_I2C_Read... [12:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:34]Read from MH i2c: E2 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: E2 0E 00 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: E2 0E 00 8B 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 74 [12:38:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:38:34]wFMCommunicate OK [12:38:34]SAM_PROTO_GetShiftState done [12:38:34]FM_GetShiftState done [12:38:34]req_shift_opened done [12:38:34]requested_item shift.open_date is exist - process it [12:38:34]req_shift_open_date [12:38:34]req_shift_open_date done [12:38:34]produce_requested_data done [12:38:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30892,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:38:34]process_action_free close_receipt [12:38:34]json_value_free [12:38:34]json_value_free done [12:38:34]process_json_proto returns [12:38:34]Send response to host [12:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30892,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:38:34]free response buf [12:38:34]execute_script done [12:38:34]execute_script returns [12:38:34]free content buf [12:38:34]Sock 7.Close socket [12:38:34]Sock 7.Thread stoped [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:36]accept exits with 9 [12:40:36]New connection [12:40:36]New thread 3067346276 created [12:40:36]Thread 3067489636 joined [12:40:36]Waiting for new connection... [12:40:36] Sock 9.Parse request [12:40:36]Sock 9.Check first char [12:40:36]Sock 9.First char is OK [12:40:36]request: POST /json_proto HTTP/1.0 [12:40:36]Method: POST [12:40:36]URL: /json_proto [12:40:36]Method is POST - this is cgi request [12:40:36]url: /json_proto [12:40:36]query_string will be loaded in cgi processing [12:40:36]execute_cgi json_proto POST (null) [12:40:36]execute_cgi path=json_proto method=POST [12:40:36]POST find Content-Length [12:40:36]Host: 172.17.51.3:8080 [12:40:36]Content-Length: 677 [12:40:36]Content-Type: application/json [12:40:36] [12:40:36]POST finish read [12:40:36]Found Content-Length = 677 [12:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:36]execute_script... [12:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:36]POST & json_proto [12:40:36]process_json_proto [12:40:36]json parsed OK: [12:40:36]protocol is kg_v1.0 [12:40:36]action value=close_receipt [12:40:36]process_action close_receipt [12:40:36]cmd_close_receipt [12:40:36]MH_GetDate [12:40:36]Write to MH i2c: F0 00 00 8C 92 0D [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 09 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 09 00 8C 92 00 4E 9D 17 67 04 C1 95 66 3F [12:40:36]GetLastDocTimeStamp 1729600720 [12:40:36]current date 1729600846 [12:40:36]FM_GetShiftState [12:40:36]SAM_PROTO_GetShiftState [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 13 01 00 [12:40:36]Write to MH i2c: E2 08 00 8D 92 80 13 01 00 00 00 00 00 9C [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 8D 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 76 [12:40:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:40:36]wFMCommunicate OK [12:40:36]SAM_PROTO_GetShiftState done [12:40:36]FM_GetShiftState done [12:40:36]opened in 1729557342 [12:40:36]opened+sec_in_day 1729643742 [12:40:36]quantity*price = 40006 [12:40:36]sum+1 = 40007 [12:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 126 22.10.2024 12:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30893 ФПД: 214419293851177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124046&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30893&fm=214419293851177&tin=02508201610067®Number=0000000000186857&sum=40000 [12:40:37]StoreToDocumentArchive [12:40:37]shift 116 fd 30893 [12:40:37]save to /storage/0116/doc_00030893 [12:40:37]save last doc name /storage/0116/doc_00030893 to /storage/kkm_last_doc_name [12:40:37]save OK [12:40:37]Clear old archive folders... [12:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:37]tlvbuf is 01E1ACE0 [12:40:37]SAM_PROTO_ClearQueue [12:40:37]wFMCommunicate request_size=4 [12:40:37]MH_SAM_APDU [12:40:37]CAPDU: 80 09 00 00 [12:40:37]Write to MH i2c: E2 08 00 9A 92 80 09 00 00 00 00 00 00 9E [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:37]Read from MH i2c: E2 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 9A 92 00 90 00 A0 [12:40:37]RAPDU: 90 00 [12:40:37]wFMCommunicate OK [12:40:37]SAM_PROTO_ClearQueue done [12:40:37]KKMCreateOFDPacket [12:40:37]OFDProtocolAddRootSTLVToBuf [12:40:37]FM_MakeSignedData [12:40:37]FM_MakeSignedData [12:40:37]SAM_PROTO_SignData [12:40:37]wFMCommunicate request_size=4 [12:40:37]MH_SAM_APDU [12:40:37]CAPDU: 80 0D 01 02 [12:40:37]Write to MH i2c: E2 08 00 9B 92 80 0D 01 02 00 00 00 00 A6 [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:37]Read from MH i2c: E2 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 9B 92 00 90 00 A1 [12:40:37]RAPDU: 90 00 [12:40:37]wFMCommunicate OK [12:40:37]wFMCommunicate request_size=255 [12:40:37]MH_SAM_APDU [12:40: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 78 00 00 35 04 06 00 C3 [12:40:37]Write to MH i2c: E2 02 01 9C 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 78 00 00 35 04 06 00 C3 00 00 49 [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:37]Read from MH i2c: E2 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 9C 92 00 90 00 A2 [12:40:37]RAPDU: 90 00 [12:40:37]wFMCommunicate OK [12:40:37]wFMCommunicate request_size=10 [12:40:37]MH_SAM_APDU [12:40:37]CAPDU: 80 0D 02 02 05 03 61 D7 CE 29 [12:40:37]Write to MH i2c: E2 0D 00 9D 92 80 0D 02 02 05 00 03 61 D7 CE 29 00 00 E5 [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 9D 92 00 90 00 A3 [12:40:38]RAPDU: 90 00 [12:40:38]wFMCommunicate OK [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 0D 03 02 [12:40:38]Write to MH i2c: E2 08 00 9E 92 80 0D 03 02 00 00 00 00 AB [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0B 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0B 00 9E 92 00 4E 5F 42 7C 5B 33 47 9A 90 00 86 [12:40:38]RAPDU: 4E 5F 42 7C 5B 33 47 9A 90 00 [12:40:38]wFMCommunicate OK [12:40:38]SAM_PROTO_SignData done [12:40:38]FM_MakeSignedData done [12:40:38]CreateOFDProtocolMessage [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 11 00 00 [12:40:38]Write to MH i2c: E2 08 00 9F 92 80 11 00 00 00 00 00 00 AB [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 9F 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [12:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:40:38]wFMCommunicate OK [12:40:38]CreateOFDProtocolMessage done [12:40:38]OFDSenderStorePacket 30893 [12:40:38]StoreOFDPacket docnum=30893 [12:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 D6 07 01 33 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 78 00 00 35 04 06 00 C3 03 61 D7 CE 29 4E 5F 42 7C 5B 33 47 9A [12:40:38]CheckFolder [12:40:38]dirname=/storage/ofd_packets [12:40:38]CheckFolder done [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00030893 [12:40:38]NVStorageSaveData ofd_packets/00030893 [12:40:38]File name is /storage/ofd_packets/00030893 [12:40:38]Write 301 bytes [12:40:38]NVStorageSaveData done [12:40:38]OFDSenderStorePacket done [12:40:38]KKMCreateOFDPacket done [12:40:38]NVStorageSaveData kkm_last_timestamp [12:40:38]File name is /storage/kkm_last_timestamp [12:40:38]Write 4 bytes [12:40:38]NVStorageSaveData done [12:40:38]ExternCall_PrintAddStr [12:40:38]wPrintStart [12:40:38]Write to MH i2c: 01 00 00 A0 92 32 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 A0 92 00 00 00 00 00 FF 0F 47 [12:40:38]RasterBufferAndPrint [12:40:38]line Счет N : (1)343313 [12:40:38]line ИНН: 02508201610067 [12:40:38]line Контрольно-Кассовый Чек [12:40:38]line ПРОДАЖА [12:40:38]line ТРК (МРК, ГНК) : 53 [12:40:38]line Товар: 2710124130 [12:40:38]line Аи-92-К-2 [12:40:38]line 5.980 * 66.90 [12:40:38]line = 400.06 [12:40:38]line НДС 12% НСП 1% [12:40:38]line > о реализуемом товаре [12:40:38]line ОКРУГЛЕНИЕ: -0.06 [12:40:38]line ИТОГО: 400.00 [12:40:38]line Внесено: 400.00 [12:40:38]line СДАЧА: 0.00 [12:40:38]line НСП 1% : 3.54 [12:40:38]line НДС 12% : 42.48 [12:40:38]line Наличными: 400.00 [12:40:38]line Безнал.: 0.00 [12:40:38]line Место: АЗС № 78 "Партнер Нефть" [12:40:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:40:38]line СНО: Общий режим [12:40:38]line Чек 126 22.10.2024 12:40 [12:40:38]line Смена: 116 ФФД: 1.0 [12:40:38]line ЗНМ: 0300000137 [12:40:38]line РНМ: 0000000000186857 [12:40:38]line Версия ККМ: v1.0 [12:40:38]line ФМ: 0000000002094219 [12:40:38]line ФД: 30893 [12:40:38]line ФПД: 214419293851177 [12:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124046&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30893&fm=214419293851177&tin=02508201610067®Number=0000000000186857&sum=40000 [12:40:38]OFD Sender: Processing packet 30893 [packets to send 10, broken 9] [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00030893 [12:40:38]OFD Sender: To server: pG, [12:40:38]CommunicateWithHost lk.salyk.kg:30040 [12:40:38]ConnectInit lk.salyk.kg [12:40:38]written 0, free lines is 4095 [12:40:38]Connected sock=10 [12:40:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 D6 07 01 33 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 78 00 00 35 04 06 00 C3 03 61 D7 CE 29 4E 5F 42 7C 5B 33 47 9A [12:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 98 75 47 00 92 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 78 00 00 F4 03 04 00 CC 47 17 67 B6 04 01 00 00 08 0D 55 A9 BB EE 7C C6 [12:40:38]CommunicateWithHost err = 0 [12:40:38]CheckOFDResponse [12:40:38]1017 (14) - 77093643461234 [12:40:38]1041 (16) - 0000000002094219 [12:40:38]1040 (4) - 30893 [12:40:38]1012 (4) - 22.10.2024 06:35 [12:40:38]1206 (1) - 0 [12:40:38]OFD Sender: Remove packet 30893 [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00030893 [12:40:38]NVStorageDeleteData [12:40:38]Write to MH i2c: 01 00 00 CB 92 5D [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 CB 92 00 00 00 00 00 FC 0C 6C [12:40:38]RasterBufferAndPrint [12:40:38]line [12:40:38]line [12:40:38]line [12:40:38]line [12:40:38]line [12:40:38]written 0, free lines is 3330 [12:40:38]MH_Cut [12:40:38]Write to MH i2c: D1 01 00 D2 92 01 36 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: D1 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: D1 01 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: D1 01 00 D2 92 00 35 [12:40:38]Write to MH i2c: 01 00 00 D3 92 65 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:39]OFD Sender: No OFD packet to send [12:40:39]*** Cut start [12:40:39]*** Partial cut [12:40:39]*** CUTSNS_PIN = 1 [12:40:39]*** CUTSNS_PIN = 0 [12:40:39]*** Brake cut motor [12:40:40]Read from MH i2c: 01 [12:40:40]MH_I2C_Read... [12:40:40]*** Stop cut motor [12:40:40]*** Cut end [12:40:40]Read from MH i2c: 01 07 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: 01 07 00 D3 92 00 00 00 00 00 FF 0F 7A [12:40:40]process_action close_receipt done [12:40:40]requested_data is exist [12:40:40]produce_requested_data [12:40:40]requested_item fm.sn is exist - process it [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 11 00 00 [12:40:40]Write to MH i2c: E2 08 00 D4 92 80 11 00 00 00 00 00 00 E0 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 17 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 17 00 D4 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [12:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:40:40]wFMCommunicate OK [12:40:40]requested_item fd.num is exist - process it [12:40:40]SAM_PROTO_GetFieldsCounters [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 13 00 00 [12:40:40]Write to MH i2c: E2 08 00 D5 92 80 13 00 00 00 00 00 00 E3 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 62 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 62 00 D5 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 78 00 00 0E 04 04 00 74 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 1C [12:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 78 00 00 0E 04 04 00 74 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 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_GetFieldsCounters done [12:40:40]requested_item shift.num is exist - process it [12:40:40]requested_item shift.opened is exist - process it [12:40:40]req_shift_opened [12:40:40]FM_GetShiftState [12:40:40]SAM_PROTO_GetShiftState [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 13 01 00 [12:40:40]Write to MH i2c: E2 08 00 D6 92 80 13 01 00 00 00 00 00 E5 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0E 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0E 00 D6 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BF [12:40:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_GetShiftState done [12:40:40]FM_GetShiftState done [12:40:40]req_shift_opened done [12:40:40]requested_item shift.open_date is exist - process it [12:40:40]req_shift_open_date [12:40:40]req_shift_open_date done [12:40:40]produce_requested_data done [12:40:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30893,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:40:40]process_action_free close_receipt [12:40:40]json_value_free [12:40:40]json_value_free done [12:40:40]process_json_proto returns [12:40:40]Send response to host [12:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30893,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:40:40]free response buf [12:40:40]execute_script done [12:40:40]execute_script returns [12:40:40]free content buf [12:40:40]Sock 9.Close socket [12:40:40]Sock 9.Thread stoped [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:07]accept exits with 7 [12:41:07]New connection [12:41:07]New thread 3067489636 created [12:41:07]Thread 3067346276 joined [12:41:07]Waiting for new connection... [12:41:07] Sock 7.Parse request [12:41:07]Sock 7.Check first char [12:41:07]Sock 7.First char is OK [12:41:07]request: POST /json_proto HTTP/1.0 [12:41:07]Method: POST [12:41:07]URL: /json_proto [12:41:07]Method is POST - this is cgi request [12:41:07]url: /json_proto [12:41:07]query_string will be loaded in cgi processing [12:41:07]execute_cgi json_proto POST (null) [12:41:07]execute_cgi path=json_proto method=POST [12:41:07]POST find Content-Length [12:41:07]Host: 172.17.51.3:8080 [12:41:07]Content-Length: 679 [12:41:07]Content-Type: application/json [12:41:07] [12:41:07]POST finish read [12:41:07]Found Content-Length = 679 [12:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [12:41:07]execute_script... [12:41: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)343314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [12:41:07]POST & json_proto [12:41:07]process_json_proto [12:41:07]json parsed OK: [12:41:07]protocol is kg_v1.0 [12:41:07]action value=close_receipt [12:41:07]process_action close_receipt [12:41:07]cmd_close_receipt [12:41:07]MH_GetDate [12:41:07]Write to MH i2c: F0 00 00 D7 92 58 [12:41:07]Write i2c OK [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: F0 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: F0 09 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: F0 09 00 D7 92 00 6E 9D 17 67 04 C1 95 66 AA [12:41:07]GetLastDocTimeStamp 1729600846 [12:41:07]current date 1729600878 [12:41:07]FM_GetShiftState [12:41:07]SAM_PROTO_GetShiftState [12:41:07]wFMCommunicate request_size=4 [12:41:07]MH_SAM_APDU [12:41:07]CAPDU: 80 13 01 00 [12:41:07]Write to MH i2c: E2 08 00 D8 92 80 13 01 00 00 00 00 00 E7 [12:41:07]Write i2c OK [12:41:07]MH_I2C_Read... [12:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:07]Read from MH i2c: E2 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 0E 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 0E 00 D8 92 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C1 [12:41:07]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:41:07]wFMCommunicate OK [12:41:07]SAM_PROTO_GetShiftState done [12:41:07]FM_GetShiftState done [12:41:07]opened in 1729557342 [12:41:07]opened+sec_in_day 1729643742 [12:41:07]quantity*price = 140055 [12:41:07]sum+1 = 140057 [12:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 127 22.10.2024 12:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30894 ФПД: 121445252341492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30894&fm=121445252341492&tin=02508201610067®Number=0000000000186857&sum=140000 [12:41:08]StoreToDocumentArchive [12:41:08]shift 116 fd 30894 [12:41:08]save to /storage/0116/doc_00030894 [12:41:08]save last doc name /storage/0116/doc_00030894 to /storage/kkm_last_doc_name [12:41:08]save OK [12:41:08]Clear old archive folders... [12:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:41:08]tlvbuf is 01DD6CA0 [12:41:08]SAM_PROTO_ClearQueue [12:41:08]wFMCommunicate request_size=4 [12:41:08]MH_SAM_APDU [12:41:08]CAPDU: 80 09 00 00 [12:41:08]Write to MH i2c: E2 08 00 E5 92 80 09 00 00 00 00 00 00 E9 [12:41:08]Write i2c OK [12:41:08]MH_I2C_Read... [12:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:08]Read from MH i2c: E2 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 03 00 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 03 00 E5 92 00 90 00 EB [12:41:08]RAPDU: 90 00 [12:41:08]wFMCommunicate OK [12:41:08]SAM_PROTO_ClearQueue done [12:41:08]KKMCreateOFDPacket [12:41:08]OFDProtocolAddRootSTLVToBuf [12:41:08]FM_MakeSignedData [12:41:08]FM_MakeSignedData [12:41:08]SAM_PROTO_SignData [12:41:08]wFMCommunicate request_size=4 [12:41:08]MH_SAM_APDU [12:41:08]CAPDU: 80 0D 01 02 [12:41:08]Write to MH i2c: E2 08 00 E6 92 80 0D 01 02 00 00 00 00 F1 [12:41:08]Write i2c OK [12:41:08]MH_I2C_Read... [12:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:08]Read from MH i2c: E2 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 03 00 [12:41:08]MH_I2C_Read... [12:41:08]Read from MH i2c: E2 03 00 E6 92 00 90 00 EC [12:41:08]RAPDU: 90 00 [12:41:08]wFMCommunicate OK [12:41:08]wFMCommunicate request_size=255 [12:41:08]MH_SAM_APDU [12:41: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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 7F 00 00 00 F4 03 04 00 6E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 78 00 00 35 04 06 00 6E 74 2D 20 [12:41:09]Write to MH i2c: E2 02 01 E7 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 7F 00 00 00 F4 03 04 00 6E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 78 00 00 35 04 06 00 6E 74 2D 20 00 00 88 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 E7 92 00 90 00 ED [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]wFMCommunicate request_size=7 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 0D 02 02 02 1E F4 [12:41:09]Write to MH i2c: E2 0A 00 E8 92 80 0D 02 02 02 00 1E F4 00 00 0A [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 03 00 E8 92 00 90 00 EE [12:41:09]RAPDU: 90 00 [12:41:09]wFMCommunicate OK [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 0D 03 02 [12:41:09]Write to MH i2c: E2 08 00 E9 92 80 0D 03 02 00 00 00 00 F6 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 0B 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 0B 00 E9 92 00 33 49 A0 DF A8 9E 3C 8A 90 00 FE [12:41:09]RAPDU: 33 49 A0 DF A8 9E 3C 8A 90 00 [12:41:09]wFMCommunicate OK [12:41:09]SAM_PROTO_SignData done [12:41:09]FM_MakeSignedData done [12:41:09]CreateOFDProtocolMessage [12:41:09]wFMCommunicate request_size=4 [12:41:09]MH_SAM_APDU [12:41:09]CAPDU: 80 11 00 00 [12:41:09]Write to MH i2c: E2 08 00 EA 92 80 11 00 00 00 00 00 00 F6 [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]OFD Sender: No OFD packet to send [12:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:09]Read from MH i2c: E2 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 17 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: E2 17 00 EA 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 44 [12:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:09]wFMCommunicate OK [12:41:09]CreateOFDProtocolMessage done [12:41:09]OFDSenderStorePacket 30894 [12:41:09]StoreOFDPacket docnum=30894 [12:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 C4 91 04 01 CD D4 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 7F 00 00 00 F4 03 04 00 6E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 78 00 00 35 04 06 00 6E 74 2D 20 1E F4 33 49 A0 DF A8 9E 3C 8A [12:41:09]CheckFolder [12:41:09]dirname=/storage/ofd_packets [12:41:09]CheckFolder done [12:41:09]ProducePacketName [12:41:09]name=ofd_packets/00030894 [12:41:09]NVStorageSaveData ofd_packets/00030894 [12:41:09]File name is /storage/ofd_packets/00030894 [12:41:09]Write 298 bytes [12:41:09]NVStorageSaveData done [12:41:09]OFDSenderStorePacket done [12:41:09]KKMCreateOFDPacket done [12:41:09]NVStorageSaveData kkm_last_timestamp [12:41:09]File name is /storage/kkm_last_timestamp [12:41:09]Write 4 bytes [12:41:09]NVStorageSaveData done [12:41:09]ExternCall_PrintAddStr [12:41:09]wPrintStart [12:41:09]Write to MH i2c: 01 00 00 EB 92 7D [12:41:09]Write i2c OK [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 07 00 [12:41:09]MH_I2C_Read... [12:41:09]Read from MH i2c: 01 07 00 EB 92 00 00 00 00 00 FF 0F 92 [12:41:09]RasterBufferAndPrint [12:41:09]line Счет N : (1)343314 [12:41:09]line ИНН: 02508201610067 [12:41:09]line Контрольно-Кассовый Чек [12:41:09]line ПРОДАЖА [12:41:09]line ТРК (МРК, ГНК) : 44 [12:41:09]line Товар: 2710194210 [12:41:09]line ДТ-К-2 [12:41:09]line 18.380 * 76.20 [12:41:09]line = 1400.56 [12:41:09]line НДС 12% НСП 1% [12:41:09]line > о реализуемом товаре [12:41:09]line ОКРУГЛЕНИЕ: -0.56 [12:41:09]line ИТОГО: 1400.00 [12:41:09]line Внесено: 1400.00 [12:41:09]line СДАЧА: 0.00 [12:41:09]line НСП 1% : 12.39 [12:41:09]line НДС 12% : 148.73 [12:41:09]line Наличными: 1400.00 [12:41:09]line Безнал.: 0.00 [12:41:09]line Место: АЗС № 78 "Партнер Нефть" [12:41:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:41:09]line СНО: Общий режим [12:41:09]line Чек 127 22.10.2024 12:41 [12:41:09]line Смена: 116 ФФД: 1.0 [12:41:09]line ЗНМ: 0300000137 [12:41:09]line РНМ: 0000000000186857 [12:41:09]line Версия ККМ: v1.0 [12:41:09]line ФМ: 0000000002094219 [12:41:09]line ФД: 30894 [12:41:09]line ФПД: 121445252341492 [12:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30894&fm=121445252341492&tin=02508201610067®Number=0000000000186857&sum=140000 [12:41:09]OFD Sender: Processing packet 30894 [packets to send 10, broken 9] [12:41:09]ProducePacketName [12:41:09]name=ofd_packets/00030894 [12:41:09]OFD Sender: To server: pG, [12:41:09]CommunicateWithHost lk.salyk.kg:30040 [12:41:09]ConnectInit lk.salyk.kg [12:41:09]written 0, free lines is 4095 [12:41:09]Connected sock=10 [12:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 C4 91 04 01 CD D4 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 7F 00 00 00 F4 03 04 00 6E 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 78 00 00 35 04 06 00 6E 74 2D 20 1E F4 33 49 A0 DF A8 9E 3C 8A [12:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 5A 47 00 33 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 78 00 00 F4 03 04 00 EB 47 17 67 B6 04 01 00 00 48 E4 71 C8 94 53 38 42 [12:41:10]CommunicateWithHost err = 0 [12:41:10]CheckOFDResponse [12:41:10]1017 (14) - 77093643461234 [12:41:10]1041 (16) - 0000000002094219 [12:41:10]1040 (4) - 30894 [12:41:10]1012 (4) - 22.10.2024 06:36 [12:41:10]1206 (1) - 0 [12:41:10]OFD Sender: Remove packet 30894 [12:41:10]ProducePacketName [12:41:10]name=ofd_packets/00030894 [12:41:10]NVStorageDeleteData [12:41:10]Write to MH i2c: 01 00 00 16 93 A9 [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 07 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: 01 07 00 16 93 00 00 00 00 00 EE 0C AA [12:41:10]RasterBufferAndPrint [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]line [12:41:10]written 0, free lines is 3316 [12:41:10]MH_Cut [12:41:10]Write to MH i2c: D1 01 00 1D 93 01 82 [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: D1 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: D1 01 00 [12:41:10]MH_I2C_Read... [12:41:10]Read from MH i2c: D1 01 00 1D 93 00 81 [12:41:10]Write to MH i2c: 01 00 00 1E 93 B1 [12:41:10]Write i2c OK [12:41:10]MH_I2C_Read... [12:41:10]OFD Sender: No OFD packet to send [12:41:10]*** Cut start [12:41:10]*** Partial cut [12:41:10]*** CUTSNS_PIN = 1 [12:41:10]*** CUTSNS_PIN = 0 [12:41:11]*** Brake cut motor [12:41:11]Read from MH i2c: 01 [12:41:11]MH_I2C_Read... [12:41:11]*** Stop cut motor [12:41:11]*** Cut end [12:41:11]Read from MH i2c: 01 07 00 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: 01 07 00 1E 93 00 00 00 00 00 FF 0F C6 [12:41:11]process_action close_receipt done [12:41:11]requested_data is exist [12:41:11]produce_requested_data [12:41:11]requested_item fm.sn is exist - process it [12:41:11]wFMCommunicate request_size=4 [12:41:11]MH_SAM_APDU [12:41:11]CAPDU: 80 11 00 00 [12:41:11]Write to MH i2c: E2 08 00 1F 93 80 11 00 00 00 00 00 00 2C [12:41:11]Write i2c OK [12:41:11]MH_I2C_Read... [12:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:11]Read from MH i2c: E2 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 17 00 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 17 00 1F 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [12:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:11]wFMCommunicate OK [12:41:11]requested_item fd.num is exist - process it [12:41:11]SAM_PROTO_GetFieldsCounters [12:41:11]wFMCommunicate request_size=4 [12:41:11]MH_SAM_APDU [12:41:11]CAPDU: 80 13 00 00 [12:41:11]Write to MH i2c: E2 08 00 20 93 80 13 00 00 00 00 00 00 2F [12:41:11]Write i2c OK [12:41:11]MH_I2C_Read... [12:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:11]Read from MH i2c: E2 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 62 00 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 62 00 20 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 78 00 00 0E 04 04 00 74 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 6C [12:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 78 00 00 0E 04 04 00 74 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 [12:41:11]wFMCommunicate OK [12:41:11]SAM_PROTO_GetFieldsCounters done [12:41:11]requested_item shift.num is exist - process it [12:41:11]requested_item shift.opened is exist - process it [12:41:11]req_shift_opened [12:41:11]FM_GetShiftState [12:41:11]SAM_PROTO_GetShiftState [12:41:11]wFMCommunicate request_size=4 [12:41:11]MH_SAM_APDU [12:41:11]CAPDU: 80 13 01 00 [12:41:11]Write to MH i2c: E2 08 00 21 93 80 13 01 00 00 00 00 00 31 [12:41:11]Write i2c OK [12:41:11]MH_I2C_Read... [12:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:11]Read from MH i2c: E2 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 0E 00 [12:41:11]MH_I2C_Read... [12:41:11]Read from MH i2c: E2 0E 00 21 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0B [12:41:11]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:41:11]wFMCommunicate OK [12:41:11]SAM_PROTO_GetShiftState done [12:41:11]FM_GetShiftState done [12:41:11]req_shift_opened done [12:41:11]requested_item shift.open_date is exist - process it [12:41:11]req_shift_open_date [12:41:11]req_shift_open_date done [12:41:11]produce_requested_data done [12:41:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30894,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:41:11]process_action_free close_receipt [12:41:11]json_value_free [12:41:11]json_value_free done [12:41:11]process_json_proto returns [12:41:11]Send response to host [12:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30894,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:41:11]free response buf [12:41:11]execute_script done [12:41:11]execute_script returns [12:41:11]free content buf [12:41:11]Sock 7.Close socket [12:41:11]Sock 7.Thread stoped [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:41]accept exits with 9 [12:41:41]New connection [12:41:41]New thread 3067346276 created [12:41:41]Thread 3067489636 joined [12:41:41]Waiting for new connection... [12:41:41] Sock 9.Parse request [12:41:41]Sock 9.Check first char [12:41:41]Sock 9.First char is OK [12:41:41]request: POST /json_proto HTTP/1.0 [12:41:41]Method: POST [12:41:41]URL: /json_proto [12:41:41]Method is POST - this is cgi request [12:41:41]url: /json_proto [12:41:41]query_string will be loaded in cgi processing [12:41:41]execute_cgi json_proto POST (null) [12:41:41]execute_cgi path=json_proto method=POST [12:41:41]POST find Content-Length [12:41:41]Host: 172.17.51.3:8080 [12:41:41]Content-Length: 754 [12:41:41]Content-Type: application/json [12:41:41] [12:41:41]POST finish read [12:41:41]Found Content-Length = 754 [12:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:41]execute_script... [12:41: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)343315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:41]POST & json_proto [12:41:41]process_json_proto [12:41:41]json parsed OK: [12:41:41]protocol is kg_v1.0 [12:41:41]action value=close_receipt [12:41:41]process_action close_receipt [12:41:41]cmd_close_receipt [12:41:41]MH_GetDate [12:41:41]Write to MH i2c: F0 00 00 22 93 A4 [12:41:41]Write i2c OK [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: F0 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: F0 09 00 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: F0 09 00 22 93 00 90 9D 17 67 04 C1 95 66 18 [12:41:41]GetLastDocTimeStamp 1729600878 [12:41:41]current date 1729600912 [12:41:41]FM_GetShiftState [12:41:41]SAM_PROTO_GetShiftState [12:41:41]wFMCommunicate request_size=4 [12:41:41]MH_SAM_APDU [12:41:41]CAPDU: 80 13 01 00 [12:41:41]Write to MH i2c: E2 08 00 23 93 80 13 01 00 00 00 00 00 33 [12:41:41]Write i2c OK [12:41:41]MH_I2C_Read... [12:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:42]Read from MH i2c: E2 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 23 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0D [12:41:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:41:42]wFMCommunicate OK [12:41:42]SAM_PROTO_GetShiftState done [12:41:42]FM_GetShiftState done [12:41:42]opened in 1729557342 [12:41:42]opened+sec_in_day 1729643742 [12:41:42]quantity*price = 0 [12:41:42]sum+1 = 1 [12:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 128 22.10.2024 12:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118634 ФМ: 0000000002094219 ФД: 30895 ФПД: 81380714892702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30895&fm=81380714892702&tin=02508201610067®Number=0000000000186857&sum=0 [12:41:43]StoreToDocumentArchive [12:41:43]shift 116 fd 30895 [12:41:43]save to /storage/0116/doc_00030895 [12:41:43]save last doc name /storage/0116/doc_00030895 to /storage/kkm_last_doc_name [12:41:43]save OK [12:41:43]Clear old archive folders... [12:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:43]tlvbuf is 01F09EF0 [12:41:43]SAM_PROTO_ClearQueue [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 09 00 00 [12:41:43]Write to MH i2c: E2 08 00 30 93 80 09 00 00 00 00 00 00 35 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 30 93 00 90 00 37 [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]SAM_PROTO_ClearQueue done [12:41:43]KKMCreateOFDPacket [12:41:43]OFDProtocolAddRootSTLVToBuf [12:41:43]FM_MakeSignedData [12:41:43]FM_MakeSignedData [12:41:43]SAM_PROTO_SignData [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 0D 01 02 [12:41:43]Write to MH i2c: E2 08 00 31 93 80 0D 01 02 00 00 00 00 3D [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 31 93 00 90 00 38 [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]wFMCommunicate request_size=255 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 90 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 78 00 00 35 04 06 00 4A [12:41:43]Write to MH i2c: E2 02 01 32 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 90 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 78 00 00 35 04 06 00 4A 00 00 30 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 32 93 00 90 00 39 [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]wFMCommunicate request_size=10 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 0D 02 02 05 03 EC 9A 4D 9E [12:41:43]Write to MH i2c: E2 0D 00 33 93 80 0D 02 02 05 00 03 EC 9A 4D 9E 00 00 BE [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 33 93 00 90 00 3A [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 0D 03 02 [12:41:43]Write to MH i2c: E2 08 00 34 93 80 0D 03 02 00 00 00 00 42 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 0B 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 0B 00 34 93 00 39 3A CE F6 A6 DB 96 D5 90 00 66 [12:41:43]RAPDU: 39 3A CE F6 A6 DB 96 D5 90 00 [12:41:43]wFMCommunicate OK [12:41:43]SAM_PROTO_SignData done [12:41:43]FM_MakeSignedData done [12:41:43]CreateOFDProtocolMessage [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 11 00 00 [12:41:43]Write to MH i2c: E2 08 00 35 93 80 11 00 00 00 00 00 00 42 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 17 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 17 00 35 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [12:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:43]wFMCommunicate OK [12:41:43]CreateOFDProtocolMessage done [12:41:43]OFDSenderStorePacket 30895 [12:41:43]StoreOFDPacket docnum=30895 [12:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FB AD 07 01 2D EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 90 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 78 00 00 35 04 06 00 4A 03 EC 9A 4D 9E 39 3A CE F6 A6 DB 96 D5 [12:41:43]CheckFolder [12:41:43]dirname=/storage/ofd_packets [12:41:43]CheckFolder done [12:41:43]ProducePacketName [12:41:43]name=ofd_packets/00030895 [12:41:43]NVStorageSaveData ofd_packets/00030895 [12:41:43]File name is /storage/ofd_packets/00030895 [12:41:43]Write 301 bytes [12:41:43]NVStorageSaveData done [12:41:43]OFDSenderStorePacket done [12:41:43]KKMCreateOFDPacket done [12:41:43]NVStorageSaveData kkm_last_timestamp [12:41:43]File name is /storage/kkm_last_timestamp [12:41:43]Write 4 bytes [12:41:43]NVStorageSaveData done [12:41:43]ExternCall_PrintAddStr [12:41:43]wPrintStart [12:41:43]Write to MH i2c: 01 00 00 36 93 C9 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 07 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 07 00 36 93 00 00 00 00 00 FF 0F DE [12:41:43]RasterBufferAndPrint [12:41:43]line Счет N : (1)343315 [12:41:43]line ИНН: 02508201610067 [12:41:43]line Контрольно-Кассовый Чек [12:41:43]line ПРОДАЖА [12:41:43]line ТРК (МРК, ГНК) : 32 [12:41:43]line Товар: 2710124500 [12:41:43]line Аи-95-К-3 [12:41:43]line 15.000 * 0.00 [12:41:43]line = 0.00 [12:41:43]line НДС 12% НСП 1% [12:41:43]line > о реализуемом товаре [12:41:43]line ИТОГО: 0.00 [12:41:43]line НСП 1% : 0.00 [12:41:43]line НДС 12% : 0.00 [12:41:43]line Наличными: 0.00 [12:41:43]line Безнал.: 0.00 [12:41:43]line Место: АЗС № 78 "Партнер Нефть" [12:41:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:41:43]line СНО: Общий режим [12:41:43]line Чек 128 22.10.2024 12:41 [12:41:43]line Смена: 116 ФФД: 1.0 [12:41:43]line ЗНМ: 0300000137 [12:41:43]line РНМ: 0000000000186857 [12:41:43]line Версия ККМ: v1.0 [12:41:43]line Талоны: ТК ГПНА Online [12:41:43]line 30118634 [12:41:43]line ФМ: 0000000002094219 [12:41:43]line ФД: 30895 [12:41:43]line ФПД: 81380714892702 [12:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30895&fm=81380714892702&tin=02508201610067®Number=0000000000186857&sum=0 [12:41:43]OFD Sender: Processing packet 30895 [packets to send 10, broken 9] [12:41:43]ProducePacketName [12:41:43]name=ofd_packets/00030895 [12:41:44]OFD Sender: To server: pG, [12:41:44]CommunicateWithHost lk.salyk.kg:30040 [12:41:44]ConnectInit lk.salyk.kg [12:41:44]written 0, free lines is 4095 [12:41:44]Connected sock=10 [12:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FB AD 07 01 2D EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 90 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 78 00 00 35 04 06 00 4A 03 EC 9A 4D 9E 39 3A CE F6 A6 DB 96 D5 [12:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2F 6D 47 00 9D 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 32 30 39 34 32 31 39 10 04 04 00 AF 78 00 00 F4 03 04 00 0E 48 17 67 B6 04 01 00 00 4B A4 94 3D 6F 98 C2 B6 [12:41:44]CommunicateWithHost err = 0 [12:41:44]CheckOFDResponse [12:41:44]1017 (14) - 77093643461234 [12:41:44]1041 (16) - 0000000002094219 [12:41:44]1040 (4) - 30895 [12:41:44]1012 (4) - 22.10.2024 06:37 [12:41:44]1206 (1) - 0 [12:41:44]OFD Sender: Remove packet 30895 [12:41:44]ProducePacketName [12:41:44]name=ofd_packets/00030895 [12:41:44]NVStorageDeleteData [12:41:44]Write to MH i2c: 01 00 00 60 93 F3 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 07 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 07 00 60 93 00 00 00 00 00 04 0D 0B [12:41:44]RasterBufferAndPrint [12:41:44]line [12:41:44]line [12:41:44]line [12:41:44]line [12:41:44]line [12:41:44]written 0, free lines is 3342 [12:41:44]MH_Cut [12:41:44]Write to MH i2c: D1 01 00 67 93 01 CC [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: D1 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: D1 01 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: D1 01 00 67 93 00 CB [12:41:44]Write to MH i2c: 01 00 00 68 93 FB [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]OFD Sender: No OFD packet to send [12:41:45]*** Cut start [12:41:45]*** Partial cut [12:41:45]*** CUTSNS_PIN = 1 [12:41:45]*** CUTSNS_PIN = 0 [12:41:45]*** Brake cut motor [12:41:45]Read from MH i2c: 01 [12:41:45]MH_I2C_Read... [12:41:45]*** Stop cut motor [12:41:45]*** Cut end [12:41:45]Read from MH i2c: 01 07 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 68 93 00 00 00 00 00 FF 0F 10 [12:41:45]process_action close_receipt done [12:41:45]requested_data is exist [12:41:45]produce_requested_data [12:41:45]requested_item fm.sn is exist - process it [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 11 00 00 [12:41:45]Write to MH i2c: E2 08 00 69 93 80 11 00 00 00 00 00 00 76 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 69 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [12:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:45]wFMCommunicate OK [12:41:45]requested_item fd.num is exist - process it [12:41:45]SAM_PROTO_GetFieldsCounters [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 13 00 00 [12:41:45]Write to MH i2c: E2 08 00 6A 93 80 13 00 00 00 00 00 00 79 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 62 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 62 00 6A 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 78 00 00 0E 04 04 00 74 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 BA [12:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 78 00 00 0E 04 04 00 74 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 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_GetFieldsCounters done [12:41:45]requested_item shift.num is exist - process it [12:41:45]requested_item shift.opened is exist - process it [12:41:45]req_shift_opened [12:41:45]FM_GetShiftState [12:41:45]SAM_PROTO_GetShiftState [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 13 01 00 [12:41:45]Write to MH i2c: E2 08 00 6B 93 80 13 01 00 00 00 00 00 7B [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0E 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0E 00 6B 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 55 [12:41:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_GetShiftState done [12:41:45]FM_GetShiftState done [12:41:45]req_shift_opened done [12:41:45]requested_item shift.open_date is exist - process it [12:41:45]req_shift_open_date [12:41:45]req_shift_open_date done [12:41:45]produce_requested_data done [12:41:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30895,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:41:45]process_action_free close_receipt [12:41:45]json_value_free [12:41:45]json_value_free done [12:41:45]process_json_proto returns [12:41:45]Send response to host [12:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30895,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:41:45]free response buf [12:41:45]execute_script done [12:41:45]execute_script returns [12:41:45]free content buf [12:41:45]Sock 9.Close socket [12:41:45]Sock 9.Thread stoped [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]accept exits with 7 [12:42:44]New connection [12:42:44]New thread 3067489636 created [12:42:44]Thread 3067346276 joined [12:42:44]Waiting for new connection... [12:42:44] Sock 7.Parse request [12:42:44]Sock 7.Check first char [12:42:44]Sock 7.First char is OK [12:42:44]request: POST /json_proto HTTP/1.0 [12:42:44]Method: POST [12:42:44]URL: /json_proto [12:42:44]Method is POST - this is cgi request [12:42:44]url: /json_proto [12:42:44]query_string will be loaded in cgi processing [12:42:44]execute_cgi json_proto POST (null) [12:42:44]execute_cgi path=json_proto method=POST [12:42:44]POST find Content-Length [12:42:44]Host: 172.17.51.3:8080 [12:42:44]Content-Length: 677 [12:42:44]Content-Type: application/json [12:42:44] [12:42:44]POST finish read [12:42:44]Found Content-Length = 677 [12:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:44]execute_script... [12:42: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)343316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:44]POST & json_proto [12:42:44]process_json_proto [12:42:44]json parsed OK: [12:42:44]protocol is kg_v1.0 [12:42:44]action value=close_receipt [12:42:44]process_action close_receipt [12:42:44]cmd_close_receipt [12:42:44]MH_GetDate [12:42:44]Write to MH i2c: F0 00 00 6C 93 EE [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: F0 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: F0 09 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: F0 09 00 6C 93 00 CE 9D 17 67 04 C1 95 66 A0 [12:42:44]GetLastDocTimeStamp 1729600912 [12:42:44]current date 1729600974 [12:42:44]FM_GetShiftState [12:42:44]SAM_PROTO_GetShiftState [12:42:44]wFMCommunicate request_size=4 [12:42:44]MH_SAM_APDU [12:42:44]CAPDU: 80 13 01 00 [12:42:44]Write to MH i2c: E2 08 00 6D 93 80 13 01 00 00 00 00 00 7D [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:44]Read from MH i2c: E2 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 0E 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 0E 00 6D 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 57 [12:42:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:42:44]wFMCommunicate OK [12:42:44]SAM_PROTO_GetShiftState done [12:42:44]FM_GetShiftState done [12:42:44]opened in 1729557342 [12:42:44]opened+sec_in_day 1729643742 [12:42:44]quantity*price = 20003 [12:42:44]sum+1 = 20004 [12:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 129 22.10.2024 12:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30896 ФПД: 110088926161618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124254&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30896&fm=110088926161618&tin=02508201610067®Number=0000000000186857&sum=20000 [12:42:45]StoreToDocumentArchive [12:42:45]shift 116 fd 30896 [12:42:45]save to /storage/0116/doc_00030896 [12:42:45]save last doc name /storage/0116/doc_00030896 to /storage/kkm_last_doc_name [12:42:45]save OK [12:42:45]Clear old archive folders... [12:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:45]tlvbuf is 0201E2F0 [12:42:45]SAM_PROTO_ClearQueue [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 09 00 00 [12:42:45]Write to MH i2c: E2 08 00 7A 93 80 09 00 00 00 00 00 00 7F [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 7A 93 00 90 00 81 [12:42:45]RAPDU: 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_ClearQueue done [12:42:45]KKMCreateOFDPacket [12:42:45]OFDProtocolAddRootSTLVToBuf [12:42:45]FM_MakeSignedData [12:42:45]FM_MakeSignedData [12:42:45]SAM_PROTO_SignData [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 0D 01 02 [12:42:45]Write to MH i2c: E2 08 00 7B 93 80 0D 01 02 00 00 00 00 87 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 7B 93 00 90 00 82 [12:42:45]RAPDU: 90 00 [12:42:45]wFMCommunicate OK [12:42:45]wFMCommunicate request_size=255 [12:42:45]MH_SAM_APDU [12:42: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 78 00 00 35 04 06 00 64 [12:42:45]Write to MH i2c: E2 02 01 7C 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 78 00 00 35 04 06 00 64 00 00 44 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 7C 93 00 90 00 83 [12:42:45]RAPDU: 90 00 [12:42:45]wFMCommunicate OK [12:42:45]wFMCommunicate request_size=10 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 0D 02 02 05 20 13 56 6A D2 [12:42:45]Write to MH i2c: E2 0D 00 7D 93 80 0D 02 02 05 00 20 13 56 6A D2 00 00 59 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 03 00 7D 93 00 90 00 84 [12:42:45]RAPDU: 90 00 [12:42:45]wFMCommunicate OK [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 0D 03 02 [12:42:45]Write to MH i2c: E2 08 00 7E 93 80 0D 03 02 00 00 00 00 8C [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0B 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0B 00 7E 93 00 1C B6 21 F8 B9 4D 6A F5 90 00 DD [12:42:45]RAPDU: 1C B6 21 F8 B9 4D 6A F5 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_SignData done [12:42:45]FM_MakeSignedData done [12:42:45]CreateOFDProtocolMessage [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 11 00 00 [12:42:45]Write to MH i2c: E2 08 00 7F 93 80 11 00 00 00 00 00 00 8C [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 17 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 17 00 7F 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [12:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:42:46]wFMCommunicate OK [12:42:46]CreateOFDProtocolMessage done [12:42:46]OFDSenderStorePacket 30896 [12:42:46]StoreOFDPacket docnum=30896 [12:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1F A1 07 01 66 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 78 00 00 35 04 06 00 64 20 13 56 6A D2 1C B6 21 F8 B9 4D 6A F5 [12:42:46]CheckFolder [12:42:46]dirname=/storage/ofd_packets [12:42:46]CheckFolder done [12:42:46]ProducePacketName [12:42:46]name=ofd_packets/00030896 [12:42:46]NVStorageSaveData ofd_packets/00030896 [12:42:46]File name is /storage/ofd_packets/00030896 [12:42:46]Write 301 bytes [12:42:46]NVStorageSaveData done [12:42:46]OFDSenderStorePacket done [12:42:46]KKMCreateOFDPacket done [12:42:46]NVStorageSaveData kkm_last_timestamp [12:42:46]File name is /storage/kkm_last_timestamp [12:42:46]Write 4 bytes [12:42:46]NVStorageSaveData done [12:42:46]ExternCall_PrintAddStr [12:42:46]wPrintStart [12:42:46]Write to MH i2c: 01 00 00 80 93 13 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 07 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 07 00 80 93 00 00 00 00 00 FF 0F 28 [12:42:46]RasterBufferAndPrint [12:42:46]line Счет N : (1)343316 [12:42:46]line ИНН: 02508201610067 [12:42:46]line Контрольно-Кассовый Чек [12:42:46]line ПРОДАЖА [12:42:46]line ТРК (МРК, ГНК) : 53 [12:42:46]line Товар: 2710124130 [12:42:46]line Аи-92-К-2 [12:42:46]line 2.990 * 66.90 [12:42:46]line = 200.03 [12:42:46]line НДС 12% НСП 1% [12:42:46]line > о реализуемом товаре [12:42:46]line ОКРУГЛЕНИЕ: -0.03 [12:42:46]line ИТОГО: 200.00 [12:42:46]line Внесено: 200.00 [12:42:46]line СДАЧА: 0.00 [12:42:46]line НСП 1% : 1.77 [12:42:46]line НДС 12% : 21.24 [12:42:46]line Наличными: 200.00 [12:42:46]line Безнал.: 0.00 [12:42:46]line Место: АЗС № 78 "Партнер Нефть" [12:42:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:42:46]line СНО: Общий режим [12:42:46]line Чек 129 22.10.2024 12:42 [12:42:46]line Смена: 116 ФФД: 1.0 [12:42:46]line ЗНМ: 0300000137 [12:42:46]line РНМ: 0000000000186857 [12:42:46]line Версия ККМ: v1.0 [12:42:46]line ФМ: 0000000002094219 [12:42:46]line ФД: 30896 [12:42:46]line ФПД: 110088926161618 [12:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124254&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30896&fm=110088926161618&tin=02508201610067®Number=0000000000186857&sum=20000 [12:42:46]OFD Sender: Processing packet 30896 [packets to send 10, broken 9] [12:42:46]ProducePacketName [12:42:46]name=ofd_packets/00030896 [12:42:46]OFD Sender: To server: pG, [12:42:46]CommunicateWithHost lk.salyk.kg:30040 [12:42:46]ConnectInit lk.salyk.kg [12:42:46]written 0, free lines is 4095 [12:42:46]Connected sock=10 [12:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1F A1 07 01 66 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE 9D 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 78 00 00 35 04 06 00 64 20 13 56 6A D2 1C B6 21 F8 B9 4D 6A F5 [12:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 30 71 47 00 43 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 32 30 39 34 32 31 39 10 04 04 00 B0 78 00 00 F4 03 04 00 4C 48 17 67 B6 04 01 00 00 EC 70 2A 4D 73 9F C7 2A [12:42:46]CommunicateWithHost err = 0 [12:42:46]CheckOFDResponse [12:42:46]1017 (14) - 77093643461234 [12:42:46]1041 (16) - 0000000002094219 [12:42:46]1040 (4) - 30896 [12:42:46]1012 (4) - 22.10.2024 06:38 [12:42:46]1206 (1) - 0 [12:42:46]OFD Sender: Remove packet 30896 [12:42:46]ProducePacketName [12:42:46]name=ofd_packets/00030896 [12:42:46]NVStorageDeleteData [12:42:46]Write to MH i2c: 01 00 00 AB 93 3E [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 07 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: 01 07 00 AB 93 00 00 00 00 00 F7 0C 48 [12:42:46]RasterBufferAndPrint [12:42:46]line [12:42:46]line [12:42:46]line [12:42:46]line [12:42:46]line [12:42:46]written 0, free lines is 3328 [12:42:46]MH_Cut [12:42:46]Write to MH i2c: D1 01 00 B2 93 01 17 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: D1 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: D1 01 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: D1 01 00 B2 93 00 16 [12:42:46]Write to MH i2c: 01 00 00 B3 93 46 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:47]OFD Sender: No OFD packet to send [12:42:47]*** Cut start [12:42:47]*** Partial cut [12:42:47]*** CUTSNS_PIN = 1 [12:42:47]*** CUTSNS_PIN = 0 [12:42:47]*** Brake cut motor [12:42:48]Read from MH i2c: 01 [12:42:48]MH_I2C_Read... [12:42:48]*** Stop cut motor [12:42:48]*** Cut end [12:42:48]Read from MH i2c: 01 07 00 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: 01 07 00 B3 93 00 00 00 00 00 FF 0F 5B [12:42:48]process_action close_receipt done [12:42:48]requested_data is exist [12:42:48]produce_requested_data [12:42:48]requested_item fm.sn is exist - process it [12:42:48]wFMCommunicate request_size=4 [12:42:48]MH_SAM_APDU [12:42:48]CAPDU: 80 11 00 00 [12:42:48]Write to MH i2c: E2 08 00 B4 93 80 11 00 00 00 00 00 00 C1 [12:42:48]Write i2c OK [12:42:48]MH_I2C_Read... [12:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:48]Read from MH i2c: E2 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 17 00 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 17 00 B4 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [12:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:42:48]wFMCommunicate OK [12:42:48]requested_item fd.num is exist - process it [12:42:48]SAM_PROTO_GetFieldsCounters [12:42:48]wFMCommunicate request_size=4 [12:42:48]MH_SAM_APDU [12:42:48]CAPDU: 80 13 00 00 [12:42:48]Write to MH i2c: E2 08 00 B5 93 80 13 00 00 00 00 00 00 C4 [12:42:48]Write i2c OK [12:42:48]MH_I2C_Read... [12:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:48]Read from MH i2c: E2 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 62 00 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 62 00 B5 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 78 00 00 0E 04 04 00 74 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 09 [12:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 78 00 00 0E 04 04 00 74 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 [12:42:48]wFMCommunicate OK [12:42:48]SAM_PROTO_GetFieldsCounters done [12:42:48]requested_item shift.num is exist - process it [12:42:48]requested_item shift.opened is exist - process it [12:42:48]req_shift_opened [12:42:48]FM_GetShiftState [12:42:48]SAM_PROTO_GetShiftState [12:42:48]wFMCommunicate request_size=4 [12:42:48]MH_SAM_APDU [12:42:48]CAPDU: 80 13 01 00 [12:42:48]Write to MH i2c: E2 08 00 B6 93 80 13 01 00 00 00 00 00 C6 [12:42:48]Write i2c OK [12:42:48]MH_I2C_Read... [12:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:48]Read from MH i2c: E2 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 0E 00 [12:42:48]MH_I2C_Read... [12:42:48]Read from MH i2c: E2 0E 00 B6 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A0 [12:42:48]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:42:48]wFMCommunicate OK [12:42:48]SAM_PROTO_GetShiftState done [12:42:48]FM_GetShiftState done [12:42:48]req_shift_opened done [12:42:48]requested_item shift.open_date is exist - process it [12:42:48]req_shift_open_date [12:42:48]req_shift_open_date done [12:42:48]produce_requested_data done [12:42:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30896,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:42:48]process_action_free close_receipt [12:42:48]json_value_free [12:42:48]json_value_free done [12:42:48]process_json_proto returns [12:42:48]Send response to host [12:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30896,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:42:48]free response buf [12:42:48]execute_script done [12:42:48]execute_script returns [12:42:48]free content buf [12:42:48]Sock 7.Close socket [12:42:48]Sock 7.Thread stoped [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:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:53]accept exits with 9 [12:46:53]New connection [12:46:53]New thread 3067346276 created [12:46:53]Thread 3067489636 joined [12:46:53]Waiting for new connection... [12:46:53] Sock 9.Parse request [12:46:53]Sock 9.Check first char [12:46:53]Sock 9.First char is OK [12:46:53]request: POST /json_proto HTTP/1.0 [12:46:53]Method: POST [12:46:53]URL: /json_proto [12:46:53]Method is POST - this is cgi request [12:46:53]url: /json_proto [12:46:53]query_string will be loaded in cgi processing [12:46:53]execute_cgi json_proto POST (null) [12:46:53]execute_cgi path=json_proto method=POST [12:46:53]POST find Content-Length [12:46:53]Host: 172.17.51.3:8080 [12:46:53]Content-Length: 677 [12:46:53]Content-Type: application/json [12:46:53] [12:46:53]POST finish read [12:46:53]Found Content-Length = 677 [12:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:53]execute_script... [12:46: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)343317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:53]POST & json_proto [12:46:53]process_json_proto [12:46:53]json parsed OK: [12:46:53]protocol is kg_v1.0 [12:46:53]action value=close_receipt [12:46:53]process_action close_receipt [12:46:53]cmd_close_receipt [12:46:53]MH_GetDate [12:46:53]Write to MH i2c: F0 00 00 B7 93 39 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 09 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 09 00 B7 93 00 C7 9E 17 67 04 C1 95 66 E5 [12:46:53]GetLastDocTimeStamp 1729600974 [12:46:53]current date 1729601223 [12:46:53]FM_GetShiftState [12:46:53]SAM_PROTO_GetShiftState [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 01 00 [12:46:53]Write to MH i2c: E2 08 00 B8 93 80 13 01 00 00 00 00 00 C8 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 B8 93 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A2 [12:46:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetShiftState done [12:46:53]FM_GetShiftState done [12:46:53]opened in 1729557342 [12:46:53]opened+sec_in_day 1729643742 [12:46:53]quantity*price = 50041 [12:46:53]sum+1 = 50042 [12:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 130 22.10.2024 12:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30897 ФПД: 148982544991698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124703&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30897&fm=148982544991698&tin=02508201610067®Number=0000000000186857&sum=50000 [12:46:54]StoreToDocumentArchive [12:46:54]shift 116 fd 30897 [12:46:54]save to /storage/0116/doc_00030897 [12:46:54]save last doc name /storage/0116/doc_00030897 to /storage/kkm_last_doc_name [12:46:54]save OK [12:46:54]Clear old archive folders... [12:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:54]tlvbuf is 01E0E590 [12:46:54]SAM_PROTO_ClearQueue [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 09 00 00 [12:46:54]Write to MH i2c: E2 08 00 C5 93 80 09 00 00 00 00 00 00 CA [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 C5 93 00 90 00 CC [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]SAM_PROTO_ClearQueue done [12:46:54]KKMCreateOFDPacket [12:46:54]OFDProtocolAddRootSTLVToBuf [12:46:54]FM_MakeSignedData [12:46:54]FM_MakeSignedData [12:46:54]SAM_PROTO_SignData [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 01 02 [12:46:54]Write to MH i2c: E2 08 00 C6 93 80 0D 01 02 00 00 00 00 D2 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 C6 93 00 90 00 CD [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=255 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C7 9E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 78 00 00 35 04 06 00 87 [12:46:54]Write to MH i2c: E2 02 01 C7 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C7 9E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 78 00 00 35 04 06 00 87 00 00 EC [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 C7 93 00 90 00 CE [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=10 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 02 02 05 7F B3 AC 05 D2 [12:46:54]Write to MH i2c: E2 0D 00 C8 93 80 0D 02 02 05 00 7F B3 AC 05 D2 00 00 94 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 C8 93 00 90 00 CF [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 03 02 [12:46:54]Write to MH i2c: E2 08 00 C9 93 80 0D 03 02 00 00 00 00 D7 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 0B 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 0B 00 C9 93 00 4D 05 13 11 8F 5A 96 F4 90 00 C1 [12:46:54]RAPDU: 4D 05 13 11 8F 5A 96 F4 90 00 [12:46:54]wFMCommunicate OK [12:46:54]SAM_PROTO_SignData done [12:46:54]FM_MakeSignedData done [12:46:54]CreateOFDProtocolMessage [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 11 00 00 [12:46:54]Write to MH i2c: E2 08 00 CA 93 80 11 00 00 00 00 00 00 D7 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 CA 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [12:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:46:54]wFMCommunicate OK [12:46:54]CreateOFDProtocolMessage done [12:46:54]OFDSenderStorePacket 30897 [12:46:54]StoreOFDPacket docnum=30897 [12:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 E7 07 01 19 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C7 9E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 78 00 00 35 04 06 00 87 7F B3 AC 05 D2 4D 05 13 11 8F 5A 96 F4 [12:46:54]CheckFolder [12:46:54]dirname=/storage/ofd_packets [12:46:54]CheckFolder done [12:46:54]ProducePacketName [12:46:54]name=ofd_packets/00030897 [12:46:54]NVStorageSaveData ofd_packets/00030897 [12:46:54]File name is /storage/ofd_packets/00030897 [12:46:54]Write 301 bytes [12:46:54]NVStorageSaveData done [12:46:54]OFDSenderStorePacket done [12:46:54]KKMCreateOFDPacket done [12:46:54]NVStorageSaveData kkm_last_timestamp [12:46:54]File name is /storage/kkm_last_timestamp [12:46:54]Write 4 bytes [12:46:54]NVStorageSaveData done [12:46:54]ExternCall_PrintAddStr [12:46:54]wPrintStart [12:46:54]Write to MH i2c: 01 00 00 CB 93 5E [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 CB 93 00 00 00 00 00 FF 0F 73 [12:46:54]RasterBufferAndPrint [12:46:54]line Счет N : (1)343317 [12:46:54]line ИНН: 02508201610067 [12:46:54]line Контрольно-Кассовый Чек [12:46:54]line ПРОДАЖА [12:46:54]line ТРК (МРК, ГНК) : 63 [12:46:54]line Товар: 2710124130 [12:46:54]line Аи-92-К-2 [12:46:54]line 7.480 * 66.90 [12:46:54]line = 500.41 [12:46:54]line НДС 12% НСП 1% [12:46:54]line > о реализуемом товаре [12:46:54]line ОКРУГЛЕНИЕ: -0.41 [12:46:54]line ИТОГО: 500.00 [12:46:54]line Внесено: 500.00 [12:46:54]line СДАЧА: 0.00 [12:46:54]line НСП 1% : 4.43 [12:46:54]line НДС 12% : 53.14 [12:46:54]line Наличными: 500.00 [12:46:54]line Безнал.: 0.00 [12:46:54]line Место: АЗС № 78 "Партнер Нефть" [12:46:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:46:54]line СНО: Общий режим [12:46:54]line Чек 130 22.10.2024 12:47 [12:46:54]line Смена: 116 ФФД: 1.0 [12:46:54]line ЗНМ: 0300000137 [12:46:54]line РНМ: 0000000000186857 [12:46:54]line Версия ККМ: v1.0 [12:46:54]line ФМ: 0000000002094219 [12:46:54]line ФД: 30897 [12:46:54]line ФПД: 148982544991698 [12:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124703&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30897&fm=148982544991698&tin=02508201610067®Number=0000000000186857&sum=50000 [12:46:55]OFD Sender: Processing packet 30897 [packets to send 10, broken 9] [12:46:55]ProducePacketName [12:46:55]name=ofd_packets/00030897 [12:46:55]OFD Sender: To server: pG, [12:46:55]CommunicateWithHost lk.salyk.kg:30040 [12:46:55]ConnectInit lk.salyk.kg [12:46:55]written 0, free lines is 4095 [12:46:55]Connected sock=10 [12:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 E7 07 01 19 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C7 9E 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 78 00 00 35 04 06 00 87 7F B3 AC 05 D2 4D 05 13 11 8F 5A 96 F4 [12:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 78 47 00 1C 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 78 00 00 F4 03 04 00 45 49 17 67 B6 04 01 00 00 A1 8E 85 3D DF BA E2 D0 [12:46:55]CommunicateWithHost err = 0 [12:46:55]CheckOFDResponse [12:46:55]1017 (14) - 77093643461234 [12:46:55]1041 (16) - 0000000002094219 [12:46:55]1040 (4) - 30897 [12:46:55]1012 (4) - 22.10.2024 06:42 [12:46:55]1206 (1) - 0 [12:46:55]OFD Sender: Remove packet 30897 [12:46:55]ProducePacketName [12:46:55]name=ofd_packets/00030897 [12:46:55]NVStorageDeleteData [12:46:55]Write to MH i2c: 01 00 00 F6 93 89 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 F6 93 00 00 00 00 00 F3 0C 8F [12:46:55]RasterBufferAndPrint [12:46:55]line [12:46:55]line [12:46:55]line [12:46:55]line [12:46:55]line [12:46:55]written 0, free lines is 3326 [12:46:55]MH_Cut [12:46:55]Write to MH i2c: D1 01 00 FD 93 01 62 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: D1 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: D1 01 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: D1 01 00 FD 93 00 61 [12:46:55]Write to MH i2c: 01 00 00 FE 93 91 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:56]OFD Sender: No OFD packet to send [12:46:56]*** Cut start [12:46:56]*** Partial cut [12:46:56]*** CUTSNS_PIN = 1 [12:46:56]*** CUTSNS_PIN = 0 [12:46:56]*** Brake cut motor [12:46:56]Read from MH i2c: 01 [12:46:56]MH_I2C_Read... [12:46:56]*** Stop cut motor [12:46:56]*** Cut end [12:46:56]Read from MH i2c: 01 07 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: 01 07 00 FE 93 00 00 00 00 00 FF 0F A6 [12:46:56]process_action close_receipt done [12:46:56]requested_data is exist [12:46:56]produce_requested_data [12:46:56]requested_item fm.sn is exist - process it [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 11 00 00 [12:46:56]Write to MH i2c: E2 08 00 FF 93 80 11 00 00 00 00 00 00 0C [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 17 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 17 00 FF 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [12:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:46:57]wFMCommunicate OK [12:46:57]requested_item fd.num is exist - process it [12:46:57]SAM_PROTO_GetFieldsCounters [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 00 00 [12:46:57]Write to MH i2c: E2 08 00 00 94 80 13 00 00 00 00 00 00 10 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 62 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 62 00 00 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 78 00 00 0E 04 04 00 74 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 59 [12:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 78 00 00 0E 04 04 00 74 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 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetFieldsCounters done [12:46:57]requested_item shift.num is exist - process it [12:46:57]requested_item shift.opened is exist - process it [12:46:57]req_shift_opened [12:46:57]FM_GetShiftState [12:46:57]SAM_PROTO_GetShiftState [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 01 00 [12:46:57]Write to MH i2c: E2 08 00 01 94 80 13 01 00 00 00 00 00 12 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 01 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EC [12:46:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetShiftState done [12:46:57]FM_GetShiftState done [12:46:57]req_shift_opened done [12:46:57]requested_item shift.open_date is exist - process it [12:46:57]req_shift_open_date [12:46:57]req_shift_open_date done [12:46:57]produce_requested_data done [12:46:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30897,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:46:57]process_action_free close_receipt [12:46:57]json_value_free [12:46:57]json_value_free done [12:46:57]process_json_proto returns [12:46:57]Send response to host [12:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30897,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:46:57]free response buf [12:46:57]execute_script done [12:46:57]execute_script returns [12:46:57]free content buf [12:46:57]Sock 9.Close socket [12:46:57]Sock 9.Thread stoped [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:50:57]accept exits with 7 [12:50:57]New connection [12:50:57]New thread 3067489636 created [12:50:57]Thread 3067346276 joined [12:50:57]Waiting for new connection... [12:50:57] Sock 7.Parse request [12:50:57]Sock 7.Check first char [12:50:57]Sock 7.First char is OK [12:50:57]request: POST /json_proto HTTP/1.0 [12:50:57]Method: POST [12:50:57]URL: /json_proto [12:50:57]Method is POST - this is cgi request [12:50:57]url: /json_proto [12:50:57]query_string will be loaded in cgi processing [12:50:57]execute_cgi json_proto POST (null) [12:50:57]execute_cgi path=json_proto method=POST [12:50:57]POST find Content-Length [12:50:57]Host: 172.17.51.3:8080 [12:50:57]Content-Length: 840 [12:50:57]Content-Type: application/json [12:50:57] [12:50:57]POST finish read [12:50:57]Found Content-Length = 840 [12:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:57]execute_script... [12:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:57]POST & json_proto [12:50:57]process_json_proto [12:50:57]json parsed OK: [12:50:57]protocol is kg_v1.0 [12:50:57]action value=close_receipt [12:50:57]process_action close_receipt [12:50:57]cmd_close_receipt [12:50:57]MH_GetDate [12:50:57]Write to MH i2c: F0 00 00 02 94 85 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: F0 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: F0 09 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: F0 09 00 02 94 00 BB 9F 17 67 04 C1 95 66 26 [12:50:57]GetLastDocTimeStamp 1729601223 [12:50:57]current date 1729601467 [12:50:57]FM_GetShiftState [12:50:57]SAM_PROTO_GetShiftState [12:50:57]wFMCommunicate request_size=4 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 13 01 00 [12:50:57]Write to MH i2c: E2 08 00 03 94 80 13 01 00 00 00 00 00 14 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 0E 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 0E 00 03 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EE [12:50:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:50:57]wFMCommunicate OK [12:50:57]SAM_PROTO_GetShiftState done [12:50:57]FM_GetShiftState done [12:50:57]opened in 1729557342 [12:50:57]opened+sec_in_day 1729643742 [12:50:57]quantity*price = 400050 [12:50:57]sum+1 = 400051 [12:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 131 22.10.2024 12:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30898 ФПД: 235096667136043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125107&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30898&fm=235096667136043&tin=02508201610067®Number=0000000000186857&sum=400050 [12:50:58]StoreToDocumentArchive [12:50:58]shift 116 fd 30898 [12:50:58]save to /storage/0116/doc_00030898 [12:50:58]save last doc name /storage/0116/doc_00030898 to /storage/kkm_last_doc_name [12:50:58]save OK [12:50:58]Clear old archive folders... [12:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:58]tlvbuf is 01E0E7A0 [12:50:58]SAM_PROTO_ClearQueue [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 09 00 00 [12:50:58]Write to MH i2c: E2 08 00 10 94 80 09 00 00 00 00 00 00 16 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 10 94 00 90 00 18 [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]SAM_PROTO_ClearQueue done [12:50:58]KKMCreateOFDPacket [12:50:58]OFDProtocolAddRootSTLVToBuf [12:50:58]FM_MakeSignedData [12:50:58]FM_MakeSignedData [12:50:58]SAM_PROTO_SignData [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 01 02 [12:50:58]Write to MH i2c: E2 08 00 11 94 80 0D 01 02 00 00 00 00 1E [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 11 94 00 90 00 19 [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=255 [12:50:58]MH_SAM_APDU [12:50:58]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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 BB 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 78 00 00 35 04 06 00 D5 D1 B5 55 [12:50:58]Write to MH i2c: E2 02 01 12 94 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 BB 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 78 00 00 35 04 06 00 D5 D1 B5 55 00 00 D7 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 12 94 00 90 00 1A [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=7 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 02 02 02 20 2B [12:50:58]Write to MH i2c: E2 0A 00 13 94 80 0D 02 02 02 00 20 2B 00 00 70 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 13 94 00 90 00 1B [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 03 02 [12:50:58]Write to MH i2c: E2 08 00 14 94 80 0D 03 02 00 00 00 00 23 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 0B 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 0B 00 14 94 00 8D 62 FB 41 A3 18 D1 C1 90 00 9C [12:50:58]RAPDU: 8D 62 FB 41 A3 18 D1 C1 90 00 [12:50:58]wFMCommunicate OK [12:50:58]SAM_PROTO_SignData done [12:50:58]FM_MakeSignedData done [12:50:58]CreateOFDProtocolMessage [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 11 00 00 [12:50:58]Write to MH i2c: E2 08 00 15 94 80 11 00 00 00 00 00 00 23 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 17 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 17 00 15 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [12:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:50:58]wFMCommunicate OK [12:50:58]CreateOFDProtocolMessage done [12:50:58]OFDSenderStorePacket 30898 [12:50:58]StoreOFDPacket docnum=30898 [12:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E4 33 04 01 81 16 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 BB 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 78 00 00 35 04 06 00 D5 D1 B5 55 20 2B 8D 62 FB 41 A3 18 D1 C1 [12:50:58]CheckFolder [12:50:58]dirname=/storage/ofd_packets [12:50:58]CheckFolder done [12:50:58]ProducePacketName [12:50:58]name=ofd_packets/00030898 [12:50:58]NVStorageSaveData ofd_packets/00030898 [12:50:58]File name is /storage/ofd_packets/00030898 [12:50:58]Write 298 bytes [12:50:58]NVStorageSaveData done [12:50:58]OFDSenderStorePacket done [12:50:58]KKMCreateOFDPacket done [12:50:58]NVStorageSaveData kkm_last_timestamp [12:50:58]File name is /storage/kkm_last_timestamp [12:50:58]Write 4 bytes [12:50:58]NVStorageSaveData done [12:50:58]ExternCall_PrintAddStr [12:50:58]wPrintStart [12:50:58]Write to MH i2c: 01 00 00 16 94 AA [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 07 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 07 00 16 94 00 00 00 00 00 FF 0F BF [12:50:58]RasterBufferAndPrint [12:50:58]line Счет N : (1)343318 [12:50:58]line ИНН: 02508201610067 [12:50:58]line Контрольно-Кассовый Чек [12:50:58]line ПРОДАЖА [12:50:58]line ТРК (МРК, ГНК) : 54 [12:50:58]line Товар: 2710194210 [12:50:58]line ДТ-К-2 [12:50:58]line 52.500 * 76.20 [12:50:58]line = 4000.50 [12:50:58]line НДС 12% НСП 1% [12:50:58]line > о реализуемом товаре [12:50:58]line ИТОГО: 4000.50 [12:50:58]line НСП 1% : 35.40 [12:50:58]line НДС 12% : 424.83 [12:50:58]line Наличными: 0.00 [12:50:58]line Безнал.: 4000.50 [12:50:58]line Место: АЗС № 78 "Партнер Нефть" [12:50:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:50:58]line СНО: Общий режим [12:50:58]line Чек 131 22.10.2024 12:51 [12:50:58]line Смена: 116 ФФД: 1.0 [12:50:58]line ЗНМ: 0300000137 [12:50:58]line РНМ: 0000000000186857 [12:50:58]line Версия ККМ: v1.0 [12:50:58]line Платежная система: АКБ Кыргызстан [12:50:58]line ФМ: 0000000002094219 [12:50:58]line ФД: 30898 [12:50:58]line ФПД: 235096667136043 [12:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125107&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30898&fm=235096667136043&tin=02508201610067®Number=0000000000186857&sum=400050 [12:50:59]OFD Sender: Processing packet 30898 [packets to send 10, broken 9] [12:50:59]ProducePacketName [12:50:59]name=ofd_packets/00030898 [12:50:59]OFD Sender: To server: pG, [12:50:59]CommunicateWithHost lk.salyk.kg:30040 [12:50:59]ConnectInit lk.salyk.kg [12:50:59]written 0, free lines is 4095 [12:50:59]Connected sock=10 [12:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E4 33 04 01 81 16 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 BB 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 78 00 00 35 04 06 00 D5 D1 B5 55 20 2B 8D 62 FB 41 A3 18 D1 C1 [12:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F7 EC 47 00 3A 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 78 00 00 F4 03 04 00 39 4A 17 67 B6 04 01 00 00 AB E7 0A 81 15 9E 44 19 [12:50:59]CommunicateWithHost err = 0 [12:50:59]CheckOFDResponse [12:50:59]1017 (14) - 77093643461234 [12:50:59]1041 (16) - 0000000002094219 [12:50:59]1040 (4) - 30898 [12:50:59]1012 (4) - 22.10.2024 06:46 [12:50:59]1206 (1) - 0 [12:50:59]OFD Sender: Remove packet 30898 [12:50:59]ProducePacketName [12:50:59]name=ofd_packets/00030898 [12:50:59]NVStorageDeleteData [12:50:59]Write to MH i2c: 01 00 00 40 94 D4 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 40 94 00 00 00 00 00 28 0D 10 [12:50:59]RasterBufferAndPrint [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]written 0, free lines is 3377 [12:50:59]MH_Cut [12:50:59]Write to MH i2c: D1 01 00 47 94 01 AD [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 01 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 01 00 47 94 00 AC [12:50:59]Write to MH i2c: 01 00 00 48 94 DC [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:51:00]OFD Sender: No OFD packet to send [12:51:00]*** Cut start [12:51:00]*** Partial cut [12:51:00]*** CUTSNS_PIN = 1 [12:51:00]*** CUTSNS_PIN = 0 [12:51:00]*** Brake cut motor [12:51:00]Read from MH i2c: 01 [12:51:00]MH_I2C_Read... [12:51:00]*** Stop cut motor [12:51:00]*** Cut end [12:51:00]Read from MH i2c: 01 07 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: 01 07 00 48 94 00 00 00 00 00 FF 0F F1 [12:51:00]process_action close_receipt done [12:51:00]requested_data is exist [12:51:00]produce_requested_data [12:51:00]requested_item fm.sn is exist - process it [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 11 00 00 [12:51:00]Write to MH i2c: E2 08 00 49 94 80 11 00 00 00 00 00 00 57 [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:01]Read from MH i2c: E2 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 17 00 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 17 00 49 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [12:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:01]wFMCommunicate OK [12:51:01]requested_item fd.num is exist - process it [12:51:01]SAM_PROTO_GetFieldsCounters [12:51:01]wFMCommunicate request_size=4 [12:51:01]MH_SAM_APDU [12:51:01]CAPDU: 80 13 00 00 [12:51:01]Write to MH i2c: E2 08 00 4A 94 80 13 00 00 00 00 00 00 5A [12:51:01]Write i2c OK [12:51:01]MH_I2C_Read... [12:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:01]Read from MH i2c: E2 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 62 00 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 62 00 4A 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 78 00 00 0E 04 04 00 74 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 A7 [12:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 78 00 00 0E 04 04 00 74 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 [12:51:01]wFMCommunicate OK [12:51:01]SAM_PROTO_GetFieldsCounters done [12:51:01]requested_item shift.num is exist - process it [12:51:01]requested_item shift.opened is exist - process it [12:51:01]req_shift_opened [12:51:01]FM_GetShiftState [12:51:01]SAM_PROTO_GetShiftState [12:51:01]wFMCommunicate request_size=4 [12:51:01]MH_SAM_APDU [12:51:01]CAPDU: 80 13 01 00 [12:51:01]Write to MH i2c: E2 08 00 4B 94 80 13 01 00 00 00 00 00 5C [12:51:01]Write i2c OK [12:51:01]MH_I2C_Read... [12:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:01]Read from MH i2c: E2 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 0E 00 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: E2 0E 00 4B 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 36 [12:51:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:51:01]wFMCommunicate OK [12:51:01]SAM_PROTO_GetShiftState done [12:51:01]FM_GetShiftState done [12:51:01]req_shift_opened done [12:51:01]requested_item shift.open_date is exist - process it [12:51:01]req_shift_open_date [12:51:01]req_shift_open_date done [12:51:01]produce_requested_data done [12:51:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30898,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:51:01]process_action_free close_receipt [12:51:01]json_value_free [12:51:01]json_value_free done [12:51:01]process_json_proto returns [12:51:01]Send response to host [12:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30898,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:51:01]free response buf [12:51:01]execute_script done [12:51:01]execute_script returns [12:51:01]free content buf [12:51:01]Sock 7.Close socket [12:51:01]Sock 7.Thread stoped [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:22]accept exits with 9 [12:51:22]New connection [12:51:22]New thread 3067346276 created [12:51:22]Thread 3067489636 joined [12:51:22]Waiting for new connection... [12:51:22] Sock 9.Parse request [12:51:22]Sock 9.Check first char [12:51:22]Sock 9.First char is OK [12:51:22]request: POST /json_proto HTTP/1.0 [12:51:22]Method: POST [12:51:22]URL: /json_proto [12:51:22]Method is POST - this is cgi request [12:51:22]url: /json_proto [12:51:22]query_string will be loaded in cgi processing [12:51:22]execute_cgi json_proto POST (null) [12:51:22]execute_cgi path=json_proto method=POST [12:51:22]POST find Content-Length [12:51:22]Host: 172.17.51.3:8080 [12:51:22]Content-Length: 684 [12:51:22]Content-Type: application/json [12:51:22] [12:51:22]POST finish read [12:51:22]Found Content-Length = 684 [12:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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:51:22]execute_script... [12:51: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)343319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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:51:22]POST & json_proto [12:51:22]process_json_proto [12:51:22]json parsed OK: [12:51:22]protocol is kg_v1.0 [12:51:22]action value=close_receipt [12:51:22]process_action close_receipt [12:51:22]cmd_close_receipt [12:51:22]MH_GetDate [12:51:22]Write to MH i2c: F0 00 00 4C 94 CF [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 4C 94 00 D4 9F 17 67 04 C1 95 66 89 [12:51:22]GetLastDocTimeStamp 1729601467 [12:51:22]current date 1729601492 [12:51:22]FM_GetShiftState [12:51:22]SAM_PROTO_GetShiftState [12:51:22]wFMCommunicate request_size=4 [12:51:22]MH_SAM_APDU [12:51:22]CAPDU: 80 13 01 00 [12:51:22]Write to MH i2c: E2 08 00 4D 94 80 13 01 00 00 00 00 00 5E [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:22]Read from MH i2c: E2 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 4D 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 38 [12:51:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:51:22]wFMCommunicate OK [12:51:22]SAM_PROTO_GetShiftState done [12:51:22]FM_GetShiftState done [12:51:22]opened in 1729557342 [12:51:22]opened+sec_in_day 1729643742 [12:51:22]quantity*price = 80056 [12:51:22]sum+1 = 80057 [12:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 132 22.10.2024 12:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30899 ФПД: 42712521755591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30899&fm=42712521755591&tin=02508201610067®Number=0000000000186857&sum=80000 [12:51:23]StoreToDocumentArchive [12:51:23]shift 116 fd 30899 [12:51:23]save to /storage/0116/doc_00030899 [12:51:23]save last doc name /storage/0116/doc_00030899 to /storage/kkm_last_doc_name [12:51:23]save OK [12:51:23]Clear old archive folders... [12:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:51:23]tlvbuf is 01DDD540 [12:51:23]SAM_PROTO_ClearQueue [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 09 00 00 [12:51:23]Write to MH i2c: E2 08 00 5A 94 80 09 00 00 00 00 00 00 60 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 5A 94 00 90 00 62 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_ClearQueue done [12:51:23]KKMCreateOFDPacket [12:51:23]OFDProtocolAddRootSTLVToBuf [12:51:23]FM_MakeSignedData [12:51:23]FM_MakeSignedData [12:51:23]SAM_PROTO_SignData [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 01 02 [12:51:23]Write to MH i2c: E2 08 00 5B 94 80 0D 01 02 00 00 00 00 68 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 5B 94 00 90 00 63 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=255 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 84 00 00 00 F4 03 04 00 D4 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 78 00 [12:51:23]Write to MH i2c: E2 02 01 5C 94 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 84 00 00 00 F4 03 04 00 D4 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 78 00 00 00 63 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 5C 94 00 90 00 64 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=16 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 26 D8 C8 AF CB C7 [12:51:23]Write to MH i2c: E2 13 00 5D 94 80 0D 02 02 0B 00 00 35 04 06 00 26 D8 C8 AF CB C7 00 00 C7 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 5D 94 00 90 00 65 [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 03 02 [12:51:23]Write to MH i2c: E2 08 00 5E 94 80 0D 03 02 00 00 00 00 6D [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 0B 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 0B 00 5E 94 00 6D 0B 02 62 8D 97 C5 FA 90 00 2D [12:51:24]RAPDU: 6D 0B 02 62 8D 97 C5 FA 90 00 [12:51:24]wFMCommunicate OK [12:51:24]SAM_PROTO_SignData done [12:51:24]FM_MakeSignedData done [12:51:24]CreateOFDProtocolMessage [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 11 00 00 [12:51:24]Write to MH i2c: E2 08 00 5F 94 80 11 00 00 00 00 00 00 6D [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 17 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 17 00 5F 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [12:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:24]wFMCommunicate OK [12:51:24]CreateOFDProtocolMessage done [12:51:24]OFDSenderStorePacket 30899 [12:51:24]StoreOFDPacket docnum=30899 [12:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A6 16 0D 01 BF CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 84 00 00 00 F4 03 04 00 D4 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 78 00 00 35 04 06 00 26 D8 C8 AF CB C7 6D 0B 02 62 8D 97 C5 FA [12:51:24]CheckFolder [12:51:24]dirname=/storage/ofd_packets [12:51:24]CheckFolder done [12:51:24]ProducePacketName [12:51:24]name=ofd_packets/00030899 [12:51:24]NVStorageSaveData ofd_packets/00030899 [12:51:24]File name is /storage/ofd_packets/00030899 [12:51:24]Write 307 bytes [12:51:24]NVStorageSaveData done [12:51:24]OFDSenderStorePacket done [12:51:24]KKMCreateOFDPacket done [12:51:24]NVStorageSaveData kkm_last_timestamp [12:51:24]File name is /storage/kkm_last_timestamp [12:51:24]Write 4 bytes [12:51:24]NVStorageSaveData done [12:51:24]ExternCall_PrintAddStr [12:51:24]wPrintStart [12:51:24]Write to MH i2c: 01 00 00 60 94 F4 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 60 94 00 00 00 00 00 FF 0F 09 [12:51:24]RasterBufferAndPrint [12:51:24]line Счет N : (1)343319 [12:51:24]line ИНН: 02508201610067 [12:51:24]line Контрольно-Кассовый Чек [12:51:24]line ПРОДАЖА [12:51:24]line ТРК (МРК, ГНК) : 61 [12:51:24]line Товар: 2710194210 [12:51:24]line D-ENERGY Дт-К-2 [12:51:24]line 10.370 * 77.20 [12:51:24]line = 800.56 [12:51:24]line НДС 12% НСП 1% [12:51:24]line > о реализуемом товаре [12:51:24]line ОКРУГЛЕНИЕ: -0.56 [12:51:24]line ИТОГО: 800.00 [12:51:24]line Внесено: 800.00 [12:51:24]line СДАЧА: 0.00 [12:51:24]line НСП 1% : 7.08 [12:51:24]line НДС 12% : 85.01 [12:51:24]line Наличными: 800.00 [12:51:24]line Безнал.: 0.00 [12:51:24]line Место: АЗС № 78 "Партнер Нефть" [12:51:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:51:24]line СНО: Общий режим [12:51:24]line Чек 132 22.10.2024 12:51 [12:51:24]line Смена: 116 ФФД: 1.0 [12:51:24]line ЗНМ: 0300000137 [12:51:24]line РНМ: 0000000000186857 [12:51:24]line Версия ККМ: v1.0 [12:51:24]line ФМ: 0000000002094219 [12:51:24]line ФД: 30899 [12:51:24]line ФПД: 42712521755591 [12:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30899&fm=42712521755591&tin=02508201610067®Number=0000000000186857&sum=80000 [12:51:24]OFD Sender: Processing packet 30899 [packets to send 10, broken 9] [12:51:24]ProducePacketName [12:51:24]name=ofd_packets/00030899 [12:51:24]OFD Sender: To server: pG, [12:51:24]CommunicateWithHost lk.salyk.kg:30040 [12:51:24]ConnectInit lk.salyk.kg [12:51:24]written 0, free lines is 4095 [12:51:24]Connected sock=10 [12:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A6 16 0D 01 BF CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 84 00 00 00 F4 03 04 00 D4 9F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 78 00 00 35 04 06 00 26 D8 C8 AF CB C7 6D 0B 02 62 8D 97 C5 FA [12:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 25 31 47 00 8E CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 78 00 00 F4 03 04 00 52 4A 17 67 B6 04 01 00 00 6A 05 23 33 DF E3 1B 6C [12:51:24]CommunicateWithHost err = 0 [12:51:24]CheckOFDResponse [12:51:24]1017 (14) - 77093643461234 [12:51:24]1041 (16) - 0000000002094219 [12:51:24]1040 (4) - 30899 [12:51:24]1012 (4) - 22.10.2024 06:46 [12:51:24]1206 (1) - 0 [12:51:24]OFD Sender: Remove packet 30899 [12:51:24]ProducePacketName [12:51:24]name=ofd_packets/00030899 [12:51:24]NVStorageDeleteData [12:51:24]Write to MH i2c: 01 00 00 8B 94 1F [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 8B 94 00 00 00 00 00 F5 0C 27 [12:51:24]RasterBufferAndPrint [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]written 0, free lines is 3327 [12:51:24]MH_Cut [12:51:24]Write to MH i2c: D1 01 00 92 94 01 F8 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 92 94 00 F7 [12:51:24]Write to MH i2c: 01 00 00 93 94 27 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:25]OFD Sender: No OFD packet to send [12:51:25]*** Cut start [12:51:25]*** Partial cut [12:51:25]*** CUTSNS_PIN = 1 [12:51:25]*** CUTSNS_PIN = 0 [12:51:25]*** Brake cut motor [12:51:26]Read from MH i2c: 01 [12:51:26]MH_I2C_Read... [12:51:26]*** Stop cut motor [12:51:26]*** Cut end [12:51:26]Read from MH i2c: 01 07 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: 01 07 00 93 94 00 00 00 00 00 FF 0F 3C [12:51:26]process_action close_receipt done [12:51:26]requested_data is exist [12:51:26]produce_requested_data [12:51:26]requested_item fm.sn is exist - process it [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 11 00 00 [12:51:26]Write to MH i2c: E2 08 00 94 94 80 11 00 00 00 00 00 00 A2 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 17 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 17 00 94 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [12:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:26]wFMCommunicate OK [12:51:26]requested_item fd.num is exist - process it [12:51:26]SAM_PROTO_GetFieldsCounters [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 13 00 00 [12:51:26]Write to MH i2c: E2 08 00 95 94 80 13 00 00 00 00 00 00 A5 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 62 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 62 00 95 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 78 00 00 0E 04 04 00 74 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 F6 [12:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 78 00 00 0E 04 04 00 74 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 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_GetFieldsCounters done [12:51:26]requested_item shift.num is exist - process it [12:51:26]requested_item shift.opened is exist - process it [12:51:26]req_shift_opened [12:51:26]FM_GetShiftState [12:51:26]SAM_PROTO_GetShiftState [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 13 01 00 [12:51:26]Write to MH i2c: E2 08 00 96 94 80 13 01 00 00 00 00 00 A7 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0E 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0E 00 96 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 81 [12:51:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_GetShiftState done [12:51:26]FM_GetShiftState done [12:51:26]req_shift_opened done [12:51:26]requested_item shift.open_date is exist - process it [12:51:26]req_shift_open_date [12:51:26]req_shift_open_date done [12:51:26]produce_requested_data done [12:51:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30899,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:51:26]process_action_free close_receipt [12:51:26]json_value_free [12:51:26]json_value_free done [12:51:26]process_json_proto returns [12:51:26]Send response to host [12:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30899,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:51:26]free response buf [12:51:26]execute_script done [12:51:26]execute_script returns [12:51:26]free content buf [12:51:26]Sock 9.Close socket [12:51:26]Sock 9.Thread stoped [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:49]accept exits with 7 [12:52:49]New connection [12:52:49]New thread 3067489636 created [12:52:49]Thread 3067346276 joined [12:52:49]Waiting for new connection... [12:52:49] Sock 7.Parse request [12:52:49]Sock 7.Check first char [12:52:49]Sock 7.First char is OK [12:52:49]request: POST /json_proto HTTP/1.0 [12:52:49]Method: POST [12:52:49]URL: /json_proto [12:52:49]Method is POST - this is cgi request [12:52:49]url: /json_proto [12:52:49]query_string will be loaded in cgi processing [12:52:49]execute_cgi json_proto POST (null) [12:52:49]execute_cgi path=json_proto method=POST [12:52:49]POST find Content-Length [12:52:49]Host: 172.17.51.3:8080 [12:52:49]Content-Length: 682 [12:52:49]Content-Type: application/json [12:52:49] [12:52:49]POST finish read [12:52:49]Found Content-Length = 682 [12:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:49]execute_script... [12:52: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)343320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:49]POST & json_proto [12:52:49]process_json_proto [12:52:49]json parsed OK: [12:52:49]protocol is kg_v1.0 [12:52:49]action value=close_receipt [12:52:49]process_action close_receipt [12:52:49]cmd_close_receipt [12:52:49]MH_GetDate [12:52:49]Write to MH i2c: F0 00 00 97 94 1A [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: F0 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: F0 09 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: F0 09 00 97 94 00 2C A0 17 67 04 C1 95 66 2D [12:52:49]GetLastDocTimeStamp 1729601492 [12:52:49]current date 1729601580 [12:52:49]FM_GetShiftState [12:52:49]SAM_PROTO_GetShiftState [12:52:49]wFMCommunicate request_size=4 [12:52:49]MH_SAM_APDU [12:52:49]CAPDU: 80 13 01 00 [12:52:49]Write to MH i2c: E2 08 00 98 94 80 13 01 00 00 00 00 00 A9 [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:49]Read from MH i2c: E2 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 0E 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 0E 00 98 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 83 [12:52:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:52:49]wFMCommunicate OK [12:52:49]SAM_PROTO_GetShiftState done [12:52:49]FM_GetShiftState done [12:52:49]opened in 1729557342 [12:52:49]opened+sec_in_day 1729643742 [12:52:49]quantity*price = 100015 [12:52:49]sum+1 = 100017 [12:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 133 22.10.2024 12:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30900 ФПД: 187976260124577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30900&fm=187976260124577&tin=02508201610067®Number=0000000000186857&sum=100000 [12:52:50]StoreToDocumentArchive [12:52:50]shift 116 fd 30900 [12:52:50]save to /storage/0116/doc_00030900 [12:52:50]save last doc name /storage/0116/doc_00030900 to /storage/kkm_last_doc_name [12:52:50]save OK [12:52:50]Clear old archive folders... [12:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:50]tlvbuf is 01F55E20 [12:52:50]SAM_PROTO_ClearQueue [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 09 00 00 [12:52:50]Write to MH i2c: E2 08 00 A5 94 80 09 00 00 00 00 00 00 AB [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 03 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 03 00 A5 94 00 90 00 AD [12:52:50]RAPDU: 90 00 [12:52:50]wFMCommunicate OK [12:52:50]SAM_PROTO_ClearQueue done [12:52:50]KKMCreateOFDPacket [12:52:50]OFDProtocolAddRootSTLVToBuf [12:52:50]FM_MakeSignedData [12:52:50]FM_MakeSignedData [12:52:50]SAM_PROTO_SignData [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 0D 01 02 [12:52:50]Write to MH i2c: E2 08 00 A6 94 80 0D 01 02 00 00 00 00 B3 [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 03 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 03 00 A6 94 00 90 00 AE [12:52:50]RAPDU: 90 00 [12:52:50]wFMCommunicate OK [12:52:50]wFMCommunicate request_size=255 [12:52:50]MH_SAM_APDU [12:52: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2C A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 78 00 00 35 04 06 00 AA [12:52:50]Write to MH i2c: E2 02 01 A7 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2C A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 78 00 00 35 04 06 00 AA 00 00 57 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 A7 94 00 90 00 AF [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]wFMCommunicate request_size=10 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 02 02 05 F6 A2 35 FF A1 [12:52:51]Write to MH i2c: E2 0D 00 A8 94 80 0D 02 02 05 00 F6 A2 35 FF A1 00 00 2D [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 A8 94 00 90 00 B0 [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 03 02 [12:52:51]Write to MH i2c: E2 08 00 A9 94 80 0D 03 02 00 00 00 00 B8 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0B 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0B 00 A9 94 00 29 08 1A 77 2A C3 E6 A9 90 00 F7 [12:52:51]RAPDU: 29 08 1A 77 2A C3 E6 A9 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_SignData done [12:52:51]FM_MakeSignedData done [12:52:51]CreateOFDProtocolMessage [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 11 00 00 [12:52:51]Write to MH i2c: E2 08 00 AA 94 80 11 00 00 00 00 00 00 B8 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 17 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 17 00 AA 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [12:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:52:51]wFMCommunicate OK [12:52:51]CreateOFDProtocolMessage done [12:52:51]OFDSenderStorePacket 30900 [12:52:51]StoreOFDPacket docnum=30900 [12:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 EE 07 01 56 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2C A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 78 00 00 35 04 06 00 AA F6 A2 35 FF A1 29 08 1A 77 2A C3 E6 A9 [12:52:51]CheckFolder [12:52:51]dirname=/storage/ofd_packets [12:52:51]CheckFolder done [12:52:51]ProducePacketName [12:52:51]name=ofd_packets/00030900 [12:52:51]NVStorageSaveData ofd_packets/00030900 [12:52:51]File name is /storage/ofd_packets/00030900 [12:52:51]Write 301 bytes [12:52:51]NVStorageSaveData done [12:52:51]OFDSenderStorePacket done [12:52:51]KKMCreateOFDPacket done [12:52:51]NVStorageSaveData kkm_last_timestamp [12:52:51]File name is /storage/kkm_last_timestamp [12:52:51]Write 4 bytes [12:52:51]NVStorageSaveData done [12:52:51]ExternCall_PrintAddStr [12:52:51]wPrintStart [12:52:51]Write to MH i2c: 01 00 00 AB 94 3F [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: 01 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: 01 07 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: 01 07 00 AB 94 00 00 00 00 00 FF 0F 54 [12:52:51]RasterBufferAndPrint [12:52:51]line Счет N : (1)343320 [12:52:51]line ИНН: 02508201610067 [12:52:51]line Контрольно-Кассовый Чек [12:52:51]line ПРОДАЖА [12:52:51]line ТРК (МРК, ГНК) : 43 [12:52:51]line Товар: 2710124130 [12:52:51]line Аи-92-К-2 [12:52:51]line 14.950 * 66.90 [12:52:51]line = 1000.16 [12:52:51]line НДС 12% НСП 1% [12:52:51]line > о реализуемом товаре [12:52:51]line ОКРУГЛЕНИЕ: -0.16 [12:52:51]line ИТОГО: 1000.00 [12:52:51]line Внесено: 1000.00 [12:52:51]line СДАЧА: 0.00 [12:52:51]line НСП 1% : 8.85 [12:52:51]line НДС 12% : 106.21 [12:52:51]line Наличными: 1000.00 [12:52:51]line Безнал.: 0.00 [12:52:51]line Место: АЗС № 78 "Партнер Нефть" [12:52:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:52:51]line СНО: Общий режим [12:52:51]line Чек 133 22.10.2024 12:53 [12:52:51]line Смена: 116 ФФД: 1.0 [12:52:51]line ЗНМ: 0300000137 [12:52:51]line РНМ: 0000000000186857 [12:52:51]line Версия ККМ: v1.0 [12:52:51]line ФМ: 0000000002094219 [12:52:51]line ФД: 30900 [12:52:51]line ФПД: 187976260124577 [12:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30900&fm=187976260124577&tin=02508201610067®Number=0000000000186857&sum=100000 [12:52:51]OFD Sender: Processing packet 30900 [packets to send 10, broken 9] [12:52:51]ProducePacketName [12:52:51]name=ofd_packets/00030900 [12:52:51]OFD Sender: To server: pG, [12:52:51]CommunicateWithHost lk.salyk.kg:30040 [12:52:51]ConnectInit lk.salyk.kg [12:52:51]written 0, free lines is 4095 [12:52:51]Connected sock=10 [12:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 EE 07 01 56 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2C A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 78 00 00 35 04 06 00 AA F6 A2 35 FF A1 29 08 1A 77 2A C3 E6 A9 [12:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 85 A2 47 00 9B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 78 00 00 F4 03 04 00 A9 4A 17 67 B6 04 01 00 00 F2 FF 9B CA 8B 5D AD 6F [12:52:52]CommunicateWithHost err = 0 [12:52:52]CheckOFDResponse [12:52:52]1017 (14) - 77093643461234 [12:52:52]1041 (16) - 0000000002094219 [12:52:52]1040 (4) - 30900 [12:52:52]1012 (4) - 22.10.2024 06:48 [12:52:52]1206 (1) - 0 [12:52:52]OFD Sender: Remove packet 30900 [12:52:52]ProducePacketName [12:52:52]name=ofd_packets/00030900 [12:52:52]NVStorageDeleteData [12:52:52]Write to MH i2c: 01 00 00 D6 94 6A [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 D6 94 00 00 00 00 00 F5 0C 72 [12:52:52]RasterBufferAndPrint [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]written 0, free lines is 3323 [12:52:52]MH_Cut [12:52:52]Write to MH i2c: D1 01 00 DD 94 01 43 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 01 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 01 00 DD 94 00 42 [12:52:52]Write to MH i2c: 01 00 00 DE 94 72 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]OFD Sender: No OFD packet to send [12:52:52]*** Cut start [12:52:52]*** Partial cut [12:52:52]*** CUTSNS_PIN = 1 [12:52:52]*** CUTSNS_PIN = 0 [12:52:53]*** Brake cut motor [12:52:53]Read from MH i2c: 01 [12:52:53]MH_I2C_Read... [12:52:53]*** Stop cut motor [12:52:53]*** Cut end [12:52:53]Read from MH i2c: 01 07 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 DE 94 00 00 00 00 00 FF 0F 87 [12:52:53]process_action close_receipt done [12:52:53]requested_data is exist [12:52:53]produce_requested_data [12:52:53]requested_item fm.sn is exist - process it [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 11 00 00 [12:52:53]Write to MH i2c: E2 08 00 DF 94 80 11 00 00 00 00 00 00 ED [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 17 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 17 00 DF 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [12:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:52:53]wFMCommunicate OK [12:52:53]requested_item fd.num is exist - process it [12:52:53]SAM_PROTO_GetFieldsCounters [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 13 00 00 [12:52:53]Write to MH i2c: E2 08 00 E0 94 80 13 00 00 00 00 00 00 F0 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 62 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 62 00 E0 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 78 00 00 0E 04 04 00 74 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 45 [12:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 78 00 00 0E 04 04 00 74 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 [12:52:53]wFMCommunicate OK [12:52:53]SAM_PROTO_GetFieldsCounters done [12:52:53]requested_item shift.num is exist - process it [12:52:53]requested_item shift.opened is exist - process it [12:52:53]req_shift_opened [12:52:53]FM_GetShiftState [12:52:53]SAM_PROTO_GetShiftState [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 13 01 00 [12:52:53]Write to MH i2c: E2 08 00 E1 94 80 13 01 00 00 00 00 00 F2 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0E 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0E 00 E1 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CC [12:52:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:52:53]wFMCommunicate OK [12:52:53]SAM_PROTO_GetShiftState done [12:52:53]FM_GetShiftState done [12:52:53]req_shift_opened done [12:52:53]requested_item shift.open_date is exist - process it [12:52:53]req_shift_open_date [12:52:53]req_shift_open_date done [12:52:53]produce_requested_data done [12:52:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30900,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:52:53]process_action_free close_receipt [12:52:53]json_value_free [12:52:53]json_value_free done [12:52:53]process_json_proto returns [12:52:53]Send response to host [12:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30900,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:52:53]free response buf [12:52:53]execute_script done [12:52:53]execute_script returns [12:52:53]free content buf [12:52:53]Sock 7.Close socket [12:52:53]Sock 7.Thread stoped [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:40]accept exits with 9 [12:53:40]New connection [12:53:40]New thread 3067346276 created [12:53:40]Thread 3067489636 joined [12:53:40]Waiting for new connection... [12:53:40] Sock 9.Parse request [12:53:40]Sock 9.Check first char [12:53:40]Sock 9.First char is OK [12:53:40]request: POST /json_proto HTTP/1.0 [12:53:40]Method: POST [12:53:40]URL: /json_proto [12:53:40]Method is POST - this is cgi request [12:53:40]url: /json_proto [12:53:40]query_string will be loaded in cgi processing [12:53:40]execute_cgi json_proto POST (null) [12:53:40]execute_cgi path=json_proto method=POST [12:53:40]POST find Content-Length [12:53:40]Host: 172.17.51.3:8080 [12:53:40]Content-Length: 682 [12:53:40]Content-Type: application/json [12:53:40] [12:53:40]POST finish read [12:53:40]Found Content-Length = 682 [12:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:40]execute_script... [12:53: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)343321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:40]POST & json_proto [12:53:40]process_json_proto [12:53:40]json parsed OK: [12:53:40]protocol is kg_v1.0 [12:53:40]action value=close_receipt [12:53:40]process_action close_receipt [12:53:40]cmd_close_receipt [12:53:40]MH_GetDate [12:53:40]Write to MH i2c: F0 00 00 E2 94 65 [12:53:40]Write i2c OK [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: F0 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: F0 09 00 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: F0 09 00 E2 94 00 5E A0 17 67 04 C1 95 66 AA [12:53:40]GetLastDocTimeStamp 1729601580 [12:53:40]current date 1729601630 [12:53:40]FM_GetShiftState [12:53:40]SAM_PROTO_GetShiftState [12:53:40]wFMCommunicate request_size=4 [12:53:40]MH_SAM_APDU [12:53:40]CAPDU: 80 13 01 00 [12:53:40]Write to MH i2c: E2 08 00 E3 94 80 13 01 00 00 00 00 00 F4 [12:53:40]Write i2c OK [12:53:40]MH_I2C_Read... [12:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:40]Read from MH i2c: E2 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: E2 0E 00 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: E2 0E 00 E3 94 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CE [12:53:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:53:40]wFMCommunicate OK [12:53:40]SAM_PROTO_GetShiftState done [12:53:40]FM_GetShiftState done [12:53:40]opened in 1729557342 [12:53:40]opened+sec_in_day 1729643742 [12:53:40]quantity*price = 100021 [12:53:40]sum+1 = 100023 [12:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 134 22.10.2024 12:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30901 ФПД: 105063655742542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30901&fm=105063655742542&tin=02508201610067®Number=0000000000186857&sum=100000 [12:53:41]StoreToDocumentArchive [12:53:41]shift 116 fd 30901 [12:53:41]save to /storage/0116/doc_00030901 [12:53:41]save last doc name /storage/0116/doc_00030901 to /storage/kkm_last_doc_name [12:53:41]save OK [12:53:41]Clear old archive folders... [12:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:41]tlvbuf is 01F8AD20 [12:53:41]SAM_PROTO_ClearQueue [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 09 00 00 [12:53:41]Write to MH i2c: E2 08 00 F0 94 80 09 00 00 00 00 00 00 F6 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 F0 94 00 90 00 F8 [12:53:41]RAPDU: 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_ClearQueue done [12:53:41]KKMCreateOFDPacket [12:53:41]OFDProtocolAddRootSTLVToBuf [12:53:41]FM_MakeSignedData [12:53:41]FM_MakeSignedData [12:53:41]SAM_PROTO_SignData [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 0D 01 02 [12:53:41]Write to MH i2c: E2 08 00 F1 94 80 0D 01 02 00 00 00 00 FE [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 F1 94 00 90 00 F9 [12:53:41]RAPDU: 90 00 [12:53:41]wFMCommunicate OK [12:53:41]wFMCommunicate request_size=255 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 5E A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 78 00 00 35 04 06 00 5F [12:53:41]Write to MH i2c: E2 02 01 F2 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 5E A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 78 00 00 35 04 06 00 5F 00 00 AF [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 F2 94 00 90 00 FA [12:53:41]RAPDU: 90 00 [12:53:41]wFMCommunicate OK [12:53:41]wFMCommunicate request_size=10 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 0D 02 02 05 8E 09 E1 1C 4E [12:53:41]Write to MH i2c: E2 0D 00 F3 94 80 0D 02 02 05 00 8E 09 E1 1C 4E 00 00 ED [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 03 00 F3 94 00 90 00 FB [12:53:41]RAPDU: 90 00 [12:53:41]wFMCommunicate OK [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 0D 03 02 [12:53:41]Write to MH i2c: E2 08 00 F4 94 80 0D 03 02 00 00 00 00 03 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0B 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0B 00 F4 94 00 33 35 F2 37 E8 89 AC 27 90 00 D9 [12:53:41]RAPDU: 33 35 F2 37 E8 89 AC 27 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_SignData done [12:53:41]FM_MakeSignedData done [12:53:41]CreateOFDProtocolMessage [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 11 00 00 [12:53:41]Write to MH i2c: E2 08 00 F5 94 80 11 00 00 00 00 00 00 03 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 17 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 17 00 F5 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [12:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:53:41]wFMCommunicate OK [12:53:41]CreateOFDProtocolMessage done [12:53:41]OFDSenderStorePacket 30901 [12:53:41]StoreOFDPacket docnum=30901 [12:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 41 07 01 82 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 5E A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 78 00 00 35 04 06 00 5F 8E 09 E1 1C 4E 33 35 F2 37 E8 89 AC 27 [12:53:41]CheckFolder [12:53:41]dirname=/storage/ofd_packets [12:53:41]CheckFolder done [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00030901 [12:53:41]NVStorageSaveData ofd_packets/00030901 [12:53:41]File name is /storage/ofd_packets/00030901 [12:53:41]Write 301 bytes [12:53:41]NVStorageSaveData done [12:53:41]OFDSenderStorePacket done [12:53:41]KKMCreateOFDPacket done [12:53:41]NVStorageSaveData kkm_last_timestamp [12:53:41]File name is /storage/kkm_last_timestamp [12:53:41]Write 4 bytes [12:53:41]NVStorageSaveData done [12:53:41]ExternCall_PrintAddStr [12:53:41]wPrintStart [12:53:41]Write to MH i2c: 01 00 00 F6 94 8A [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 F6 94 00 00 00 00 00 FF 0F 9F [12:53:41]RasterBufferAndPrint [12:53:41]line Счет N : (1)343321 [12:53:41]line ИНН: 02508201610067 [12:53:41]line Контрольно-Кассовый Чек [12:53:41]line ПРОДАЖА [12:53:41]line ТРК (МРК, ГНК) : 52 [12:53:41]line Товар: 2710124500 [12:53:41]line Аи-95-К-3 [12:53:41]line 13.480 * 74.20 [12:53:41]line = 1000.22 [12:53:41]line НДС 12% НСП 1% [12:53:41]line > о реализуемом товаре [12:53:41]line ОКРУГЛЕНИЕ: -0.22 [12:53:41]line ИТОГО: 1000.00 [12:53:41]line Внесено: 1000.00 [12:53:41]line СДАЧА: 0.00 [12:53:41]line НСП 1% : 8.85 [12:53:41]line НДС 12% : 106.22 [12:53:41]line Наличными: 1000.00 [12:53:41]line Безнал.: 0.00 [12:53:41]line Место: АЗС № 78 "Партнер Нефть" [12:53:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:53:41]line СНО: Общий режим [12:53:41]line Чек 134 22.10.2024 12:53 [12:53:41]line Смена: 116 ФФД: 1.0 [12:53:41]line ЗНМ: 0300000137 [12:53:41]line РНМ: 0000000000186857 [12:53:41]line Версия ККМ: v1.0 [12:53:41]line ФМ: 0000000002094219 [12:53:41]line ФД: 30901 [12:53:41]line ФПД: 105063655742542 [12:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30901&fm=105063655742542&tin=02508201610067®Number=0000000000186857&sum=100000 [12:53:42]OFD Sender: Processing packet 30901 [packets to send 10, broken 9] [12:53:42]ProducePacketName [12:53:42]name=ofd_packets/00030901 [12:53:42]OFD Sender: To server: pG, [12:53:42]CommunicateWithHost lk.salyk.kg:30040 [12:53:42]ConnectInit lk.salyk.kg [12:53:42]written 0, free lines is 4095 [12:53:42]Connected sock=10 [12:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 41 07 01 82 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 5E A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 78 00 00 35 04 06 00 5F 8E 09 E1 1C 4E 33 35 F2 37 E8 89 AC 27 [12:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 B1 47 00 CD 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 32 30 39 34 32 31 39 10 04 04 00 B5 78 00 00 F4 03 04 00 DC 4A 17 67 B6 04 01 00 00 A1 9A 30 A5 C6 68 29 17 [12:53:42]CommunicateWithHost err = 0 [12:53:42]CheckOFDResponse [12:53:42]1017 (14) - 77093643461234 [12:53:42]1041 (16) - 0000000002094219 [12:53:42]1040 (4) - 30901 [12:53:42]1012 (4) - 22.10.2024 06:49 [12:53:42]1206 (1) - 0 [12:53:42]OFD Sender: Remove packet 30901 [12:53:42]ProducePacketName [12:53:42]name=ofd_packets/00030901 [12:53:42]NVStorageDeleteData [12:53:42]Write to MH i2c: 01 00 00 21 95 B6 [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: 01 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: 01 07 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: 01 07 00 21 95 00 00 00 00 00 F9 0C C2 [12:53:42]RasterBufferAndPrint [12:53:42]line [12:53:42]line [12:53:42]line [12:53:42]line [12:53:42]line [12:53:42]written 0, free lines is 3331 [12:53:42]MH_Cut [12:53:42]Write to MH i2c: D1 01 00 28 95 01 8F [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: D1 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: D1 01 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: D1 01 00 28 95 00 8E [12:53:42]Write to MH i2c: 01 00 00 29 95 BE [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:43]OFD Sender: No OFD packet to send [12:53:43]*** Cut start [12:53:43]*** Partial cut [12:53:43]*** CUTSNS_PIN = 1 [12:53:43]*** CUTSNS_PIN = 0 [12:53:43]*** Brake cut motor [12:53:43]Read from MH i2c: 01 [12:53:43]MH_I2C_Read... [12:53:43]*** Stop cut motor [12:53:43]*** Cut end [12:53:43]Read from MH i2c: 01 07 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 29 95 00 00 00 00 00 FF 0F D3 [12:53:43]process_action close_receipt done [12:53:43]requested_data is exist [12:53:43]produce_requested_data [12:53:43]requested_item fm.sn is exist - process it [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 11 00 00 [12:53:43]Write to MH i2c: E2 08 00 2A 95 80 11 00 00 00 00 00 00 39 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 2A 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [12:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:53:43]wFMCommunicate OK [12:53:43]requested_item fd.num is exist - process it [12:53:43]SAM_PROTO_GetFieldsCounters [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 13 00 00 [12:53:43]Write to MH i2c: E2 08 00 2B 95 80 13 00 00 00 00 00 00 3C [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:44]Read from MH i2c: E2 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 62 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 62 00 2B 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 78 00 00 0E 04 04 00 74 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 95 [12:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 78 00 00 0E 04 04 00 74 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 [12:53:44]wFMCommunicate OK [12:53:44]SAM_PROTO_GetFieldsCounters done [12:53:44]requested_item shift.num is exist - process it [12:53:44]requested_item shift.opened is exist - process it [12:53:44]req_shift_opened [12:53:44]FM_GetShiftState [12:53:44]SAM_PROTO_GetShiftState [12:53:44]wFMCommunicate request_size=4 [12:53:44]MH_SAM_APDU [12:53:44]CAPDU: 80 13 01 00 [12:53:44]Write to MH i2c: E2 08 00 2C 95 80 13 01 00 00 00 00 00 3E [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:44]Read from MH i2c: E2 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 2C 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 18 [12:53:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:53:44]wFMCommunicate OK [12:53:44]SAM_PROTO_GetShiftState done [12:53:44]FM_GetShiftState done [12:53:44]req_shift_opened done [12:53:44]requested_item shift.open_date is exist - process it [12:53:44]req_shift_open_date [12:53:44]req_shift_open_date done [12:53:44]produce_requested_data done [12:53:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30901,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:53:44]process_action_free close_receipt [12:53:44]json_value_free [12:53:44]json_value_free done [12:53:44]process_json_proto returns [12:53:44]Send response to host [12:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30901,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:53:44]free response buf [12:53:44]execute_script done [12:53:44]execute_script returns [12:53:44]free content buf [12:53:44]Sock 9.Close socket [12:53:44]Sock 9.Thread stoped [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:39]accept exits with 7 [12:55:39]New connection [12:55:39]New thread 3067489636 created [12:55:39]Thread 3067346276 joined [12:55:39]Waiting for new connection... [12:55:39] Sock 7.Parse request [12:55:39]Sock 7.Check first char [12:55:39]Sock 7.First char is OK [12:55:39]request: POST /json_proto HTTP/1.0 [12:55:39]Method: POST [12:55:39]URL: /json_proto [12:55:39]Method is POST - this is cgi request [12:55:39]url: /json_proto [12:55:39]query_string will be loaded in cgi processing [12:55:39]execute_cgi json_proto POST (null) [12:55:39]execute_cgi path=json_proto method=POST [12:55:39]POST find Content-Length [12:55:39]Host: 172.17.51.3:8080 [12:55:39]Content-Length: 679 [12:55:39]Content-Type: application/json [12:55:39] [12:55:39]POST finish read [12:55:39]Found Content-Length = 679 [12:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:39]execute_script... [12:55: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)343323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:39]POST & json_proto [12:55:39]process_json_proto [12:55:39]json parsed OK: [12:55:39]protocol is kg_v1.0 [12:55:39]action value=close_receipt [12:55:39]process_action close_receipt [12:55:39]cmd_close_receipt [12:55:39]MH_GetDate [12:55:39]Write to MH i2c: F0 00 00 2D 95 B1 [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 09 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 09 00 2D 95 00 D6 A0 17 67 04 C1 95 66 6E [12:55:39]GetLastDocTimeStamp 1729601630 [12:55:39]current date 1729601750 [12:55:39]FM_GetShiftState [12:55:39]SAM_PROTO_GetShiftState [12:55:39]wFMCommunicate request_size=4 [12:55:39]MH_SAM_APDU [12:55:39]CAPDU: 80 13 01 00 [12:55:39]Write to MH i2c: E2 08 00 2E 95 80 13 01 00 00 00 00 00 40 [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:39]Read from MH i2c: E2 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: E2 0E 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: E2 0E 00 2E 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1A [12:55:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:55:39]wFMCommunicate OK [12:55:39]SAM_PROTO_GetShiftState done [12:55:39]FM_GetShiftState done [12:55:39]opened in 1729557342 [12:55:39]opened+sec_in_day 1729643742 [12:55:39]quantity*price = 300075 [12:55:39]sum+1 = 300077 [12:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 135 22.10.2024 12:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30902 ФПД: 164998279065541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125550&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30902&fm=164998279065541&tin=02508201610067®Number=0000000000186857&sum=300000 [12:55:40]StoreToDocumentArchive [12:55:40]shift 116 fd 30902 [12:55:40]save to /storage/0116/doc_00030902 [12:55:40]save last doc name /storage/0116/doc_00030902 to /storage/kkm_last_doc_name [12:55:40]save OK [12:55:40]Clear old archive folders... [12:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:40]tlvbuf is 01FDA0C0 [12:55:40]SAM_PROTO_ClearQueue [12:55:40]wFMCommunicate request_size=4 [12:55:40]MH_SAM_APDU [12:55:40]CAPDU: 80 09 00 00 [12:55:40]Write to MH i2c: E2 08 00 3B 95 80 09 00 00 00 00 00 00 42 [12:55:40]Write i2c OK [12:55:40]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 3B 95 00 90 00 44 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]SAM_PROTO_ClearQueue done [12:55:41]KKMCreateOFDPacket [12:55:41]OFDProtocolAddRootSTLVToBuf [12:55:41]FM_MakeSignedData [12:55:41]FM_MakeSignedData [12:55:41]SAM_PROTO_SignData [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 01 02 [12:55:41]Write to MH i2c: E2 08 00 3C 95 80 0D 01 02 00 00 00 00 4A [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 3C 95 00 90 00 45 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=255 [12:55:41]MH_SAM_APDU [12:55: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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D6 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 78 00 00 35 04 06 00 96 10 A7 CF [12:55:41]Write to MH i2c: E2 02 01 3D 95 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D6 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 78 00 00 35 04 06 00 96 10 A7 CF 00 00 41 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 3D 95 00 90 00 46 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=7 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 02 02 02 EF C5 [12:55:41]Write to MH i2c: E2 0A 00 3E 95 80 0D 02 02 02 00 EF C5 00 00 05 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 3E 95 00 90 00 47 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 03 02 [12:55:41]Write to MH i2c: E2 08 00 3F 95 80 0D 03 02 00 00 00 00 4F [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 0B 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 0B 00 3F 95 00 BE 17 82 01 06 A3 FF 08 90 00 58 [12:55:41]RAPDU: BE 17 82 01 06 A3 FF 08 90 00 [12:55:41]wFMCommunicate OK [12:55:41]SAM_PROTO_SignData done [12:55:41]FM_MakeSignedData done [12:55:41]CreateOFDProtocolMessage [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 11 00 00 [12:55:41]Write to MH i2c: E2 08 00 40 95 80 11 00 00 00 00 00 00 4F [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 17 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 17 00 40 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [12:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:41]wFMCommunicate OK [12:55:41]CreateOFDProtocolMessage done [12:55:41]OFDSenderStorePacket 30902 [12:55:41]StoreOFDPacket docnum=30902 [12:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 00 35 04 01 CD 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D6 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 78 00 00 35 04 06 00 96 10 A7 CF EF C5 BE 17 82 01 06 A3 FF 08 [12:55:41]CheckFolder [12:55:41]dirname=/storage/ofd_packets [12:55:41]CheckFolder done [12:55:41]ProducePacketName [12:55:41]name=ofd_packets/00030902 [12:55:41]NVStorageSaveData ofd_packets/00030902 [12:55:41]File name is /storage/ofd_packets/00030902 [12:55:41]Write 298 bytes [12:55:41]NVStorageSaveData done [12:55:41]OFDSenderStorePacket done [12:55:41]KKMCreateOFDPacket done [12:55:41]NVStorageSaveData kkm_last_timestamp [12:55:41]File name is /storage/kkm_last_timestamp [12:55:41]Write 4 bytes [12:55:41]NVStorageSaveData done [12:55:41]ExternCall_PrintAddStr [12:55:41]wPrintStart [12:55:41]Write to MH i2c: 01 00 00 41 95 D6 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 07 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 07 00 41 95 00 00 00 00 00 FF 0F EB [12:55:41]RasterBufferAndPrint [12:55:41]line Счет N : (1)343323 [12:55:41]line ИНН: 02508201610067 [12:55:41]line Контрольно-Кассовый Чек [12:55:41]line ПРОДАЖА [12:55:41]line ТРК (МРК, ГНК) : 34 [12:55:41]line Товар: 2710194210 [12:55:41]line ДТ-К-2 [12:55:41]line 39.380 * 76.20 [12:55:41]line = 3000.76 [12:55:41]line НДС 12% НСП 1% [12:55:41]line > о реализуемом товаре [12:55:41]line ОКРУГЛЕНИЕ: -0.76 [12:55:41]line ИТОГО: 3000.00 [12:55:41]line Внесено: 3000.00 [12:55:41]line СДАЧА: 0.00 [12:55:41]line НСП 1% : 26.55 [12:55:41]line НДС 12% : 318.66 [12:55:41]line Наличными: 3000.00 [12:55:41]line Безнал.: 0.00 [12:55:41]line Место: АЗС № 78 "Партнер Нефть" [12:55:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:55:41]line СНО: Общий режим [12:55:41]line Чек 135 22.10.2024 12:55 [12:55:41]line Смена: 116 ФФД: 1.0 [12:55:41]line ЗНМ: 0300000137 [12:55:41]line РНМ: 0000000000186857 [12:55:41]line Версия ККМ: v1.0 [12:55:41]line ФМ: 0000000002094219 [12:55:41]line ФД: 30902 [12:55:41]line ФПД: 164998279065541 [12:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125550&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30902&fm=164998279065541&tin=02508201610067®Number=0000000000186857&sum=300000 [12:55:41]OFD Sender: Processing packet 30902 [packets to send 10, broken 9] [12:55:41]ProducePacketName [12:55:41]name=ofd_packets/00030902 [12:55:41]OFD Sender: To server: pG, [12:55:41]CommunicateWithHost lk.salyk.kg:30040 [12:55:41]ConnectInit lk.salyk.kg [12:55:41]written 0, free lines is 4095 [12:55:41]Connected sock=10 [12:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 00 35 04 01 CD 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D6 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 78 00 00 35 04 06 00 96 10 A7 CF EF C5 BE 17 82 01 06 A3 FF 08 [12:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D2 4B 47 00 8F 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 32 30 39 34 32 31 39 10 04 04 00 B6 78 00 00 F4 03 04 00 53 4B 17 67 B6 04 01 00 00 47 78 83 D0 F3 90 C2 EC [12:55:42]CommunicateWithHost err = 0 [12:55:42]CheckOFDResponse [12:55:42]1017 (14) - 77093643461234 [12:55:42]1041 (16) - 0000000002094219 [12:55:42]1040 (4) - 30902 [12:55:42]1012 (4) - 22.10.2024 06:50 [12:55:42]1206 (1) - 0 [12:55:42]OFD Sender: Remove packet 30902 [12:55:42]ProducePacketName [12:55:42]name=ofd_packets/00030902 [12:55:42]NVStorageDeleteData [12:55:42]Write to MH i2c: 01 00 00 6C 95 01 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 07 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 07 00 6C 95 00 00 00 00 00 FB 0C 0F [12:55:42]RasterBufferAndPrint [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]written 0, free lines is 3329 [12:55:42]MH_Cut [12:55:42]Write to MH i2c: D1 01 00 73 95 01 DA [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 01 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 01 00 73 95 00 D9 [12:55:42]Write to MH i2c: 01 00 00 74 95 09 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]OFD Sender: No OFD packet to send [12:55:42]*** Cut start [12:55:42]*** Partial cut [12:55:42]*** CUTSNS_PIN = 1 [12:55:43]*** CUTSNS_PIN = 0 [12:55:43]*** Brake cut motor [12:55:43]Read from MH i2c: 01 [12:55:43]MH_I2C_Read... [12:55:43]*** Stop cut motor [12:55:43]*** Cut end [12:55:43]Read from MH i2c: 01 07 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: 01 07 00 74 95 00 00 00 00 00 FF 0F 1E [12:55:43]process_action close_receipt done [12:55:43]requested_data is exist [12:55:43]produce_requested_data [12:55:43]requested_item fm.sn is exist - process it [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 11 00 00 [12:55:43]Write to MH i2c: E2 08 00 75 95 80 11 00 00 00 00 00 00 84 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 17 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 17 00 75 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [12:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:43]wFMCommunicate OK [12:55:43]requested_item fd.num is exist - process it [12:55:43]SAM_PROTO_GetFieldsCounters [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 13 00 00 [12:55:43]Write to MH i2c: E2 08 00 76 95 80 13 00 00 00 00 00 00 87 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 62 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 62 00 76 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 78 00 00 0E 04 04 00 74 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 E4 [12:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 78 00 00 0E 04 04 00 74 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 [12:55:43]wFMCommunicate OK [12:55:43]SAM_PROTO_GetFieldsCounters done [12:55:43]requested_item shift.num is exist - process it [12:55:43]requested_item shift.opened is exist - process it [12:55:43]req_shift_opened [12:55:43]FM_GetShiftState [12:55:43]SAM_PROTO_GetShiftState [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 13 01 00 [12:55:43]Write to MH i2c: E2 08 00 77 95 80 13 01 00 00 00 00 00 89 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 0E 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 0E 00 77 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 63 [12:55:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:55:43]wFMCommunicate OK [12:55:43]SAM_PROTO_GetShiftState done [12:55:43]FM_GetShiftState done [12:55:43]req_shift_opened done [12:55:43]requested_item shift.open_date is exist - process it [12:55:43]req_shift_open_date [12:55:43]req_shift_open_date done [12:55:43]produce_requested_data done [12:55:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30902,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:55:43]process_action_free close_receipt [12:55:43]json_value_free [12:55:43]json_value_free done [12:55:43]process_json_proto returns [12:55:43]Send response to host [12:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30902,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:55:43]free response buf [12:55:43]execute_script done [12:55:43]execute_script returns [12:55:43]free content buf [12:55:43]Sock 7.Close socket [12:55:43]Sock 7.Thread stoped [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:14]accept exits with 9 [12:56:14]New connection [12:56:14]New thread 3067346276 created [12:56:14]Thread 3067489636 joined [12:56:14]Waiting for new connection... [12:56:14] Sock 9.Parse request [12:56:14]Sock 9.Check first char [12:56:14]Sock 9.First char is OK [12:56:14]request: POST /json_proto HTTP/1.0 [12:56:14]Method: POST [12:56:14]URL: /json_proto [12:56:14]Method is POST - this is cgi request [12:56:14]url: /json_proto [12:56:14]query_string will be loaded in cgi processing [12:56:14]execute_cgi json_proto POST (null) [12:56:14]execute_cgi path=json_proto method=POST [12:56:14]POST find Content-Length [12:56:14]Host: 172.17.51.3:8080 [12:56:14]Content-Length: 677 [12:56:14]Content-Type: application/json [12:56:14] [12:56:14]POST finish read [12:56:14]Found Content-Length = 677 [12:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:14]execute_script... [12:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:14]POST & json_proto [12:56:14]process_json_proto [12:56:14]json parsed OK: [12:56:14]protocol is kg_v1.0 [12:56:14]action value=close_receipt [12:56:14]process_action close_receipt [12:56:14]cmd_close_receipt [12:56:14]MH_GetDate [12:56:14]Write to MH i2c: F0 00 00 78 95 FC [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: F0 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: F0 09 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: F0 09 00 78 95 00 F8 A0 17 67 04 C1 95 66 DB [12:56:14]GetLastDocTimeStamp 1729601750 [12:56:14]current date 1729601784 [12:56:14]FM_GetShiftState [12:56:14]SAM_PROTO_GetShiftState [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 13 01 00 [12:56:14]Write to MH i2c: E2 08 00 79 95 80 13 01 00 00 00 00 00 8B [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0E 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0E 00 79 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 65 [12:56:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:56:14]wFMCommunicate OK [12:56:14]SAM_PROTO_GetShiftState done [12:56:14]FM_GetShiftState done [12:56:14]opened in 1729557342 [12:56:14]opened+sec_in_day 1729643742 [12:56:14]quantity*price = 14049 [12:56:14]sum+1 = 14050 [12:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 136 22.10.2024 12:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30903 ФПД: 189004820428827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125624&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30903&fm=189004820428827&tin=02508201610067®Number=0000000000186857&sum=14000 [12:56:15]StoreToDocumentArchive [12:56:15]shift 116 fd 30903 [12:56:15]save to /storage/0116/doc_00030903 [12:56:15]save last doc name /storage/0116/doc_00030903 to /storage/kkm_last_doc_name [12:56:15]save OK [12:56:15]Clear old archive folders... [12:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:15]tlvbuf is 01E55B50 [12:56:15]SAM_PROTO_ClearQueue [12:56:15]wFMCommunicate request_size=4 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 09 00 00 [12:56:15]Write to MH i2c: E2 08 00 86 95 80 09 00 00 00 00 00 00 8D [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 86 95 00 90 00 8F [12:56:15]RAPDU: 90 00 [12:56:15]wFMCommunicate OK [12:56:15]SAM_PROTO_ClearQueue done [12:56:15]KKMCreateOFDPacket [12:56:15]OFDProtocolAddRootSTLVToBuf [12:56:15]FM_MakeSignedData [12:56:15]FM_MakeSignedData [12:56:15]SAM_PROTO_SignData [12:56:15]wFMCommunicate request_size=4 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 0D 01 02 [12:56:15]Write to MH i2c: E2 08 00 87 95 80 0D 01 02 00 00 00 00 95 [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 87 95 00 90 00 90 [12:56:15]RAPDU: 90 00 [12:56:15]wFMCommunicate OK [12:56:15]wFMCommunicate request_size=255 [12:56:15]MH_SAM_APDU [12:56: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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F8 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 78 00 00 35 04 06 00 AB [12:56:15]Write to MH i2c: E2 02 01 88 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F8 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 78 00 00 35 04 06 00 AB 00 00 3D [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 88 95 00 90 00 91 [12:56:15]RAPDU: 90 00 [12:56:15]wFMCommunicate OK [12:56:15]wFMCommunicate request_size=10 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 0D 02 02 05 E6 1D 2E B8 1B [12:56:15]Write to MH i2c: E2 0D 00 89 95 80 0D 02 02 05 00 E6 1D 2E B8 1B 00 00 A6 [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 03 00 89 95 00 90 00 92 [12:56:15]RAPDU: 90 00 [12:56:15]wFMCommunicate OK [12:56:15]wFMCommunicate request_size=4 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 0D 03 02 [12:56:15]Write to MH i2c: E2 08 00 8A 95 80 0D 03 02 00 00 00 00 9A [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 0B 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 0B 00 8A 95 00 67 22 10 9C C4 87 98 4E 90 00 01 [12:56:15]RAPDU: 67 22 10 9C C4 87 98 4E 90 00 [12:56:15]wFMCommunicate OK [12:56:15]SAM_PROTO_SignData done [12:56:15]FM_MakeSignedData done [12:56:15]CreateOFDProtocolMessage [12:56:15]wFMCommunicate request_size=4 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 11 00 00 [12:56:15]Write to MH i2c: E2 08 00 8B 95 80 11 00 00 00 00 00 00 9A [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 17 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 17 00 8B 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [12:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:56:15]wFMCommunicate OK [12:56:15]CreateOFDProtocolMessage done [12:56:15]OFDSenderStorePacket 30903 [12:56:15]StoreOFDPacket docnum=30903 [12:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 F6 07 01 79 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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F8 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 78 00 00 35 04 06 00 AB E6 1D 2E B8 1B 67 22 10 9C C4 87 98 4E [12:56:15]CheckFolder [12:56:15]dirname=/storage/ofd_packets [12:56:15]CheckFolder done [12:56:15]ProducePacketName [12:56:15]name=ofd_packets/00030903 [12:56:15]NVStorageSaveData ofd_packets/00030903 [12:56:15]File name is /storage/ofd_packets/00030903 [12:56:15]Write 301 bytes [12:56:15]NVStorageSaveData done [12:56:15]OFDSenderStorePacket done [12:56:15]KKMCreateOFDPacket done [12:56:15]NVStorageSaveData kkm_last_timestamp [12:56:15]File name is /storage/kkm_last_timestamp [12:56:15]Write 4 bytes [12:56:15]NVStorageSaveData done [12:56:15]ExternCall_PrintAddStr [12:56:15]wPrintStart [12:56:15]Write to MH i2c: 01 00 00 8C 95 21 [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 07 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 07 00 8C 95 00 00 00 00 00 FF 0F 36 [12:56:15]RasterBufferAndPrint [12:56:15]line Счет N : (1)343324 [12:56:15]line ИНН: 02508201610067 [12:56:15]line Контрольно-Кассовый Чек [12:56:15]line ПРОДАЖА [12:56:15]line ТРК (МРК, ГНК) : 63 [12:56:15]line Товар: 2710124130 [12:56:15]line Аи-92-К-2 [12:56:15]line 2.100 * 66.90 [12:56:15]line = 140.49 [12:56:15]line НДС 12% НСП 1% [12:56:15]line > о реализуемом товаре [12:56:15]line ОКРУГЛЕНИЕ: -0.49 [12:56:15]line ИТОГО: 140.00 [12:56:15]line Внесено: 140.00 [12:56:15]line СДАЧА: 0.00 [12:56:15]line НСП 1% : 1.24 [12:56:15]line НДС 12% : 14.92 [12:56:15]line Наличными: 140.00 [12:56:15]line Безнал.: 0.00 [12:56:15]line Место: АЗС № 78 "Партнер Нефть" [12:56:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:56:15]line СНО: Общий режим [12:56:15]line Чек 136 22.10.2024 12:56 [12:56:15]line Смена: 116 ФФД: 1.0 [12:56:15]line ЗНМ: 0300000137 [12:56:15]line РНМ: 0000000000186857 [12:56:15]line Версия ККМ: v1.0 [12:56:15]line ФМ: 0000000002094219 [12:56:15]line ФД: 30903 [12:56:15]line ФПД: 189004820428827 [12:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125624&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30903&fm=189004820428827&tin=02508201610067®Number=0000000000186857&sum=14000 [12:56:16]OFD Sender: Processing packet 30903 [packets to send 10, broken 9] [12:56:16]ProducePacketName [12:56:16]name=ofd_packets/00030903 [12:56:16]OFD Sender: To server: pG, [12:56:16]CommunicateWithHost lk.salyk.kg:30040 [12:56:16]ConnectInit lk.salyk.kg [12:56:16]written 0, free lines is 4095 [12:56:16]Connected sock=10 [12:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 F6 07 01 79 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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F8 A0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 78 00 00 35 04 06 00 AB E6 1D 2E B8 1B 67 22 10 9C C4 87 98 4E [12:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 E7 47 00 54 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 78 00 00 F4 03 04 00 76 4B 17 67 B6 04 01 00 00 56 CD 78 08 FA A3 70 85 [12:56:16]CommunicateWithHost err = 0 [12:56:16]CheckOFDResponse [12:56:16]1017 (14) - 77093643461234 [12:56:16]1041 (16) - 0000000002094219 [12:56:16]1040 (4) - 30903 [12:56:16]1012 (4) - 22.10.2024 06:51 [12:56:16]1206 (1) - 0 [12:56:16]OFD Sender: Remove packet 30903 [12:56:16]ProducePacketName [12:56:16]name=ofd_packets/00030903 [12:56:16]NVStorageDeleteData [12:56:16]Write to MH i2c: 01 00 00 B7 95 4C [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: 01 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: 01 07 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: 01 07 00 B7 95 00 00 00 00 00 FC 0C 5B [12:56:16]RasterBufferAndPrint [12:56:16]line [12:56:16]line [12:56:16]line [12:56:16]line [12:56:16]line [12:56:16]written 0, free lines is 3330 [12:56:16]MH_Cut [12:56:16]Write to MH i2c: D1 01 00 BE 95 01 25 [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: D1 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: D1 01 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: D1 01 00 BE 95 00 24 [12:56:16]Write to MH i2c: 01 00 00 BF 95 54 [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:17]OFD Sender: No OFD packet to send [12:56:17]*** Cut start [12:56:17]*** Partial cut [12:56:17]*** CUTSNS_PIN = 1 [12:56:17]*** CUTSNS_PIN = 0 [12:56:17]*** Brake cut motor [12:56:17]Read from MH i2c: 01 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: 01 07 00 [12:56:18]MH_I2C_Read... [12:56:18]*** Stop cut motor [12:56:18]*** Cut end [12:56:18]Read from MH i2c: 01 07 00 BF 95 00 00 00 00 00 FF 0F 69 [12:56:18]process_action close_receipt done [12:56:18]requested_data is exist [12:56:18]produce_requested_data [12:56:18]requested_item fm.sn is exist - process it [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 11 00 00 [12:56:18]Write to MH i2c: E2 08 00 C0 95 80 11 00 00 00 00 00 00 CF [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:18]Read from MH i2c: E2 17 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 17 00 C0 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [12:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:56:18]wFMCommunicate OK [12:56:18]requested_item fd.num is exist - process it [12:56:18]SAM_PROTO_GetFieldsCounters [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 13 00 00 [12:56:18]Write to MH i2c: E2 08 00 C1 95 80 13 00 00 00 00 00 00 D2 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:18]Read from MH i2c: E2 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 62 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 62 00 C1 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 78 00 00 0E 04 04 00 74 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 33 [12:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 78 00 00 0E 04 04 00 74 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 [12:56:18]wFMCommunicate OK [12:56:18]SAM_PROTO_GetFieldsCounters done [12:56:18]requested_item shift.num is exist - process it [12:56:18]requested_item shift.opened is exist - process it [12:56:18]req_shift_opened [12:56:18]FM_GetShiftState [12:56:18]SAM_PROTO_GetShiftState [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 13 01 00 [12:56:18]Write to MH i2c: E2 08 00 C2 95 80 13 01 00 00 00 00 00 D4 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:18]Read from MH i2c: E2 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 C2 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AE [12:56:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:56:18]wFMCommunicate OK [12:56:18]SAM_PROTO_GetShiftState done [12:56:18]FM_GetShiftState done [12:56:18]req_shift_opened done [12:56:18]requested_item shift.open_date is exist - process it [12:56:18]req_shift_open_date [12:56:18]req_shift_open_date done [12:56:18]produce_requested_data done [12:56:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30903,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [12:56:18]process_action_free close_receipt [12:56:18]json_value_free [12:56:18]json_value_free done [12:56:18]process_json_proto returns [12:56:18]Send response to host [12:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30903,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [12:56:18]free response buf [12:56:18]execute_script done [12:56:18]execute_script returns [12:56:18]free content buf [12:56:18]Sock 9.Close socket [12:56:18]Sock 9.Thread stoped [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:11]accept exits with 7 [12:58:11]New connection [12:58:11]New thread 3067489636 created [12:58:11]Thread 3067346276 joined [12:58:11]Waiting for new connection... [12:58:11] Sock 7.Parse request [12:58:11]Sock 7.Check first char [12:58:11]Sock 7.First char is OK [12:58:11]request: POST /json_proto HTTP/1.0 [12:58:11]Method: POST [12:58:11]URL: /json_proto [12:58:11]Method is POST - this is cgi request [12:58:11]url: /json_proto [12:58:11]query_string will be loaded in cgi processing [12:58:11]execute_cgi json_proto POST (null) [12:58:11]execute_cgi path=json_proto method=POST [12:58:11]POST find Content-Length [12:58:11]Host: 172.17.51.3:8080 [12:58:11]Content-Length: 677 [12:58:11]Content-Type: application/json [12:58:11] [12:58:11]POST finish read [12:58:11]Found Content-Length = 677 [12:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:11]execute_script... [12:58: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)343326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:11]POST & json_proto [12:58:11]process_json_proto [12:58:11]json parsed OK: [12:58:11]protocol is kg_v1.0 [12:58:11]action value=close_receipt [12:58:11]process_action close_receipt [12:58:11]cmd_close_receipt [12:58:11]MH_GetDate [12:58:11]Write to MH i2c: F0 00 00 C3 95 47 [12:58:11]Write i2c OK [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: F0 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: F0 09 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: F0 09 00 C3 95 00 6D A1 17 67 04 C1 95 66 9C [12:58:11]GetLastDocTimeStamp 1729601784 [12:58:11]current date 1729601901 [12:58:11]FM_GetShiftState [12:58:11]SAM_PROTO_GetShiftState [12:58:11]wFMCommunicate request_size=4 [12:58:11]MH_SAM_APDU [12:58:11]CAPDU: 80 13 01 00 [12:58:11]Write to MH i2c: E2 08 00 C4 95 80 13 01 00 00 00 00 00 D6 [12:58:11]Write i2c OK [12:58:11]MH_I2C_Read... [12:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:11]Read from MH i2c: E2 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 0E 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 0E 00 C4 95 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B0 [12:58:11]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [12:58:11]wFMCommunicate OK [12:58:11]SAM_PROTO_GetShiftState done [12:58:11]FM_GetShiftState done [12:58:11]opened in 1729557342 [12:58:11]opened+sec_in_day 1729643742 [12:58:11]quantity*price = 44020 [12:58:11]sum+1 = 44021 [12:58:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 138 22.10.2024 13:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30905 ФПД: 206539627991440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131252&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30905&fm=206539627991440&tin=02508201610067®Number=0000000000186857&sum=40000 [13:12:52]StoreToDocumentArchive [13:12:52]shift 116 fd 30905 [13:12:52]save to /storage/0116/doc_00030905 [13:12:52]save last doc name /storage/0116/doc_00030905 to /storage/kkm_last_doc_name [13:12:52]save OK [13:12:52]Clear old archive folders... [13:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:52]tlvbuf is 00D26FC0 [13:12:52]SAM_PROTO_ClearQueue [13:12:52]wFMCommunicate request_size=4 [13:12:52]MH_SAM_APDU [13:12:52]CAPDU: 80 09 00 00 [13:12:52]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 03 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:12:53]RAPDU: 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_ClearQueue done [13:12:53]KKMCreateOFDPacket [13:12:53]OFDProtocolAddRootSTLVToBuf [13:12:53]FM_MakeSignedData [13:12:53]FM_MakeSignedData [13:12:53]SAM_PROTO_SignData [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 0D 01 02 [13:12:53]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:12:53]RAPDU: 90 00 [13:12:53]wFMCommunicate OK [13:12:53]wFMCommunicate request_size=255 [13:12:53]MH_SAM_APDU [13:12: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D4 A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 78 00 00 35 04 06 00 BB [13:12:53]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D4 A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 78 00 00 35 04 06 00 BB 00 00 E5 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:12:53]RAPDU: 90 00 [13:12:53]wFMCommunicate OK [13:12:53]wFMCommunicate request_size=10 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 0D 02 02 05 D8 C1 28 91 90 [13:12:53]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 D8 C1 28 91 90 00 00 94 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:12:53]RAPDU: 90 00 [13:12:53]wFMCommunicate OK [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 0D 03 02 [13:12:53]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0B 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0B 00 2F 00 00 D7 39 A5 53 CD 91 4E EB 90 00 4A [13:12:53]RAPDU: D7 39 A5 53 CD 91 4E EB 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_SignData done [13:12:53]FM_MakeSignedData done [13:12:53]CreateOFDProtocolMessage [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 11 00 00 [13:12:53]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [13:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:12:53]wFMCommunicate OK [13:12:53]CreateOFDProtocolMessage done [13:12:53]OFDSenderStorePacket 30905 [13:12:53]StoreOFDPacket docnum=30905 [13:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 18 E8 07 01 31 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D4 A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 78 00 00 35 04 06 00 BB D8 C1 28 91 90 D7 39 A5 53 CD 91 4E EB [13:12:53]CheckFolder [13:12:53]dirname=/storage/ofd_packets [13:12:53]CheckFolder done [13:12:53]ProducePacketName [13:12:53]name=ofd_packets/00030905 [13:12:53]NVStorageSaveData ofd_packets/00030905 [13:12:53]File name is /storage/ofd_packets/00030905 [13:12:53]Write 301 bytes [13:12:53]NVStorageSaveData done [13:12:53]OFDSenderStorePacket done [13:12:53]KKMCreateOFDPacket done [13:12:53]NVStorageSaveData kkm_last_timestamp [13:12:53]File name is /storage/kkm_last_timestamp [13:12:53]Write 4 bytes [13:12:53]NVStorageSaveData done [13:12:53]ExternCall_PrintAddStr [13:12:53]wPrintStart [13:12:53]Write to MH i2c: 01 00 00 31 00 31 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: 01 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: 01 07 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:12:53]RasterBufferAndPrint [13:12:53]line Счет N : (1)343329 [13:12:53]OFD Sender: Processing packet 30905 [packets to send 11, broken 10] [13:12:53]ProducePacketName [13:12:53]name=ofd_packets/00030905 [13:12:54]OFD Sender: To server: pG, [13:12:54]CommunicateWithHost lk.salyk.kg:30040 [13:12:54]ConnectInit lk.salyk.kg [13:12:54]line ИНН: 02508201610067 [13:12:54]line Контрольно-Кассовый Чек [13:12:54]line ПРОДАЖА [13:12:54]line ТРК (МРК, ГНК) : 43 [13:12:54]line Товар: 2710124130 [13:12:54]line Аи-92-К-2 [13:12:54]line 5.980 * 66.90 [13:12:54]line = 400.06 [13:12:54]line НДС 12% НСП 1% [13:12:54]line > о реализуемом товаре [13:12:54]line ОКРУГЛЕНИЕ: -0.06 [13:12:54]line ИТОГО: 400.00 [13:12:54]line Внесено: 400.00 [13:12:54]line СДАЧА: 0.00 [13:12:54]line НСП 1% : 3.54 [13:12:54]line НДС 12% : 42.48 [13:12:54]line Наличными: 400.00 [13:12:54]line Безнал.: 0.00 [13:12:54]line Место: АЗС № 78 "Партнер Нефть" [13:12:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:12:54]line СНО: Общий режим [13:12:54]line Чек 138 22.10.2024 13:12 [13:12:54]line Смена: 116 ФФД: 1.0 [13:12:54]line ЗНМ: 0300000137 [13:12:54]line РНМ: 0000000000186857 [13:12:54]line Версия ККМ: v1.0 [13:12:54]line ФМ: 0000000002094219 [13:12:54]line ФД: 30905 [13:12:54]line ФПД: 206539627991440 [13:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131252&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30905&fm=206539627991440&tin=02508201610067®Number=0000000000186857&sum=40000 [13:12:54]written 0, free lines is 4095 [13:12:54]Connected sock=10 [13:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 18 E8 07 01 31 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D4 A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 78 00 00 35 04 06 00 BB D8 C1 28 91 90 D7 39 A5 53 CD 91 4E EB [13:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D D8 47 00 54 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 78 00 00 F4 03 04 00 52 4F 17 67 B6 04 01 00 00 D5 36 C2 EE 65 52 8C 72 [13:12:54]CommunicateWithHost err = 0 [13:12:54]CheckOFDResponse [13:12:54]1017 (14) - 77093643461234 [13:12:54]1041 (16) - 0000000002094219 [13:12:54]1040 (4) - 30905 [13:12:54]1012 (4) - 22.10.2024 07:08 [13:12:54]1206 (1) - 0 [13:12:54]OFD Sender: Remove packet 30905 [13:12:54]ProducePacketName [13:12:54]name=ofd_packets/00030905 [13:12:54]NVStorageDeleteData [13:12:54]Write to MH i2c: 01 00 00 5C 00 5C [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 03 0D 73 [13:12:54]RasterBufferAndPrint [13:12:54]line [13:12:54]line [13:12:54]line [13:12:54]line [13:12:54]line [13:12:54]written 0, free lines is 3349 [13:12:54]MH_Cut [13:12:54]Write to MH i2c: D1 01 00 63 00 01 35 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: D1 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: D1 01 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: D1 01 00 63 00 00 34 [13:12:54]Write to MH i2c: 01 00 00 64 00 64 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]OFD Sender: No OFD packet to send [13:12:55]*** Cut start [13:12:55]*** Partial cut [13:12:55]*** CUTSNS_PIN = 1 [13:12:55]*** CUTSNS_PIN = 0 [13:12:55]*** Brake cut motor [13:12:55]Read from MH i2c: 01 [13:12:55]MH_I2C_Read... [13:12:55]*** Stop cut motor [13:12:55]*** Cut end [13:12:55]Read from MH i2c: 01 07 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [13:12:55]process_action close_receipt done [13:12:55]requested_data is exist [13:12:55]produce_requested_data [13:12:55]requested_item fm.sn is exist - process it [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 11 00 00 [13:12:55]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [13:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:12:55]wFMCommunicate OK [13:12:55]requested_item fd.num is exist - process it [13:12:55]SAM_PROTO_GetFieldsCounters [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 13 00 00 [13:12:55]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 62 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 78 00 00 0E 04 04 00 74 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 4B [13:12:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 78 00 00 0E 04 04 00 74 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 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_GetFieldsCounters done [13:12:56]requested_item shift.num is exist - process it [13:12:56]requested_item shift.opened is exist - process it [13:12:56]req_shift_opened [13:12:56]FM_GetShiftState [13:12:56]SAM_PROTO_GetShiftState [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 13 01 00 [13:12:56]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0E 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BE [13:12:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_GetShiftState done [13:12:56]FM_GetShiftState done [13:12:56]req_shift_opened done [13:12:56]requested_item shift.open_date is exist - process it [13:12:56]req_shift_open_date [13:12:56]req_shift_open_date done [13:12:56]produce_requested_data done [13:12:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30905,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:12:56]process_action_free close_receipt [13:12:56]json_value_free [13:12:56]json_value_free done [13:12:56]process_json_proto returns [13:12:56]Send response to host [13:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30905,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:12:56]free response buf [13:12:56]execute_script done [13:12:56]execute_script returns [13:12:56]free content buf [13:12:56]Sock 9.Close socket [13:12:56]Sock 9.Thread stoped [13:12:59]accept exits with 6 [13:12:59]New connection [13:12:59]New thread 3066899812 created [13:12:59]Thread 3067043172 joined [13:12:59]Waiting for new connection... [13:12:59] Sock 6.Parse request [13:12:59]Sock 6.Check first char [13:12:59]Sock 6.First char is OK [13:12:59]request: POST /json_proto HTTP/1.0 [13:12:59]Method: POST [13:12:59]URL: /json_proto [13:12:59]Method is POST - this is cgi request [13:12:59]url: /json_proto [13:12:59]query_string will be loaded in cgi processing [13:12:59]execute_cgi json_proto POST (null) [13:12:59]execute_cgi path=json_proto method=POST [13:12:59]POST find Content-Length [13:12:59]Host: 172.17.51.3:8080 [13:12:59]Content-Length: 682 [13:12:59]Content-Type: application/json [13:12:59] [13:12:59]POST finish read [13:12:59]Found Content-Length = 682 [13:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:59]execute_script... [13:12: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)343330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:59]POST & json_proto [13:12:59]process_json_proto [13:12:59]json parsed OK: [13:12:59]protocol is kg_v1.0 [13:12:59]action value=close_receipt [13:12:59]process_action close_receipt [13:12:59]cmd_close_receipt [13:12:59]MH_GetDate [13:12:59]Write to MH i2c: F0 00 00 68 00 57 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 09 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 09 00 68 00 00 DC A4 17 67 04 C1 95 66 1E [13:12:59]GetLastDocTimeStamp 1729602772 [13:12:59]current date 1729602780 [13:12:59]FM_GetShiftState [13:12:59]SAM_PROTO_GetShiftState [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 01 00 [13:12:59]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C0 [13:12:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetShiftState done [13:12:59]FM_GetShiftState done [13:12:59]opened in 1729557342 [13:12:59]opened+sec_in_day 1729643742 [13:12:59]quantity*price = 100015 [13:12:59]sum+1 = 100017 [13:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 139 22.10.2024 13:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30906 ФПД: 80711235011385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30906&fm=80711235011385&tin=02508201610067®Number=0000000000186857&sum=100000 [13:13:00]StoreToDocumentArchive [13:13:00]shift 116 fd 30906 [13:13:00]save to /storage/0116/doc_00030906 [13:13:00]save last doc name /storage/0116/doc_00030906 to /storage/kkm_last_doc_name [13:13:00]save OK [13:13:00]Clear old archive folders... [13:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:00]tlvbuf is 00CD0E30 [13:13:00]SAM_PROTO_ClearQueue [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 09 00 00 [13:13:00]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_ClearQueue done [13:13:01]KKMCreateOFDPacket [13:13:01]OFDProtocolAddRootSTLVToBuf [13:13:01]FM_MakeSignedData [13:13:01]FM_MakeSignedData [13:13:01]SAM_PROTO_SignData [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 01 02 [13:13:01]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=255 [13:13:01]MH_SAM_APDU [13:13: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 78 00 00 35 04 06 00 49 [13:13:01]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 78 00 00 35 04 06 00 49 00 00 F3 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=10 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 02 02 05 68 0C 7E 03 39 [13:13:01]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 68 0C 7E 03 39 00 00 2B [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 03 02 [13:13:01]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0B 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0B 00 7A 00 00 03 4C 14 56 0B 34 BA B8 90 00 60 [13:13:01]RAPDU: 03 4C 14 56 0B 34 BA B8 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_SignData done [13:13:01]FM_MakeSignedData done [13:13:01]CreateOFDProtocolMessage [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 11 00 00 [13:13:01]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [13:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:13:01]wFMCommunicate OK [13:13:01]CreateOFDProtocolMessage done [13:13:01]OFDSenderStorePacket 30906 [13:13:01]StoreOFDPacket docnum=30906 [13:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FA BB 07 01 72 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 78 00 00 35 04 06 00 49 68 0C 7E 03 39 03 4C 14 56 0B 34 BA B8 [13:13:01]CheckFolder [13:13:01]dirname=/storage/ofd_packets [13:13:01]CheckFolder done [13:13:01]ProducePacketName [13:13:01]name=ofd_packets/00030906 [13:13:01]NVStorageSaveData ofd_packets/00030906 [13:13:01]File name is /storage/ofd_packets/00030906 [13:13:01]Write 301 bytes [13:13:01]NVStorageSaveData done [13:13:01]OFDSenderStorePacket done [13:13:01]KKMCreateOFDPacket done [13:13:01]NVStorageSaveData kkm_last_timestamp [13:13:01]File name is /storage/kkm_last_timestamp [13:13:01]Write 4 bytes [13:13:01]NVStorageSaveData done [13:13:01]ExternCall_PrintAddStr [13:13:01]wPrintStart [13:13:01]Write to MH i2c: 01 00 00 7C 00 7C [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [13:13:01]RasterBufferAndPrint [13:13:01]line Счет N : (1)343330 [13:13:01]line ИНН: 02508201610067 [13:13:01]line Контрольно-Кассовый Чек [13:13:01]line ПРОДАЖА [13:13:01]line ТРК (МРК, ГНК) : 33 [13:13:01]line Товар: 2710124130 [13:13:01]line Аи-92-К-2 [13:13:01]line 14.950 * 66.90 [13:13:01]line = 1000.16 [13:13:01]line НДС 12% НСП 1% [13:13:01]line > о реализуемом товаре [13:13:01]line ОКРУГЛЕНИЕ: -0.16 [13:13:01]line ИТОГО: 1000.00 [13:13:01]line Внесено: 1000.00 [13:13:01]line СДАЧА: 0.00 [13:13:01]line НСП 1% : 8.85 [13:13:01]line НДС 12% : 106.21 [13:13:01]line Наличными: 1000.00 [13:13:01]line Безнал.: 0.00 [13:13:01]line Место: АЗС № 78 "Партнер Нефть" [13:13:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:13:01]line СНО: Общий режим [13:13:01]line Чек 139 22.10.2024 13:13 [13:13:01]line Смена: 116 ФФД: 1.0 [13:13:01]line ЗНМ: 0300000137 [13:13:01]line РНМ: 0000000000186857 [13:13:01]line Версия ККМ: v1.0 [13:13:01]line ФМ: 0000000002094219 [13:13:01]line ФД: 30906 [13:13:01]line ФПД: 80711235011385 [13:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30906&fm=80711235011385&tin=02508201610067®Number=0000000000186857&sum=100000 [13:13:01]OFD Sender: Processing packet 30906 [packets to send 11, broken 10] [13:13:01]ProducePacketName [13:13:01]name=ofd_packets/00030906 [13:13:01]OFD Sender: To server: pG, [13:13:01]CommunicateWithHost lk.salyk.kg:30040 [13:13:01]ConnectInit lk.salyk.kg [13:13:01]written 0, free lines is 4095 [13:13:01]Connected sock=10 [13:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FA BB 07 01 72 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 78 00 00 35 04 06 00 49 68 0C 7E 03 39 03 4C 14 56 0B 34 BA B8 [13:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 88 53 47 00 E6 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 32 30 39 34 32 31 39 10 04 04 00 BA 78 00 00 F4 03 04 00 59 4F 17 67 B6 04 01 00 00 7F 9B 63 28 99 67 03 AE [13:13:02]CommunicateWithHost err = 0 [13:13:02]CheckOFDResponse [13:13:02]1017 (14) - 77093643461234 [13:13:02]1041 (16) - 0000000002094219 [13:13:02]1040 (4) - 30906 [13:13:02]1012 (4) - 22.10.2024 07:08 [13:13:02]1206 (1) - 0 [13:13:02]OFD Sender: Remove packet 30906 [13:13:02]ProducePacketName [13:13:02]name=ofd_packets/00030906 [13:13:02]NVStorageDeleteData [13:13:02]Write to MH i2c: 01 00 00 A7 00 A7 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 EF 0C A9 [13:13:02]RasterBufferAndPrint [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]written 0, free lines is 3338 [13:13:02]MH_Cut [13:13:02]Write to MH i2c: D1 01 00 AE 00 01 80 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 01 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 01 00 AE 00 00 7F [13:13:02]Write to MH i2c: 01 00 00 AF 00 AF [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]OFD Sender: No OFD packet to send [13:13:02]*** Cut start [13:13:02]*** Partial cut [13:13:02]*** CUTSNS_PIN = 1 [13:13:02]*** CUTSNS_PIN = 0 [13:13:03]*** Brake cut motor [13:13:03]Read from MH i2c: 01 [13:13:03]MH_I2C_Read... [13:13:03]*** Stop cut motor [13:13:03]*** Cut end [13:13:03]Read from MH i2c: 01 07 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:13:03]process_action close_receipt done [13:13:03]requested_data is exist [13:13:03]produce_requested_data [13:13:03]requested_item fm.sn is exist - process it [13:13:03]wFMCommunicate request_size=4 [13:13:03]MH_SAM_APDU [13:13:03]CAPDU: 80 11 00 00 [13:13:03]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:03]Read from MH i2c: E2 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 17 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [13:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:13:03]wFMCommunicate OK [13:13:03]requested_item fd.num is exist - process it [13:13:03]SAM_PROTO_GetFieldsCounters [13:13:03]wFMCommunicate request_size=4 [13:13:03]MH_SAM_APDU [13:13:03]CAPDU: 80 13 00 00 [13:13:03]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:03]Read from MH i2c: E2 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 62 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 78 00 00 0E 04 04 00 74 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 9A [13:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 78 00 00 0E 04 04 00 74 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 [13:13:03]wFMCommunicate OK [13:13:03]SAM_PROTO_GetFieldsCounters done [13:13:03]requested_item shift.num is exist - process it [13:13:03]requested_item shift.opened is exist - process it [13:13:03]req_shift_opened [13:13:03]FM_GetShiftState [13:13:03]SAM_PROTO_GetShiftState [13:13:03]wFMCommunicate request_size=4 [13:13:03]MH_SAM_APDU [13:13:03]CAPDU: 80 13 01 00 [13:13:03]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:03]Read from MH i2c: E2 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 0E 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 09 [13:13:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:13:03]wFMCommunicate OK [13:13:03]SAM_PROTO_GetShiftState done [13:13:03]FM_GetShiftState done [13:13:03]req_shift_opened done [13:13:03]requested_item shift.open_date is exist - process it [13:13:03]req_shift_open_date [13:13:03]req_shift_open_date done [13:13:03]produce_requested_data done [13:13:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30906,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:13:03]process_action_free close_receipt [13:13:03]json_value_free [13:13:03]json_value_free done [13:13:03]process_json_proto returns [13:13:03]Send response to host [13:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30906,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:13:03]free response buf [13:13:03]execute_script done [13:13:03]execute_script returns [13:13:03]free content buf [13:13:03]Sock 6.Close socket [13:13:03]Sock 6.Thread stoped [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:50]accept exits with 9 [13:16:50]New connection [13:16:50]New thread 3067043172 created [13:16:50]Thread 3066899812 joined [13:16:50]Waiting for new connection... [13:16:50] Sock 9.Parse request [13:16:50]Sock 9.Check first char [13:16:50]Sock 9.First char is OK [13:16:50]request: POST /json_proto HTTP/1.0 [13:16:50]Method: POST [13:16:50]URL: /json_proto [13:16:50]Method is POST - this is cgi request [13:16:50]url: /json_proto [13:16:50]query_string will be loaded in cgi processing [13:16:50]execute_cgi json_proto POST (null) [13:16:50]execute_cgi path=json_proto method=POST [13:16:50]POST find Content-Length [13:16:50]Host: 172.17.51.3:8080 [13:16:50]Content-Length: 751 [13:16:50]Content-Type: application/json [13:16:50] [13:16:50]POST finish read [13:16:50]Found Content-Length = 751 [13:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:50]execute_script... [13:16: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)343333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:50]POST & json_proto [13:16:50]process_json_proto [13:16:50]json parsed OK: [13:16:50]protocol is kg_v1.0 [13:16:50]action value=close_receipt [13:16:50]process_action close_receipt [13:16:50]cmd_close_receipt [13:16:50]MH_GetDate [13:16:50]Write to MH i2c: F0 00 00 B3 00 A2 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 B3 00 00 C2 A5 17 67 04 C1 95 66 50 [13:16:50]GetLastDocTimeStamp 1729602780 [13:16:50]current date 1729603010 [13:16:50]FM_GetShiftState [13:16:50]SAM_PROTO_GetShiftState [13:16:50]wFMCommunicate request_size=4 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 13 01 00 [13:16:50]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:50]Read from MH i2c: E2 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 0E 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0B [13:16:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:16:50]wFMCommunicate OK [13:16:50]SAM_PROTO_GetShiftState done [13:16:50]FM_GetShiftState done [13:16:50]opened in 1729557342 [13:16:50]opened+sec_in_day 1729643742 [13:16:50]quantity*price = 0 [13:16:50]sum+1 = 1 [13:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 140 22.10.2024 13:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30048492 ФМ: 0000000002094219 ФД: 30907 ФПД: 5486321903161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30907&fm=5486321903161&tin=02508201610067®Number=0000000000186857&sum=0 [13:16:51]StoreToDocumentArchive [13:16:51]shift 116 fd 30907 [13:16:51]save to /storage/0116/doc_00030907 [13:16:51]save last doc name /storage/0116/doc_00030907 to /storage/kkm_last_doc_name [13:16:51]save OK [13:16:51]Clear old archive folders... [13:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:51]tlvbuf is 00CC3E70 [13:16:51]SAM_PROTO_ClearQueue [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 09 00 00 [13:16:51]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_ClearQueue done [13:16:51]KKMCreateOFDPacket [13:16:51]OFDProtocolAddRootSTLVToBuf [13:16:51]FM_MakeSignedData [13:16:51]FM_MakeSignedData [13:16:51]SAM_PROTO_SignData [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 01 02 [13:16:51]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=255 [13:16:51]MH_SAM_APDU [13:16: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 A5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 78 00 00 35 04 06 00 04 FD 62 44 [13:16:51]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 A5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 78 00 00 35 04 06 00 04 FD 62 44 00 00 35 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=7 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 02 02 02 A6 39 [13:16:51]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 A6 39 00 00 21 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 03 02 [13:16:51]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0B 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0B 00 C5 00 00 13 C7 45 B0 82 73 7D C8 90 00 4A [13:16:51]RAPDU: 13 C7 45 B0 82 73 7D C8 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_SignData done [13:16:51]FM_MakeSignedData done [13:16:51]CreateOFDProtocolMessage [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 11 00 00 [13:16:51]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [13:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:16:51]wFMCommunicate OK [13:16:51]CreateOFDProtocolMessage done [13:16:51]OFDSenderStorePacket 30907 [13:16:51]StoreOFDPacket docnum=30907 [13:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 AE 9D 04 01 1F 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 A5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 78 00 00 35 04 06 00 04 FD 62 44 A6 39 13 C7 45 B0 82 73 7D C8 [13:16:51]CheckFolder [13:16:51]dirname=/storage/ofd_packets [13:16:51]CheckFolder done [13:16:51]ProducePacketName [13:16:51]name=ofd_packets/00030907 [13:16:51]NVStorageSaveData ofd_packets/00030907 [13:16:51]File name is /storage/ofd_packets/00030907 [13:16:51]Write 298 bytes [13:16:51]NVStorageSaveData done [13:16:51]OFDSenderStorePacket done [13:16:51]KKMCreateOFDPacket done [13:16:51]NVStorageSaveData kkm_last_timestamp [13:16:51]File name is /storage/kkm_last_timestamp [13:16:51]Write 4 bytes [13:16:51]NVStorageSaveData done [13:16:51]ExternCall_PrintAddStr [13:16:51]wPrintStart [13:16:51]Write to MH i2c: 01 00 00 C7 00 C7 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [13:16:51]RasterBufferAndPrint [13:16:51]line Счет N : (1)343333 [13:16:51]line ИНН: 02508201610067 [13:16:51]line Контрольно-Кассовый Чек [13:16:51]line ПРОДАЖА [13:16:51]line ТРК (МРК, ГНК) : 54 [13:16:51]line Товар: 2710194210 [13:16:51]line ДТ-К-2 [13:16:51]line 40.000 * 0.00 [13:16:51]line = 0.00 [13:16:51]line НДС 12% НСП 1% [13:16:51]line > о реализуемом товаре [13:16:51]line ИТОГО: 0.00 [13:16:51]line НСП 1% : 0.00 [13:16:51]line НДС 12% : 0.00 [13:16:51]line Наличными: 0.00 [13:16:51]line Безнал.: 0.00 [13:16:51]line Место: АЗС № 78 "Партнер Нефть" [13:16:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:16:51]line СНО: Общий режим [13:16:51]line Чек 140 22.10.2024 13:16 [13:16:51]line Смена: 116 ФФД: 1.0 [13:16:51]line ЗНМ: 0300000137 [13:16:51]line РНМ: 0000000000186857 [13:16:51]line Версия ККМ: v1.0 [13:16:51]line Талоны: ТК ГПНА Online [13:16:51]line 30048492 [13:16:51]line ФМ: 0000000002094219 [13:16:51]line ФД: 30907 [13:16:51]line ФПД: 5486321903161 [13:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30907&fm=5486321903161&tin=02508201610067®Number=0000000000186857&sum=0 [13:16:51]written 0, free lines is 4095 [13:16:51]OFD Sender: Processing packet 30907 [packets to send 11, broken 10] [13:16:51]ProducePacketName [13:16:51]name=ofd_packets/00030907 [13:16:51]OFD Sender: To server: pG, [13:16:51]CommunicateWithHost lk.salyk.kg:30040 [13:16:51]ConnectInit lk.salyk.kg [13:16:52]Connected sock=11 [13:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 AE 9D 04 01 1F 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 A5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 78 00 00 35 04 06 00 04 FD 62 44 A6 39 13 C7 45 B0 82 73 7D C8 [13:16:52]Write to MH i2c: 01 00 00 F1 00 F1 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 F6 0C FA [13:16:52]RasterBufferAndPrint [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]written 0, free lines is 3324 [13:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 D2 47 00 E1 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 78 00 00 F4 03 04 00 40 50 17 67 B6 04 01 00 00 1C EB 0C 9D 77 C2 66 81 [13:16:52]CommunicateWithHost err = 0 [13:16:52]CheckOFDResponse [13:16:52]1017 (14) - 77093643461234 [13:16:52]1041 (16) - 0000000002094219 [13:16:52]1040 (4) - 30907 [13:16:52]1012 (4) - 22.10.2024 07:12 [13:16:52]1206 (1) - 0 [13:16:52]OFD Sender: Remove packet 30907 [13:16:52]ProducePacketName [13:16:52]name=ofd_packets/00030907 [13:16:52]NVStorageDeleteData [13:16:52]MH_Cut [13:16:52]Write to MH i2c: D1 01 00 F8 00 01 CA [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 01 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 01 00 F8 00 00 C9 [13:16:52]Write to MH i2c: 01 00 00 F9 00 F9 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]OFD Sender: No OFD packet to send [13:16:52]*** Cut start [13:16:52]*** Partial cut [13:16:52]*** CUTSNS_PIN = 1 [13:16:53]*** CUTSNS_PIN = 0 [13:16:53]*** Brake cut motor [13:16:53]Read from MH i2c: 01 [13:16:53]MH_I2C_Read... [13:16:53]*** Stop cut motor [13:16:53]*** Cut end [13:16:53]Read from MH i2c: 01 07 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [13:16:53]process_action close_receipt done [13:16:53]requested_data is exist [13:16:53]produce_requested_data [13:16:53]requested_item fm.sn is exist - process it [13:16:53]wFMCommunicate request_size=4 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 11 00 00 [13:16:53]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 17 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [13:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:16:53]wFMCommunicate OK [13:16:53]requested_item fd.num is exist - process it [13:16:53]SAM_PROTO_GetFieldsCounters [13:16:53]wFMCommunicate request_size=4 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 13 00 00 [13:16:53]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 62 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 78 00 00 0E 04 04 00 74 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 E8 [13:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 78 00 00 0E 04 04 00 74 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 [13:16:53]wFMCommunicate OK [13:16:53]SAM_PROTO_GetFieldsCounters done [13:16:53]requested_item shift.num is exist - process it [13:16:53]requested_item shift.opened is exist - process it [13:16:53]req_shift_opened [13:16:53]FM_GetShiftState [13:16:53]SAM_PROTO_GetShiftState [13:16:53]wFMCommunicate request_size=4 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 13 01 00 [13:16:53]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 0E 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 53 [13:16:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:16:53]wFMCommunicate OK [13:16:53]SAM_PROTO_GetShiftState done [13:16:53]FM_GetShiftState done [13:16:53]req_shift_opened done [13:16:53]requested_item shift.open_date is exist - process it [13:16:53]req_shift_open_date [13:16:53]req_shift_open_date done [13:16:53]produce_requested_data done [13:16:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30907,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:16:53]process_action_free close_receipt [13:16:53]json_value_free [13:16:53]json_value_free done [13:16:53]process_json_proto returns [13:16:53]Send response to host [13:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30907,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:16:53]free response buf [13:16:53]execute_script done [13:16:53]execute_script returns [13:16:53]free content buf [13:16:53]Sock 9.Close socket [13:16:53]Sock 9.Thread stoped [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:53]accept exits with 7 [13:41:53]New connection [13:41:53]New thread 3066899812 created [13:41:53]Thread 3067043172 joined [13:41:53]Waiting for new connection... [13:41:53] Sock 7.Parse request [13:41:53]Sock 7.Check first char [13:41:53]Sock 7.First char is OK [13:41:53]request: POST /json_proto HTTP/1.0 [13:41:53]Method: POST [13:41:53]URL: /json_proto [13:41:53]Method is POST - this is cgi request [13:41:53]url: /json_proto [13:41:53]query_string will be loaded in cgi processing [13:41:53]execute_cgi json_proto POST (null) [13:41:53]execute_cgi path=json_proto method=POST [13:41:53]POST find Content-Length [13:41:53]Host: 172.17.51.3:8080 [13:41:53]Content-Length: 677 [13:41:53]Content-Type: application/json [13:41:53] [13:41:53]POST finish read [13:41:53]Found Content-Length = 677 [13:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:53]execute_script... [13:41: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)343334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:53]POST & json_proto [13:41:53]process_json_proto [13:41:53]json parsed OK: [13:41:53]protocol is kg_v1.0 [13:41:53]action value=close_receipt [13:41:53]process_action close_receipt [13:41:53]cmd_close_receipt [13:41:53]MH_GetDate [13:41:53]Write to MH i2c: F0 00 00 FD 00 EC [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 09 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 09 00 FD 00 00 A2 AB 17 67 04 C1 95 66 80 [13:41:53]GetLastDocTimeStamp 1729603010 [13:41:53]current date 1729604514 [13:41:53]FM_GetShiftState [13:41:53]SAM_PROTO_GetShiftState [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 13 01 00 [13:41:53]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0E 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 55 [13:41:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:41:53]wFMCommunicate OK [13:41:53]SAM_PROTO_GetShiftState done [13:41:53]FM_GetShiftState done [13:41:53]opened in 1729557342 [13:41:53]opened+sec_in_day 1729643742 [13:41:53]quantity*price = 20003 [13:41:53]sum+1 = 20004 [13:41:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 141 22.10.2024 13:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30908 ФПД: 78115336702951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134154&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30908&fm=78115336702951&tin=02508201610067®Number=0000000000186857&sum=20000 [13:41:54]StoreToDocumentArchive [13:41:54]shift 116 fd 30908 [13:41:54]save to /storage/0116/doc_00030908 [13:41:54]save last doc name /storage/0116/doc_00030908 to /storage/kkm_last_doc_name [13:41:54]save OK [13:41:54]Clear old archive folders... [13:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:54]tlvbuf is 00CC3D50 [13:41:54]SAM_PROTO_ClearQueue [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 09 00 00 [13:41:54]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_ClearQueue done [13:41:54]KKMCreateOFDPacket [13:41:54]OFDProtocolAddRootSTLVToBuf [13:41:54]FM_MakeSignedData [13:41:54]FM_MakeSignedData [13:41:54]SAM_PROTO_SignData [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 01 02 [13:41:54]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=255 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A2 AB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 78 00 00 35 04 06 00 47 [13:41:54]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A2 AB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 78 00 00 35 04 06 00 47 00 00 20 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=10 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 02 02 05 0B A4 E5 4B E7 [13:41:54]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 0B A4 E5 4B E7 00 00 59 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 03 02 [13:41:54]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 0F 01 00 65 1E D4 BD 8F FF 6E 3E 90 00 DA [13:41:54]RAPDU: 65 1E D4 BD 8F FF 6E 3E 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_SignData done [13:41:54]FM_MakeSignedData done [13:41:54]CreateOFDProtocolMessage [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 11 00 00 [13:41:54]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [13:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:41:54]wFMCommunicate OK [13:41:54]CreateOFDProtocolMessage done [13:41:54]OFDSenderStorePacket 30908 [13:41:54]StoreOFDPacket docnum=30908 [13:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 7E 07 01 B9 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A2 AB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 78 00 00 35 04 06 00 47 0B A4 E5 4B E7 65 1E D4 BD 8F FF 6E 3E [13:41:54]CheckFolder [13:41:54]dirname=/storage/ofd_packets [13:41:54]CheckFolder done [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00030908 [13:41:54]NVStorageSaveData ofd_packets/00030908 [13:41:54]File name is /storage/ofd_packets/00030908 [13:41:54]Write 301 bytes [13:41:54]NVStorageSaveData done [13:41:54]OFDSenderStorePacket done [13:41:54]KKMCreateOFDPacket done [13:41:54]NVStorageSaveData kkm_last_timestamp [13:41:54]File name is /storage/kkm_last_timestamp [13:41:54]Write 4 bytes [13:41:54]NVStorageSaveData done [13:41:54]ExternCall_PrintAddStr [13:41:54]wPrintStart [13:41:54]Write to MH i2c: 01 00 00 11 01 12 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [13:41:54]RasterBufferAndPrint [13:41:54]line Счет N : (1)343334 [13:41:54]line ИНН: 02508201610067 [13:41:54]line Контрольно-Кассовый Чек [13:41:54]line ПРОДАЖА [13:41:54]line ТРК (МРК, ГНК) : 33 [13:41:54]line Товар: 2710124130 [13:41:54]line Аи-92-К-2 [13:41:54]line 2.990 * 66.90 [13:41:54]line = 200.03 [13:41:54]line НДС 12% НСП 1% [13:41:54]line > о реализуемом товаре [13:41:54]line ОКРУГЛЕНИЕ: -0.03 [13:41:54]line ИТОГО: 200.00 [13:41:54]line Внесено: 200.00 [13:41:54]line СДАЧА: 0.00 [13:41:54]line НСП 1% : 1.77 [13:41:54]line НДС 12% : 21.24 [13:41:54]line Наличными: 200.00 [13:41:54]line Безнал.: 0.00 [13:41:54]line Место: АЗС № 78 "Партнер Нефть" [13:41:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:41:54]line СНО: Общий режим [13:41:54]line Чек 141 22.10.2024 13:41 [13:41:54]line Смена: 116 ФФД: 1.0 [13:41:54]line ЗНМ: 0300000137 [13:41:54]line РНМ: 0000000000186857 [13:41:54]line Версия ККМ: v1.0 [13:41:54]line ФМ: 0000000002094219 [13:41:54]line ФД: 30908 [13:41:54]line ФПД: 78115336702951 [13:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134154&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30908&fm=78115336702951&tin=02508201610067®Number=0000000000186857&sum=20000 [13:41:55]OFD Sender: Processing packet 30908 [packets to send 11, broken 10] [13:41:55]ProducePacketName [13:41:55]name=ofd_packets/00030908 [13:41:55]OFD Sender: To server: pG, [13:41:55]CommunicateWithHost lk.salyk.kg:30040 [13:41:55]ConnectInit lk.salyk.kg [13:41:55]written 0, free lines is 4095 [13:41:55]Connected sock=10 [13:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 7E 07 01 B9 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A2 AB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 78 00 00 35 04 06 00 47 0B A4 E5 4B E7 65 1E D4 BD 8F FF 6E 3E [13:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DD B7 47 00 7D 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 32 30 39 34 32 31 39 10 04 04 00 BC 78 00 00 F4 03 04 00 1F 56 17 67 B6 04 01 00 00 26 24 60 3C BF 69 1E 77 [13:41:55]CommunicateWithHost err = 0 [13:41:55]CheckOFDResponse [13:41:55]1017 (14) - 77093643461234 [13:41:55]1041 (16) - 0000000002094219 [13:41:55]1040 (4) - 30908 [13:41:55]1012 (4) - 22.10.2024 07:37 [13:41:55]1206 (1) - 0 [13:41:55]OFD Sender: Remove packet 30908 [13:41:55]ProducePacketName [13:41:55]name=ofd_packets/00030908 [13:41:55]NVStorageDeleteData [13:41:55]Write to MH i2c: 01 00 00 3C 01 3D [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 E3 0C 33 [13:41:55]RasterBufferAndPrint [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]written 0, free lines is 3304 [13:41:55]MH_Cut [13:41:55]Write to MH i2c: D1 01 00 43 01 01 16 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 43 01 00 15 [13:41:55]Write to MH i2c: 01 00 00 44 01 45 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:56]OFD Sender: No OFD packet to send [13:41:56]*** Cut start [13:41:56]*** Partial cut [13:41:56]*** CUTSNS_PIN = 1 [13:41:56]*** CUTSNS_PIN = 0 [13:41:56]*** Brake cut motor [13:41:57]Read from MH i2c: 01 [13:41:57]MH_I2C_Read... [13:41:57]*** Stop cut motor [13:41:57]*** Cut end [13:41:57]Read from MH i2c: 01 07 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [13:41:57]process_action close_receipt done [13:41:57]requested_data is exist [13:41:57]produce_requested_data [13:41:57]requested_item fm.sn is exist - process it [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 11 00 00 [13:41:57]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 17 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [13:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:41:57]wFMCommunicate OK [13:41:57]requested_item fd.num is exist - process it [13:41:57]SAM_PROTO_GetFieldsCounters [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 13 00 00 [13:41:57]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 62 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 78 00 00 0E 04 04 00 74 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 38 [13:41:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 78 00 00 0E 04 04 00 74 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 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_GetFieldsCounters done [13:41:57]requested_item shift.num is exist - process it [13:41:57]requested_item shift.opened is exist - process it [13:41:57]req_shift_opened [13:41:57]FM_GetShiftState [13:41:57]SAM_PROTO_GetShiftState [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 13 01 00 [13:41:57]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0E 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9F [13:41:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_GetShiftState done [13:41:57]FM_GetShiftState done [13:41:57]req_shift_opened done [13:41:57]requested_item shift.open_date is exist - process it [13:41:57]req_shift_open_date [13:41:57]req_shift_open_date done [13:41:57]produce_requested_data done [13:41:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30908,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:41:57]process_action_free close_receipt [13:41:57]json_value_free [13:41:57]json_value_free done [13:41:57]process_json_proto returns [13:41:57]Send response to host [13:41:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30908,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:41:57]free response buf [13:41:57]execute_script done [13:41:57]execute_script returns [13:41:57]free content buf [13:41:57]Sock 7.Close socket [13:41:57]Sock 7.Thread stoped [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:27]accept exits with 9 [13:45:27]New connection [13:45:27]New thread 3067043172 created [13:45:27]Thread 3066899812 joined [13:45:27]Waiting for new connection... [13:45:27] Sock 9.Parse request [13:45:27]Sock 9.Check first char [13:45:27]Sock 9.First char is OK [13:45:27]request: POST /json_proto HTTP/1.0 [13:45:27]Method: POST [13:45:27]URL: /json_proto [13:45:27]Method is POST - this is cgi request [13:45:27]url: /json_proto [13:45:27]query_string will be loaded in cgi processing [13:45:27]execute_cgi json_proto POST (null) [13:45:27]execute_cgi path=json_proto method=POST [13:45:27]POST find Content-Length [13:45:27]Host: 172.17.51.3:8080 [13:45:27]Content-Length: 677 [13:45:27]Content-Type: application/json [13:45:27] [13:45:27]POST finish read [13:45:27]Found Content-Length = 677 [13:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:27]execute_script... [13:45:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:27]POST & json_proto [13:45:27]process_json_proto [13:45:27]json parsed OK: [13:45:27]protocol is kg_v1.0 [13:45:27]action value=close_receipt [13:45:27]process_action close_receipt [13:45:27]cmd_close_receipt [13:45:27]MH_GetDate [13:45:27]Write to MH i2c: F0 00 00 48 01 38 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 09 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 09 00 48 01 00 78 AC 17 67 04 C1 95 66 A3 [13:45:27]GetLastDocTimeStamp 1729604514 [13:45:27]current date 1729604728 [13:45:27]FM_GetShiftState [13:45:27]SAM_PROTO_GetShiftState [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 01 00 [13:45:27]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A1 [13:45:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetShiftState done [13:45:27]FM_GetShiftState done [13:45:27]opened in 1729557342 [13:45:27]opened+sec_in_day 1729643742 [13:45:27]quantity*price = 30038 [13:45:27]sum+1 = 30039 [13:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 142 22.10.2024 13:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30909 ФПД: 161699043308640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30909&fm=161699043308640&tin=02508201610067®Number=0000000000186857&sum=30000 [13:45:28]StoreToDocumentArchive [13:45:28]shift 116 fd 30909 [13:45:28]save to /storage/0116/doc_00030909 [13:45:28]save last doc name /storage/0116/doc_00030909 to /storage/kkm_last_doc_name [13:45:28]save OK [13:45:28]Clear old archive folders... [13:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:28]tlvbuf is 00D32050 [13:45:28]SAM_PROTO_ClearQueue [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 09 00 00 [13:45:28]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]SAM_PROTO_ClearQueue done [13:45:28]KKMCreateOFDPacket [13:45:28]OFDProtocolAddRootSTLVToBuf [13:45:28]FM_MakeSignedData [13:45:28]FM_MakeSignedData [13:45:28]SAM_PROTO_SignData [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 01 02 [13:45:28]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=255 [13:45:28]MH_SAM_APDU [13:45: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 78 AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 78 00 00 35 04 06 00 93 [13:45:28]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 78 AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 78 00 00 35 04 06 00 93 00 00 C2 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=10 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 02 02 05 10 7E 09 74 60 [13:45:28]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 10 7E 09 74 60 00 00 49 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 03 02 [13:45:28]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 0B 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 0B 00 5A 01 00 7A 05 18 5A 90 AA 68 47 90 00 B1 [13:45:28]RAPDU: 7A 05 18 5A 90 AA 68 47 90 00 [13:45:28]wFMCommunicate OK [13:45:28]SAM_PROTO_SignData done [13:45:28]FM_MakeSignedData done [13:45:28]CreateOFDProtocolMessage [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 11 00 00 [13:45:28]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 17 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 24 [13:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:28]wFMCommunicate OK [13:45:28]CreateOFDProtocolMessage done [13:45:28]OFDSenderStorePacket 30909 [13:45:28]StoreOFDPacket docnum=30909 [13:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F9 56 07 01 44 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 78 AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 78 00 00 35 04 06 00 93 10 7E 09 74 60 7A 05 18 5A 90 AA 68 47 [13:45:28]CheckFolder [13:45:28]dirname=/storage/ofd_packets [13:45:28]CheckFolder done [13:45:28]ProducePacketName [13:45:28]name=ofd_packets/00030909 [13:45:28]NVStorageSaveData ofd_packets/00030909 [13:45:28]File name is /storage/ofd_packets/00030909 [13:45:28]Write 301 bytes [13:45:28]NVStorageSaveData done [13:45:28]OFDSenderStorePacket done [13:45:28]KKMCreateOFDPacket done [13:45:28]NVStorageSaveData kkm_last_timestamp [13:45:28]File name is /storage/kkm_last_timestamp [13:45:28]Write 4 bytes [13:45:28]NVStorageSaveData done [13:45:28]ExternCall_PrintAddStr [13:45:28]wPrintStart [13:45:28]Write to MH i2c: 01 00 00 5C 01 5D [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 07 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [13:45:28]RasterBufferAndPrint [13:45:28]line Счет N : (1)343336 [13:45:28]line ИНН: 02508201610067 [13:45:28]line Контрольно-Кассовый Чек [13:45:28]line ПРОДАЖА [13:45:28]line ТРК (МРК, ГНК) : 43 [13:45:28]line Товар: 2710124130 [13:45:28]line Аи-92-К-2 [13:45:28]line 4.490 * 66.90 [13:45:28]line = 300.38 [13:45:28]line НДС 12% НСП 1% [13:45:28]line > о реализуемом товаре [13:45:28]line ОКРУГЛЕНИЕ: -0.38 [13:45:28]line ИТОГО: 300.00 [13:45:28]line Внесено: 300.00 [13:45:28]line СДАЧА: 0.00 [13:45:28]line НСП 1% : 2.66 [13:45:28]line НДС 12% : 31.90 [13:45:28]line Наличными: 300.00 [13:45:28]line Безнал.: 0.00 [13:45:28]line Место: АЗС № 78 "Партнер Нефть" [13:45:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:45:28]line СНО: Общий режим [13:45:28]line Чек 142 22.10.2024 13:45 [13:45:28]line Смена: 116 ФФД: 1.0 [13:45:28]line ЗНМ: 0300000137 [13:45:28]line РНМ: 0000000000186857 [13:45:28]line Версия ККМ: v1.0 [13:45:28]line ФМ: 0000000002094219 [13:45:28]line ФД: 30909 [13:45:28]line ФПД: 161699043308640 [13:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30909&fm=161699043308640&tin=02508201610067®Number=0000000000186857&sum=30000 [13:45:29]OFD Sender: Processing packet 30909 [packets to send 11, broken 10] [13:45:29]ProducePacketName [13:45:29]name=ofd_packets/00030909 [13:45:29]OFD Sender: To server: pG, [13:45:29]CommunicateWithHost lk.salyk.kg:30040 [13:45:29]ConnectInit lk.salyk.kg [13:45:29]written 0, free lines is 4095 [13:45:29]Connected sock=7 [13:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F9 56 07 01 44 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 78 AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 78 00 00 35 04 06 00 93 10 7E 09 74 60 7A 05 18 5A 90 AA 68 47 [13:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 19 AB 47 00 B6 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 78 00 00 F4 03 04 00 F5 56 17 67 B6 04 01 00 00 C3 2A 34 44 62 B0 A1 16 [13:45:29]CommunicateWithHost err = 0 [13:45:29]CheckOFDResponse [13:45:29]1017 (14) - 77093643461234 [13:45:29]1041 (16) - 0000000002094219 [13:45:29]1040 (4) - 30909 [13:45:29]1012 (4) - 22.10.2024 07:40 [13:45:29]1206 (1) - 0 [13:45:29]OFD Sender: Remove packet 30909 [13:45:29]ProducePacketName [13:45:29]name=ofd_packets/00030909 [13:45:29]NVStorageDeleteData [13:45:29]Write to MH i2c: 01 00 00 87 01 88 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 F2 0C 8D [13:45:29]RasterBufferAndPrint [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]written 0, free lines is 3320 [13:45:29]MH_Cut [13:45:29]Write to MH i2c: D1 01 00 8E 01 01 61 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 8E 01 00 60 [13:45:29]Write to MH i2c: 01 00 00 8F 01 90 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:30]OFD Sender: No OFD packet to send [13:45:30]*** Cut start [13:45:30]*** Partial cut [13:45:30]*** CUTSNS_PIN = 1 [13:45:30]*** CUTSNS_PIN = 0 [13:45:30]*** Brake cut motor [13:45:31]Read from MH i2c: 01 [13:45:31]MH_I2C_Read... [13:45:31]*** Stop cut motor [13:45:31]*** Cut end [13:45:31]Read from MH i2c: 01 07 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [13:45:31]process_action close_receipt done [13:45:31]requested_data is exist [13:45:31]produce_requested_data [13:45:31]requested_item fm.sn is exist - process it [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 11 00 00 [13:45:31]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [13:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:31]wFMCommunicate OK [13:45:31]requested_item fd.num is exist - process it [13:45:31]SAM_PROTO_GetFieldsCounters [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 13 00 00 [13:45:31]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 62 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 78 00 00 0E 04 04 00 74 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 87 [13:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 78 00 00 0E 04 04 00 74 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 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_GetFieldsCounters done [13:45:31]requested_item shift.num is exist - process it [13:45:31]requested_item shift.opened is exist - process it [13:45:31]req_shift_opened [13:45:31]FM_GetShiftState [13:45:31]SAM_PROTO_GetShiftState [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 13 01 00 [13:45:31]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0E 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EA [13:45:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_GetShiftState done [13:45:31]FM_GetShiftState done [13:45:31]req_shift_opened done [13:45:31]requested_item shift.open_date is exist - process it [13:45:31]req_shift_open_date [13:45:31]req_shift_open_date done [13:45:31]produce_requested_data done [13:45:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30909,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:45:31]process_action_free close_receipt [13:45:31]json_value_free [13:45:31]json_value_free done [13:45:31]process_json_proto returns [13:45:31]Send response to host [13:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30909,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:45:31]free response buf [13:45:31]execute_script done [13:45:31]execute_script returns [13:45:31]free content buf [13:45:31]Sock 9.Close socket [13:45:31]Sock 9.Thread stoped [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:21]accept exits with 10 [13:47:21]New connection [13:47:21]New thread 3066899812 created [13:47:21]Thread 3067043172 joined [13:47:21]Waiting for new connection... [13:47:21] Sock 10.Parse request [13:47:21]Sock 10.Check first char [13:47:21]Sock 10.First char is OK [13:47:21]request: POST /json_proto HTTP/1.0 [13:47:21]Method: POST [13:47:21]URL: /json_proto [13:47:21]Method is POST - this is cgi request [13:47:21]url: /json_proto [13:47:21]query_string will be loaded in cgi processing [13:47:21]execute_cgi json_proto POST (null) [13:47:21]execute_cgi path=json_proto method=POST [13:47:21]POST find Content-Length [13:47:21]Host: 172.17.51.3:8080 [13:47:21]Content-Length: 677 [13:47:21]Content-Type: application/json [13:47:21] [13:47:21]POST finish read [13:47:21]Found Content-Length = 677 [13:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:21]execute_script... [13:47: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)343337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:21]POST & json_proto [13:47:21]process_json_proto [13:47:21]json parsed OK: [13:47:21]protocol is kg_v1.0 [13:47:21]action value=close_receipt [13:47:21]process_action close_receipt [13:47:21]cmd_close_receipt [13:47:21]MH_GetDate [13:47:21]Write to MH i2c: F0 00 00 93 01 83 [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: F0 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: F0 09 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: F0 09 00 93 01 00 EA AC 17 67 04 C1 95 66 60 [13:47:21]GetLastDocTimeStamp 1729604728 [13:47:21]current date 1729604842 [13:47:21]FM_GetShiftState [13:47:21]SAM_PROTO_GetShiftState [13:47:21]wFMCommunicate request_size=4 [13:47:21]MH_SAM_APDU [13:47:21]CAPDU: 80 13 01 00 [13:47:21]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:21]Read from MH i2c: E2 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 0E 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EC [13:47:21]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:47:21]wFMCommunicate OK [13:47:21]SAM_PROTO_GetShiftState done [13:47:21]FM_GetShiftState done [13:47:21]opened in 1729557342 [13:47:21]opened+sec_in_day 1729643742 [13:47:21]quantity*price = 40006 [13:47:21]sum+1 = 40007 [13:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 143 22.10.2024 13:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30910 ФПД: 138689752335034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134722&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30910&fm=138689752335034&tin=02508201610067®Number=0000000000186857&sum=40000 [13:47:22]StoreToDocumentArchive [13:47:22]shift 116 fd 30910 [13:47:22]save to /storage/0116/doc_00030910 [13:47:22]save last doc name /storage/0116/doc_00030910 to /storage/kkm_last_doc_name [13:47:22]save OK [13:47:22]Clear old archive folders... [13:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:22]tlvbuf is 00D33440 [13:47:22]SAM_PROTO_ClearQueue [13:47:22]wFMCommunicate request_size=4 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 09 00 00 [13:47:22]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [13:47:22]RAPDU: 90 00 [13:47:22]wFMCommunicate OK [13:47:22]SAM_PROTO_ClearQueue done [13:47:22]KKMCreateOFDPacket [13:47:22]OFDProtocolAddRootSTLVToBuf [13:47:22]FM_MakeSignedData [13:47:22]FM_MakeSignedData [13:47:22]SAM_PROTO_SignData [13:47:22]wFMCommunicate request_size=4 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 0D 01 02 [13:47:22]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [13:47:22]RAPDU: 90 00 [13:47:22]wFMCommunicate OK [13:47:22]wFMCommunicate request_size=255 [13:47:22]MH_SAM_APDU [13:47: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 EA AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 78 00 00 35 04 06 00 7E [13:47:22]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 EA AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 78 00 00 35 04 06 00 7E 00 00 47 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [13:47:22]RAPDU: 90 00 [13:47:22]wFMCommunicate OK [13:47:22]wFMCommunicate request_size=10 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 0D 02 02 05 23 39 6C 02 BA [13:47:22]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 23 39 6C 02 BA 00 00 AD [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [13:47:22]RAPDU: 90 00 [13:47:22]wFMCommunicate OK [13:47:22]wFMCommunicate request_size=4 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 0D 03 02 [13:47:22]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 0B 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 0B 00 A5 01 00 A9 94 C5 29 DC FB DC F3 90 00 F3 [13:47:22]RAPDU: A9 94 C5 29 DC FB DC F3 90 00 [13:47:22]wFMCommunicate OK [13:47:22]SAM_PROTO_SignData done [13:47:22]FM_MakeSignedData done [13:47:22]CreateOFDProtocolMessage [13:47:22]wFMCommunicate request_size=4 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 11 00 00 [13:47:22]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 17 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [13:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:47:22]wFMCommunicate OK [13:47:22]CreateOFDProtocolMessage done [13:47:22]OFDSenderStorePacket 30910 [13:47:22]StoreOFDPacket docnum=30910 [13:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 9D 07 01 94 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 EA AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 78 00 00 35 04 06 00 7E 23 39 6C 02 BA A9 94 C5 29 DC FB DC F3 [13:47:22]CheckFolder [13:47:22]dirname=/storage/ofd_packets [13:47:22]CheckFolder done [13:47:22]ProducePacketName [13:47:22]name=ofd_packets/00030910 [13:47:22]NVStorageSaveData ofd_packets/00030910 [13:47:22]File name is /storage/ofd_packets/00030910 [13:47:22]Write 301 bytes [13:47:22]NVStorageSaveData done [13:47:22]OFDSenderStorePacket done [13:47:22]KKMCreateOFDPacket done [13:47:22]NVStorageSaveData kkm_last_timestamp [13:47:22]File name is /storage/kkm_last_timestamp [13:47:22]Write 4 bytes [13:47:22]NVStorageSaveData done [13:47:22]ExternCall_PrintAddStr [13:47:22]wPrintStart [13:47:22]Write to MH i2c: 01 00 00 A7 01 A8 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: 01 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: 01 07 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [13:47:22]RasterBufferAndPrint [13:47:22]line Счет N : (1)343337 [13:47:22]line ИНН: 02508201610067 [13:47:22]line Контрольно-Кассовый Чек [13:47:22]line ПРОДАЖА [13:47:22]line ТРК (МРК, ГНК) : 43 [13:47:22]line Товар: 2710124130 [13:47:22]line Аи-92-К-2 [13:47:22]line 5.980 * 66.90 [13:47:22]line = 400.06 [13:47:22]line НДС 12% НСП 1% [13:47:22]line > о реализуемом товаре [13:47:22]line ОКРУГЛЕНИЕ: -0.06 [13:47:22]line ИТОГО: 400.00 [13:47:22]line Внесено: 400.00 [13:47:22]line СДАЧА: 0.00 [13:47:22]line НСП 1% : 3.54 [13:47:22]line НДС 12% : 42.48 [13:47:22]line Наличными: 400.00 [13:47:22]line Безнал.: 0.00 [13:47:22]line Место: АЗС № 78 "Партнер Нефть" [13:47:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:47:22]line СНО: Общий режим [13:47:22]line Чек 143 22.10.2024 13:47 [13:47:22]line Смена: 116 ФФД: 1.0 [13:47:22]line ЗНМ: 0300000137 [13:47:22]line РНМ: 0000000000186857 [13:47:22]line Версия ККМ: v1.0 [13:47:22]line ФМ: 0000000002094219 [13:47:22]line ФД: 30910 [13:47:22]line ФПД: 138689752335034 [13:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134722&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30910&fm=138689752335034&tin=02508201610067®Number=0000000000186857&sum=40000 [13:47:23]OFD Sender: Processing packet 30910 [packets to send 11, broken 10] [13:47:23]ProducePacketName [13:47:23]name=ofd_packets/00030910 [13:47:23]OFD Sender: To server: pG, [13:47:23]CommunicateWithHost lk.salyk.kg:30040 [13:47:23]ConnectInit lk.salyk.kg [13:47:23]written 0, free lines is 4095 [13:47:23]Write to MH i2c: 01 00 00 D2 01 D3 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 07 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 E4 0C CA [13:47:23]RasterBufferAndPrint [13:47:23]line [13:47:23]line [13:47:23]line [13:47:23]line [13:47:23]line [13:47:23]written 0, free lines is 3303 [13:47:23]MH_Cut [13:47:23]Write to MH i2c: D1 01 00 D9 01 01 AC [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: D1 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: D1 01 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: D1 01 00 D9 01 00 AB [13:47:23]Write to MH i2c: 01 00 00 DA 01 DB [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:24]*** Cut start [13:47:24]*** Partial cut [13:47:24]*** CUTSNS_PIN = 1 [13:47:24]*** CUTSNS_PIN = 0 [13:47:24]*** Brake cut motor [13:47:25]Read from MH i2c: 01 [13:47:25]MH_I2C_Read... [13:47:25]*** Stop cut motor [13:47:25]*** Cut end [13:47:25]Read from MH i2c: 01 07 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [13:47:25]process_action close_receipt done [13:47:25]requested_data is exist [13:47:25]produce_requested_data [13:47:25]requested_item fm.sn is exist - process it [13:47:25]wFMCommunicate request_size=4 [13:47:25]MH_SAM_APDU [13:47:25]CAPDU: 80 11 00 00 [13:47:25]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:25]Read from MH i2c: E2 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 17 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [13:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:47:25]wFMCommunicate OK [13:47:25]requested_item fd.num is exist - process it [13:47:25]SAM_PROTO_GetFieldsCounters [13:47:25]wFMCommunicate request_size=4 [13:47:25]MH_SAM_APDU [13:47:25]CAPDU: 80 13 00 00 [13:47:25]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:25]Read from MH i2c: E2 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 62 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 78 00 00 0E 04 04 00 74 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 D6 [13:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 78 00 00 0E 04 04 00 74 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 [13:47:25]wFMCommunicate OK [13:47:25]SAM_PROTO_GetFieldsCounters done [13:47:25]requested_item shift.num is exist - process it [13:47:25]requested_item shift.opened is exist - process it [13:47:25]req_shift_opened [13:47:25]FM_GetShiftState [13:47:25]SAM_PROTO_GetShiftState [13:47:25]wFMCommunicate request_size=4 [13:47:25]MH_SAM_APDU [13:47:25]CAPDU: 80 13 01 00 [13:47:25]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:25]Read from MH i2c: E2 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 35 [13:47:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:47:25]wFMCommunicate OK [13:47:25]SAM_PROTO_GetShiftState done [13:47:25]FM_GetShiftState done [13:47:25]req_shift_opened done [13:47:25]requested_item shift.open_date is exist - process it [13:47:25]req_shift_open_date [13:47:25]req_shift_open_date done [13:47:25]produce_requested_data done [13:47:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30910,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:47:25]process_action_free close_receipt [13:47:25]json_value_free [13:47:25]json_value_free done [13:47:25]process_json_proto returns [13:47:25]Send response to host [13:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30910,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:47:25]free response buf [13:47:25]execute_script done [13:47:25]execute_script returns [13:47:25]free content buf [13:47:25]Sock 10.Close socket [13:47:25]Sock 10.Thread stoped [13:49:13]accept exits with 7 [13:49:13]New connection [13:49:13]New thread 3067043172 created [13:49:13]Thread 3066899812 joined [13:49:13]Waiting for new connection... [13:49:13] Sock 7.Parse request [13:49:13]Sock 7.Check first char [13:49:13]Sock 7.First char is OK [13:49:13]request: POST /json_proto HTTP/1.0 [13:49:13]Method: POST [13:49:13]URL: /json_proto [13:49:13]Method is POST - this is cgi request [13:49:13]url: /json_proto [13:49:13]query_string will be loaded in cgi processing [13:49:13]execute_cgi json_proto POST (null) [13:49:13]execute_cgi path=json_proto method=POST [13:49:13]POST find Content-Length [13:49:13]Host: 172.17.51.3:8080 [13:49:13]Content-Length: 751 [13:49:13]Content-Type: application/json [13:49:13] [13:49:13]POST finish read [13:49:13]Found Content-Length = 751 [13:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047759", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:13]execute_script... [13:49: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)343335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047759", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:13]POST & json_proto [13:49:13]process_json_proto [13:49:13]json parsed OK: [13:49:13]protocol is kg_v1.0 [13:49:13]action value=close_receipt [13:49:13]process_action close_receipt [13:49:13]cmd_close_receipt [13:49:13]MH_GetDate [13:49:13]Write to MH i2c: F0 00 00 DE 01 CE [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 09 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 09 00 DE 01 00 5A AD 17 67 04 C1 95 66 1C [13:49:13]GetLastDocTimeStamp 1729604842 [13:49:13]current date 1729604954 [13:49:13]FM_GetShiftState [13:49:13]SAM_PROTO_GetShiftState [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 13 01 00 [13:49:13]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0E 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 37 [13:49:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:49:13]wFMCommunicate OK [13:49:13]SAM_PROTO_GetShiftState done [13:49:13]FM_GetShiftState done [13:49:13]opened in 1729557342 [13:49:13]opened+sec_in_day 1729643742 [13:49:13]quantity*price = 0 [13:49:13]sum+1 = 1 [13:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 144 22.10.2024 13:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30047759 ФМ: 0000000002094219 ФД: 30911 ФПД: 233391126750958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30911&fm=233391126750958&tin=02508201610067®Number=0000000000186857&sum=0 [13:49:14]StoreToDocumentArchive [13:49:14]shift 116 fd 30911 [13:49:14]save to /storage/0116/doc_00030911 [13:49:14]save last doc name /storage/0116/doc_00030911 to /storage/kkm_last_doc_name [13:49:14]save OK [13:49:14]Clear old archive folders... [13:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:49:14]tlvbuf is 00D32E70 [13:49:14]SAM_PROTO_ClearQueue [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 09 00 00 [13:49:14]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]SAM_PROTO_ClearQueue done [13:49:14]KKMCreateOFDPacket [13:49:14]OFDProtocolAddRootSTLVToBuf [13:49:14]FM_MakeSignedData [13:49:14]FM_MakeSignedData [13:49:14]SAM_PROTO_SignData [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 01 02 [13:49:14]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=255 [13:49:14]MH_SAM_APDU [13:49: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 32 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 5A AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 78 00 00 35 04 06 00 D4 44 9B 34 [13:49:14]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 5A AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 78 00 00 35 04 06 00 D4 44 9B 34 00 00 26 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=7 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 02 02 02 26 EE [13:49:14]Write to MH i2c: E2 0A 00 EF 01 80 0D 02 02 02 00 26 EE 00 00 82 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 03 02 [13:49:14]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:15]Read from MH i2c: E2 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: E2 0B 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: E2 0B 00 F0 01 00 6E 30 60 28 BC 04 B1 07 90 00 0B [13:49:15]RAPDU: 6E 30 60 28 BC 04 B1 07 90 00 [13:49:15]wFMCommunicate OK [13:49:15]SAM_PROTO_SignData done [13:49:15]FM_MakeSignedData done [13:49:15]CreateOFDProtocolMessage [13:49:15]wFMCommunicate request_size=4 [13:49:15]MH_SAM_APDU [13:49:15]CAPDU: 80 11 00 00 [13:49:15]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:15]Read from MH i2c: E2 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: E2 17 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [13:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:49:15]wFMCommunicate OK [13:49:15]CreateOFDProtocolMessage done [13:49:15]OFDSenderStorePacket 30911 [13:49:15]StoreOFDPacket docnum=30911 [13:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A4 23 04 01 21 5A 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 32 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 5A AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 78 00 00 35 04 06 00 D4 44 9B 34 26 EE 6E 30 60 28 BC 04 B1 07 [13:49:15]CheckFolder [13:49:15]dirname=/storage/ofd_packets [13:49:15]CheckFolder done [13:49:15]ProducePacketName [13:49:15]name=ofd_packets/00030911 [13:49:15]NVStorageSaveData ofd_packets/00030911 [13:49:15]File name is /storage/ofd_packets/00030911 [13:49:15]Write 298 bytes [13:49:15]NVStorageSaveData done [13:49:15]OFDSenderStorePacket done [13:49:15]KKMCreateOFDPacket done [13:49:15]NVStorageSaveData kkm_last_timestamp [13:49:15]File name is /storage/kkm_last_timestamp [13:49:15]Write 4 bytes [13:49:15]NVStorageSaveData done [13:49:15]ExternCall_PrintAddStr [13:49:15]wPrintStart [13:49:15]Write to MH i2c: 01 00 00 F2 01 F3 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [13:49:15]RasterBufferAndPrint [13:49:15]line Счет N : (1)343335 [13:49:15]line ИНН: 02508201610067 [13:49:15]line Контрольно-Кассовый Чек [13:49:15]line ПРОДАЖА [13:49:15]line ТРК (МРК, ГНК) : 64 [13:49:15]line Товар: 2710194210 [13:49:15]line ДТ-К-2 [13:49:15]line 80.000 * 0.00 [13:49:15]line = 0.00 [13:49:15]line НДС 12% НСП 1% [13:49:15]line > о реализуемом товаре [13:49:15]line ИТОГО: 0.00 [13:49:15]line НСП 1% : 0.00 [13:49:15]line НДС 12% : 0.00 [13:49:15]line Наличными: 0.00 [13:49:15]line Безнал.: 0.00 [13:49:15]line Место: АЗС № 78 "Партнер Нефть" [13:49:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:49:15]line СНО: Общий режим [13:49:15]line Чек 144 22.10.2024 13:49 [13:49:15]line Смена: 116 ФФД: 1.0 [13:49:15]line ЗНМ: 0300000137 [13:49:15]line РНМ: 0000000000186857 [13:49:15]line Версия ККМ: v1.0 [13:49:15]line Талоны: ТК ГПНА Online [13:49:15]line 30047759 [13:49:15]line ФМ: 0000000002094219 [13:49:15]line ФД: 30911 [13:49:15]line ФПД: 233391126750958 [13:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30911&fm=233391126750958&tin=02508201610067®Number=0000000000186857&sum=0 [13:49:15]written 0, free lines is 4095 [13:49:15]Write to MH i2c: 01 00 00 1C 02 1E [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 F2 0C 23 [13:49:15]RasterBufferAndPrint [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]written 0, free lines is 3320 [13:49:15]MH_Cut [13:49:15]Write to MH i2c: D1 01 00 23 02 01 F7 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 23 02 00 F6 [13:49:15]Write to MH i2c: 01 00 00 24 02 26 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:16]*** Cut start [13:49:16]*** Partial cut [13:49:16]*** CUTSNS_PIN = 1 [13:49:16]*** CUTSNS_PIN = 0 [13:49:16]*** Brake cut motor [13:49:17]Read from MH i2c: 01 [13:49:17]MH_I2C_Read... [13:49:17]*** Stop cut motor [13:49:17]*** Cut end [13:49:17]Read from MH i2c: 01 07 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [13:49:17]process_action close_receipt done [13:49:17]requested_data is exist [13:49:17]produce_requested_data [13:49:17]requested_item fm.sn is exist - process it [13:49:17]wFMCommunicate request_size=4 [13:49:17]MH_SAM_APDU [13:49:17]CAPDU: 80 11 00 00 [13:49:17]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 17 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [13:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:49:17]wFMCommunicate OK [13:49:17]requested_item fd.num is exist - process it [13:49:17]SAM_PROTO_GetFieldsCounters [13:49:17]wFMCommunicate request_size=4 [13:49:17]MH_SAM_APDU [13:49:17]CAPDU: 80 13 00 00 [13:49:17]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 62 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 78 00 00 0E 04 04 00 74 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 25 [13:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 78 00 00 0E 04 04 00 74 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 [13:49:17]wFMCommunicate OK [13:49:17]SAM_PROTO_GetFieldsCounters done [13:49:17]requested_item shift.num is exist - process it [13:49:17]requested_item shift.opened is exist - process it [13:49:17]req_shift_opened [13:49:17]FM_GetShiftState [13:49:17]SAM_PROTO_GetShiftState [13:49:17]wFMCommunicate request_size=4 [13:49:17]MH_SAM_APDU [13:49:17]CAPDU: 80 13 01 00 [13:49:17]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 80 [13:49:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:49:17]wFMCommunicate OK [13:49:17]SAM_PROTO_GetShiftState done [13:49:17]FM_GetShiftState done [13:49:17]req_shift_opened done [13:49:17]requested_item shift.open_date is exist - process it [13:49:17]req_shift_open_date [13:49:17]req_shift_open_date done [13:49:17]produce_requested_data done [13:49:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30911,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:49:17]process_action_free close_receipt [13:49:17]json_value_free [13:49:17]json_value_free done [13:49:17]process_json_proto returns [13:49:17]Send response to host [13:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30911,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:49:17]free response buf [13:49:17]execute_script done [13:49:17]execute_script returns [13:49:17]free content buf [13:49:17]Sock 7.Close socket [13:49:17]Sock 7.Thread stoped [13:49:36]ConnectInit Can't connect to host [13:49:36]CommunicateWithHost connect error [13:49:36]CommunicateWithHost err = -1 [13:49:36]OFD Sender: Server communicate error [13:49:36]OFD Sender: Processing packet 30910 [packets to send 12, broken 10] [13:49:36]ProducePacketName [13:49:36]name=ofd_packets/00030910 [13:49:36]OFD Sender: To server: pG, [13:49:36]CommunicateWithHost lk.salyk.kg:30040 [13:49:36]ConnectInit lk.salyk.kg [13:49:36]Connected sock=7 [13:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 9D 07 01 94 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 EA AC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 78 00 00 35 04 06 00 7E 23 39 6C 02 BA A9 94 C5 29 DC FB DC F3 [13:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 71 47 00 9B 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 78 00 00 F4 03 04 00 EC 57 17 67 B6 04 01 00 00 60 79 16 FF B3 89 0F 47 [13:49:37]CommunicateWithHost err = 0 [13:49:37]CheckOFDResponse [13:49:37]1017 (14) - 77093643461234 [13:49:37]1041 (16) - 0000000002094219 [13:49:37]1040 (4) - 30910 [13:49:37]1012 (4) - 22.10.2024 07:44 [13:49:37]1206 (1) - 0 [13:49:37]OFD Sender: Remove packet 30910 [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00030910 [13:49:37]NVStorageDeleteData [13:49:37]OFD Sender: Processing packet 30911 [packets to send 11, broken 10] [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00030911 [13:49:37]OFD Sender: To server: pG, [13:49:37]CommunicateWithHost lk.salyk.kg:30040 [13:49:37]ConnectInit lk.salyk.kg [13:49:37]Connected sock=7 [13:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A4 23 04 01 21 5A 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 32 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 5A AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 78 00 00 35 04 06 00 D4 44 9B 34 26 EE 6E 30 60 28 BC 04 B1 07 [13:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7C 51 47 00 AD 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 32 30 39 34 32 31 39 10 04 04 00 BF 78 00 00 F4 03 04 00 ED 57 17 67 B6 04 01 00 00 03 23 ED 63 79 FA 20 8F [13:49:37]CommunicateWithHost err = 0 [13:49:37]CheckOFDResponse [13:49:37]1017 (14) - 77093643461234 [13:49:37]1041 (16) - 0000000002094219 [13:49:37]1040 (4) - 30911 [13:49:37]1012 (4) - 22.10.2024 07:44 [13:49:37]1206 (1) - 0 [13:49:37]OFD Sender: Remove packet 30911 [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00030911 [13:49:37]NVStorageDeleteData [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:57]accept exits with 10 [13:49:57]New connection [13:49:57]New thread 3066899812 created [13:49:57]Thread 3067043172 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 10.Parse request [13:49:57]Sock 10.Check first char [13:49:57]Sock 10.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.51.3:8080 [13:49:57]Content-Length: 677 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 677 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]execute_script... [13:49:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=close_receipt [13:49:57]process_action close_receipt [13:49:57]cmd_close_receipt [13:49:57]MH_GetDate [13:49:57]Write to MH i2c: F0 00 00 28 02 19 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 28 02 00 86 AD 17 67 04 C1 95 66 93 [13:49:57]GetLastDocTimeStamp 1729604954 [13:49:57]current date 1729604998 [13:49:57]FM_GetShiftState [13:49:57]SAM_PROTO_GetShiftState [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 01 00 [13:49:57]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 82 [13:49:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetShiftState done [13:49:57]FM_GetShiftState done [13:49:57]opened in 1729557342 [13:49:57]opened+sec_in_day 1729643742 [13:49:57]quantity*price = 50041 [13:49:57]sum+1 = 50042 [13:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 145 22.10.2024 13:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30912 ФПД: 89658297445039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134958&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30912&fm=89658297445039&tin=02508201610067®Number=0000000000186857&sum=50000 [13:49:58]StoreToDocumentArchive [13:49:58]shift 116 fd 30912 [13:49:58]save to /storage/0116/doc_00030912 [13:49:58]save last doc name /storage/0116/doc_00030912 to /storage/kkm_last_doc_name [13:49:58]save OK [13:49:58]Clear old archive folders... [13:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:58]tlvbuf is 00CC1550 [13:49:58]SAM_PROTO_ClearQueue [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 09 00 00 [13:49:58]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_ClearQueue done [13:49:58]KKMCreateOFDPacket [13:49:58]OFDProtocolAddRootSTLVToBuf [13:49:58]FM_MakeSignedData [13:49:58]FM_MakeSignedData [13:49:58]SAM_PROTO_SignData [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 01 02 [13:49:58]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=255 [13:49:58]MH_SAM_APDU [13:49: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 86 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 78 00 00 35 04 06 00 51 [13:49:59]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 86 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 78 00 00 35 04 06 00 51 00 00 82 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [13:49:59]RAPDU: 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=10 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 02 02 05 8B 32 F8 6A AF [13:49:59]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 8B 32 F8 6A AF 00 00 8D [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [13:49:59]RAPDU: 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 03 02 [13:49:59]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 3A 02 00 86 30 1E 38 39 D0 6F E2 90 00 1E [13:49:59]RAPDU: 86 30 1E 38 39 D0 6F E2 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_SignData done [13:49:59]FM_MakeSignedData done [13:49:59]CreateOFDProtocolMessage [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 11 00 00 [13:49:59]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [13:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:49:59]wFMCommunicate OK [13:49:59]CreateOFDProtocolMessage done [13:49:59]OFDSenderStorePacket 30912 [13:49:59]StoreOFDPacket docnum=30912 [13:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D 0F 07 01 FF 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 86 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 78 00 00 35 04 06 00 51 8B 32 F8 6A AF 86 30 1E 38 39 D0 6F E2 [13:49:59]CheckFolder [13:49:59]dirname=/storage/ofd_packets [13:49:59]CheckFolder done [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00030912 [13:49:59]NVStorageSaveData ofd_packets/00030912 [13:49:59]File name is /storage/ofd_packets/00030912 [13:49:59]Write 301 bytes [13:49:59]NVStorageSaveData done [13:49:59]OFDSenderStorePacket done [13:49:59]KKMCreateOFDPacket done [13:49:59]NVStorageSaveData kkm_last_timestamp [13:49:59]File name is /storage/kkm_last_timestamp [13:49:59]Write 4 bytes [13:49:59]NVStorageSaveData done [13:49:59]ExternCall_PrintAddStr [13:49:59]wPrintStart [13:49:59]Write to MH i2c: 01 00 00 3C 02 3E [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [13:49:59]RasterBufferAndPrint [13:49:59]line Счет N : (1)343339 [13:49:59]line ИНН: 02508201610067 [13:49:59]line Контрольно-Кассовый Чек [13:49:59]line ПРОДАЖА [13:49:59]line ТРК (МРК, ГНК) : 43 [13:49:59]line Товар: 2710124130 [13:49:59]line Аи-92-К-2 [13:49:59]line 7.480 * 66.90 [13:49:59]line = 500.41 [13:49:59]line НДС 12% НСП 1% [13:49:59]line > о реализуемом товаре [13:49:59]line ОКРУГЛЕНИЕ: -0.41 [13:49:59]line ИТОГО: 500.00 [13:49:59]line Внесено: 500.00 [13:49:59]line СДАЧА: 0.00 [13:49:59]line НСП 1% : 4.43 [13:49:59]line НДС 12% : 53.14 [13:49:59]line Наличными: 500.00 [13:49:59]line Безнал.: 0.00 [13:49:59]line Место: АЗС № 78 "Партнер Нефть" [13:49:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:49:59]line СНО: Общий режим [13:49:59]line Чек 145 22.10.2024 13:49 [13:49:59]line Смена: 116 ФФД: 1.0 [13:49:59]line ЗНМ: 0300000137 [13:49:59]line РНМ: 0000000000186857 [13:49:59]line Версия ККМ: v1.0 [13:49:59]line ФМ: 0000000002094219 [13:49:59]line ФД: 30912 [13:49:59]line ФПД: 89658297445039 [13:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134958&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30912&fm=89658297445039&tin=02508201610067®Number=0000000000186857&sum=50000 [13:49:59]OFD Sender: Processing packet 30912 [packets to send 11, broken 10] [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00030912 [13:49:59]OFD Sender: To server: pG, [13:49:59]CommunicateWithHost lk.salyk.kg:30040 [13:49:59]ConnectInit lk.salyk.kg [13:49:59]written 0, free lines is 4095 [13:49:59]Connected sock=9 [13:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D 0F 07 01 FF 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 86 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 78 00 00 35 04 06 00 51 8B 32 F8 6A AF 86 30 1E 38 39 D0 6F E2 [13:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1A DC 47 00 76 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 32 30 39 34 32 31 39 10 04 04 00 C0 78 00 00 F4 03 04 00 03 58 17 67 B6 04 01 00 00 A2 D0 D3 59 0F 4E 29 03 [13:50:00]CommunicateWithHost err = 0 [13:50:00]CheckOFDResponse [13:50:00]1017 (14) - 77093643461234 [13:50:00]1041 (16) - 0000000002094219 [13:50:00]1040 (4) - 30912 [13:50:00]1012 (4) - 22.10.2024 07:45 [13:50:00]1206 (1) - 0 [13:50:00]OFD Sender: Remove packet 30912 [13:50:00]ProducePacketName [13:50:00]name=ofd_packets/00030912 [13:50:00]NVStorageDeleteData [13:50:00]Write to MH i2c: 01 00 00 67 02 69 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: 01 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: 01 07 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 ED 0C 69 [13:50:00]RasterBufferAndPrint [13:50:00]line [13:50:00]line [13:50:00]line [13:50:00]line [13:50:00]line [13:50:00]written 0, free lines is 3315 [13:50:00]MH_Cut [13:50:00]Write to MH i2c: D1 01 00 6E 02 01 42 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: D1 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: D1 01 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: D1 01 00 6E 02 00 41 [13:50:00]Write to MH i2c: 01 00 00 6F 02 71 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]OFD Sender: No OFD packet to send [13:50:00]*** Cut start [13:50:00]*** Partial cut [13:50:00]*** CUTSNS_PIN = 1 [13:50:00]*** CUTSNS_PIN = 0 [13:50:01]*** Brake cut motor [13:50:01]Read from MH i2c: 01 [13:50:01]MH_I2C_Read... [13:50:01]*** Stop cut motor [13:50:01]*** Cut end [13:50:01]Read from MH i2c: 01 07 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [13:50:01]process_action close_receipt done [13:50:01]requested_data is exist [13:50:01]produce_requested_data [13:50:01]requested_item fm.sn is exist - process it [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 11 00 00 [13:50:01]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [13:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:50:01]wFMCommunicate OK [13:50:01]requested_item fd.num is exist - process it [13:50:01]SAM_PROTO_GetFieldsCounters [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 00 00 [13:50:01]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 78 00 00 0E 04 04 00 74 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 74 [13:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 78 00 00 0E 04 04 00 74 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 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetFieldsCounters done [13:50:01]requested_item shift.num is exist - process it [13:50:01]requested_item shift.opened is exist - process it [13:50:01]req_shift_opened [13:50:01]FM_GetShiftState [13:50:01]SAM_PROTO_GetShiftState [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 01 00 [13:50:01]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CB [13:50:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftState done [13:50:01]FM_GetShiftState done [13:50:01]req_shift_opened done [13:50:01]requested_item shift.open_date is exist - process it [13:50:01]req_shift_open_date [13:50:01]req_shift_open_date done [13:50:01]produce_requested_data done [13:50:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30912,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:50:01]process_action_free close_receipt [13:50:01]json_value_free [13:50:01]json_value_free done [13:50:01]process_json_proto returns [13:50:01]Send response to host [13:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30912,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:50:01]free response buf [13:50:01]execute_script done [13:50:01]execute_script returns [13:50:01]free content buf [13:50:01]Sock 10.Close socket [13:50:01]Sock 10.Thread stoped [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:48]accept exits with 7 [13:51:48]New connection [13:51:48]New thread 3067043172 created [13:51:48]Thread 3066899812 joined [13:51:48]Waiting for new connection... [13:51:48] Sock 7.Parse request [13:51:48]Sock 7.Check first char [13:51:48]Sock 7.First char is OK [13:51:48]request: POST /json_proto HTTP/1.0 [13:51:48]Method: POST [13:51:48]URL: /json_proto [13:51:48]Method is POST - this is cgi request [13:51:48]url: /json_proto [13:51:48]query_string will be loaded in cgi processing [13:51:48]execute_cgi json_proto POST (null) [13:51:48]execute_cgi path=json_proto method=POST [13:51:48]POST find Content-Length [13:51:48]Host: 172.17.51.3:8080 [13:51:48]Content-Length: 682 [13:51:48]Content-Type: application/json [13:51:48] [13:51:48]POST finish read [13:51:48]Found Content-Length = 682 [13:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:48]execute_script... [13:51: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)343338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:48]POST & json_proto [13:51:48]process_json_proto [13:51:48]json parsed OK: [13:51:48]protocol is kg_v1.0 [13:51:48]action value=close_receipt [13:51:48]process_action close_receipt [13:51:48]cmd_close_receipt [13:51:48]MH_GetDate [13:51:48]Write to MH i2c: F0 00 00 73 02 64 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 09 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 09 00 73 02 00 F5 AD 17 67 04 C1 95 66 4D [13:51:48]GetLastDocTimeStamp 1729604998 [13:51:48]current date 1729605109 [13:51:48]FM_GetShiftState [13:51:48]SAM_PROTO_GetShiftState [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 13 01 00 [13:51:48]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CD [13:51:48]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_GetShiftState done [13:51:48]FM_GetShiftState done [13:51:48]opened in 1729557342 [13:51:48]opened+sec_in_day 1729643742 [13:51:48]quantity*price = 400012 [13:51:48]sum+1 = 400013 [13:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 146 22.10.2024 13:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30913 ФПД: 273522091190414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135149&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30913&fm=273522091190414&tin=02508201610067®Number=0000000000186857&sum=400000 [13:51:49]StoreToDocumentArchive [13:51:49]shift 116 fd 30913 [13:51:49]save to /storage/0116/doc_00030913 [13:51:49]save last doc name /storage/0116/doc_00030913 to /storage/kkm_last_doc_name [13:51:49]save OK [13:51:49]Clear old archive folders... [13:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:49]tlvbuf is 00CC2E80 [13:51:49]SAM_PROTO_ClearQueue [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 09 00 00 [13:51:49]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_ClearQueue done [13:51:49]KKMCreateOFDPacket [13:51:49]OFDProtocolAddRootSTLVToBuf [13:51:49]FM_MakeSignedData [13:51:49]FM_MakeSignedData [13:51:49]SAM_PROTO_SignData [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 0D 01 02 [13:51:49]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]wFMCommunicate request_size=255 [13:51:49]MH_SAM_APDU [13:51: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 F5 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 78 00 00 35 04 06 00 F8 [13:51:49]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 F5 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 78 00 00 35 04 06 00 F8 00 00 46 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:50]Read from MH i2c: E2 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [13:51:50]RAPDU: 90 00 [13:51:50]wFMCommunicate OK [13:51:50]wFMCommunicate request_size=10 [13:51:50]MH_SAM_APDU [13:51:50]CAPDU: 80 0D 02 02 05 C4 53 15 68 8E [13:51:50]Write to MH i2c: E2 0D 00 84 02 80 0D 02 02 05 00 C4 53 15 68 8E 00 00 2C [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:50]Read from MH i2c: E2 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [13:51:50]RAPDU: 90 00 [13:51:50]wFMCommunicate OK [13:51:50]wFMCommunicate request_size=4 [13:51:50]MH_SAM_APDU [13:51:50]CAPDU: 80 0D 03 02 [13:51:50]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:50]Read from MH i2c: E2 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 0B 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 0B 00 85 02 00 2D DF 3E A7 58 00 00 64 90 00 B0 [13:51:50]RAPDU: 2D DF 3E A7 58 00 00 64 90 00 [13:51:50]wFMCommunicate OK [13:51:50]SAM_PROTO_SignData done [13:51:50]FM_MakeSignedData done [13:51:50]CreateOFDProtocolMessage [13:51:50]wFMCommunicate request_size=4 [13:51:50]MH_SAM_APDU [13:51:50]CAPDU: 80 11 00 00 [13:51:50]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:50]Read from MH i2c: E2 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 17 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 50 [13:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:51:50]wFMCommunicate OK [13:51:50]CreateOFDProtocolMessage done [13:51:50]OFDSenderStorePacket 30913 [13:51:50]StoreOFDPacket docnum=30913 [13:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 60 1E 07 01 16 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 F5 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 78 00 00 35 04 06 00 F8 C4 53 15 68 8E 2D DF 3E A7 58 00 00 64 [13:51:50]CheckFolder [13:51:50]dirname=/storage/ofd_packets [13:51:50]CheckFolder done [13:51:50]ProducePacketName [13:51:50]name=ofd_packets/00030913 [13:51:50]NVStorageSaveData ofd_packets/00030913 [13:51:50]File name is /storage/ofd_packets/00030913 [13:51:50]Write 301 bytes [13:51:50]NVStorageSaveData done [13:51:50]OFDSenderStorePacket done [13:51:50]KKMCreateOFDPacket done [13:51:50]NVStorageSaveData kkm_last_timestamp [13:51:50]File name is /storage/kkm_last_timestamp [13:51:50]Write 4 bytes [13:51:50]NVStorageSaveData done [13:51:50]ExternCall_PrintAddStr [13:51:50]wPrintStart [13:51:50]Write to MH i2c: 01 00 00 87 02 89 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 07 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [13:51:50]RasterBufferAndPrint [13:51:50]line Счет N : (1)343338 [13:51:50]line ИНН: 02508201610067 [13:51:50]line Контрольно-Кассовый Чек [13:51:50]line ПРОДАЖА [13:51:50]line ТРК (МРК, ГНК) : 52 [13:51:50]line Товар: 2710124500 [13:51:50]line Аи-95-К-3 [13:51:50]line 53.910 * 74.20 [13:51:50]line = 4000.12 [13:51:50]line НДС 12% НСП 1% [13:51:50]line > о реализуемом товаре [13:51:50]line ОКРУГЛЕНИЕ: -0.12 [13:51:50]line ИТОГО: 4000.00 [13:51:50]line Внесено: 4000.00 [13:51:50]line СДАЧА: 0.00 [13:51:50]line НСП 1% : 35.40 [13:51:50]line НДС 12% : 424.79 [13:51:50]line Наличными: 4000.00 [13:51:50]line Безнал.: 0.00 [13:51:50]line Место: АЗС № 78 "Партнер Нефть" [13:51:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:51:50]line СНО: Общий режим [13:51:50]line Чек 146 22.10.2024 13:51 [13:51:50]line Смена: 116 ФФД: 1.0 [13:51:50]line ЗНМ: 0300000137 [13:51:50]line РНМ: 0000000000186857 [13:51:50]line Версия ККМ: v1.0 [13:51:50]line ФМ: 0000000002094219 [13:51:50]line ФД: 30913 [13:51:50]line ФПД: 273522091190414 [13:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135149&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30913&fm=273522091190414&tin=02508201610067®Number=0000000000186857&sum=400000 [13:51:50]OFD Sender: Processing packet 30913 [packets to send 11, broken 10] [13:51:50]ProducePacketName [13:51:50]name=ofd_packets/00030913 [13:51:50]OFD Sender: To server: pG, [13:51:50]CommunicateWithHost lk.salyk.kg:30040 [13:51:50]ConnectInit lk.salyk.kg [13:51:50]written 0, free lines is 4095 [13:51:50]Connected sock=10 [13:51:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 60 1E 07 01 16 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 F5 AD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 78 00 00 35 04 06 00 F8 C4 53 15 68 8E 2D DF 3E A7 58 00 00 64 [13:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7E B1 47 00 92 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 78 00 00 F4 03 04 00 72 58 17 67 B6 04 01 00 00 76 1D 6B DE EB F5 63 90 [13:51:50]CommunicateWithHost err = 0 [13:51:50]CheckOFDResponse [13:51:50]1017 (14) - 77093643461234 [13:51:50]1041 (16) - 0000000002094219 [13:51:50]1040 (4) - 30913 [13:51:50]1012 (4) - 22.10.2024 07:46 [13:51:50]1206 (1) - 0 [13:51:50]OFD Sender: Remove packet 30913 [13:51:50]ProducePacketName [13:51:50]name=ofd_packets/00030913 [13:51:50]NVStorageDeleteData [13:51:51]Write to MH i2c: 01 00 00 B2 02 B4 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 EC 0C B3 [13:51:51]RasterBufferAndPrint [13:51:51]line [13:51:51]line [13:51:51]line [13:51:51]line [13:51:51]line [13:51:51]written 0, free lines is 3314 [13:51:51]MH_Cut [13:51:51]Write to MH i2c: D1 01 00 B9 02 01 8D [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: D1 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: D1 01 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: D1 01 00 B9 02 00 8C [13:51:51]Write to MH i2c: 01 00 00 BA 02 BC [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]OFD Sender: No OFD packet to send [13:51:51]*** Cut start [13:51:51]*** Partial cut [13:51:51]*** CUTSNS_PIN = 1 [13:51:51]*** CUTSNS_PIN = 0 [13:51:51]*** Brake cut motor [13:51:52]Read from MH i2c: 01 [13:51:52]MH_I2C_Read... [13:51:52]*** Stop cut motor [13:51:52]*** Cut end [13:51:52]Read from MH i2c: 01 07 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [13:51:52]process_action close_receipt done [13:51:52]requested_data is exist [13:51:52]produce_requested_data [13:51:52]requested_item fm.sn is exist - process it [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 11 00 00 [13:51:52]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 17 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [13:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:51:52]wFMCommunicate OK [13:51:52]requested_item fd.num is exist - process it [13:51:52]SAM_PROTO_GetFieldsCounters [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 13 00 00 [13:51:52]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 62 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 78 00 00 0E 04 04 00 74 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 C3 [13:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 78 00 00 0E 04 04 00 74 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 [13:51:52]wFMCommunicate OK [13:51:52]SAM_PROTO_GetFieldsCounters done [13:51:52]requested_item shift.num is exist - process it [13:51:52]requested_item shift.opened is exist - process it [13:51:52]req_shift_opened [13:51:52]FM_GetShiftState [13:51:52]SAM_PROTO_GetShiftState [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 13 01 00 [13:51:52]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 0E 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 16 [13:51:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:51:52]wFMCommunicate OK [13:51:52]SAM_PROTO_GetShiftState done [13:51:52]FM_GetShiftState done [13:51:52]req_shift_opened done [13:51:52]requested_item shift.open_date is exist - process it [13:51:52]req_shift_open_date [13:51:52]req_shift_open_date done [13:51:52]produce_requested_data done [13:51:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30913,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:51:52]process_action_free close_receipt [13:51:52]json_value_free [13:51:52]json_value_free done [13:51:52]process_json_proto returns [13:51:52]Send response to host [13:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30913,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:51:52]free response buf [13:51:52]execute_script done [13:51:52]execute_script returns [13:51:52]free content buf [13:51:52]Sock 7.Close socket [13:51:52]Sock 7.Thread stoped [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:24]accept exits with 9 [13:52:24]New connection [13:52:24]New thread 3066899812 created [13:52:24]Thread 3067043172 joined [13:52:24]Waiting for new connection... [13:52:24] Sock 9.Parse request [13:52:24]Sock 9.Check first char [13:52:24]Sock 9.First char is OK [13:52:24]request: POST /json_proto HTTP/1.0 [13:52:24]Method: POST [13:52:24]URL: /json_proto [13:52:24]Method is POST - this is cgi request [13:52:24]url: /json_proto [13:52:24]query_string will be loaded in cgi processing [13:52:24]execute_cgi json_proto POST (null) [13:52:24]execute_cgi path=json_proto method=POST [13:52:24]POST find Content-Length [13:52:24]Host: 172.17.51.3:8080 [13:52:24]Content-Length: 688 [13:52:24]Content-Type: application/json [13:52:24] [13:52:24]POST finish read [13:52:24]Found Content-Length = 688 [13:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [13:52:24]execute_script... [13:52: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)343340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [13:52:24]POST & json_proto [13:52:24]process_json_proto [13:52:24]json parsed OK: [13:52:24]protocol is kg_v1.0 [13:52:24]action value=close_receipt [13:52:24]process_action close_receipt [13:52:24]cmd_close_receipt [13:52:24]MH_GetDate [13:52:24]Write to MH i2c: F0 00 00 BE 02 AF [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 09 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 09 00 BE 02 00 19 AE 17 67 04 C1 95 66 BD [13:52:24]GetLastDocTimeStamp 1729605109 [13:52:24]current date 1729605145 [13:52:24]FM_GetShiftState [13:52:24]SAM_PROTO_GetShiftState [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 01 00 [13:52:24]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 18 [13:52:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:52:24]wFMCommunicate OK [13:52:24]SAM_PROTO_GetShiftState done [13:52:24]FM_GetShiftState done [13:52:24]opened in 1729557342 [13:52:24]opened+sec_in_day 1729643742 [13:52:24]quantity*price = 120046 [13:52:24]sum+1 = 120047 [13:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 147 22.10.2024 13:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30914 ФПД: 134423014431953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135225&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30914&fm=134423014431953&tin=02508201610067®Number=0000000000186857&sum=120000 [13:52:26]StoreToDocumentArchive [13:52:26]shift 116 fd 30914 [13:52:26]save to /storage/0116/doc_00030914 [13:52:26]save last doc name /storage/0116/doc_00030914 to /storage/kkm_last_doc_name [13:52:26]save OK [13:52:26]Clear old archive folders... [13:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:52:26]tlvbuf is 00CBF8F0 [13:52:26]SAM_PROTO_ClearQueue [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 09 00 00 [13:52:26]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]SAM_PROTO_ClearQueue done [13:52:26]KKMCreateOFDPacket [13:52:26]OFDProtocolAddRootSTLVToBuf [13:52:26]FM_MakeSignedData [13:52:26]FM_MakeSignedData [13:52:26]SAM_PROTO_SignData [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 01 02 [13:52:26]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=255 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 93 00 00 00 F4 03 04 00 19 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 78 00 [13:52:26]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 93 00 00 00 F4 03 04 00 19 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 78 00 00 00 9A [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]OFD Sender: No OFD packet to send [13:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=16 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7A 41 CC 06 5C D1 [13:52:26]Write to MH i2c: E2 13 00 CF 02 80 0D 02 02 0B 00 00 35 04 06 00 7A 41 CC 06 5C D1 00 00 5A [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 03 02 [13:52:26]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0B 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0B 00 D0 02 00 37 0D CA D3 5E 4A D1 78 90 00 20 [13:52:26]RAPDU: 37 0D CA D3 5E 4A D1 78 90 00 [13:52:26]wFMCommunicate OK [13:52:26]SAM_PROTO_SignData done [13:52:26]FM_MakeSignedData done [13:52:26]CreateOFDProtocolMessage [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 11 00 00 [13:52:26]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 17 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9B [13:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:52:26]wFMCommunicate OK [13:52:26]CreateOFDProtocolMessage done [13:52:26]OFDSenderStorePacket 30914 [13:52:26]StoreOFDPacket docnum=30914 [13:52:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 15 CA 0D 01 6D BD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 93 00 00 00 F4 03 04 00 19 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 78 00 00 35 04 06 00 7A 41 CC 06 5C D1 37 0D CA D3 5E 4A D1 78 [13:52:26]CheckFolder [13:52:26]dirname=/storage/ofd_packets [13:52:26]CheckFolder done [13:52:26]ProducePacketName [13:52:26]name=ofd_packets/00030914 [13:52:26]NVStorageSaveData ofd_packets/00030914 [13:52:26]File name is /storage/ofd_packets/00030914 [13:52:26]Write 307 bytes [13:52:26]NVStorageSaveData done [13:52:26]OFDSenderStorePacket done [13:52:26]KKMCreateOFDPacket done [13:52:26]NVStorageSaveData kkm_last_timestamp [13:52:26]File name is /storage/kkm_last_timestamp [13:52:26]Write 4 bytes [13:52:26]NVStorageSaveData done [13:52:26]ExternCall_PrintAddStr [13:52:26]wPrintStart [13:52:26]Write to MH i2c: 01 00 00 D2 02 D4 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 07 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [13:52:26]RasterBufferAndPrint [13:52:26]line Счет N : (1)343340 [13:52:26]line ИНН: 02508201610067 [13:52:26]line Контрольно-Кассовый Чек [13:52:26]line ПРОДАЖА [13:52:26]line ТРК (МРК, ГНК) : 61 [13:52:26]line Товар: 2710194210 [13:52:26]line D-ENERGY Дт-К-2 [13:52:26]line 15.550 * 77.20 [13:52:26]line = 1200.46 [13:52:26]line НДС 12% НСП 1% [13:52:26]line > о реализуемом товаре [13:52:26]line ОКРУГЛЕНИЕ: -0.46 [13:52:26]line ИТОГО: 1200.00 [13:52:26]line Внесено: 1200.00 [13:52:26]line СДАЧА: 0.00 [13:52:26]line НСП 1% : 10.62 [13:52:26]line НДС 12% : 127.48 [13:52:26]line Наличными: 1200.00 [13:52:26]line Безнал.: 0.00 [13:52:26]line Место: АЗС № 78 "Партнер Нефть" [13:52:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:52:26]line СНО: Общий режим [13:52:26]line Чек 147 22.10.2024 13:52 [13:52:26]line Смена: 116 ФФД: 1.0 [13:52:26]line ЗНМ: 0300000137 [13:52:26]line РНМ: 0000000000186857 [13:52:26]line Версия ККМ: v1.0 [13:52:26]line ФМ: 0000000002094219 [13:52:26]line ФД: 30914 [13:52:26]line ФПД: 134423014431953 [13:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135225&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30914&fm=134423014431953&tin=02508201610067®Number=0000000000186857&sum=120000 [13:52:26]OFD Sender: Processing packet 30914 [packets to send 11, broken 10] [13:52:26]ProducePacketName [13:52:26]name=ofd_packets/00030914 [13:52:26]OFD Sender: To server: pG, [13:52:26]CommunicateWithHost lk.salyk.kg:30040 [13:52:26]ConnectInit lk.salyk.kg [13:52:26]written 0, free lines is 4095 [13:52:27]Connected sock=10 [13:52:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 15 CA 0D 01 6D BD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 93 00 00 00 F4 03 04 00 19 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 78 00 00 35 04 06 00 7A 41 CC 06 5C D1 37 0D CA D3 5E 4A D1 78 [13:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 87 4E 47 00 9C 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 32 30 39 34 32 31 39 10 04 04 00 C2 78 00 00 F4 03 04 00 97 58 17 67 B6 04 01 00 00 3B AB EF EA B6 2B 9F E9 [13:52:27]CommunicateWithHost err = 0 [13:52:27]CheckOFDResponse [13:52:27]1017 (14) - 77093643461234 [13:52:27]1041 (16) - 0000000002094219 [13:52:27]1040 (4) - 30914 [13:52:27]1012 (4) - 22.10.2024 07:47 [13:52:27]1206 (1) - 0 [13:52:27]OFD Sender: Remove packet 30914 [13:52:27]ProducePacketName [13:52:27]name=ofd_packets/00030914 [13:52:27]NVStorageDeleteData [13:52:27]Write to MH i2c: 01 00 00 FD 02 FF [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 07 00 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FA 0C 0C [13:52:27]RasterBufferAndPrint [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]written 0, free lines is 3328 [13:52:27]MH_Cut [13:52:27]Write to MH i2c: D1 01 00 04 03 01 D9 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 01 00 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 01 00 04 03 00 D8 [13:52:27]Write to MH i2c: 01 00 00 05 03 08 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]OFD Sender: No OFD packet to send [13:52:28]*** Cut start [13:52:28]*** Partial cut [13:52:28]*** CUTSNS_PIN = 1 [13:52:28]*** CUTSNS_PIN = 0 [13:52:28]*** Brake cut motor [13:52:28]Read from MH i2c: 01 [13:52:28]MH_I2C_Read... [13:52:28]*** Stop cut motor [13:52:28]*** Cut end [13:52:28]Read from MH i2c: 01 07 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [13:52:28]process_action close_receipt done [13:52:28]requested_data is exist [13:52:28]produce_requested_data [13:52:28]requested_item fm.sn is exist - process it [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 11 00 00 [13:52:28]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [13:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:52:28]wFMCommunicate OK [13:52:28]requested_item fd.num is exist - process it [13:52:28]SAM_PROTO_GetFieldsCounters [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 13 00 00 [13:52:28]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 62 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 78 00 00 0E 04 04 00 74 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 13 [13:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 78 00 00 0E 04 04 00 74 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 [13:52:28]wFMCommunicate OK [13:52:28]SAM_PROTO_GetFieldsCounters done [13:52:28]requested_item shift.num is exist - process it [13:52:28]requested_item shift.opened is exist - process it [13:52:28]req_shift_opened [13:52:28]FM_GetShiftState [13:52:28]SAM_PROTO_GetShiftState [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 13 01 00 [13:52:28]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:28]Read from MH i2c: E2 0E 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 62 [13:52:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:52:28]wFMCommunicate OK [13:52:28]SAM_PROTO_GetShiftState done [13:52:28]FM_GetShiftState done [13:52:28]req_shift_opened done [13:52:28]requested_item shift.open_date is exist - process it [13:52:28]req_shift_open_date [13:52:28]req_shift_open_date done [13:52:28]produce_requested_data done [13:52:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30914,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:52:28]process_action_free close_receipt [13:52:28]json_value_free [13:52:28]json_value_free done [13:52:28]process_json_proto returns [13:52:28]Send response to host [13:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30914,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:52:28]free response buf [13:52:28]execute_script done [13:52:28]execute_script returns [13:52:28]free content buf [13:52:28]Sock 9.Close socket [13:52:28]Sock 9.Thread stoped [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:56]accept exits with 7 [13:53:56]New connection [13:53:56]New thread 3067043172 created [13:53:56]Thread 3066899812 joined [13:53:56]Waiting for new connection... [13:53:56] Sock 7.Parse request [13:53:56]Sock 7.Check first char [13:53:56]Sock 7.First char is OK [13:53:56]request: POST /json_proto HTTP/1.0 [13:53:56]Method: POST [13:53:56]URL: /json_proto [13:53:56]Method is POST - this is cgi request [13:53:56]url: /json_proto [13:53:56]query_string will be loaded in cgi processing [13:53:56]execute_cgi json_proto POST (null) [13:53:56]execute_cgi path=json_proto method=POST [13:53:56]POST find Content-Length [13:53:56]Host: 172.17.51.3:8080 [13:53:56]Content-Length: 682 [13:53:56]Content-Type: application/json [13:53:56] [13:53:56]POST finish read [13:53:56]Found Content-Length = 682 [13:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:53:56]execute_script... [13:53: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)343341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:53:56]POST & json_proto [13:53:56]process_json_proto [13:53:56]json parsed OK: [13:53:56]protocol is kg_v1.0 [13:53:56]action value=close_receipt [13:53:56]process_action close_receipt [13:53:56]cmd_close_receipt [13:53:56]MH_GetDate [13:53:56]Write to MH i2c: F0 00 00 09 03 FB [13:53:56]Write i2c OK [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: F0 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: F0 09 00 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: F0 09 00 09 03 00 75 AE 17 67 04 C1 95 66 65 [13:53:56]GetLastDocTimeStamp 1729605145 [13:53:56]current date 1729605237 [13:53:56]FM_GetShiftState [13:53:56]SAM_PROTO_GetShiftState [13:53:56]wFMCommunicate request_size=4 [13:53:56]MH_SAM_APDU [13:53:56]CAPDU: 80 13 01 00 [13:53:56]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [13:53:56]Write i2c OK [13:53:56]MH_I2C_Read... [13:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:56]Read from MH i2c: E2 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: E2 0E 00 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 64 [13:53:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:53:56]wFMCommunicate OK [13:53:56]SAM_PROTO_GetShiftState done [13:53:56]FM_GetShiftState done [13:53:56]opened in 1729557342 [13:53:56]opened+sec_in_day 1729643742 [13:53:56]quantity*price = 150032 [13:53:56]sum+1 = 150033 [13:53:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 148 22.10.2024 13:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30915 ФПД: 203024387746211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30915&fm=203024387746211&tin=02508201610067®Number=0000000000186857&sum=150000 [13:53:57]StoreToDocumentArchive [13:53:57]shift 116 fd 30915 [13:53:57]save to /storage/0116/doc_00030915 [13:53:57]save last doc name /storage/0116/doc_00030915 to /storage/kkm_last_doc_name [13:53:57]save OK [13:53:57]Clear old archive folders... [13:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:57]tlvbuf is 00D32CD0 [13:53:57]SAM_PROTO_ClearQueue [13:53:57]wFMCommunicate request_size=4 [13:53:57]MH_SAM_APDU [13:53:57]CAPDU: 80 09 00 00 [13:53:57]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [13:53:57]Write i2c OK [13:53:57]MH_I2C_Read... [13:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:57]Read from MH i2c: E2 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 03 00 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [13:53:57]RAPDU: 90 00 [13:53:57]wFMCommunicate OK [13:53:57]SAM_PROTO_ClearQueue done [13:53:57]KKMCreateOFDPacket [13:53:57]OFDProtocolAddRootSTLVToBuf [13:53:57]FM_MakeSignedData [13:53:57]FM_MakeSignedData [13:53:57]SAM_PROTO_SignData [13:53:57]wFMCommunicate request_size=4 [13:53:57]MH_SAM_APDU [13:53:57]CAPDU: 80 0D 01 02 [13:53:57]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [13:53:57]Write i2c OK [13:53:57]MH_I2C_Read... [13:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:57]Read from MH i2c: E2 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 03 00 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [13:53:57]RAPDU: 90 00 [13:53:57]wFMCommunicate OK [13:53:57]wFMCommunicate request_size=255 [13:53:57]MH_SAM_APDU [13:53:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 75 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 78 00 00 35 04 06 00 B8 [13:53:57]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 75 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 78 00 00 35 04 06 00 B8 00 00 25 [13:53:57]Write i2c OK [13:53:57]MH_I2C_Read... [13:53:57]OFD Sender: No OFD packet to send [13:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [13:53:58]RAPDU: 90 00 [13:53:58]wFMCommunicate OK [13:53:58]wFMCommunicate request_size=10 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 0D 02 02 05 A6 4C 83 29 A3 [13:53:58]Write to MH i2c: E2 0D 00 1A 03 80 0D 02 02 05 00 A6 4C 83 29 A3 00 00 E2 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [13:53:58]RAPDU: 90 00 [13:53:58]wFMCommunicate OK [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 0D 03 02 [13:53:58]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0B 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0B 00 1B 03 00 BF A5 80 F5 A0 80 05 24 90 00 BC [13:53:58]RAPDU: BF A5 80 F5 A0 80 05 24 90 00 [13:53:58]wFMCommunicate OK [13:53:58]SAM_PROTO_SignData done [13:53:58]FM_MakeSignedData done [13:53:58]CreateOFDProtocolMessage [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 11 00 00 [13:53:58]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 17 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [13:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:53:58]wFMCommunicate OK [13:53:58]CreateOFDProtocolMessage done [13:53:58]OFDSenderStorePacket 30915 [13:53:58]StoreOFDPacket docnum=30915 [13:53:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B 87 07 01 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 75 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 78 00 00 35 04 06 00 B8 A6 4C 83 29 A3 BF A5 80 F5 A0 80 05 24 [13:53:58]CheckFolder [13:53:58]dirname=/storage/ofd_packets [13:53:58]CheckFolder done [13:53:58]ProducePacketName [13:53:58]name=ofd_packets/00030915 [13:53:58]NVStorageSaveData ofd_packets/00030915 [13:53:58]File name is /storage/ofd_packets/00030915 [13:53:58]Write 301 bytes [13:53:58]NVStorageSaveData done [13:53:58]OFDSenderStorePacket done [13:53:58]KKMCreateOFDPacket done [13:53:58]NVStorageSaveData kkm_last_timestamp [13:53:58]File name is /storage/kkm_last_timestamp [13:53:58]Write 4 bytes [13:53:58]NVStorageSaveData done [13:53:58]OFD Sender: Processing packet 30915 [packets to send 11, broken 10] [13:53:58]ProducePacketName [13:53:58]name=ofd_packets/00030915 [13:53:58]OFD Sender: To server: pG, [13:53:58]CommunicateWithHost lk.salyk.kg:30040 [13:53:58]ConnectInit lk.salyk.kg [13:53:58]ExternCall_PrintAddStr [13:53:58]wPrintStart [13:53:58]Write to MH i2c: 01 00 00 1D 03 20 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 07 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [13:53:58]RasterBufferAndPrint [13:53:58]line Счет N : (1)343341 [13:53:58]line ИНН: 02508201610067 [13:53:58]line Контрольно-Кассовый Чек [13:53:58]line ПРОДАЖА [13:53:58]line ТРК (МРК, ГНК) : 52 [13:53:58]line Товар: 2710124500 [13:53:58]line Аи-95-К-3 [13:53:58]line 20.220 * 74.20 [13:53:58]line = 1500.32 [13:53:58]line НДС 12% НСП 1% [13:53:58]line > о реализуемом товаре [13:53:58]line ОКРУГЛЕНИЕ: -0.32 [13:53:58]line ИТОГО: 1500.00 [13:53:58]line Внесено: 1500.00 [13:53:58]line СДАЧА: 0.00 [13:53:58]line НСП 1% : 13.28 [13:53:58]line НДС 12% : 159.33 [13:53:58]line Наличными: 1500.00 [13:53:58]line Безнал.: 0.00 [13:53:58]line Место: АЗС № 78 "Партнер Нефть" [13:53:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:53:58]line СНО: Общий режим [13:53:58]line Чек 148 22.10.2024 13:53 [13:53:58]line Смена: 116 ФФД: 1.0 [13:53:58]line ЗНМ: 0300000137 [13:53:58]line РНМ: 0000000000186857 [13:53:58]line Версия ККМ: v1.0 [13:53:58]line ФМ: 0000000002094219 [13:53:58]line ФД: 30915 [13:53:58]line ФПД: 203024387746211 [13:53:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30915&fm=203024387746211&tin=02508201610067®Number=0000000000186857&sum=150000 [13:53:58]Connected sock=11 [13:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B 87 07 01 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 75 AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 78 00 00 35 04 06 00 B8 A6 4C 83 29 A3 BF A5 80 F5 A0 80 05 24 [13:53:58]written 0, free lines is 4095 [13:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 58 FB 47 00 75 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 78 00 00 F4 03 04 00 F2 58 17 67 B6 04 01 00 00 5C B9 C4 B7 FD 6C 2C 84 [13:53:58]CommunicateWithHost err = 0 [13:53:58]CheckOFDResponse [13:53:58]1017 (14) - 77093643461234 [13:53:58]1041 (16) - 0000000002094219 [13:53:58]1040 (4) - 30915 [13:53:58]1012 (4) - 22.10.2024 07:49 [13:53:58]1206 (1) - 0 [13:53:58]OFD Sender: Remove packet 30915 [13:53:58]ProducePacketName [13:53:58]name=ofd_packets/00030915 [13:53:58]NVStorageDeleteData [13:53:58]Write to MH i2c: 01 00 00 48 03 4B [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 07 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 F0 0C 4E [13:53:58]RasterBufferAndPrint [13:53:58]line [13:53:58]line [13:53:58]line [13:53:58]line [13:53:58]line [13:53:59]written 0, free lines is 3318 [13:53:59]MH_Cut [13:53:59]Write to MH i2c: D1 01 00 4F 03 01 24 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: D1 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: D1 01 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: D1 01 00 4F 03 00 23 [13:53:59]Write to MH i2c: 01 00 00 50 03 53 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]OFD Sender: No OFD packet to send [13:53:59]*** Cut start [13:53:59]*** Partial cut [13:53:59]*** CUTSNS_PIN = 1 [13:53:59]*** CUTSNS_PIN = 0 [13:53:59]*** Brake cut motor [13:54:00]Read from MH i2c: 01 [13:54:00]MH_I2C_Read... [13:54:00]*** Stop cut motor [13:54:00]*** Cut end [13:54:00]Read from MH i2c: 01 07 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [13:54:00]process_action close_receipt done [13:54:00]requested_data is exist [13:54:00]produce_requested_data [13:54:00]requested_item fm.sn is exist - process it [13:54:00]wFMCommunicate request_size=4 [13:54:00]MH_SAM_APDU [13:54:00]CAPDU: 80 11 00 00 [13:54:00]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:00]Read from MH i2c: E2 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 17 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [13:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:54:00]wFMCommunicate OK [13:54:00]requested_item fd.num is exist - process it [13:54:00]SAM_PROTO_GetFieldsCounters [13:54:00]wFMCommunicate request_size=4 [13:54:00]MH_SAM_APDU [13:54:00]CAPDU: 80 13 00 00 [13:54:00]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:00]Read from MH i2c: E2 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 62 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 78 00 00 0E 04 04 00 74 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 62 [13:54:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 78 00 00 0E 04 04 00 74 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 [13:54:00]wFMCommunicate OK [13:54:00]SAM_PROTO_GetFieldsCounters done [13:54:00]requested_item shift.num is exist - process it [13:54:00]requested_item shift.opened is exist - process it [13:54:00]req_shift_opened [13:54:00]FM_GetShiftState [13:54:00]SAM_PROTO_GetShiftState [13:54:00]wFMCommunicate request_size=4 [13:54:00]MH_SAM_APDU [13:54:00]CAPDU: 80 13 01 00 [13:54:00]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:00]Read from MH i2c: E2 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 0E 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AD [13:54:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:54:00]wFMCommunicate OK [13:54:00]SAM_PROTO_GetShiftState done [13:54:00]FM_GetShiftState done [13:54:00]req_shift_opened done [13:54:00]requested_item shift.open_date is exist - process it [13:54:00]req_shift_open_date [13:54:00]req_shift_open_date done [13:54:00]produce_requested_data done [13:54:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30915,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:54:00]process_action_free close_receipt [13:54:00]json_value_free [13:54:00]json_value_free done [13:54:00]process_json_proto returns [13:54:00]Send response to host [13:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30915,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:54:00]free response buf [13:54:00]execute_script done [13:54:00]execute_script returns [13:54:00]free content buf [13:54:00]Sock 7.Close socket [13:54:00]Sock 7.Thread stoped [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:13]accept exits with 9 [13:56:13]New connection [13:56:13]New thread 3066899812 created [13:56:13]Thread 3067043172 joined [13:56:13]Waiting for new connection... [13:56:13] Sock 9.Parse request [13:56:13]Sock 9.Check first char [13:56:13]Sock 9.First char is OK [13:56:13]request: POST /json_proto HTTP/1.0 [13:56:13]Method: POST [13:56:13]URL: /json_proto [13:56:13]Method is POST - this is cgi request [13:56:13]url: /json_proto [13:56:13]query_string will be loaded in cgi processing [13:56:13]execute_cgi json_proto POST (null) [13:56:13]execute_cgi path=json_proto method=POST [13:56:13]POST find Content-Length [13:56:13]Host: 172.17.51.3:8080 [13:56:13]Content-Length: 677 [13:56:13]Content-Type: application/json [13:56:13] [13:56:13]POST finish read [13:56:13]Found Content-Length = 677 [13:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:13]execute_script... [13:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:13]POST & json_proto [13:56:13]process_json_proto [13:56:13]json parsed OK: [13:56:13]protocol is kg_v1.0 [13:56:13]action value=close_receipt [13:56:13]process_action close_receipt [13:56:13]cmd_close_receipt [13:56:13]MH_GetDate [13:56:13]Write to MH i2c: F0 00 00 54 03 46 [13:56:13]Write i2c OK [13:56:13]MH_I2C_Read... [13:56:13]Read from MH i2c: F0 [13:56:13]MH_I2C_Read... [13:56:13]Read from MH i2c: F0 09 00 [13:56:13]MH_I2C_Read... [13:56:13]Read from MH i2c: F0 09 00 54 03 00 FD AE 17 67 04 C1 95 66 38 [13:56:13]GetLastDocTimeStamp 1729605237 [13:56:13]current date 1729605373 [13:56:13]FM_GetShiftState [13:56:13]SAM_PROTO_GetShiftState [13:56:13]wFMCommunicate request_size=4 [13:56:13]MH_SAM_APDU [13:56:13]CAPDU: 80 13 01 00 [13:56:13]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [13:56:13]Write i2c OK [13:56:13]MH_I2C_Read... [13:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:13]Read from MH i2c: E2 [13:56:13]MH_I2C_Read... [13:56:13]Read from MH i2c: E2 0E 00 [13:56:13]MH_I2C_Read... [13:56:13]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AF [13:56:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:56:13]wFMCommunicate OK [13:56:13]SAM_PROTO_GetShiftState done [13:56:13]FM_GetShiftState done [13:56:13]opened in 1729557342 [13:56:13]opened+sec_in_day 1729643742 [13:56:13]quantity*price = 30038 [13:56:13]sum+1 = 30039 [13:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 149 22.10.2024 13:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30916 ФПД: 201208401421374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135614&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30916&fm=201208401421374&tin=02508201610067®Number=0000000000186857&sum=30000 [13:56:14]StoreToDocumentArchive [13:56:14]shift 116 fd 30916 [13:56:14]save to /storage/0116/doc_00030916 [13:56:14]save last doc name /storage/0116/doc_00030916 to /storage/kkm_last_doc_name [13:56:14]save OK [13:56:14]Clear old archive folders... [13:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:14]tlvbuf is 00D66A90 [13:56:14]SAM_PROTO_ClearQueue [13:56:14]wFMCommunicate request_size=4 [13:56:14]MH_SAM_APDU [13:56:14]CAPDU: 80 09 00 00 [13:56:14]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [13:56:14]RAPDU: 90 00 [13:56:14]wFMCommunicate OK [13:56:14]SAM_PROTO_ClearQueue done [13:56:14]KKMCreateOFDPacket [13:56:14]OFDProtocolAddRootSTLVToBuf [13:56:14]FM_MakeSignedData [13:56:14]FM_MakeSignedData [13:56:14]SAM_PROTO_SignData [13:56:14]wFMCommunicate request_size=4 [13:56:14]MH_SAM_APDU [13:56:14]CAPDU: 80 0D 01 02 [13:56:14]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [13:56:14]RAPDU: 90 00 [13:56:14]wFMCommunicate OK [13:56:14]wFMCommunicate request_size=255 [13:56:14]MH_SAM_APDU [13: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 78 00 00 35 04 06 00 B6 [13:56:14]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 78 00 00 35 04 06 00 B6 00 00 89 [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [13:56:14]RAPDU: 90 00 [13:56:14]wFMCommunicate OK [13:56:14]wFMCommunicate request_size=10 [13:56:14]MH_SAM_APDU [13:56:14]CAPDU: 80 0D 02 02 05 FF 7B 4A E4 3E [13:56:14]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 FF 7B 4A E4 3E 00 00 D2 [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [13:56:14]RAPDU: 90 00 [13:56:14]wFMCommunicate OK [13:56:14]wFMCommunicate request_size=4 [13:56:14]MH_SAM_APDU [13:56:14]CAPDU: 80 0D 03 02 [13:56:14]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 0B 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 0B 00 66 03 00 9D 07 77 88 90 C7 12 7A 90 00 6B [13:56:14]RAPDU: 9D 07 77 88 90 C7 12 7A 90 00 [13:56:14]wFMCommunicate OK [13:56:14]SAM_PROTO_SignData done [13:56:14]FM_MakeSignedData done [13:56:14]CreateOFDProtocolMessage [13:56:14]wFMCommunicate request_size=4 [13:56:14]MH_SAM_APDU [13:56:14]CAPDU: 80 11 00 00 [13:56:14]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:14]Read from MH i2c: E2 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 17 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [13:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:56:14]wFMCommunicate OK [13:56:14]CreateOFDProtocolMessage done [13:56:14]OFDSenderStorePacket 30916 [13:56:14]StoreOFDPacket docnum=30916 [13:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 8C 07 01 56 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 78 00 00 35 04 06 00 B6 FF 7B 4A E4 3E 9D 07 77 88 90 C7 12 7A [13:56:14]CheckFolder [13:56:14]dirname=/storage/ofd_packets [13:56:14]CheckFolder done [13:56:14]ProducePacketName [13:56:14]name=ofd_packets/00030916 [13:56:14]NVStorageSaveData ofd_packets/00030916 [13:56:14]File name is /storage/ofd_packets/00030916 [13:56:14]Write 301 bytes [13:56:14]NVStorageSaveData done [13:56:14]OFDSenderStorePacket done [13:56:14]KKMCreateOFDPacket done [13:56:14]NVStorageSaveData kkm_last_timestamp [13:56:14]File name is /storage/kkm_last_timestamp [13:56:14]Write 4 bytes [13:56:14]NVStorageSaveData done [13:56:14]ExternCall_PrintAddStr [13:56:14]wPrintStart [13:56:14]Write to MH i2c: 01 00 00 68 03 6B [13:56:14]Write i2c OK [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: 01 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: 01 07 00 [13:56:14]MH_I2C_Read... [13:56:14]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [13:56:14]RasterBufferAndPrint [13:56:14]line Счет N : (1)343342 [13:56:14]line ИНН: 02508201610067 [13:56:14]line Контрольно-Кассовый Чек [13:56:14]line ПРОДАЖА [13:56:14]line ТРК (МРК, ГНК) : 33 [13:56:14]line Товар: 2710124130 [13:56:14]line Аи-92-К-2 [13:56:14]line 4.490 * 66.90 [13:56:14]line = 300.38 [13:56:14]line НДС 12% НСП 1% [13:56:14]line > о реализуемом товаре [13:56:14]line ОКРУГЛЕНИЕ: -0.38 [13:56:14]line ИТОГО: 300.00 [13:56:14]line Внесено: 300.00 [13:56:14]line СДАЧА: 0.00 [13:56:14]line НСП 1% : 2.66 [13:56:14]line НДС 12% : 31.90 [13:56:14]line Наличными: 300.00 [13:56:14]line Безнал.: 0.00 [13:56:14]line Место: АЗС № 78 "Партнер Нефть" [13:56:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:56:14]line СНО: Общий режим [13:56:14]line Чек 149 22.10.2024 13:56 [13:56:14]line Смена: 116 ФФД: 1.0 [13:56:14]line ЗНМ: 0300000137 [13:56:14]line РНМ: 0000000000186857 [13:56:14]line Версия ККМ: v1.0 [13:56:14]line ФМ: 0000000002094219 [13:56:14]line ФД: 30916 [13:56:14]line ФПД: 201208401421374 [13:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135614&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30916&fm=201208401421374&tin=02508201610067®Number=0000000000186857&sum=30000 [13:56:15]OFD Sender: Processing packet 30916 [packets to send 11, broken 10] [13:56:15]ProducePacketName [13:56:15]name=ofd_packets/00030916 [13:56:15]OFD Sender: To server: pG, [13:56:15]CommunicateWithHost lk.salyk.kg:30040 [13:56:15]ConnectInit lk.salyk.kg [13:56:15]written 0, free lines is 4095 [13:56:15]Connected sock=10 [13:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 8C 07 01 56 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE AE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 78 00 00 35 04 06 00 B6 FF 7B 4A E4 3E 9D 07 77 88 90 C7 12 7A [13:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2E 24 47 00 4A 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 32 30 39 34 32 31 39 10 04 04 00 C4 78 00 00 F4 03 04 00 7B 59 17 67 B6 04 01 00 00 30 D4 1F 10 66 F6 17 A4 [13:56:15]CommunicateWithHost err = 0 [13:56:15]CheckOFDResponse [13:56:15]1017 (14) - 77093643461234 [13:56:15]1041 (16) - 0000000002094219 [13:56:15]1040 (4) - 30916 [13:56:15]1012 (4) - 22.10.2024 07:51 [13:56:15]1206 (1) - 0 [13:56:15]OFD Sender: Remove packet 30916 [13:56:15]ProducePacketName [13:56:15]name=ofd_packets/00030916 [13:56:15]NVStorageDeleteData [13:56:15]Write to MH i2c: 01 00 00 93 03 96 [13:56:15]Write i2c OK [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: 01 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: 01 07 00 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FA 0C A3 [13:56:15]RasterBufferAndPrint [13:56:15]line [13:56:15]line [13:56:15]line [13:56:15]line [13:56:15]line [13:56:15]written 0, free lines is 3328 [13:56:15]MH_Cut [13:56:15]Write to MH i2c: D1 01 00 9A 03 01 6F [13:56:15]Write i2c OK [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: D1 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: D1 01 00 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: D1 01 00 9A 03 00 6E [13:56:15]Write to MH i2c: 01 00 00 9B 03 9E [13:56:15]Write i2c OK [13:56:15]MH_I2C_Read... [13:56:16]OFD Sender: No OFD packet to send [13:56:16]*** Cut start [13:56:16]*** Partial cut [13:56:16]*** CUTSNS_PIN = 1 [13:56:16]*** CUTSNS_PIN = 0 [13:56:16]*** Brake cut motor [13:56:16]Read from MH i2c: 01 [13:56:16]MH_I2C_Read... [13:56:16]*** Stop cut motor [13:56:16]*** Cut end [13:56:16]Read from MH i2c: 01 07 00 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [13:56:16]process_action close_receipt done [13:56:16]requested_data is exist [13:56:16]produce_requested_data [13:56:16]requested_item fm.sn is exist - process it [13:56:16]wFMCommunicate request_size=4 [13:56:16]MH_SAM_APDU [13:56:16]CAPDU: 80 11 00 00 [13:56:16]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [13:56:16]Write i2c OK [13:56:16]MH_I2C_Read... [13:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:16]Read from MH i2c: E2 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: E2 17 00 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [13:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:56:16]wFMCommunicate OK [13:56:16]requested_item fd.num is exist - process it [13:56:16]SAM_PROTO_GetFieldsCounters [13:56:16]wFMCommunicate request_size=4 [13:56:16]MH_SAM_APDU [13:56:16]CAPDU: 80 13 00 00 [13:56:16]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [13:56:16]Write i2c OK [13:56:16]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 62 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 78 00 00 0E 04 04 00 74 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 B1 [13:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 78 00 00 0E 04 04 00 74 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:56:17]wFMCommunicate OK [13:56:17]SAM_PROTO_GetFieldsCounters done [13:56:17]requested_item shift.num is exist - process it [13:56:17]requested_item shift.opened is exist - process it [13:56:17]req_shift_opened [13:56:17]FM_GetShiftState [13:56:17]SAM_PROTO_GetShiftState [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 13 01 00 [13:56:17]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 0E 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F8 [13:56:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:56:17]wFMCommunicate OK [13:56:17]SAM_PROTO_GetShiftState done [13:56:17]FM_GetShiftState done [13:56:17]req_shift_opened done [13:56:17]requested_item shift.open_date is exist - process it [13:56:17]req_shift_open_date [13:56:17]req_shift_open_date done [13:56:17]produce_requested_data done [13:56:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30916,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:56:17]process_action_free close_receipt [13:56:17]json_value_free [13:56:17]json_value_free done [13:56:17]process_json_proto returns [13:56:17]Send response to host [13:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30916,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:56:17]free response buf [13:56:17]execute_script done [13:56:17]execute_script returns [13:56:17]free content buf [13:56:17]Sock 9.Close socket [13:56:17]Sock 9.Thread stoped [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:39]accept exits with 7 [13:57:39]New connection [13:57:39]New thread 3067043172 created [13:57:39]Thread 3066899812 joined [13:57:39]Waiting for new connection... [13:57:39] Sock 7.Parse request [13:57:39]Sock 7.Check first char [13:57:39]Sock 7.First char is OK [13:57:39]request: POST /json_proto HTTP/1.0 [13:57:39]Method: POST [13:57:39]URL: /json_proto [13:57:39]Method is POST - this is cgi request [13:57:39]url: /json_proto [13:57:39]query_string will be loaded in cgi processing [13:57:39]execute_cgi json_proto POST (null) [13:57:39]execute_cgi path=json_proto method=POST [13:57:39]POST find Content-Length [13:57:39]Host: 172.17.51.3:8080 [13:57:39]Content-Length: 674 [13:57:39]Content-Type: application/json [13:57:39] [13:57:39]POST finish read [13:57:39]Found Content-Length = 674 [13:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:39]execute_script... [13:57: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)343344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:39]POST & json_proto [13:57:39]process_json_proto [13:57:39]json parsed OK: [13:57:39]protocol is kg_v1.0 [13:57:39]action value=close_receipt [13:57:39]process_action close_receipt [13:57:39]cmd_close_receipt [13:57:39]MH_GetDate [13:57:39]Write to MH i2c: F0 00 00 9F 03 91 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: F0 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: F0 09 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: F0 09 00 9F 03 00 54 AF 17 67 04 C1 95 66 DB [13:57:39]GetLastDocTimeStamp 1729605374 [13:57:39]current date 1729605460 [13:57:39]FM_GetShiftState [13:57:39]SAM_PROTO_GetShiftState [13:57:39]wFMCommunicate request_size=4 [13:57:39]MH_SAM_APDU [13:57:39]CAPDU: 80 13 01 00 [13:57:39]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:39]Read from MH i2c: E2 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 0E 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FA [13:57:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:57:39]wFMCommunicate OK [13:57:39]SAM_PROTO_GetShiftState done [13:57:39]FM_GetShiftState done [13:57:39]opened in 1729557342 [13:57:39]opened+sec_in_day 1729643742 [13:57:39]quantity*price = 50063 [13:57:39]sum+1 = 50064 [13:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 150 22.10.2024 13:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30917 ФПД: 264199119901278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135740&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30917&fm=264199119901278&tin=02508201610067®Number=0000000000186857&sum=50000 [13:57:40]StoreToDocumentArchive [13:57:40]shift 116 fd 30917 [13:57:40]save to /storage/0116/doc_00030917 [13:57:40]save last doc name /storage/0116/doc_00030917 to /storage/kkm_last_doc_name [13:57:40]save OK [13:57:40]Clear old archive folders... [13:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:40]tlvbuf is 00D2FB30 [13:57:40]SAM_PROTO_ClearQueue [13:57:40]wFMCommunicate request_size=4 [13:57:40]MH_SAM_APDU [13:57:40]CAPDU: 80 09 00 00 [13:57:40]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:40]Read from MH i2c: E2 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 03 00 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [13:57:40]RAPDU: 90 00 [13:57:40]wFMCommunicate OK [13:57:40]SAM_PROTO_ClearQueue done [13:57:40]KKMCreateOFDPacket [13:57:40]OFDProtocolAddRootSTLVToBuf [13:57:40]FM_MakeSignedData [13:57:40]FM_MakeSignedData [13:57:40]SAM_PROTO_SignData [13:57:40]wFMCommunicate request_size=4 [13:57:40]MH_SAM_APDU [13:57:40]CAPDU: 80 0D 01 02 [13:57:40]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:40]Read from MH i2c: E2 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 03 00 [13:57:40]MH_I2C_Read... [13:57:40]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [13:57:40]RAPDU: 90 00 [13:57:40]wFMCommunicate OK [13:57:40]wFMCommunicate request_size=255 [13:57:40]MH_SAM_APDU [13:57: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 54 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 78 00 00 35 04 06 00 F0 49 A6 B1 [13:57:40]Write to MH i2c: E2 02 01 AF 03 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 54 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 78 00 00 35 04 06 00 F0 49 A6 B1 00 00 91 [13:57:40]Write i2c OK [13:57:40]MH_I2C_Read... [13:57:41]OFD Sender: No OFD packet to send [13:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 03 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [13:57:41]RAPDU: 90 00 [13:57:41]wFMCommunicate OK [13:57:41]wFMCommunicate request_size=7 [13:57:41]MH_SAM_APDU [13:57:41]CAPDU: 80 0D 02 02 02 12 5E [13:57:41]Write to MH i2c: E2 0A 00 B0 03 80 0D 02 02 02 00 12 5E 00 00 A1 [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 03 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [13:57:41]RAPDU: 90 00 [13:57:41]wFMCommunicate OK [13:57:41]wFMCommunicate request_size=4 [13:57:41]MH_SAM_APDU [13:57:41]CAPDU: 80 0D 03 02 [13:57:41]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0B 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0B 00 B1 03 00 B4 9B 36 47 E9 A3 02 1B 90 00 A5 [13:57:41]RAPDU: B4 9B 36 47 E9 A3 02 1B 90 00 [13:57:41]wFMCommunicate OK [13:57:41]SAM_PROTO_SignData done [13:57:41]FM_MakeSignedData done [13:57:41]CreateOFDProtocolMessage [13:57:41]wFMCommunicate request_size=4 [13:57:41]MH_SAM_APDU [13:57:41]CAPDU: 80 11 00 00 [13:57:41]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 17 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [13:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:57:41]wFMCommunicate OK [13:57:41]CreateOFDProtocolMessage done [13:57:41]OFDSenderStorePacket 30917 [13:57:41]StoreOFDPacket docnum=30917 [13:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 40 4F 04 01 78 3E 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 54 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 78 00 00 35 04 06 00 F0 49 A6 B1 12 5E B4 9B 36 47 E9 A3 02 1B [13:57:41]CheckFolder [13:57:41]dirname=/storage/ofd_packets [13:57:41]CheckFolder done [13:57:41]ProducePacketName [13:57:41]name=ofd_packets/00030917 [13:57:41]NVStorageSaveData ofd_packets/00030917 [13:57:41]File name is /storage/ofd_packets/00030917 [13:57:41]Write 298 bytes [13:57:41]NVStorageSaveData done [13:57:41]OFDSenderStorePacket done [13:57:41]KKMCreateOFDPacket done [13:57:41]NVStorageSaveData kkm_last_timestamp [13:57:41]File name is /storage/kkm_last_timestamp [13:57:41]Write 4 bytes [13:57:41]NVStorageSaveData done [13:57:41]ExternCall_PrintAddStr [13:57:41]wPrintStart [13:57:41]Write to MH i2c: 01 00 00 B3 03 B6 [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: 01 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: 01 07 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [13:57:41]RasterBufferAndPrint [13:57:41]line Счет N : (1)343344 [13:57:41]line ИНН: 02508201610067 [13:57:41]line Контрольно-Кассовый Чек [13:57:41]line ПРОДАЖА [13:57:41]line ТРК (МРК, ГНК) : 44 [13:57:41]line Товар: 2710194210 [13:57:41]line ДТ-К-2 [13:57:41]line 6.570 * 76.20 [13:57:41]line = 500.63 [13:57:41]line НДС 12% НСП 1% [13:57:41]line > о реализуемом товаре [13:57:41]line ОКРУГЛЕНИЕ: -0.63 [13:57:41]line ИТОГО: 500.00 [13:57:41]line Внесено: 500.00 [13:57:41]line СДАЧА: 0.00 [13:57:41]line НСП 1% : 4.43 [13:57:41]line НДС 12% : 53.16 [13:57:41]line Наличными: 500.00 [13:57:41]line Безнал.: 0.00 [13:57:41]line Место: АЗС № 78 "Партнер Нефть" [13:57:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:57:41]line СНО: Общий режим [13:57:41]line Чек 150 22.10.2024 13:57 [13:57:41]line Смена: 116 ФФД: 1.0 [13:57:41]line ЗНМ: 0300000137 [13:57:41]line РНМ: 0000000000186857 [13:57:41]line Версия ККМ: v1.0 [13:57:41]line ФМ: 0000000002094219 [13:57:41]line ФД: 30917 [13:57:41]line ФПД: 264199119901278 [13:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135740&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30917&fm=264199119901278&tin=02508201610067®Number=0000000000186857&sum=50000 [13:57:41]OFD Sender: Processing packet 30917 [packets to send 11, broken 10] [13:57:41]ProducePacketName [13:57:41]name=ofd_packets/00030917 [13:57:41]OFD Sender: To server: pG, [13:57:41]CommunicateWithHost lk.salyk.kg:30040 [13:57:41]ConnectInit lk.salyk.kg [13:57:41]written 0, free lines is 4095 [13:57:41]Connected sock=10 [13:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 40 4F 04 01 78 3E 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 54 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 78 00 00 35 04 06 00 F0 49 A6 B1 12 5E B4 9B 36 47 E9 A3 02 1B [13:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2E 27 47 00 BE 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 78 00 00 F4 03 04 00 D1 59 17 67 B6 04 01 00 00 07 B2 75 CE E5 B0 E7 12 [13:57:42]CommunicateWithHost err = 0 [13:57:42]CheckOFDResponse [13:57:42]1017 (14) - 77093643461234 [13:57:42]1041 (16) - 0000000002094219 [13:57:42]1040 (4) - 30917 [13:57:42]1012 (4) - 22.10.2024 07:52 [13:57:42]1206 (1) - 0 [13:57:42]OFD Sender: Remove packet 30917 [13:57:42]ProducePacketName [13:57:42]name=ofd_packets/00030917 [13:57:42]NVStorageDeleteData [13:57:42]Write to MH i2c: 01 00 00 DE 03 E1 [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 07 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 ED 0C E1 [13:57:42]RasterBufferAndPrint [13:57:42]line [13:57:42]line [13:57:42]line [13:57:42]line [13:57:42]line [13:57:42]written 0, free lines is 3315 [13:57:42]MH_Cut [13:57:42]Write to MH i2c: D1 01 00 E5 03 01 BA [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: D1 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: D1 01 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: D1 01 00 E5 03 00 B9 [13:57:42]Write to MH i2c: 01 00 00 E6 03 E9 [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]OFD Sender: No OFD packet to send [13:57:42]*** Cut start [13:57:42]*** Partial cut [13:57:42]*** CUTSNS_PIN = 1 [13:57:42]*** CUTSNS_PIN = 0 [13:57:43]*** Brake cut motor [13:57:43]Read from MH i2c: 01 [13:57:43]MH_I2C_Read... [13:57:43]*** Stop cut motor [13:57:43]*** Cut end [13:57:43]Read from MH i2c: 01 07 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [13:57:43]process_action close_receipt done [13:57:43]requested_data is exist [13:57:43]produce_requested_data [13:57:43]requested_item fm.sn is exist - process it [13:57:43]wFMCommunicate request_size=4 [13:57:43]MH_SAM_APDU [13:57:43]CAPDU: 80 11 00 00 [13:57:43]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:43]Read from MH i2c: E2 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 17 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [13:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:57:43]wFMCommunicate OK [13:57:43]requested_item fd.num is exist - process it [13:57:43]SAM_PROTO_GetFieldsCounters [13:57:43]wFMCommunicate request_size=4 [13:57:43]MH_SAM_APDU [13:57:43]CAPDU: 80 13 00 00 [13:57:43]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:43]Read from MH i2c: E2 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 62 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:57:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:43]wFMCommunicate OK [13:57:43]SAM_PROTO_GetFieldsCounters done [13:57:43]requested_item shift.num is exist - process it [13:57:43]requested_item shift.opened is exist - process it [13:57:43]req_shift_opened [13:57:43]FM_GetShiftState [13:57:43]SAM_PROTO_GetShiftState [13:57:43]wFMCommunicate request_size=4 [13:57:43]MH_SAM_APDU [13:57:43]CAPDU: 80 13 01 00 [13:57:43]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:43]Read from MH i2c: E2 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 0E 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 43 [13:57:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:57:43]wFMCommunicate OK [13:57:43]SAM_PROTO_GetShiftState done [13:57:43]FM_GetShiftState done [13:57:43]req_shift_opened done [13:57:43]requested_item shift.open_date is exist - process it [13:57:43]req_shift_open_date [13:57:43]req_shift_open_date done [13:57:43]produce_requested_data done [13:57:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30917,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:57:43]process_action_free close_receipt [13:57:43]json_value_free [13:57:43]json_value_free done [13:57:43]process_json_proto returns [13:57:43]Send response to host [13:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30917,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:57:43]free response buf [13:57:43]execute_script done [13:57:43]execute_script returns [13:57:43]free content buf [13:57:43]Sock 7.Close socket [13:57:43]Sock 7.Thread stoped [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:58:58]accept exits with 9 [13:58:58]New connection [13:58:58]New thread 3066899812 created [13:58:58]Thread 3067043172 joined [13:58:58]Waiting for new connection... [13:58:58] Sock 9.Parse request [13:58:58]Sock 9.Check first char [13:58:58]Sock 9.First char is OK [13:58:58]request: POST /json_proto HTTP/1.0 [13:58:58]Method: POST [13:58:58]URL: /json_proto [13:58:58]Method is POST - this is cgi request [13:58:58]url: /json_proto [13:58:58]query_string will be loaded in cgi processing [13:58:58]execute_cgi json_proto POST (null) [13:58:58]execute_cgi path=json_proto method=POST [13:58:58]POST find Content-Length [13:58:58]Host: 172.17.51.3:8080 [13:58:58]Content-Length: 849 [13:58:58]Content-Type: application/json [13:58:58] [13:58:58]POST finish read [13:58:58]Found Content-Length = 849 [13:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 84.200, "sum" : 6500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 6500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:58]execute_script... [13:58: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)343343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 84.200, "sum" : 6500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 6500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:58]POST & json_proto [13:58:58]process_json_proto [13:58:58]json parsed OK: [13:58:58]protocol is kg_v1.0 [13:58:58]action value=close_receipt [13:58:58]process_action close_receipt [13:58:58]cmd_close_receipt [13:58:58]MH_GetDate [13:58:58]Write to MH i2c: F0 00 00 EA 03 DC [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 09 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 09 00 EA 03 00 A3 AF 17 67 04 C1 95 66 75 [13:58:58]GetLastDocTimeStamp 1729605460 [13:58:58]current date 1729605539 [13:58:58]FM_GetShiftState [13:58:58]SAM_PROTO_GetShiftState [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 13 01 00 [13:58:58]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0E 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 45 [13:58:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:58:58]wFMCommunicate OK [13:58:58]SAM_PROTO_GetShiftState done [13:58:58]FM_GetShiftState done [13:58:58]opened in 1729557342 [13:58:58]opened+sec_in_day 1729643742 [13:58:58]quantity*price = 650024 [13:58:58]sum+1 = 650025 [13:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6500.24 НСП 1% : 57.52 НДС 12% : 690.29 Наличными: 0.00 Безнал.: 6500.24 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 151 22.10.2024 13:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30918 ФПД: 133545866537590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30918&fm=133545866537590&tin=02508201610067®Number=0000000000186857&sum=650024 [13:59:00]StoreToDocumentArchive [13:59:00]shift 116 fd 30918 [13:59:00]save to /storage/0116/doc_00030918 [13:59:00]save last doc name /storage/0116/doc_00030918 to /storage/kkm_last_doc_name [13:59:00]save OK [13:59:00]Clear old archive folders... [13:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:59:00]tlvbuf is 00CC2970 [13:59:00]SAM_PROTO_ClearQueue [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 09 00 00 [13:59:00]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]SAM_PROTO_ClearQueue done [13:59:00]KKMCreateOFDPacket [13:59:00]OFDProtocolAddRootSTLVToBuf [13:59:00]FM_MakeSignedData [13:59:00]FM_MakeSignedData [13:59:00]SAM_PROTO_SignData [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 01 02 [13:59:00]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=255 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 E8 48 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 28 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A3 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 78 00 [13:59:00]Write to MH i2c: E2 02 01 FA 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 E8 48 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 28 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A3 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 78 00 00 00 12 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=16 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 75 91 EF AA 76 [13:59:00]Write to MH i2c: E2 13 00 FB 03 80 0D 02 02 0B 00 00 35 04 06 00 79 75 91 EF AA 76 00 00 5B [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 03 02 [13:59:00]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0B 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0B 00 FC 03 00 DC 3A E7 6B 62 20 2D 99 90 00 2B [13:59:00]RAPDU: DC 3A E7 6B 62 20 2D 99 90 00 [13:59:00]wFMCommunicate OK [13:59:00]SAM_PROTO_SignData done [13:59:00]FM_MakeSignedData done [13:59:00]CreateOFDProtocolMessage [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 11 00 00 [13:59:00]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [13:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:59:00]wFMCommunicate OK [13:59:00]CreateOFDProtocolMessage done [13:59:00]OFDSenderStorePacket 30918 [13:59:00]StoreOFDPacket docnum=30918 [13:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 37 47 0D 01 04 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 E8 48 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 28 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A3 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 78 00 00 35 04 06 00 79 75 91 EF AA 76 DC 3A E7 6B 62 20 2D 99 [13:59:00]CheckFolder [13:59:00]dirname=/storage/ofd_packets [13:59:00]CheckFolder done [13:59:00]ProducePacketName [13:59:00]name=ofd_packets/00030918 [13:59:00]NVStorageSaveData ofd_packets/00030918 [13:59:00]File name is /storage/ofd_packets/00030918 [13:59:00]Write 307 bytes [13:59:00]NVStorageSaveData done [13:59:00]OFDSenderStorePacket done [13:59:00]KKMCreateOFDPacket done [13:59:00]NVStorageSaveData kkm_last_timestamp [13:59:00]File name is /storage/kkm_last_timestamp [13:59:00]Write 4 bytes [13:59:00]NVStorageSaveData done [13:59:00]ExternCall_PrintAddStr [13:59:00]wPrintStart [13:59:00]Write to MH i2c: 01 00 00 FE 03 01 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [13:59:00]RasterBufferAndPrint [13:59:00]line Счет N : (1)343343 [13:59:00]line ИНН: 02508201610067 [13:59:00]line Контрольно-Кассовый Чек [13:59:00]line ПРОДАЖА [13:59:00]line ТРК (МРК, ГНК) : 61 [13:59:00]line Товар: 2710194210 [13:59:00]line D-ENERGY Дт-К-2 [13:59:00]line 84.200 * 77.20 [13:59:00]line = 6500.24 [13:59:00]line НДС 12% НСП 1% [13:59:00]line > о реализуемом товаре [13:59:00]line ИТОГО: 6500.24 [13:59:00]line НСП 1% : 57.52 [13:59:00]line НДС 12% : 690.29 [13:59:00]line Наличными: 0.00 [13:59:00]line Безнал.: 6500.24 [13:59:00]line Место: АЗС № 78 "Партнер Нефть" [13:59:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:59:00]line СНО: Общий режим [13:59:00]line Чек 151 22.10.2024 13:58 [13:59:00]line Смена: 116 ФФД: 1.0 [13:59:00]line ЗНМ: 0300000137 [13:59:00]line РНМ: 0000000000186857 [13:59:00]line Версия ККМ: v1.0 [13:59:00]line Платежная система: АКБ Кыргызстан [13:59:00]line ФМ: 0000000002094219 [13:59:00]line ФД: 30918 [13:59:00]line ФПД: 133545866537590 [13:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30918&fm=133545866537590&tin=02508201610067®Number=0000000000186857&sum=650024 [13:59:00]OFD Sender: Processing packet 30918 [packets to send 11, broken 10] [13:59:00]ProducePacketName [13:59:00]name=ofd_packets/00030918 [13:59:00]OFD Sender: To server: pG, [13:59:00]CommunicateWithHost lk.salyk.kg:30040 [13:59:00]ConnectInit lk.salyk.kg [13:59:00]written 0, free lines is 4095 [13:59:00]Connected sock=10 [13:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 37 47 0D 01 04 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 E8 48 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 28 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A3 AF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 78 00 00 35 04 06 00 79 75 91 EF AA 76 DC 3A E7 6B 62 20 2D 99 [13:59:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C1 6D 47 00 3A 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 78 00 00 F4 03 04 00 21 5A 17 67 B6 04 01 00 00 AE E4 70 19 5D 35 C1 73 [13:59:01]CommunicateWithHost err = 0 [13:59:01]CheckOFDResponse [13:59:01]1017 (14) - 77093643461234 [13:59:01]1041 (16) - 0000000002094219 [13:59:01]1040 (4) - 30918 [13:59:01]1012 (4) - 22.10.2024 07:54 [13:59:01]1206 (1) - 0 [13:59:01]OFD Sender: Remove packet 30918 [13:59:01]ProducePacketName [13:59:01]name=ofd_packets/00030918 [13:59:01]NVStorageDeleteData [13:59:01]Write to MH i2c: 01 00 00 28 04 2C [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 07 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 1E 0D 5E [13:59:01]RasterBufferAndPrint [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]written 0, free lines is 3364 [13:59:01]MH_Cut [13:59:01]Write to MH i2c: D1 01 00 2F 04 01 05 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 01 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 01 00 2F 04 00 04 [13:59:01]Write to MH i2c: 01 00 00 30 04 34 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]OFD Sender: No OFD packet to send [13:59:02]*** Cut start [13:59:02]*** Partial cut [13:59:02]*** CUTSNS_PIN = 1 [13:59:02]*** CUTSNS_PIN = 0 [13:59:02]*** Brake cut motor [13:59:02]Read from MH i2c: 01 [13:59:02]MH_I2C_Read... [13:59:02]*** Stop cut motor [13:59:02]*** Cut end [13:59:02]Read from MH i2c: 01 07 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [13:59:02]process_action close_receipt done [13:59:02]requested_data is exist [13:59:02]produce_requested_data [13:59:02]requested_item fm.sn is exist - process it [13:59:02]wFMCommunicate request_size=4 [13:59:02]MH_SAM_APDU [13:59:02]CAPDU: 80 11 00 00 [13:59:02]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:02]Read from MH i2c: E2 17 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [13:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:59:02]wFMCommunicate OK [13:59:02]requested_item fd.num is exist - process it [13:59:02]SAM_PROTO_GetFieldsCounters [13:59:02]wFMCommunicate request_size=4 [13:59:02]MH_SAM_APDU [13:59:02]CAPDU: 80 13 00 00 [13:59:02]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 62 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:02]wFMCommunicate OK [13:59:02]SAM_PROTO_GetFieldsCounters done [13:59:02]requested_item shift.num is exist - process it [13:59:02]requested_item shift.opened is exist - process it [13:59:02]req_shift_opened [13:59:02]FM_GetShiftState [13:59:02]SAM_PROTO_GetShiftState [13:59:02]wFMCommunicate request_size=4 [13:59:02]MH_SAM_APDU [13:59:02]CAPDU: 80 13 01 00 [13:59:02]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0E 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8E [13:59:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [13:59:02]wFMCommunicate OK [13:59:02]SAM_PROTO_GetShiftState done [13:59:02]FM_GetShiftState done [13:59:02]req_shift_opened done [13:59:02]requested_item shift.open_date is exist - process it [13:59:02]req_shift_open_date [13:59:02]req_shift_open_date done [13:59:02]produce_requested_data done [13:59:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30918,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [13:59:02]process_action_free close_receipt [13:59:02]json_value_free [13:59:02]json_value_free done [13:59:02]process_json_proto returns [13:59:02]Send response to host [13:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30918,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [13:59:02]free response buf [13:59:02]execute_script done [13:59:02]execute_script returns [13:59:02]free content buf [13:59:02]Sock 9.Close socket [13:59:02]Sock 9.Thread stoped [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:25]accept exits with 7 [14:10:25]New connection [14:10:25]New thread 3067043172 created [14:10:25]Thread 3066899812 joined [14:10:25]Waiting for new connection... [14:10:25] Sock 7.Parse request [14:10:25]Sock 7.Check first char [14:10:25]Sock 7.First char is OK [14:10:25]request: POST /json_proto HTTP/1.0 [14:10:25]Method: POST [14:10:25]URL: /json_proto [14:10:25]Method is POST - this is cgi request [14:10:25]url: /json_proto [14:10:25]query_string will be loaded in cgi processing [14:10:25]execute_cgi json_proto POST (null) [14:10:25]execute_cgi path=json_proto method=POST [14:10:25]POST find Content-Length [14:10:25]Host: 172.17.51.3:8080 [14:10:25]Content-Length: 688 [14:10:25]Content-Type: application/json [14:10:25] [14:10:25]POST finish read [14:10:25]Found Content-Length = 688 [14:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [14:10:25]execute_script... [14:10: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)343345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [14:10:25]POST & json_proto [14:10:25]process_json_proto [14:10:25]json parsed OK: [14:10:25]protocol is kg_v1.0 [14:10:25]action value=close_receipt [14:10:25]process_action close_receipt [14:10:25]cmd_close_receipt [14:10:25]MH_GetDate [14:10:25]Write to MH i2c: F0 00 00 34 04 27 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: F0 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: F0 09 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: F0 09 00 34 04 00 52 B2 17 67 04 C1 95 66 72 [14:10:25]GetLastDocTimeStamp 1729605539 [14:10:25]current date 1729606226 [14:10:25]FM_GetShiftState [14:10:25]SAM_PROTO_GetShiftState [14:10:25]wFMCommunicate request_size=4 [14:10:25]MH_SAM_APDU [14:10:25]CAPDU: 80 13 01 00 [14:10:25]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:25]Read from MH i2c: E2 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 0E 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 90 [14:10:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:10:25]wFMCommunicate OK [14:10:25]SAM_PROTO_GetShiftState done [14:10:25]FM_GetShiftState done [14:10:25]opened in 1729557342 [14:10:25]opened+sec_in_day 1729643742 [14:10:25]quantity*price = 150076 [14:10:25]sum+1 = 150078 [14:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 152 22.10.2024 14:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30919 ФПД: 137316191495405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30919&fm=137316191495405&tin=02508201610067®Number=0000000000186857&sum=150000 [14:10:26]StoreToDocumentArchive [14:10:26]shift 116 fd 30919 [14:10:26]save to /storage/0116/doc_00030919 [14:10:26]save last doc name /storage/0116/doc_00030919 to /storage/kkm_last_doc_name [14:10:26]save OK [14:10:26]Clear old archive folders... [14:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:10:26]tlvbuf is 00D67C40 [14:10:26]SAM_PROTO_ClearQueue [14:10:26]wFMCommunicate request_size=4 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 09 00 00 [14:10:26]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [14:10:26]RAPDU: 90 00 [14:10:26]wFMCommunicate OK [14:10:26]SAM_PROTO_ClearQueue done [14:10:26]KKMCreateOFDPacket [14:10:26]OFDProtocolAddRootSTLVToBuf [14:10:26]FM_MakeSignedData [14:10:26]FM_MakeSignedData [14:10:26]SAM_PROTO_SignData [14:10:26]wFMCommunicate request_size=4 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 0D 01 02 [14:10:26]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [14:10:26]RAPDU: 90 00 [14:10:26]wFMCommunicate OK [14:10:26]wFMCommunicate request_size=255 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 98 00 00 00 F4 03 04 00 52 B2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 78 00 [14:10:26]Write to MH i2c: E2 02 01 44 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 98 00 00 00 F4 03 04 00 52 B2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 78 00 00 00 39 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [14:10:26]RAPDU: 90 00 [14:10:26]wFMCommunicate OK [14:10:26]wFMCommunicate request_size=16 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7C E3 6A D0 E4 ED [14:10:26]Write to MH i2c: E2 13 00 45 04 80 0D 02 02 0B 00 00 35 04 06 00 7C E3 6A D0 E4 ED 00 00 82 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [14:10:26]RAPDU: 90 00 [14:10:26]wFMCommunicate OK [14:10:26]wFMCommunicate request_size=4 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 0D 03 02 [14:10:26]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 0B 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 0B 00 46 04 00 1A 39 1C AC 63 2E 73 54 90 00 39 [14:10:26]RAPDU: 1A 39 1C AC 63 2E 73 54 90 00 [14:10:26]wFMCommunicate OK [14:10:26]SAM_PROTO_SignData done [14:10:26]FM_MakeSignedData done [14:10:26]CreateOFDProtocolMessage [14:10:26]wFMCommunicate request_size=4 [14:10:26]MH_SAM_APDU [14:10:26]CAPDU: 80 11 00 00 [14:10:26]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:26]Read from MH i2c: E2 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 17 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: E2 17 00 47 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [14:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:10:26]wFMCommunicate OK [14:10:26]CreateOFDProtocolMessage done [14:10:26]OFDSenderStorePacket 30919 [14:10:26]StoreOFDPacket docnum=30919 [14:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 7C 1E 0D 01 17 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 98 00 00 00 F4 03 04 00 52 B2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 78 00 00 35 04 06 00 7C E3 6A D0 E4 ED 1A 39 1C AC 63 2E 73 54 [14:10:26]CheckFolder [14:10:26]dirname=/storage/ofd_packets [14:10:26]CheckFolder done [14:10:26]ProducePacketName [14:10:26]name=ofd_packets/00030919 [14:10:26]NVStorageSaveData ofd_packets/00030919 [14:10:26]File name is /storage/ofd_packets/00030919 [14:10:26]Write 307 bytes [14:10:26]NVStorageSaveData done [14:10:26]OFDSenderStorePacket done [14:10:26]KKMCreateOFDPacket done [14:10:26]NVStorageSaveData kkm_last_timestamp [14:10:26]File name is /storage/kkm_last_timestamp [14:10:26]Write 4 bytes [14:10:26]NVStorageSaveData done [14:10:26]ExternCall_PrintAddStr [14:10:26]wPrintStart [14:10:26]Write to MH i2c: 01 00 00 48 04 4C [14:10:26]Write i2c OK [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: 01 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: 01 07 00 [14:10:26]MH_I2C_Read... [14:10:26]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [14:10:26]RasterBufferAndPrint [14:10:26]line Счет N : (1)343345 [14:10:26]line ИНН: 02508201610067 [14:10:26]line Контрольно-Кассовый Чек [14:10:26]line ПРОДАЖА [14:10:26]line ТРК (МРК, ГНК) : 51 [14:10:26]line Товар: 2710194210 [14:10:26]line D-ENERGY Дт-К-2 [14:10:26]line 19.440 * 77.20 [14:10:26]line = 1500.77 [14:10:26]line НДС 12% НСП 1% [14:10:26]line > о реализуемом товаре [14:10:26]line ОКРУГЛЕНИЕ: -0.77 [14:10:26]line ИТОГО: 1500.00 [14:10:26]line Внесено: 1500.00 [14:10:26]line СДАЧА: 0.00 [14:10:26]line НСП 1% : 13.28 [14:10:26]line НДС 12% : 159.37 [14:10:26]line Наличными: 1500.00 [14:10:26]line Безнал.: 0.00 [14:10:26]line Место: АЗС № 78 "Партнер Нефть" [14:10:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:10:26]line СНО: Общий режим [14:10:26]line Чек 152 22.10.2024 14:10 [14:10:26]line Смена: 116 ФФД: 1.0 [14:10:26]line ЗНМ: 0300000137 [14:10:26]line РНМ: 0000000000186857 [14:10:27]line Версия ККМ: v1.0 [14:10:27]line ФМ: 0000000002094219 [14:10:27]line ФД: 30919 [14:10:27]line ФПД: 137316191495405 [14:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30919&fm=137316191495405&tin=02508201610067®Number=0000000000186857&sum=150000 [14:10:27]OFD Sender: Processing packet 30919 [packets to send 11, broken 10] [14:10:27]ProducePacketName [14:10:27]name=ofd_packets/00030919 [14:10:27]OFD Sender: To server: pG, [14:10:27]CommunicateWithHost lk.salyk.kg:30040 [14:10:27]ConnectInit lk.salyk.kg [14:10:27]written 0, free lines is 4095 [14:10:27]Connected sock=10 [14:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 7C 1E 0D 01 17 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 98 00 00 00 F4 03 04 00 52 B2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 78 00 00 35 04 06 00 7C E3 6A D0 E4 ED 1A 39 1C AC 63 2E 73 54 [14:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5A 5C 47 00 42 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 32 30 39 34 32 31 39 10 04 04 00 C7 78 00 00 F4 03 04 00 CF 5C 17 67 B6 04 01 00 00 BF D0 B8 71 94 8E 5C 9D [14:10:27]CommunicateWithHost err = 0 [14:10:27]CheckOFDResponse [14:10:27]1017 (14) - 77093643461234 [14:10:27]1041 (16) - 0000000002094219 [14:10:27]1040 (4) - 30919 [14:10:27]1012 (4) - 22.10.2024 08:05 [14:10:27]1206 (1) - 0 [14:10:27]OFD Sender: Remove packet 30919 [14:10:27]ProducePacketName [14:10:27]name=ofd_packets/00030919 [14:10:27]NVStorageDeleteData [14:10:27]Write to MH i2c: 01 00 00 73 04 77 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: 01 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: 01 07 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 F4 0C 7E [14:10:27]RasterBufferAndPrint [14:10:27]line [14:10:27]line [14:10:27]line [14:10:27]line [14:10:27]line [14:10:27]written 0, free lines is 3322 [14:10:27]MH_Cut [14:10:27]Write to MH i2c: D1 01 00 7A 04 01 50 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: D1 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: D1 01 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: D1 01 00 7A 04 00 4F [14:10:27]Write to MH i2c: 01 00 00 7B 04 7F [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:28]OFD Sender: No OFD packet to send [14:10:28]*** Cut start [14:10:28]*** Partial cut [14:10:28]*** CUTSNS_PIN = 1 [14:10:28]*** CUTSNS_PIN = 0 [14:10:28]*** Brake cut motor [14:10:29]Read from MH i2c: 01 [14:10:29]MH_I2C_Read... [14:10:29]*** Stop cut motor [14:10:29]*** Cut end [14:10:29]Read from MH i2c: 01 07 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [14:10:29]process_action close_receipt done [14:10:29]requested_data is exist [14:10:29]produce_requested_data [14:10:29]requested_item fm.sn is exist - process it [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 11 00 00 [14:10:29]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 48 [14:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:10:29]wFMCommunicate OK [14:10:29]requested_item fd.num is exist - process it [14:10:29]SAM_PROTO_GetFieldsCounters [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 13 00 00 [14:10:29]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 62 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 62 00 7D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:29]wFMCommunicate OK [14:10:29]SAM_PROTO_GetFieldsCounters done [14:10:29]requested_item shift.num is exist - process it [14:10:29]requested_item shift.opened is exist - process it [14:10:29]req_shift_opened [14:10:29]FM_GetShiftState [14:10:29]SAM_PROTO_GetShiftState [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 13 01 00 [14:10:29]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0E 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D9 [14:10:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:10:29]wFMCommunicate OK [14:10:29]SAM_PROTO_GetShiftState done [14:10:29]FM_GetShiftState done [14:10:29]req_shift_opened done [14:10:29]requested_item shift.open_date is exist - process it [14:10:29]req_shift_open_date [14:10:29]req_shift_open_date done [14:10:29]produce_requested_data done [14:10:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30919,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:10:29]process_action_free close_receipt [14:10:29]json_value_free [14:10:29]json_value_free done [14:10:29]process_json_proto returns [14:10:29]Send response to host [14:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30919,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:10:29]free response buf [14:10:29]execute_script done [14:10:29]execute_script returns [14:10:29]free content buf [14:10:29]Sock 7.Close socket [14:10:29]Sock 7.Thread stoped [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]accept exits with 9 [14:17:03]New connection [14:17:03]New thread 3066899812 created [14:17:03]Thread 3067043172 joined [14:17:03]Waiting for new connection... [14:17:03] Sock 9.Parse request [14:17:03]Sock 9.Check first char [14:17:03]Sock 9.First char is OK [14:17:03]request: POST /json_proto HTTP/1.0 [14:17:03]Method: POST [14:17:03]URL: /json_proto [14:17:03]Method is POST - this is cgi request [14:17:03]url: /json_proto [14:17:03]query_string will be loaded in cgi processing [14:17:03]execute_cgi json_proto POST (null) [14:17:03]execute_cgi path=json_proto method=POST [14:17:03]POST find Content-Length [14:17:03]Host: 172.17.51.3:8080 [14:17:03]Content-Length: 677 [14:17:03]Content-Type: application/json [14:17:03] [14:17:03]POST finish read [14:17:03]Found Content-Length = 677 [14:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:03]execute_script... [14:17: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)343346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:03]POST & json_proto [14:17:03]process_json_proto [14:17:03]json parsed OK: [14:17:03]protocol is kg_v1.0 [14:17:03]action value=close_receipt [14:17:03]process_action close_receipt [14:17:03]cmd_close_receipt [14:17:03]MH_GetDate [14:17:03]Write to MH i2c: F0 00 00 7F 04 72 [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 09 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 09 00 7F 04 00 E0 B3 17 67 04 C1 95 66 4C [14:17:03]GetLastDocTimeStamp 1729606226 [14:17:03]current date 1729606624 [14:17:03]FM_GetShiftState [14:17:03]SAM_PROTO_GetShiftState [14:17:03]wFMCommunicate request_size=4 [14:17:03]MH_SAM_APDU [14:17:03]CAPDU: 80 13 01 00 [14:17:03]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:03]Read from MH i2c: E2 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 0E 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DB [14:17:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:17:03]wFMCommunicate OK [14:17:03]SAM_PROTO_GetShiftState done [14:17:03]FM_GetShiftState done [14:17:03]opened in 1729557342 [14:17:03]opened+sec_in_day 1729643742 [14:17:03]quantity*price = 50010 [14:17:03]sum+1 = 50012 [14:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 153 22.10.2024 14:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30920 ФПД: 83379507700900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30920&fm=83379507700900&tin=02508201610067®Number=0000000000186857&sum=50000 [14:17:04]StoreToDocumentArchive [14:17:04]shift 116 fd 30920 [14:17:04]save to /storage/0116/doc_00030920 [14:17:04]save last doc name /storage/0116/doc_00030920 to /storage/kkm_last_doc_name [14:17:04]save OK [14:17:04]Clear old archive folders... [14:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:04]tlvbuf is 00D45C80 [14:17:04]SAM_PROTO_ClearQueue [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 09 00 00 [14:17:04]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]SAM_PROTO_ClearQueue done [14:17:04]KKMCreateOFDPacket [14:17:04]OFDProtocolAddRootSTLVToBuf [14:17:04]FM_MakeSignedData [14:17:04]FM_MakeSignedData [14:17:04]SAM_PROTO_SignData [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 01 02 [14:17:04]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=255 [14:17:04]MH_SAM_APDU [14:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E0 B3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 78 00 00 35 04 06 00 4B [14:17:04]Write to MH i2c: E2 02 01 8F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E0 B3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 78 00 00 35 04 06 00 4B 00 00 1E [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=10 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 02 02 05 D5 4D F0 24 A4 [14:17:04]Write to MH i2c: E2 0D 00 90 04 80 0D 02 02 05 00 D5 4D F0 24 A4 00 00 F2 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 03 02 [14:17:04]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 0B 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 0B 00 91 04 00 45 46 92 56 EE C5 9E AF 90 00 84 [14:17:04]RAPDU: 45 46 92 56 EE C5 9E AF 90 00 [14:17:04]wFMCommunicate OK [14:17:04]SAM_PROTO_SignData done [14:17:04]FM_MakeSignedData done [14:17:04]CreateOFDProtocolMessage [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 11 00 00 [14:17:04]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 17 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [14:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:17:04]wFMCommunicate OK [14:17:04]CreateOFDProtocolMessage done [14:17:04]OFDSenderStorePacket 30920 [14:17:04]StoreOFDPacket docnum=30920 [14:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 4C 07 01 37 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E0 B3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 78 00 00 35 04 06 00 4B D5 4D F0 24 A4 45 46 92 56 EE C5 9E AF [14:17:04]CheckFolder [14:17:04]dirname=/storage/ofd_packets [14:17:04]CheckFolder done [14:17:04]ProducePacketName [14:17:04]name=ofd_packets/00030920 [14:17:04]NVStorageSaveData ofd_packets/00030920 [14:17:04]File name is /storage/ofd_packets/00030920 [14:17:04]Write 301 bytes [14:17:04]NVStorageSaveData done [14:17:04]OFDSenderStorePacket done [14:17:04]KKMCreateOFDPacket done [14:17:04]NVStorageSaveData kkm_last_timestamp [14:17:04]File name is /storage/kkm_last_timestamp [14:17:04]Write 4 bytes [14:17:04]NVStorageSaveData done [14:17:04]ExternCall_PrintAddStr [14:17:04]wPrintStart [14:17:04]Write to MH i2c: 01 00 00 93 04 97 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: 01 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: 01 07 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [14:17:04]RasterBufferAndPrint [14:17:04]line Счет N : (1)343346 [14:17:04]line ИНН: 02508201610067 [14:17:04]line Контрольно-Кассовый Чек [14:17:04]line ПРОДАЖА [14:17:04]line ТРК (МРК, ГНК) : 62 [14:17:04]line Товар: 2710124500 [14:17:04]line Аи-95-К-3 [14:17:04]line 6.740 * 74.20 [14:17:04]line = 500.11 [14:17:04]line НДС 12% НСП 1% [14:17:04]line > о реализуемом товаре [14:17:04]line ОКРУГЛЕНИЕ: -0.11 [14:17:04]line ИТОГО: 500.00 [14:17:04]line Внесено: 500.00 [14:17:04]line СДАЧА: 0.00 [14:17:04]line НСП 1% : 4.43 [14:17:04]line НДС 12% : 53.11 [14:17:04]line Наличными: 500.00 [14:17:04]line Безнал.: 0.00 [14:17:04]line Место: АЗС № 78 "Партнер Нефть" [14:17:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:17:04]line СНО: Общий режим [14:17:04]line Чек 153 22.10.2024 14:17 [14:17:04]line Смена: 116 ФФД: 1.0 [14:17:04]line ЗНМ: 0300000137 [14:17:04]line РНМ: 0000000000186857 [14:17:04]line Версия ККМ: v1.0 [14:17:04]line ФМ: 0000000002094219 [14:17:04]line ФД: 30920 [14:17:04]line ФПД: 83379507700900 [14:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30920&fm=83379507700900&tin=02508201610067®Number=0000000000186857&sum=50000 [14:17:05]OFD Sender: Processing packet 30920 [packets to send 11, broken 10] [14:17:05]ProducePacketName [14:17:05]name=ofd_packets/00030920 [14:17:05]OFD Sender: To server: pG, [14:17:05]CommunicateWithHost lk.salyk.kg:30040 [14:17:05]ConnectInit lk.salyk.kg [14:17:05]written 0, free lines is 4095 [14:17:05]Connected sock=10 [14:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 4C 07 01 37 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E0 B3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 78 00 00 35 04 06 00 4B D5 4D F0 24 A4 45 46 92 56 EE C5 9E AF [14:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 87 2E 47 00 21 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 78 00 00 F4 03 04 00 5D 5E 17 67 B6 04 01 00 00 FE 65 91 D3 FD EA A1 13 [14:17:05]CommunicateWithHost err = 0 [14:17:05]CheckOFDResponse [14:17:05]1017 (14) - 77093643461234 [14:17:05]1041 (16) - 0000000002094219 [14:17:05]1040 (4) - 30920 [14:17:05]1012 (4) - 22.10.2024 08:12 [14:17:05]1206 (1) - 0 [14:17:05]OFD Sender: Remove packet 30920 [14:17:05]ProducePacketName [14:17:05]name=ofd_packets/00030920 [14:17:05]NVStorageDeleteData [14:17:05]Write to MH i2c: 01 00 00 BE 04 C2 [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 DE 0C B3 [14:17:05]RasterBufferAndPrint [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]written 0, free lines is 3300 [14:17:05]MH_Cut [14:17:05]Write to MH i2c: D1 01 00 C5 04 01 9B [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 01 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 01 00 C5 04 00 9A [14:17:05]Write to MH i2c: 01 00 00 C6 04 CA [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:06]OFD Sender: No OFD packet to send [14:17:06]*** Cut start [14:17:06]*** Partial cut [14:17:06]*** CUTSNS_PIN = 1 [14:17:06]*** CUTSNS_PIN = 0 [14:17:06]*** Brake cut motor [14:17:06]Read from MH i2c: 01 [14:17:06]MH_I2C_Read... [14:17:06]*** Stop cut motor [14:17:06]*** Cut end [14:17:06]Read from MH i2c: 01 07 00 [14:17:06]MH_I2C_Read... [14:17:06]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [14:17:06]process_action close_receipt done [14:17:06]requested_data is exist [14:17:06]produce_requested_data [14:17:06]requested_item fm.sn is exist - process it [14:17:06]wFMCommunicate request_size=4 [14:17:06]MH_SAM_APDU [14:17:06]CAPDU: 80 11 00 00 [14:17:06]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [14:17:06]Write i2c OK [14:17:06]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [14:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:17:07]wFMCommunicate OK [14:17:07]requested_item fd.num is exist - process it [14:17:07]SAM_PROTO_GetFieldsCounters [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 13 00 00 [14:17:07]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 62 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_GetFieldsCounters done [14:17:07]requested_item shift.num is exist - process it [14:17:07]requested_item shift.opened is exist - process it [14:17:07]req_shift_opened [14:17:07]FM_GetShiftState [14:17:07]SAM_PROTO_GetShiftState [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 13 01 00 [14:17:07]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0E 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 24 [14:17:07]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_GetShiftState done [14:17:07]FM_GetShiftState done [14:17:07]req_shift_opened done [14:17:07]requested_item shift.open_date is exist - process it [14:17:07]req_shift_open_date [14:17:07]req_shift_open_date done [14:17:07]produce_requested_data done [14:17:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30920,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:17:07]process_action_free close_receipt [14:17:07]json_value_free [14:17:07]json_value_free done [14:17:07]process_json_proto returns [14:17:07]Send response to host [14:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30920,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:17:07]free response buf [14:17:07]execute_script done [14:17:07]execute_script returns [14:17:07]free content buf [14:17:07]Sock 9.Close socket [14:17:07]Sock 9.Thread stoped [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20: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:25]accept exits with 7 [14:24:25]New connection [14:24:25]New thread 3067043172 created [14:24:25]Thread 3066899812 joined [14:24:25]Waiting for new connection... [14:24:25] Sock 7.Parse request [14:24:25]Sock 7.Check first char [14:24:25]Sock 7.First char is OK [14:24:25]request: POST /json_proto HTTP/1.0 [14:24:25]Method: POST [14:24:25]URL: /json_proto [14:24:25]Method is POST - this is cgi request [14:24:25]url: /json_proto [14:24:25]query_string will be loaded in cgi processing [14:24:25]execute_cgi json_proto POST (null) [14:24:25]execute_cgi path=json_proto method=POST [14:24:25]POST find Content-Length [14:24:25]Host: 172.17.51.3:8080 [14:24:25]Content-Length: 688 [14:24:25]Content-Type: application/json [14:24:25] [14:24:25]POST finish read [14:24:25]Found Content-Length = 688 [14:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:25]execute_script... [14:24: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)343347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:25]POST & json_proto [14:24:25]process_json_proto [14:24:25]json parsed OK: [14:24:25]protocol is kg_v1.0 [14:24:25]action value=close_receipt [14:24:25]process_action close_receipt [14:24:25]cmd_close_receipt [14:24:25]MH_GetDate [14:24:25]Write to MH i2c: F0 00 00 CA 04 BD [14:24:25]Write i2c OK [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 09 00 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 09 00 CA 04 00 9A B5 17 67 04 C1 95 66 53 [14:24:25]GetLastDocTimeStamp 1729606624 [14:24:25]current date 1729607066 [14:24:25]FM_GetShiftState [14:24:25]SAM_PROTO_GetShiftState [14:24:25]wFMCommunicate request_size=4 [14:24:25]MH_SAM_APDU [14:24:25]CAPDU: 80 13 01 00 [14:24:25]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [14:24:25]Write i2c OK [14:24:25]MH_I2C_Read... [14:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:25]Read from MH i2c: E2 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: E2 0E 00 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 26 [14:24:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:24:25]wFMCommunicate OK [14:24:25]SAM_PROTO_GetShiftState done [14:24:25]FM_GetShiftState done [14:24:25]opened in 1729557342 [14:24:25]opened+sec_in_day 1729643742 [14:24:25]quantity*price = 100051 [14:24:25]sum+1 = 100052 [14:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 154 22.10.2024 14:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30921 ФПД: 156444824752347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30921&fm=156444824752347&tin=02508201610067®Number=0000000000186857&sum=100000 [14:24:26]StoreToDocumentArchive [14:24:26]shift 116 fd 30921 [14:24:26]save to /storage/0116/doc_00030921 [14:24:26]save last doc name /storage/0116/doc_00030921 to /storage/kkm_last_doc_name [14:24:26]save OK [14:24:26]Clear old archive folders... [14:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:24:26]tlvbuf is 00D44B00 [14:24:26]SAM_PROTO_ClearQueue [14:24:26]wFMCommunicate request_size=4 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 09 00 00 [14:24:26]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [14:24:26]RAPDU: 90 00 [14:24:26]wFMCommunicate OK [14:24:26]SAM_PROTO_ClearQueue done [14:24:26]KKMCreateOFDPacket [14:24:26]OFDProtocolAddRootSTLVToBuf [14:24:26]FM_MakeSignedData [14:24:26]FM_MakeSignedData [14:24:26]SAM_PROTO_SignData [14:24:26]wFMCommunicate request_size=4 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 0D 01 02 [14:24:26]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [14:24:26]RAPDU: 90 00 [14:24:26]wFMCommunicate OK [14:24:26]wFMCommunicate request_size=255 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A B5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 78 00 [14:24:26]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A B5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 78 00 00 00 CC [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [14:24:27]RAPDU: 90 00 [14:24:27]wFMCommunicate OK [14:24:27]wFMCommunicate request_size=16 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8E 49 26 34 D0 DB [14:24:27]Write to MH i2c: E2 13 00 DB 04 80 0D 02 02 0B 00 00 35 04 06 00 8E 49 26 34 D0 DB 00 00 8A [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [14:24:27]RAPDU: 90 00 [14:24:27]wFMCommunicate OK [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 0D 03 02 [14:24:27]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 0B 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 0B 00 DC 04 00 84 5A FC 1D 9E 8E 2F AB 90 00 59 [14:24:27]RAPDU: 84 5A FC 1D 9E 8E 2F AB 90 00 [14:24:27]wFMCommunicate OK [14:24:27]SAM_PROTO_SignData done [14:24:27]FM_MakeSignedData done [14:24:27]CreateOFDProtocolMessage [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 11 00 00 [14:24:27]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 17 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [14:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:24:27]wFMCommunicate OK [14:24:27]CreateOFDProtocolMessage done [14:24:27]OFDSenderStorePacket 30921 [14:24:27]StoreOFDPacket docnum=30921 [14:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 9F A4 0D 01 FE 5D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A B5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 78 00 00 35 04 06 00 8E 49 26 34 D0 DB 84 5A FC 1D 9E 8E 2F AB [14:24:27]CheckFolder [14:24:27]dirname=/storage/ofd_packets [14:24:27]CheckFolder done [14:24:27]ProducePacketName [14:24:27]name=ofd_packets/00030921 [14:24:27]NVStorageSaveData ofd_packets/00030921 [14:24:27]File name is /storage/ofd_packets/00030921 [14:24:27]Write 307 bytes [14:24:27]NVStorageSaveData done [14:24:27]OFDSenderStorePacket done [14:24:27]KKMCreateOFDPacket done [14:24:27]NVStorageSaveData kkm_last_timestamp [14:24:27]File name is /storage/kkm_last_timestamp [14:24:27]Write 4 bytes [14:24:27]NVStorageSaveData done [14:24:27]ExternCall_PrintAddStr [14:24:27]wPrintStart [14:24:27]Write to MH i2c: 01 00 00 DE 04 E2 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [14:24:27]RasterBufferAndPrint [14:24:27]line Счет N : (1)343347 [14:24:27]line ИНН: 02508201610067 [14:24:27]line Контрольно-Кассовый Чек [14:24:27]line ПРОДАЖА [14:24:27]line ТРК (МРК, ГНК) : 61 [14:24:27]line Товар: 2710194210 [14:24:27]line D-ENERGY Дт-К-2 [14:24:27]line 12.960 * 77.20 [14:24:27]line = 1000.51 [14:24:27]line НДС 12% НСП 1% [14:24:27]line > о реализуемом товаре [14:24:27]line ОКРУГЛЕНИЕ: -0.51 [14:24:27]line ИТОГО: 1000.00 [14:24:27]line Внесено: 1000.00 [14:24:27]line СДАЧА: 0.00 [14:24:27]line НСП 1% : 8.85 [14:24:27]line НДС 12% : 106.25 [14:24:27]line Наличными: 1000.00 [14:24:27]line Безнал.: 0.00 [14:24:27]line Место: АЗС № 78 "Партнер Нефть" [14:24:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:24:27]line СНО: Общий режим [14:24:27]line Чек 154 22.10.2024 14:24 [14:24:27]line Смена: 116 ФФД: 1.0 [14:24:27]line ЗНМ: 0300000137 [14:24:27]line РНМ: 0000000000186857 [14:24:27]line Версия ККМ: v1.0 [14:24:27]line ФМ: 0000000002094219 [14:24:27]line ФД: 30921 [14:24:27]line ФПД: 156444824752347 [14:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30921&fm=156444824752347&tin=02508201610067®Number=0000000000186857&sum=100000 [14:24:27]OFD Sender: Processing packet 30921 [packets to send 11, broken 10] [14:24:27]ProducePacketName [14:24:27]name=ofd_packets/00030921 [14:24:27]OFD Sender: To server: pG, [14:24:27]CommunicateWithHost lk.salyk.kg:30040 [14:24:27]ConnectInit lk.salyk.kg [14:24:27]written 0, free lines is 4095 [14:24:27]Connected sock=10 [14:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 9F A4 0D 01 FE 5D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A B5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 78 00 00 35 04 06 00 8E 49 26 34 D0 DB 84 5A FC 1D 9E 8E 2F AB [14:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E4 78 47 00 22 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 78 00 00 F4 03 04 00 17 60 17 67 B6 04 01 00 00 64 48 E6 7D 3F BE B9 81 [14:24:28]CommunicateWithHost err = 0 [14:24:28]CheckOFDResponse [14:24:28]1017 (14) - 77093643461234 [14:24:28]1041 (16) - 0000000002094219 [14:24:28]1040 (4) - 30921 [14:24:28]1012 (4) - 22.10.2024 08:19 [14:24:28]1206 (1) - 0 [14:24:28]OFD Sender: Remove packet 30921 [14:24:28]ProducePacketName [14:24:28]name=ofd_packets/00030921 [14:24:28]NVStorageDeleteData [14:24:28]Write to MH i2c: 01 00 00 09 05 0E [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 EC 0C 0D [14:24:28]RasterBufferAndPrint [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]written 0, free lines is 3314 [14:24:28]MH_Cut [14:24:28]Write to MH i2c: D1 01 00 10 05 01 E7 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 01 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 01 00 10 05 00 E6 [14:24:28]Write to MH i2c: 01 00 00 11 05 16 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]OFD Sender: No OFD packet to send [14:24:28]*** Cut start [14:24:28]*** Partial cut [14:24:28]*** CUTSNS_PIN = 1 [14:24:28]*** CUTSNS_PIN = 0 [14:24:29]*** Brake cut motor [14:24:29]Read from MH i2c: 01 [14:24:29]MH_I2C_Read... [14:24:29]*** Stop cut motor [14:24:29]*** Cut end [14:24:29]Read from MH i2c: 01 07 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [14:24:29]process_action close_receipt done [14:24:29]requested_data is exist [14:24:29]produce_requested_data [14:24:29]requested_item fm.sn is exist - process it [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 11 00 00 [14:24:29]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 17 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [14:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:24:29]wFMCommunicate OK [14:24:29]requested_item fd.num is exist - process it [14:24:29]SAM_PROTO_GetFieldsCounters [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 13 00 00 [14:24:29]Write to MH i2c: E2 08 00 13 05 80 13 00 00 00 00 00 00 94 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 62 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 62 00 13 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_GetFieldsCounters done [14:24:29]requested_item shift.num is exist - process it [14:24:29]requested_item shift.opened is exist - process it [14:24:29]req_shift_opened [14:24:29]FM_GetShiftState [14:24:29]SAM_PROTO_GetShiftState [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 13 01 00 [14:24:29]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 70 [14:24:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_GetShiftState done [14:24:29]FM_GetShiftState done [14:24:29]req_shift_opened done [14:24:29]requested_item shift.open_date is exist - process it [14:24:29]req_shift_open_date [14:24:29]req_shift_open_date done [14:24:29]produce_requested_data done [14:24:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30921,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:24:29]process_action_free close_receipt [14:24:29]json_value_free [14:24:29]json_value_free done [14:24:29]process_json_proto returns [14:24:29]Send response to host [14:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30921,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:24:29]free response buf [14:24:29]execute_script done [14:24:29]execute_script returns [14:24:29]free content buf [14:24:29]Sock 7.Close socket [14:24:29]Sock 7.Thread stoped [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:54]accept exits with 9 [14:26:54]New connection [14:26:54]New thread 3066899812 created [14:26:54]Thread 3067043172 joined [14:26:54]Waiting for new connection... [14:26:54] Sock 9.Parse request [14:26:54]Sock 9.Check first char [14:26:54]Sock 9.First char is OK [14:26:54]request: POST /json_proto HTTP/1.0 [14:26:54]Method: POST [14:26:54]URL: /json_proto [14:26:54]Method is POST - this is cgi request [14:26:54]url: /json_proto [14:26:54]query_string will be loaded in cgi processing [14:26:54]execute_cgi json_proto POST (null) [14:26:54]execute_cgi path=json_proto method=POST [14:26:54]POST find Content-Length [14:26:54]Host: 172.17.51.3:8080 [14:26:54]Content-Length: 677 [14:26:54]Content-Type: application/json [14:26:54] [14:26:54]POST finish read [14:26:54]Found Content-Length = 677 [14:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:54]execute_script... [14:26:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:54]POST & json_proto [14:26:54]process_json_proto [14:26:54]json parsed OK: [14:26:54]protocol is kg_v1.0 [14:26:54]action value=close_receipt [14:26:54]process_action close_receipt [14:26:54]cmd_close_receipt [14:26:54]MH_GetDate [14:26:54]Write to MH i2c: F0 00 00 15 05 09 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 09 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 09 00 15 05 00 2F B6 17 67 04 C1 95 66 35 [14:26:54]GetLastDocTimeStamp 1729607066 [14:26:54]current date 1729607215 [14:26:54]FM_GetShiftState [14:26:54]SAM_PROTO_GetShiftState [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 13 01 00 [14:26:54]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0E 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 72 [14:26:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:26:54]wFMCommunicate OK [14:26:54]SAM_PROTO_GetShiftState done [14:26:54]FM_GetShiftState done [14:26:54]opened in 1729557342 [14:26:54]opened+sec_in_day 1729643742 [14:26:54]quantity*price = 50041 [14:26:54]sum+1 = 50042 [14:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 155 22.10.2024 14:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30922 ФПД: 129451744868299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142655&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30922&fm=129451744868299&tin=02508201610067®Number=0000000000186857&sum=50000 [14:26:55]StoreToDocumentArchive [14:26:55]shift 116 fd 30922 [14:26:55]save to /storage/0116/doc_00030922 [14:26:55]save last doc name /storage/0116/doc_00030922 to /storage/kkm_last_doc_name [14:26:55]save OK [14:26:55]Clear old archive folders... [14:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:55]tlvbuf is 00D63860 [14:26:55]SAM_PROTO_ClearQueue [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 09 00 00 [14:26:55]Write to MH i2c: E2 08 00 23 05 80 09 00 00 00 00 00 00 9A [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]SAM_PROTO_ClearQueue done [14:26:55]KKMCreateOFDPacket [14:26:55]OFDProtocolAddRootSTLVToBuf [14:26:55]FM_MakeSignedData [14:26:55]FM_MakeSignedData [14:26:55]SAM_PROTO_SignData [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 01 02 [14:26:55]Write to MH i2c: E2 08 00 24 05 80 0D 01 02 00 00 00 00 A2 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=255 [14:26:55]MH_SAM_APDU [14:26: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2F B6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 78 00 00 35 04 06 00 75 [14:26:55]Write to MH i2c: E2 02 01 25 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2F B6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 78 00 00 35 04 06 00 75 00 00 5C [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=10 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 02 02 05 BC 55 44 B7 CB [14:26:55]Write to MH i2c: E2 0D 00 26 05 80 0D 02 02 05 00 BC 55 44 B7 CB 00 00 86 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 03 02 [14:26:55]Write to MH i2c: E2 08 00 27 05 80 0D 03 02 00 00 00 00 A7 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 0B 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 0B 00 27 05 00 28 02 C3 BB 2C 9D 0E 35 90 00 5C [14:26:55]RAPDU: 28 02 C3 BB 2C 9D 0E 35 90 00 [14:26:55]wFMCommunicate OK [14:26:55]SAM_PROTO_SignData done [14:26:55]FM_MakeSignedData done [14:26:55]CreateOFDProtocolMessage [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 11 00 00 [14:26:55]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:56]Read from MH i2c: E2 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [14:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:26:56]wFMCommunicate OK [14:26:56]CreateOFDProtocolMessage done [14:26:56]OFDSenderStorePacket 30922 [14:26:56]StoreOFDPacket docnum=30922 [14:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E 45 07 01 93 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2F B6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 78 00 00 35 04 06 00 75 BC 55 44 B7 CB 28 02 C3 BB 2C 9D 0E 35 [14:26:56]CheckFolder [14:26:56]dirname=/storage/ofd_packets [14:26:56]CheckFolder done [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030922 [14:26:56]NVStorageSaveData ofd_packets/00030922 [14:26:56]File name is /storage/ofd_packets/00030922 [14:26:56]Write 301 bytes [14:26:56]NVStorageSaveData done [14:26:56]OFDSenderStorePacket done [14:26:56]KKMCreateOFDPacket done [14:26:56]NVStorageSaveData kkm_last_timestamp [14:26:56]File name is /storage/kkm_last_timestamp [14:26:56]Write 4 bytes [14:26:56]NVStorageSaveData done [14:26:56]ExternCall_PrintAddStr [14:26:56]wPrintStart [14:26:56]Write to MH i2c: 01 00 00 29 05 2E [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [14:26:56]RasterBufferAndPrint [14:26:56]line Счет N : (1)343348 [14:26:56]line ИНН: 02508201610067 [14:26:56]line Контрольно-Кассовый Чек [14:26:56]line ПРОДАЖА [14:26:56]line ТРК (МРК, ГНК) : 53 [14:26:56]line Товар: 2710124130 [14:26:56]line Аи-92-К-2 [14:26:56]line 7.480 * 66.90 [14:26:56]line = 500.41 [14:26:56]line НДС 12% НСП 1% [14:26:56]line > о реализуемом товаре [14:26:56]line ОКРУГЛЕНИЕ: -0.41 [14:26:56]line ИТОГО: 500.00 [14:26:56]line Внесено: 500.00 [14:26:56]line СДАЧА: 0.00 [14:26:56]line НСП 1% : 4.43 [14:26:56]line НДС 12% : 53.14 [14:26:56]line Наличными: 500.00 [14:26:56]line Безнал.: 0.00 [14:26:56]line Место: АЗС № 78 "Партнер Нефть" [14:26:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:26:56]line СНО: Общий режим [14:26:56]line Чек 155 22.10.2024 14:26 [14:26:56]line Смена: 116 ФФД: 1.0 [14:26:56]line ЗНМ: 0300000137 [14:26:56]line РНМ: 0000000000186857 [14:26:56]line Версия ККМ: v1.0 [14:26:56]line ФМ: 0000000002094219 [14:26:56]line ФД: 30922 [14:26:56]line ФПД: 129451744868299 [14:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142655&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30922&fm=129451744868299&tin=02508201610067®Number=0000000000186857&sum=50000 [14:26:56]OFD Sender: Processing packet 30922 [packets to send 11, broken 10] [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030922 [14:26:56]OFD Sender: To server: pG, [14:26:56]CommunicateWithHost lk.salyk.kg:30040 [14:26:56]ConnectInit lk.salyk.kg [14:26:56]written 0, free lines is 4095 [14:26:56]Connected sock=10 [14:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E 45 07 01 93 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2F B6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 78 00 00 35 04 06 00 75 BC 55 44 B7 CB 28 02 C3 BB 2C 9D 0E 35 [14:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6D 0E 47 00 07 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 32 30 39 34 32 31 39 10 04 04 00 CA 78 00 00 F4 03 04 00 AC 60 17 67 B6 04 01 00 00 44 5B D3 8B 6B 6F D8 34 [14:26:56]CommunicateWithHost err = 0 [14:26:56]CheckOFDResponse [14:26:56]1017 (14) - 77093643461234 [14:26:56]1041 (16) - 0000000002094219 [14:26:56]1040 (4) - 30922 [14:26:56]1012 (4) - 22.10.2024 08:22 [14:26:56]1206 (1) - 0 [14:26:56]OFD Sender: Remove packet 30922 [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030922 [14:26:56]NVStorageDeleteData [14:26:56]Write to MH i2c: 01 00 00 54 05 59 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 F5 0C 61 [14:26:56]RasterBufferAndPrint [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]written 0, free lines is 3323 [14:26:56]MH_Cut [14:26:56]Write to MH i2c: D1 01 00 5B 05 01 32 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 5B 05 00 31 [14:26:56]Write to MH i2c: 01 00 00 5C 05 61 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:57]OFD Sender: No OFD packet to send [14:26:57]*** Cut start [14:26:57]*** Partial cut [14:26:57]*** CUTSNS_PIN = 1 [14:26:57]*** CUTSNS_PIN = 0 [14:26:57]*** Brake cut motor [14:26:58]Read from MH i2c: 01 [14:26:58]MH_I2C_Read... [14:26:58]*** Stop cut motor [14:26:58]*** Cut end [14:26:58]Read from MH i2c: 01 07 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [14:26:58]process_action close_receipt done [14:26:58]requested_data is exist [14:26:58]produce_requested_data [14:26:58]requested_item fm.sn is exist - process it [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 11 00 00 [14:26:58]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 17 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [14:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:26:58]wFMCommunicate OK [14:26:58]requested_item fd.num is exist - process it [14:26:58]SAM_PROTO_GetFieldsCounters [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 13 00 00 [14:26:58]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 62 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 62 00 5E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [14:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:58]wFMCommunicate OK [14:26:58]SAM_PROTO_GetFieldsCounters done [14:26:58]requested_item shift.num is exist - process it [14:26:58]requested_item shift.opened is exist - process it [14:26:58]req_shift_opened [14:26:58]FM_GetShiftState [14:26:58]SAM_PROTO_GetShiftState [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 13 01 00 [14:26:58]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BB [14:26:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:26:58]wFMCommunicate OK [14:26:58]SAM_PROTO_GetShiftState done [14:26:58]FM_GetShiftState done [14:26:58]req_shift_opened done [14:26:58]requested_item shift.open_date is exist - process it [14:26:58]req_shift_open_date [14:26:58]req_shift_open_date done [14:26:58]produce_requested_data done [14:26:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30922,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:26:58]process_action_free close_receipt [14:26:58]json_value_free [14:26:58]json_value_free done [14:26:58]process_json_proto returns [14:26:58]Send response to host [14:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30922,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:26:58]free response buf [14:26:58]execute_script done [14:26:58]execute_script returns [14:26:58]free content buf [14:26:58]Sock 9.Close socket [14:26:58]Sock 9.Thread stoped [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:10]accept exits with 7 [14:33:10]New connection [14:33:10]New thread 3067043172 created [14:33:10]Thread 3066899812 joined [14:33:10]Waiting for new connection... [14:33:10] Sock 7.Parse request [14:33:10]Sock 7.Check first char [14:33:10]Sock 7.First char is OK [14:33:10]request: POST /json_proto HTTP/1.0 [14:33:10]Method: POST [14:33:10]URL: /json_proto [14:33:10]Method is POST - this is cgi request [14:33:10]url: /json_proto [14:33:10]query_string will be loaded in cgi processing [14:33:10]execute_cgi json_proto POST (null) [14:33:10]execute_cgi path=json_proto method=POST [14:33:10]POST find Content-Length [14:33:10]Host: 172.17.51.3:8080 [14:33:10]Content-Length: 679 [14:33:10]Content-Type: application/json [14:33:10] [14:33:10]POST finish read [14:33:10]Found Content-Length = 679 [14:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:10]execute_script... [14:33: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)343349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:10]POST & json_proto [14:33:10]process_json_proto [14:33:10]json parsed OK: [14:33:10]protocol is kg_v1.0 [14:33:10]action value=close_receipt [14:33:10]process_action close_receipt [14:33:10]cmd_close_receipt [14:33:10]MH_GetDate [14:33:10]Write to MH i2c: F0 00 00 60 05 54 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 09 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 09 00 60 05 00 A7 B7 17 67 04 C1 95 66 F9 [14:33:10]GetLastDocTimeStamp 1729607215 [14:33:10]current date 1729607591 [14:33:10]FM_GetShiftState [14:33:10]SAM_PROTO_GetShiftState [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 13 01 00 [14:33:10]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0E 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BD [14:33:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:33:10]wFMCommunicate OK [14:33:10]SAM_PROTO_GetShiftState done [14:33:10]FM_GetShiftState done [14:33:10]opened in 1729557342 [14:33:10]opened+sec_in_day 1729643742 [14:33:10]quantity*price = 200025 [14:33:10]sum+1 = 200026 [14:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 156 22.10.2024 14:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30923 ФПД: 266728753461419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143311&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30923&fm=266728753461419&tin=02508201610067®Number=0000000000186857&sum=200000 [14:33:12]StoreToDocumentArchive [14:33:12]shift 116 fd 30923 [14:33:12]save to /storage/0116/doc_00030923 [14:33:12]save last doc name /storage/0116/doc_00030923 to /storage/kkm_last_doc_name [14:33:12]save OK [14:33:12]Clear old archive folders... [14:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:12]tlvbuf is 00D45260 [14:33:12]SAM_PROTO_ClearQueue [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 09 00 00 [14:33:12]Write to MH i2c: E2 08 00 6E 05 80 09 00 00 00 00 00 00 E5 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_ClearQueue done [14:33:12]KKMCreateOFDPacket [14:33:12]OFDProtocolAddRootSTLVToBuf [14:33:12]FM_MakeSignedData [14:33:12]FM_MakeSignedData [14:33:12]SAM_PROTO_SignData [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 01 02 [14:33:12]Write to MH i2c: E2 08 00 6F 05 80 0D 01 02 00 00 00 00 ED [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=255 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A7 B7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 78 00 00 35 04 06 00 F2 96 A0 99 [14:33:12]Write to MH i2c: E2 02 01 70 05 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A7 B7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 78 00 00 35 04 06 00 F2 96 A0 99 00 00 52 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=7 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 02 F8 AB [14:33:12]Write to MH i2c: E2 0A 00 71 05 80 0D 02 02 02 00 F8 AB 00 00 97 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 03 02 [14:33:12]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 72 05 00 03 63 35 0E 4E 0F ED C6 90 00 AC [14:33:12]RAPDU: 03 63 35 0E 4E 0F ED C6 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_SignData done [14:33:12]FM_MakeSignedData done [14:33:12]CreateOFDProtocolMessage [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 11 00 00 [14:33:12]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]OFD Sender: No OFD packet to send [14:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [14:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:12]wFMCommunicate OK [14:33:12]CreateOFDProtocolMessage done [14:33:12]OFDSenderStorePacket 30923 [14:33:12]StoreOFDPacket docnum=30923 [14:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FE 1F 04 01 2B 20 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A7 B7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 78 00 00 35 04 06 00 F2 96 A0 99 F8 AB 03 63 35 0E 4E 0F ED C6 [14:33:12]CheckFolder [14:33:12]dirname=/storage/ofd_packets [14:33:12]CheckFolder done [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00030923 [14:33:12]NVStorageSaveData ofd_packets/00030923 [14:33:12]File name is /storage/ofd_packets/00030923 [14:33:12]Write 298 bytes [14:33:12]NVStorageSaveData done [14:33:12]OFDSenderStorePacket done [14:33:12]KKMCreateOFDPacket done [14:33:12]NVStorageSaveData kkm_last_timestamp [14:33:12]File name is /storage/kkm_last_timestamp [14:33:12]Write 4 bytes [14:33:12]NVStorageSaveData done [14:33:12]ExternCall_PrintAddStr [14:33:12]wPrintStart [14:33:12]Write to MH i2c: 01 00 00 74 05 79 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [14:33:12]RasterBufferAndPrint [14:33:12]line Счет N : (1)343349 [14:33:12]line ИНН: 02508201610067 [14:33:12]line Контрольно-Кассовый Чек [14:33:12]line ПРОДАЖА [14:33:12]line ТРК (МРК, ГНК) : 64 [14:33:12]line Товар: 2710194210 [14:33:12]line ДТ-К-2 [14:33:12]line 26.250 * 76.20 [14:33:12]line = 2000.25 [14:33:12]line НДС 12% НСП 1% [14:33:12]line > о реализуемом товаре [14:33:12]line ОКРУГЛЕНИЕ: -0.25 [14:33:12]line ИТОГО: 2000.00 [14:33:12]line Внесено: 2000.00 [14:33:12]line СДАЧА: 0.00 [14:33:12]line НСП 1% : 17.70 [14:33:12]line НДС 12% : 212.42 [14:33:12]line Наличными: 2000.00 [14:33:12]line Безнал.: 0.00 [14:33:12]line Место: АЗС № 78 "Партнер Нефть" [14:33:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:33:12]line СНО: Общий режим [14:33:12]line Чек 156 22.10.2024 14:33 [14:33:12]line Смена: 116 ФФД: 1.0 [14:33:12]line ЗНМ: 0300000137 [14:33:12]line РНМ: 0000000000186857 [14:33:12]line Версия ККМ: v1.0 [14:33:12]line ФМ: 0000000002094219 [14:33:12]line ФД: 30923 [14:33:12]line ФПД: 266728753461419 [14:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143311&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30923&fm=266728753461419&tin=02508201610067®Number=0000000000186857&sum=200000 [14:33:12]OFD Sender: Processing packet 30923 [packets to send 11, broken 10] [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00030923 [14:33:12]OFD Sender: To server: pG, [14:33:12]CommunicateWithHost lk.salyk.kg:30040 [14:33:12]ConnectInit lk.salyk.kg [14:33:12]written 0, free lines is 4095 [14:33:13]Connected sock=10 [14:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FE 1F 04 01 2B 20 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A7 B7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 78 00 00 35 04 06 00 F2 96 A0 99 F8 AB 03 63 35 0E 4E 0F ED C6 [14:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C1 19 47 00 AA 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 78 00 00 F4 03 04 00 25 62 17 67 B6 04 01 00 00 46 B3 F5 13 88 48 89 BE [14:33:13]CommunicateWithHost err = 0 [14:33:13]CheckOFDResponse [14:33:13]1017 (14) - 77093643461234 [14:33:13]1041 (16) - 0000000002094219 [14:33:13]1040 (4) - 30923 [14:33:13]1012 (4) - 22.10.2024 08:28 [14:33:13]1206 (1) - 0 [14:33:13]OFD Sender: Remove packet 30923 [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00030923 [14:33:13]NVStorageDeleteData [14:33:13]Write to MH i2c: 01 00 00 9F 05 A4 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 F5 0C AC [14:33:13]RasterBufferAndPrint [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]written 0, free lines is 3323 [14:33:13]MH_Cut [14:33:13]Write to MH i2c: D1 01 00 A6 05 01 7D [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 A6 05 00 7C [14:33:13]Write to MH i2c: 01 00 00 A7 05 AC [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]OFD Sender: No OFD packet to send [14:33:14]*** Cut start [14:33:14]*** Partial cut [14:33:14]*** CUTSNS_PIN = 1 [14:33:14]*** CUTSNS_PIN = 0 [14:33:14]*** Brake cut motor [14:33:14]Read from MH i2c: 01 [14:33:14]MH_I2C_Read... [14:33:14]*** Stop cut motor [14:33:14]*** Cut end [14:33:14]Read from MH i2c: 01 07 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [14:33:14]process_action close_receipt done [14:33:14]requested_data is exist [14:33:14]produce_requested_data [14:33:14]requested_item fm.sn is exist - process it [14:33:14]wFMCommunicate request_size=4 [14:33:14]MH_SAM_APDU [14:33:14]CAPDU: 80 11 00 00 [14:33:14]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:14]Read from MH i2c: E2 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 17 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [14:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:14]wFMCommunicate OK [14:33:14]requested_item fd.num is exist - process it [14:33:14]SAM_PROTO_GetFieldsCounters [14:33:14]wFMCommunicate request_size=4 [14:33:14]MH_SAM_APDU [14:33:14]CAPDU: 80 13 00 00 [14:33:14]Write to MH i2c: E2 08 00 A9 05 80 13 00 00 00 00 00 00 2A [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:14]Read from MH i2c: E2 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 62 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 62 00 A9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:33:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:14]wFMCommunicate OK [14:33:14]SAM_PROTO_GetFieldsCounters done [14:33:14]requested_item shift.num is exist - process it [14:33:14]requested_item shift.opened is exist - process it [14:33:14]req_shift_opened [14:33:14]FM_GetShiftState [14:33:14]SAM_PROTO_GetShiftState [14:33:14]wFMCommunicate request_size=4 [14:33:14]MH_SAM_APDU [14:33:14]CAPDU: 80 13 01 00 [14:33:14]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:14]Read from MH i2c: E2 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 0E 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 06 [14:33:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:33:14]wFMCommunicate OK [14:33:14]SAM_PROTO_GetShiftState done [14:33:14]FM_GetShiftState done [14:33:14]req_shift_opened done [14:33:14]requested_item shift.open_date is exist - process it [14:33:14]req_shift_open_date [14:33:14]req_shift_open_date done [14:33:14]produce_requested_data done [14:33:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30923,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:33:14]process_action_free close_receipt [14:33:14]json_value_free [14:33:14]json_value_free done [14:33:14]process_json_proto returns [14:33:14]Send response to host [14:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30923,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:33:14]free response buf [14:33:14]execute_script done [14:33:14]execute_script returns [14:33:14]free content buf [14:33:14]Sock 7.Close socket [14:33:14]Sock 7.Thread stoped [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:57]accept exits with 9 [14:40:57]New connection [14:40:57]New thread 3066899812 created [14:40:57]Thread 3067043172 joined [14:40:57]Waiting for new connection... [14:40:57] Sock 9.Parse request [14:40:57]Sock 9.Check first char [14:40:57]Sock 9.First char is OK [14:40:57]request: POST /json_proto HTTP/1.0 [14:40:57]Method: POST [14:40:57]URL: /json_proto [14:40:57]Method is POST - this is cgi request [14:40:57]url: /json_proto [14:40:57]query_string will be loaded in cgi processing [14:40:57]execute_cgi json_proto POST (null) [14:40:57]execute_cgi path=json_proto method=POST [14:40:57]POST find Content-Length [14:40:57]Host: 172.17.51.3:8080 [14:40:57]Content-Length: 677 [14:40:57]Content-Type: application/json [14:40:57] [14:40:57]POST finish read [14:40:57]Found Content-Length = 677 [14:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [14:40:57]execute_script... [14:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [14:40:57]POST & json_proto [14:40:57]process_json_proto [14:40:57]json parsed OK: [14:40:57]protocol is kg_v1.0 [14:40:57]action value=close_receipt [14:40:57]process_action close_receipt [14:40:57]cmd_close_receipt [14:40:57]MH_GetDate [14:40:57]Write to MH i2c: F0 00 00 AB 05 9F [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: F0 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: F0 09 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: F0 09 00 AB 05 00 79 B9 17 67 04 C1 95 66 18 [14:40:57]GetLastDocTimeStamp 1729607591 [14:40:57]current date 1729608057 [14:40:57]FM_GetShiftState [14:40:57]SAM_PROTO_GetShiftState [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 13 01 00 [14:40:57]Write to MH i2c: E2 08 00 AC 05 80 13 01 00 00 00 00 00 2E [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0E 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0E 00 AC 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 08 [14:40:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_GetShiftState done [14:40:57]FM_GetShiftState done [14:40:57]opened in 1729557342 [14:40:57]opened+sec_in_day 1729643742 [14:40:57]quantity*price = 35055 [14:40:57]sum+1 = 35057 [14:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 157 22.10.2024 14:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30924 ФПД: 274733841881817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30924&fm=274733841881817&tin=02508201610067®Number=0000000000186857&sum=35000 [14:40:58]StoreToDocumentArchive [14:40:58]shift 116 fd 30924 [14:40:58]save to /storage/0116/doc_00030924 [14:40:58]save last doc name /storage/0116/doc_00030924 to /storage/kkm_last_doc_name [14:40:58]save OK [14:40:58]Clear old archive folders... [14:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:58]tlvbuf is 00D3B650 [14:40:58]SAM_PROTO_ClearQueue [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 09 00 00 [14:40:58]Write to MH i2c: E2 08 00 B9 05 80 09 00 00 00 00 00 00 30 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_ClearQueue done [14:40:58]KKMCreateOFDPacket [14:40:58]OFDProtocolAddRootSTLVToBuf [14:40:58]FM_MakeSignedData [14:40:58]FM_MakeSignedData [14:40:58]SAM_PROTO_SignData [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 0D 01 02 [14:40:58]Write to MH i2c: E2 08 00 BA 05 80 0D 01 02 00 00 00 00 38 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]wFMCommunicate request_size=255 [14:40:58]MH_SAM_APDU [14:40: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 9D 00 00 00 F4 03 04 00 7A B9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 78 00 00 35 04 06 00 F9 [14:40:58]Write to MH i2c: E2 02 01 BB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 9D 00 00 00 F4 03 04 00 7A B9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 78 00 00 35 04 06 00 F9 00 00 D3 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]wFMCommunicate request_size=10 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 0D 02 02 05 DE 75 0D 9A D9 [14:40:58]Write to MH i2c: E2 0D 00 BC 05 80 0D 02 02 05 00 DE 75 0D 9A D9 00 00 18 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 0D 03 02 [14:40:58]Write to MH i2c: E2 08 00 BD 05 80 0D 03 02 00 00 00 00 3D [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0B 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0B 00 BD 05 00 83 E9 C5 7F 66 8B EA FF 90 00 C8 [14:40:58]RAPDU: 83 E9 C5 7F 66 8B EA FF 90 00 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_SignData done [14:40:58]FM_MakeSignedData done [14:40:58]CreateOFDProtocolMessage [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 11 00 00 [14:40:58]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 BE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [14:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:40:58]wFMCommunicate OK [14:40:58]CreateOFDProtocolMessage done [14:40:58]OFDSenderStorePacket 30924 [14:40:58]StoreOFDPacket docnum=30924 [14:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E9 2F 07 01 11 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 9D 00 00 00 F4 03 04 00 7A B9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 78 00 00 35 04 06 00 F9 DE 75 0D 9A D9 83 E9 C5 7F 66 8B EA FF [14:40:58]CheckFolder [14:40:58]dirname=/storage/ofd_packets [14:40:58]CheckFolder done [14:40:58]ProducePacketName [14:40:58]name=ofd_packets/00030924 [14:40:58]NVStorageSaveData ofd_packets/00030924 [14:40:58]File name is /storage/ofd_packets/00030924 [14:40:58]Write 301 bytes [14:40:58]NVStorageSaveData done [14:40:58]OFDSenderStorePacket done [14:40:58]KKMCreateOFDPacket done [14:40:58]NVStorageSaveData kkm_last_timestamp [14:40:58]File name is /storage/kkm_last_timestamp [14:40:58]Write 4 bytes [14:40:58]NVStorageSaveData done [14:40:58]ExternCall_PrintAddStr [14:40:58]wPrintStart [14:40:58]Write to MH i2c: 01 00 00 BF 05 C4 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 FF 0F D9 [14:40:58]RasterBufferAndPrint [14:40:58]line Счет N : (1)343351 [14:40:58]line ИНН: 02508201610067 [14:40:58]line Контрольно-Кассовый Чек [14:40:58]line ПРОДАЖА [14:40:58]line ТРК (МРК, ГНК) : 33 [14:40:58]line Товар: 2710124130 [14:40:58]line Аи-92-К-2 [14:40:58]line 5.240 * 66.90 [14:40:58]line = 350.56 [14:40:58]line НДС 12% НСП 1% [14:40:58]line > о реализуемом товаре [14:40:58]line ОКРУГЛЕНИЕ: -0.56 [14:40:58]line ИТОГО: 350.00 [14:40:58]line Внесено: 350.00 [14:40:58]line СДАЧА: 0.00 [14:40:58]line НСП 1% : 3.10 [14:40:58]line НДС 12% : 37.23 [14:40:58]line Наличными: 350.00 [14:40:58]line Безнал.: 0.00 [14:40:58]line Место: АЗС № 78 "Партнер Нефть" [14:40:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:40:58]line СНО: Общий режим [14:40:58]line Чек 157 22.10.2024 14:40 [14:40:58]line Смена: 116 ФФД: 1.0 [14:40:58]line ЗНМ: 0300000137 [14:40:58]line РНМ: 0000000000186857 [14:40:58]line Версия ККМ: v1.0 [14:40:58]line ФМ: 0000000002094219 [14:40:58]line ФД: 30924 [14:40:58]line ФПД: 274733841881817 [14:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30924&fm=274733841881817&tin=02508201610067®Number=0000000000186857&sum=35000 [14:40:59]OFD Sender: Processing packet 30924 [packets to send 11, broken 10] [14:40:59]ProducePacketName [14:40:59]name=ofd_packets/00030924 [14:40:59]OFD Sender: To server: pG, [14:40:59]CommunicateWithHost lk.salyk.kg:30040 [14:40:59]ConnectInit lk.salyk.kg [14:40:59]written 0, free lines is 4095 [14:40:59]Connected sock=10 [14:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E9 2F 07 01 11 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 9D 00 00 00 F4 03 04 00 7A B9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 78 00 00 35 04 06 00 F9 DE 75 0D 9A D9 83 E9 C5 7F 66 8B EA FF [14:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BD 8E 47 00 88 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 78 00 00 F4 03 04 00 F7 63 17 67 B6 04 01 00 00 A3 27 4E FD 10 FF 95 DE [14:40:59]CommunicateWithHost err = 0 [14:40:59]CheckOFDResponse [14:40:59]1017 (14) - 77093643461234 [14:40:59]1041 (16) - 0000000002094219 [14:40:59]1040 (4) - 30924 [14:40:59]1012 (4) - 22.10.2024 08:36 [14:40:59]1206 (1) - 0 [14:40:59]OFD Sender: Remove packet 30924 [14:40:59]ProducePacketName [14:40:59]name=ofd_packets/00030924 [14:40:59]NVStorageDeleteData [14:40:59]Write to MH i2c: 01 00 00 EA 05 EF [14:40:59]Write i2c OK [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: 01 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: 01 07 00 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 EC 0C EE [14:40:59]RasterBufferAndPrint [14:40:59]line [14:40:59]line [14:40:59]line [14:40:59]line [14:40:59]line [14:40:59]written 0, free lines is 3314 [14:40:59]MH_Cut [14:40:59]Write to MH i2c: D1 01 00 F1 05 01 C8 [14:40:59]Write i2c OK [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: D1 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: D1 01 00 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: D1 01 00 F1 05 00 C7 [14:40:59]Write to MH i2c: 01 00 00 F2 05 F7 [14:40:59]Write i2c OK [14:40:59]MH_I2C_Read... [14:40:59]OFD Sender: No OFD packet to send [14:41:00]*** Cut start [14:41:00]*** Partial cut [14:41:00]*** CUTSNS_PIN = 1 [14:41:00]*** CUTSNS_PIN = 0 [14:41:00]*** Brake cut motor [14:41:00]Read from MH i2c: 01 [14:41:00]MH_I2C_Read... [14:41:00]*** Stop cut motor [14:41:00]*** Cut end [14:41:00]Read from MH i2c: 01 07 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [14:41:00]process_action close_receipt done [14:41:00]requested_data is exist [14:41:00]produce_requested_data [14:41:00]requested_item fm.sn is exist - process it [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 11 00 00 [14:41:00]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 17 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [14:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:41:00]wFMCommunicate OK [14:41:00]requested_item fd.num is exist - process it [14:41:00]SAM_PROTO_GetFieldsCounters [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 13 00 00 [14:41:00]Write to MH i2c: E2 08 00 F4 05 80 13 00 00 00 00 00 00 75 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 62 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 62 00 F4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:01]wFMCommunicate OK [14:41:01]SAM_PROTO_GetFieldsCounters done [14:41:01]requested_item shift.num is exist - process it [14:41:01]requested_item shift.opened is exist - process it [14:41:01]req_shift_opened [14:41:01]FM_GetShiftState [14:41:01]SAM_PROTO_GetShiftState [14:41:01]wFMCommunicate request_size=4 [14:41:01]MH_SAM_APDU [14:41:01]CAPDU: 80 13 01 00 [14:41:01]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:01]Read from MH i2c: E2 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: E2 0E 00 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 51 [14:41:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:41:01]wFMCommunicate OK [14:41:01]SAM_PROTO_GetShiftState done [14:41:01]FM_GetShiftState done [14:41:01]req_shift_opened done [14:41:01]requested_item shift.open_date is exist - process it [14:41:01]req_shift_open_date [14:41:01]req_shift_open_date done [14:41:01]produce_requested_data done [14:41:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30924,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:41:01]process_action_free close_receipt [14:41:01]json_value_free [14:41:01]json_value_free done [14:41:01]process_json_proto returns [14:41:01]Send response to host [14:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30924,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:41:01]free response buf [14:41:01]execute_script done [14:41:01]execute_script returns [14:41:01]free content buf [14:41:01]Sock 9.Close socket [14:41:01]Sock 9.Thread stoped [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]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:03]accept exits with 7 [14:44:03]New connection [14:44:03]New thread 3067043172 created [14:44:03]Thread 3066899812 joined [14:44:03]Waiting for new connection... [14:44:03] Sock 7.Parse request [14:44:03]Sock 7.Check first char [14:44:03]Sock 7.First char is OK [14:44:03]request: POST /json_proto HTTP/1.0 [14:44:03]Method: POST [14:44:03]URL: /json_proto [14:44:03]Method is POST - this is cgi request [14:44:03]url: /json_proto [14:44:03]query_string will be loaded in cgi processing [14:44:03]execute_cgi json_proto POST (null) [14:44:03]execute_cgi path=json_proto method=POST [14:44:03]POST find Content-Length [14:44:03]Host: 172.17.51.3:8080 [14:44:03]Content-Length: 752 [14:44:03]Content-Type: application/json [14:44:03] [14:44:03]POST finish read [14:44:03]Found Content-Length = 752 [14:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 400.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:03]execute_script... [14:44: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)343350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 400.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:03]POST & json_proto [14:44:03]process_json_proto [14:44:03]json parsed OK: [14:44:03]protocol is kg_v1.0 [14:44:03]action value=close_receipt [14:44:03]process_action close_receipt [14:44:03]cmd_close_receipt [14:44:03]MH_GetDate [14:44:03]Write to MH i2c: F0 00 00 F6 05 EA [14:44:03]Write i2c OK [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 09 00 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 09 00 F6 05 00 34 BA 17 67 04 C1 95 66 1F [14:44:03]GetLastDocTimeStamp 1729608058 [14:44:03]current date 1729608244 [14:44:03]FM_GetShiftState [14:44:03]SAM_PROTO_GetShiftState [14:44:03]wFMCommunicate request_size=4 [14:44:03]MH_SAM_APDU [14:44:03]CAPDU: 80 13 01 00 [14:44:03]Write to MH i2c: E2 08 00 F7 05 80 13 01 00 00 00 00 00 79 [14:44:03]Write i2c OK [14:44:03]MH_I2C_Read... [14:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:03]Read from MH i2c: E2 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: E2 0E 00 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: E2 0E 00 F7 05 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 53 [14:44:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:44:03]wFMCommunicate OK [14:44:03]SAM_PROTO_GetShiftState done [14:44:03]FM_GetShiftState done [14:44:03]opened in 1729557342 [14:44:03]opened+sec_in_day 1729643742 [14:44:03]quantity*price = 0 [14:44:03]sum+1 = 1 [14:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 158 22.10.2024 14:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30035887 ФМ: 0000000002094219 ФД: 30925 ФПД: 1257122127963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144404&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30925&fm=1257122127963&tin=02508201610067®Number=0000000000186857&sum=0 [14:44:05]StoreToDocumentArchive [14:44:05]shift 116 fd 30925 [14:44:05]save to /storage/0116/doc_00030925 [14:44:05]save last doc name /storage/0116/doc_00030925 to /storage/kkm_last_doc_name [14:44:05]save OK [14:44:05]Clear old archive folders... [14:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:05]tlvbuf is 00D3BAD0 [14:44:05]SAM_PROTO_ClearQueue [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 09 00 00 [14:44:05]Write to MH i2c: E2 08 00 04 06 80 09 00 00 00 00 00 00 7C [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]SAM_PROTO_ClearQueue done [14:44:05]KKMCreateOFDPacket [14:44:05]OFDProtocolAddRootSTLVToBuf [14:44:05]FM_MakeSignedData [14:44:05]FM_MakeSignedData [14:44:05]SAM_PROTO_SignData [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 0D 01 02 [14:44:05]Write to MH i2c: E2 08 00 05 06 80 0D 01 02 00 00 00 00 84 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]wFMCommunicate request_size=255 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 78 00 00 35 04 06 00 01 24 B2 51 [14:44:05]Write to MH i2c: E2 02 01 06 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 78 00 00 35 04 06 00 01 24 B2 51 00 00 6E [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]wFMCommunicate request_size=7 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 0D 02 02 02 60 5B [14:44:05]Write to MH i2c: E2 0A 00 07 06 80 0D 02 02 02 00 60 5B 00 00 46 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 0D 03 02 [14:44:05]Write to MH i2c: E2 08 00 08 06 80 0D 03 02 00 00 00 00 89 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 0B 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 0B 00 08 06 00 34 BA 85 9D 9C 14 D1 60 90 00 7B [14:44:05]RAPDU: 34 BA 85 9D 9C 14 D1 60 90 00 [14:44:05]wFMCommunicate OK [14:44:05]SAM_PROTO_SignData done [14:44:05]FM_MakeSignedData done [14:44:05]CreateOFDProtocolMessage [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 11 00 00 [14:44:05]Write to MH i2c: E2 08 00 09 06 80 11 00 00 00 00 00 00 89 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 17 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 17 00 09 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [14:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:44:05]wFMCommunicate OK [14:44:05]CreateOFDProtocolMessage done [14:44:05]OFDSenderStorePacket 30925 [14:44:05]StoreOFDPacket docnum=30925 [14:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 25 CB 04 01 A3 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 32 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 78 00 00 35 04 06 00 01 24 B2 51 60 5B 34 BA 85 9D 9C 14 D1 60 [14:44:05]CheckFolder [14:44:05]dirname=/storage/ofd_packets [14:44:05]CheckFolder done [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00030925 [14:44:05]NVStorageSaveData ofd_packets/00030925 [14:44:05]File name is /storage/ofd_packets/00030925 [14:44:05]Write 298 bytes [14:44:05]NVStorageSaveData done [14:44:05]OFDSenderStorePacket done [14:44:05]KKMCreateOFDPacket done [14:44:05]NVStorageSaveData kkm_last_timestamp [14:44:05]File name is /storage/kkm_last_timestamp [14:44:05]Write 4 bytes [14:44:05]NVStorageSaveData done [14:44:05]ExternCall_PrintAddStr [14:44:05]wPrintStart [14:44:05]Write to MH i2c: 01 00 00 0A 06 10 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [14:44:05]RasterBufferAndPrint [14:44:05]line Счет N : (1)343350 [14:44:05]line ИНН: 02508201610067 [14:44:05]line Контрольно-Кассовый Чек [14:44:05]line ПРОДАЖА [14:44:05]line ТРК (МРК, ГНК) : 54 [14:44:05]line Товар: 2710194210 [14:44:05]line ДТ-К-2 [14:44:05]line 400.000 * 0.00 [14:44:05]line = 0.00 [14:44:05]line НДС 12% НСП 1% [14:44:05]line > о реализуемом товаре [14:44:05]line ИТОГО: 0.00 [14:44:05]line НСП 1% : 0.00 [14:44:05]line НДС 12% : 0.00 [14:44:05]line Наличными: 0.00 [14:44:05]line Безнал.: 0.00 [14:44:05]line Место: АЗС № 78 "Партнер Нефть" [14:44:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:44:05]line СНО: Общий режим [14:44:05]line Чек 158 22.10.2024 14:44 [14:44:05]line Смена: 116 ФФД: 1.0 [14:44:05]line ЗНМ: 0300000137 [14:44:05]line РНМ: 0000000000186857 [14:44:05]line Версия ККМ: v1.0 [14:44:05]line Талоны: ТК ГПНА Online [14:44:05]line 30035887 [14:44:05]line ФМ: 0000000002094219 [14:44:05]line ФД: 30925 [14:44:05]line ФПД: 1257122127963 [14:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144404&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30925&fm=1257122127963&tin=02508201610067®Number=0000000000186857&sum=0 [14:44:05]OFD Sender: Processing packet 30925 [packets to send 11, broken 10] [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00030925 [14:44:05]OFD Sender: To server: pG, [14:44:05]CommunicateWithHost lk.salyk.kg:30040 [14:44:05]ConnectInit lk.salyk.kg [14:44:05]written 0, free lines is 4095 [14:44:06]Connected sock=10 [14:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 25 CB 04 01 A3 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 32 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 78 00 00 35 04 06 00 01 24 B2 51 60 5B 34 BA 85 9D 9C 14 D1 60 [14:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2B 90 47 00 E3 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 32 30 39 34 32 31 39 10 04 04 00 CD 78 00 00 F4 03 04 00 B2 64 17 67 B6 04 01 00 00 4C 33 A1 2D A1 B3 81 95 [14:44:06]CommunicateWithHost err = 0 [14:44:06]CheckOFDResponse [14:44:06]1017 (14) - 77093643461234 [14:44:06]1041 (16) - 0000000002094219 [14:44:06]1040 (4) - 30925 [14:44:06]1012 (4) - 22.10.2024 08:39 [14:44:06]1206 (1) - 0 [14:44:06]OFD Sender: Remove packet 30925 [14:44:06]ProducePacketName [14:44:06]name=ofd_packets/00030925 [14:44:06]NVStorageDeleteData [14:44:06]Write to MH i2c: 01 00 00 34 06 3A [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 07 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 F2 0C 3F [14:44:06]RasterBufferAndPrint [14:44:06]line [14:44:06]line [14:44:06]line [14:44:06]line [14:44:06]line [14:44:06]written 0, free lines is 3320 [14:44:06]MH_Cut [14:44:06]Write to MH i2c: D1 01 00 3B 06 01 13 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: D1 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: D1 01 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: D1 01 00 3B 06 00 12 [14:44:06]Write to MH i2c: 01 00 00 3C 06 42 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]OFD Sender: No OFD packet to send [14:44:07]*** Cut start [14:44:07]*** Partial cut [14:44:07]*** CUTSNS_PIN = 1 [14:44:07]*** CUTSNS_PIN = 0 [14:44:07]*** Brake cut motor [14:44:07]Read from MH i2c: 01 [14:44:07]MH_I2C_Read... [14:44:07]*** Stop cut motor [14:44:07]*** Cut end [14:44:07]Read from MH i2c: 01 07 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [14:44:07]process_action close_receipt done [14:44:07]requested_data is exist [14:44:07]produce_requested_data [14:44:07]requested_item fm.sn is exist - process it [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 11 00 00 [14:44:07]Write to MH i2c: E2 08 00 3D 06 80 11 00 00 00 00 00 00 BD [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 17 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 17 00 3D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [14:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:44:07]wFMCommunicate OK [14:44:07]requested_item fd.num is exist - process it [14:44:07]SAM_PROTO_GetFieldsCounters [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 13 00 00 [14:44:07]Write to MH i2c: E2 08 00 3E 06 80 13 00 00 00 00 00 00 C0 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 3E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [14:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetFieldsCounters done [14:44:07]requested_item shift.num is exist - process it [14:44:07]requested_item shift.opened is exist - process it [14:44:07]req_shift_opened [14:44:07]FM_GetShiftState [14:44:07]SAM_PROTO_GetShiftState [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 13 01 00 [14:44:07]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9C [14:44:07]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetShiftState done [14:44:07]FM_GetShiftState done [14:44:07]req_shift_opened done [14:44:07]requested_item shift.open_date is exist - process it [14:44:07]req_shift_open_date [14:44:07]req_shift_open_date done [14:44:07]produce_requested_data done [14:44:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30925,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:44:07]process_action_free close_receipt [14:44:07]json_value_free [14:44:07]json_value_free done [14:44:07]process_json_proto returns [14:44:07]Send response to host [14:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30925,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:44:07]free response buf [14:44:07]execute_script done [14:44:07]execute_script returns [14:44:07]free content buf [14:44:07]Sock 7.Close socket [14:44:07]Sock 7.Thread stoped [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:05]accept exits with 9 [14:46:05]New connection [14:46:05]New thread 3066899812 created [14:46:05]Thread 3067043172 joined [14:46:05]Waiting for new connection... [14:46:05] Sock 9.Parse request [14:46:05]Sock 9.Check first char [14:46:05]Sock 9.First char is OK [14:46:05]request: POST /json_proto HTTP/1.0 [14:46:05]Method: POST [14:46:05]URL: /json_proto [14:46:05]Method is POST - this is cgi request [14:46:05]url: /json_proto [14:46:05]query_string will be loaded in cgi processing [14:46:05]execute_cgi json_proto POST (null) [14:46:05]execute_cgi path=json_proto method=POST [14:46:05]POST find Content-Length [14:46:05]Host: 172.17.51.3:8080 [14:46:05]Content-Length: 679 [14:46:05]Content-Type: application/json [14:46:05] [14:46:05]POST finish read [14:46:05]Found Content-Length = 679 [14:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:05]execute_script... [14:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:05]POST & json_proto [14:46:05]process_json_proto [14:46:05]json parsed OK: [14:46:05]protocol is kg_v1.0 [14:46:05]action value=close_receipt [14:46:05]process_action close_receipt [14:46:05]cmd_close_receipt [14:46:05]MH_GetDate [14:46:05]Write to MH i2c: F0 00 00 40 06 35 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: F0 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: F0 09 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: F0 09 00 40 06 00 AE BA 17 67 04 C1 95 66 E4 [14:46:05]GetLastDocTimeStamp 1729608244 [14:46:05]current date 1729608366 [14:46:05]FM_GetShiftState [14:46:05]SAM_PROTO_GetShiftState [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 13 01 00 [14:46:05]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0E 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9E [14:46:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:46:05]wFMCommunicate OK [14:46:05]SAM_PROTO_GetShiftState done [14:46:05]FM_GetShiftState done [14:46:05]opened in 1729557342 [14:46:05]opened+sec_in_day 1729643742 [14:46:05]quantity*price = 350062 [14:46:05]sum+1 = 350064 [14:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 159 22.10.2024 14:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30926 ФПД: 81905496056097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30926&fm=81905496056097&tin=02508201610067®Number=0000000000186857&sum=350000 [14:46:06]StoreToDocumentArchive [14:46:06]shift 116 fd 30926 [14:46:06]save to /storage/0116/doc_00030926 [14:46:06]save last doc name /storage/0116/doc_00030926 to /storage/kkm_last_doc_name [14:46:06]save OK [14:46:06]Clear old archive folders... [14:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:06]tlvbuf is B6DBE2B0 [14:46:06]SAM_PROTO_ClearQueue [14:46:06]wFMCommunicate request_size=4 [14:46:06]MH_SAM_APDU [14:46:06]CAPDU: 80 09 00 00 [14:46:06]Write to MH i2c: E2 08 00 4E 06 80 09 00 00 00 00 00 00 C6 [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:06]Read from MH i2c: E2 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 03 00 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [14:46:06]RAPDU: 90 00 [14:46:06]wFMCommunicate OK [14:46:06]SAM_PROTO_ClearQueue done [14:46:06]KKMCreateOFDPacket [14:46:06]OFDProtocolAddRootSTLVToBuf [14:46:06]FM_MakeSignedData [14:46:06]FM_MakeSignedData [14:46:06]SAM_PROTO_SignData [14:46:06]wFMCommunicate request_size=4 [14:46:06]MH_SAM_APDU [14:46:06]CAPDU: 80 0D 01 02 [14:46:06]Write to MH i2c: E2 08 00 4F 06 80 0D 01 02 00 00 00 00 CE [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:06]Read from MH i2c: E2 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 03 00 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [14:46:06]RAPDU: 90 00 [14:46:06]wFMCommunicate OK [14:46:06]wFMCommunicate request_size=255 [14:46:06]MH_SAM_APDU [14:46: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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 AE BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 78 00 00 35 04 06 00 4A 7E 1B FF [14:46:06]Write to MH i2c: E2 02 01 50 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 AE BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 78 00 00 35 04 06 00 4A 7E 1B FF 00 00 27 [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]OFD Sender: No OFD packet to send [14:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 03 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [14:46:07]RAPDU: 90 00 [14:46:07]wFMCommunicate OK [14:46:07]wFMCommunicate request_size=7 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 0D 02 02 02 61 21 [14:46:07]Write to MH i2c: E2 0A 00 51 06 80 0D 02 02 02 00 61 21 00 00 57 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 03 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [14:46:07]RAPDU: 90 00 [14:46:07]wFMCommunicate OK [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 0D 03 02 [14:46:07]Write to MH i2c: E2 08 00 52 06 80 0D 03 02 00 00 00 00 D3 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 0B 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 0B 00 52 06 00 3C 5D 45 D3 97 BA 92 47 90 00 AF [14:46:07]RAPDU: 3C 5D 45 D3 97 BA 92 47 90 00 [14:46:07]wFMCommunicate OK [14:46:07]SAM_PROTO_SignData done [14:46:07]FM_MakeSignedData done [14:46:07]CreateOFDProtocolMessage [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 11 00 00 [14:46:07]Write to MH i2c: E2 08 00 53 06 80 11 00 00 00 00 00 00 D3 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 53 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [14:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:46:07]wFMCommunicate OK [14:46:07]CreateOFDProtocolMessage done [14:46:07]OFDSenderStorePacket 30926 [14:46:07]StoreOFDPacket docnum=30926 [14:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CD 64 04 01 B2 FD 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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 AE BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 78 00 00 35 04 06 00 4A 7E 1B FF 61 21 3C 5D 45 D3 97 BA 92 47 [14:46:07]CheckFolder [14:46:07]dirname=/storage/ofd_packets [14:46:07]CheckFolder done [14:46:07]ProducePacketName [14:46:07]name=ofd_packets/00030926 [14:46:07]NVStorageSaveData ofd_packets/00030926 [14:46:07]File name is /storage/ofd_packets/00030926 [14:46:07]Write 298 bytes [14:46:07]NVStorageSaveData done [14:46:07]OFDSenderStorePacket done [14:46:07]KKMCreateOFDPacket done [14:46:07]NVStorageSaveData kkm_last_timestamp [14:46:07]File name is /storage/kkm_last_timestamp [14:46:07]Write 4 bytes [14:46:07]NVStorageSaveData done [14:46:07]ExternCall_PrintAddStr [14:46:07]wPrintStart [14:46:07]Write to MH i2c: 01 00 00 54 06 5A [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 FF 0F 6F [14:46:07]RasterBufferAndPrint [14:46:07]line Счет N : (1)343352 [14:46:07]line ИНН: 02508201610067 [14:46:07]line Контрольно-Кассовый Чек [14:46:07]line ПРОДАЖА [14:46:07]line ТРК (МРК, ГНК) : 64 [14:46:07]line Товар: 2710194210 [14:46:07]line ДТ-К-2 [14:46:07]line 45.940 * 76.20 [14:46:07]line = 3500.63 [14:46:07]line НДС 12% НСП 1% [14:46:07]line > о реализуемом товаре [14:46:07]line ОКРУГЛЕНИЕ: -0.63 [14:46:07]line ИТОГО: 3500.00 [14:46:07]line Внесено: 3500.00 [14:46:07]line СДАЧА: 0.00 [14:46:07]line НСП 1% : 30.98 [14:46:07]line НДС 12% : 371.75 [14:46:07]line Наличными: 3500.00 [14:46:07]line Безнал.: 0.00 [14:46:07]line Место: АЗС № 78 "Партнер Нефть" [14:46:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:46:07]line СНО: Общий режим [14:46:07]line Чек 159 22.10.2024 14:46 [14:46:07]line Смена: 116 ФФД: 1.0 [14:46:07]line ЗНМ: 0300000137 [14:46:07]line РНМ: 0000000000186857 [14:46:07]line Версия ККМ: v1.0 [14:46:07]line ФМ: 0000000002094219 [14:46:07]line ФД: 30926 [14:46:07]line ФПД: 81905496056097 [14:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30926&fm=81905496056097&tin=02508201610067®Number=0000000000186857&sum=350000 [14:46:07]OFD Sender: Processing packet 30926 [packets to send 11, broken 10] [14:46:07]ProducePacketName [14:46:07]name=ofd_packets/00030926 [14:46:07]OFD Sender: To server: pG, [14:46:07]CommunicateWithHost lk.salyk.kg:30040 [14:46:07]ConnectInit lk.salyk.kg [14:46:07]written 0, free lines is 4095 [14:46:07]Connected sock=10 [14:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CD 64 04 01 B2 FD 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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 AE BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 78 00 00 35 04 06 00 4A 7E 1B FF 61 21 3C 5D 45 D3 97 BA 92 47 [14:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F2 EA 47 00 5B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 78 00 00 F4 03 04 00 2B 65 17 67 B6 04 01 00 00 1F 9C 6A DA 00 97 8D C5 [14:46:07]CommunicateWithHost err = 0 [14:46:07]CheckOFDResponse [14:46:07]1017 (14) - 77093643461234 [14:46:07]1041 (16) - 0000000002094219 [14:46:07]1040 (4) - 30926 [14:46:07]1012 (4) - 22.10.2024 08:41 [14:46:07]1206 (1) - 0 [14:46:07]OFD Sender: Remove packet 30926 [14:46:07]ProducePacketName [14:46:07]name=ofd_packets/00030926 [14:46:07]NVStorageDeleteData [14:46:07]Write to MH i2c: 01 00 00 7F 06 85 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 F3 0C 8B [14:46:07]RasterBufferAndPrint [14:46:07]line [14:46:07]line [14:46:07]line [14:46:07]line [14:46:07]line [14:46:07]written 0, free lines is 3321 [14:46:07]MH_Cut [14:46:07]Write to MH i2c: D1 01 00 86 06 01 5E [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: D1 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: D1 01 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: D1 01 00 86 06 00 5D [14:46:07]Write to MH i2c: 01 00 00 87 06 8D [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:08]OFD Sender: No OFD packet to send [14:46:08]*** Cut start [14:46:08]*** Partial cut [14:46:08]*** CUTSNS_PIN = 1 [14:46:08]*** CUTSNS_PIN = 0 [14:46:08]*** Brake cut motor [14:46:09]Read from MH i2c: 01 [14:46:09]MH_I2C_Read... [14:46:09]*** Stop cut motor [14:46:09]*** Cut end [14:46:09]Read from MH i2c: 01 07 00 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [14:46:09]process_action close_receipt done [14:46:09]requested_data is exist [14:46:09]produce_requested_data [14:46:09]requested_item fm.sn is exist - process it [14:46:09]wFMCommunicate request_size=4 [14:46:09]MH_SAM_APDU [14:46:09]CAPDU: 80 11 00 00 [14:46:09]Write to MH i2c: E2 08 00 88 06 80 11 00 00 00 00 00 00 08 [14:46:09]Write i2c OK [14:46:09]MH_I2C_Read... [14:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:09]Read from MH i2c: E2 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 17 00 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 17 00 88 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [14:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:46:09]wFMCommunicate OK [14:46:09]requested_item fd.num is exist - process it [14:46:09]SAM_PROTO_GetFieldsCounters [14:46:09]wFMCommunicate request_size=4 [14:46:09]MH_SAM_APDU [14:46:09]CAPDU: 80 13 00 00 [14:46:09]Write to MH i2c: E2 08 00 89 06 80 13 00 00 00 00 00 00 0B [14:46:09]Write i2c OK [14:46:09]MH_I2C_Read... [14:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:09]Read from MH i2c: E2 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 62 00 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 62 00 89 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:09]wFMCommunicate OK [14:46:09]SAM_PROTO_GetFieldsCounters done [14:46:09]requested_item shift.num is exist - process it [14:46:09]requested_item shift.opened is exist - process it [14:46:09]req_shift_opened [14:46:09]FM_GetShiftState [14:46:09]SAM_PROTO_GetShiftState [14:46:09]wFMCommunicate request_size=4 [14:46:09]MH_SAM_APDU [14:46:09]CAPDU: 80 13 01 00 [14:46:09]Write to MH i2c: E2 08 00 8A 06 80 13 01 00 00 00 00 00 0D [14:46:09]Write i2c OK [14:46:09]MH_I2C_Read... [14:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:09]Read from MH i2c: E2 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 0E 00 [14:46:09]MH_I2C_Read... [14:46:09]Read from MH i2c: E2 0E 00 8A 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E7 [14:46:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:46:09]wFMCommunicate OK [14:46:09]SAM_PROTO_GetShiftState done [14:46:09]FM_GetShiftState done [14:46:09]req_shift_opened done [14:46:09]requested_item shift.open_date is exist - process it [14:46:09]req_shift_open_date [14:46:09]req_shift_open_date done [14:46:09]produce_requested_data done [14:46:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30926,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:46:09]process_action_free close_receipt [14:46:09]json_value_free [14:46:09]json_value_free done [14:46:09]process_json_proto returns [14:46:09]Send response to host [14:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30926,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:46:09]free response buf [14:46:09]execute_script done [14:46:09]execute_script returns [14:46:09]free content buf [14:46:09]Sock 9.Close socket [14:46:09]Sock 9.Thread stoped [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:50]accept exits with 7 [14:46:50]New connection [14:46:50]New thread 3067043172 created [14:46:50]Thread 3066899812 joined [14:46:50]Waiting for new connection... [14:46:50] Sock 7.Parse request [14:46:50]Sock 7.Check first char [14:46:50]Sock 7.First char is OK [14:46:50]request: POST /json_proto HTTP/1.0 [14:46:50]Method: POST [14:46:50]URL: /json_proto [14:46:50]Method is POST - this is cgi request [14:46:50]url: /json_proto [14:46:50]query_string will be loaded in cgi processing [14:46:50]execute_cgi json_proto POST (null) [14:46:50]execute_cgi path=json_proto method=POST [14:46:50]POST find Content-Length [14:46:50]Host: 172.17.51.3:8080 [14:46:50]Content-Length: 677 [14:46:50]Content-Type: application/json [14:46:50] [14:46:50]POST finish read [14:46:50]Found Content-Length = 677 [14:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:50]execute_script... [14:46: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)343353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:50]POST & json_proto [14:46:50]process_json_proto [14:46:50]json parsed OK: [14:46:50]protocol is kg_v1.0 [14:46:50]action value=close_receipt [14:46:50]process_action close_receipt [14:46:50]cmd_close_receipt [14:46:50]MH_GetDate [14:46:50]Write to MH i2c: F0 00 00 8B 06 80 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: F0 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: F0 09 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: F0 09 00 8B 06 00 DB BA 17 67 04 C1 95 66 5C [14:46:50]GetLastDocTimeStamp 1729608366 [14:46:50]current date 1729608411 [14:46:50]FM_GetShiftState [14:46:50]SAM_PROTO_GetShiftState [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 13 01 00 [14:46:50]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0E 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E9 [14:46:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:46:50]wFMCommunicate OK [14:46:50]SAM_PROTO_GetShiftState done [14:46:50]FM_GetShiftState done [14:46:50]opened in 1729557342 [14:46:50]opened+sec_in_day 1729643742 [14:46:50]quantity*price = 30038 [14:46:50]sum+1 = 30039 [14:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 160 22.10.2024 14:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30927 ФПД: 144984025845443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144651&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30927&fm=144984025845443&tin=02508201610067®Number=0000000000186857&sum=30000 [14:46:51]StoreToDocumentArchive [14:46:51]shift 116 fd 30927 [14:46:51]save to /storage/0116/doc_00030927 [14:46:51]save last doc name /storage/0116/doc_00030927 to /storage/kkm_last_doc_name [14:46:51]save OK [14:46:51]Clear old archive folders... [14:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:51]tlvbuf is 00D6A9A0 [14:46:51]SAM_PROTO_ClearQueue [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 09 00 00 [14:46:51]Write to MH i2c: E2 08 00 99 06 80 09 00 00 00 00 00 00 11 [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 03 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [14:46:51]RAPDU: 90 00 [14:46:51]wFMCommunicate OK [14:46:51]SAM_PROTO_ClearQueue done [14:46:51]KKMCreateOFDPacket [14:46:51]OFDProtocolAddRootSTLVToBuf [14:46:51]FM_MakeSignedData [14:46:51]FM_MakeSignedData [14:46:51]SAM_PROTO_SignData [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 0D 01 02 [14:46:51]Write to MH i2c: E2 08 00 9A 06 80 0D 01 02 00 00 00 00 19 [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 03 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [14:46:51]RAPDU: 90 00 [14:46:51]wFMCommunicate OK [14:46:51]wFMCommunicate request_size=255 [14:46:51]MH_SAM_APDU [14:46: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 DB BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 78 00 00 35 04 06 00 83 [14:46:51]Write to MH i2c: E2 02 01 9B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 DB BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 78 00 00 35 04 06 00 83 00 00 8F [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=10 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 02 02 05 DC B9 5B CE C3 [14:46:52]Write to MH i2c: E2 0D 00 9C 06 80 0D 02 02 05 00 DC B9 5B CE C3 00 00 A7 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 03 02 [14:46:52]Write to MH i2c: E2 08 00 9D 06 80 0D 03 02 00 00 00 00 1E [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0B 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0B 00 9D 06 00 FF 7A 11 71 B2 A4 70 69 90 00 49 [14:46:52]RAPDU: FF 7A 11 71 B2 A4 70 69 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_SignData done [14:46:52]FM_MakeSignedData done [14:46:52]CreateOFDProtocolMessage [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 11 00 00 [14:46:52]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [14:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:46:52]wFMCommunicate OK [14:46:52]CreateOFDProtocolMessage done [14:46:52]OFDSenderStorePacket 30927 [14:46:52]StoreOFDPacket docnum=30927 [14:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C4 89 07 01 E7 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 DB BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 78 00 00 35 04 06 00 83 DC B9 5B CE C3 FF 7A 11 71 B2 A4 70 69 [14:46:52]CheckFolder [14:46:52]dirname=/storage/ofd_packets [14:46:52]CheckFolder done [14:46:52]ProducePacketName [14:46:52]name=ofd_packets/00030927 [14:46:52]NVStorageSaveData ofd_packets/00030927 [14:46:52]File name is /storage/ofd_packets/00030927 [14:46:52]Write 301 bytes [14:46:52]NVStorageSaveData done [14:46:52]OFDSenderStorePacket done [14:46:52]KKMCreateOFDPacket done [14:46:52]NVStorageSaveData kkm_last_timestamp [14:46:52]File name is /storage/kkm_last_timestamp [14:46:52]Write 4 bytes [14:46:52]OFD Sender: Processing packet 30927 [packets to send 11, broken 10] [14:46:52]ProducePacketName [14:46:52]name=ofd_packets/00030927 [14:46:52]OFD Sender: To server: pG, [14:46:52]CommunicateWithHost lk.salyk.kg:30040 [14:46:52]ConnectInit lk.salyk.kg [14:46:52]NVStorageSaveData done [14:46:52]ExternCall_PrintAddStr [14:46:52]wPrintStart [14:46:52]Write to MH i2c: 01 00 00 9F 06 A5 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 07 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [14:46:52]RasterBufferAndPrint [14:46:52]line Счет N : (1)343353 [14:46:52]line ИНН: 02508201610067 [14:46:52]line Контрольно-Кассовый Чек [14:46:52]line ПРОДАЖА [14:46:52]line ТРК (МРК, ГНК) : 53 [14:46:52]line Товар: 2710124130 [14:46:52]line Аи-92-К-2 [14:46:52]line 4.490 * 66.90 [14:46:52]line = 300.38 [14:46:52]line НДС 12% НСП 1% [14:46:52]line > о реализуемом товаре [14:46:52]line ОКРУГЛЕНИЕ: -0.38 [14:46:52]line ИТОГО: 300.00 [14:46:52]line Внесено: 300.00 [14:46:52]line СДАЧА: 0.00 [14:46:52]line НСП 1% : 2.66 [14:46:52]line НДС 12% : 31.90 [14:46:52]line Наличными: 300.00 [14:46:52]line Безнал.: 0.00 [14:46:52]line Место: АЗС № 78 "Партнер Нефть" [14:46:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:46:52]line СНО: Общий режим [14:46:52]line Чек 160 22.10.2024 14:46 [14:46:52]line Смена: 116 ФФД: 1.0 [14:46:52]line ЗНМ: 0300000137 [14:46:52]line РНМ: 0000000000186857 [14:46:52]line Версия ККМ: v1.0 [14:46:52]line ФМ: 0000000002094219 [14:46:52]line ФД: 30927 [14:46:52]line ФПД: 144984025845443 [14:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144651&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30927&fm=144984025845443&tin=02508201610067®Number=0000000000186857&sum=30000 [14:46:52]Connected sock=11 [14:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C4 89 07 01 E7 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 DB BA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 78 00 00 35 04 06 00 83 DC B9 5B CE C3 FF 7A 11 71 B2 A4 70 69 [14:46:52]written 0, free lines is 4095 [14:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D2 A9 47 00 B5 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 78 00 00 F4 03 04 00 58 65 17 67 B6 04 01 00 00 DF 2F 90 61 1C F6 CB 2C [14:46:52]CommunicateWithHost err = 0 [14:46:52]CheckOFDResponse [14:46:52]1017 (14) - 77093643461234 [14:46:52]1041 (16) - 0000000002094219 [14:46:52]1040 (4) - 30927 [14:46:52]1012 (4) - 22.10.2024 08:42 [14:46:52]1206 (1) - 0 [14:46:52]OFD Sender: Remove packet 30927 [14:46:52]ProducePacketName [14:46:52]name=ofd_packets/00030927 [14:46:52]NVStorageDeleteData [14:46:53]Write to MH i2c: 01 00 00 CA 06 D0 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 F5 0C D8 [14:46:53]RasterBufferAndPrint [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]written 0, free lines is 3323 [14:46:53]MH_Cut [14:46:53]Write to MH i2c: D1 01 00 D1 06 01 A9 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 01 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 01 00 D1 06 00 A8 [14:46:53]Write to MH i2c: 01 00 00 D2 06 D8 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]OFD Sender: No OFD packet to send [14:46:53]*** Cut start [14:46:53]*** Partial cut [14:46:53]*** CUTSNS_PIN = 1 [14:46:53]*** CUTSNS_PIN = 0 [14:46:54]*** Brake cut motor [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]*** Stop cut motor [14:46:54]*** Cut end [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [14:46:54]process_action close_receipt done [14:46:54]requested_data is exist [14:46:54]produce_requested_data [14:46:54]requested_item fm.sn is exist - process it [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 11 00 00 [14:46:54]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [14:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:46:54]wFMCommunicate OK [14:46:54]requested_item fd.num is exist - process it [14:46:54]SAM_PROTO_GetFieldsCounters [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 13 00 00 [14:46:54]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 62 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:54]wFMCommunicate OK [14:46:54]SAM_PROTO_GetFieldsCounters done [14:46:54]requested_item shift.num is exist - process it [14:46:54]requested_item shift.opened is exist - process it [14:46:54]req_shift_opened [14:46:54]FM_GetShiftState [14:46:54]SAM_PROTO_GetShiftState [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 13 01 00 [14:46:54]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0E 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 32 [14:46:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:46:54]wFMCommunicate OK [14:46:54]SAM_PROTO_GetShiftState done [14:46:54]FM_GetShiftState done [14:46:54]req_shift_opened done [14:46:54]requested_item shift.open_date is exist - process it [14:46:54]req_shift_open_date [14:46:54]req_shift_open_date done [14:46:54]produce_requested_data done [14:46:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30927,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:46:54]process_action_free close_receipt [14:46:54]json_value_free [14:46:54]json_value_free done [14:46:54]process_json_proto returns [14:46:54]Send response to host [14:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30927,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:46:54]free response buf [14:46:54]execute_script done [14:46:54]execute_script returns [14:46:54]free content buf [14:46:54]Sock 7.Close socket [14:46:54]Sock 7.Thread stoped [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:31]accept exits with 9 [14:47:31]New connection [14:47:31]New thread 3066899812 created [14:47:31]Thread 3067043172 joined [14:47:31]Waiting for new connection... [14:47:31] Sock 9.Parse request [14:47:31]Sock 9.Check first char [14:47:31]Sock 9.First char is OK [14:47:31]request: POST /json_proto HTTP/1.0 [14:47:31]Method: POST [14:47:31]URL: /json_proto [14:47:31]Method is POST - this is cgi request [14:47:31]url: /json_proto [14:47:31]query_string will be loaded in cgi processing [14:47:31]execute_cgi json_proto POST (null) [14:47:31]execute_cgi path=json_proto method=POST [14:47:31]POST find Content-Length [14:47:31]Host: 172.17.51.3:8080 [14:47:31]Content-Length: 677 [14:47:31]Content-Type: application/json [14:47:31] [14:47:31]POST finish read [14:47:31]Found Content-Length = 677 [14:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:31]execute_script... [14: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)343354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:31]POST & json_proto [14:47:31]process_json_proto [14:47:31]json parsed OK: [14:47:31]protocol is kg_v1.0 [14:47:31]action value=close_receipt [14:47:31]process_action close_receipt [14:47:31]cmd_close_receipt [14:47:31]MH_GetDate [14:47:31]Write to MH i2c: F0 00 00 D6 06 CB [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 09 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 09 00 D6 06 00 04 BB 17 67 04 C1 95 66 D1 [14:47:31]GetLastDocTimeStamp 1729608411 [14:47:31]current date 1729608452 [14:47:31]FM_GetShiftState [14:47:31]SAM_PROTO_GetShiftState [14:47:31]wFMCommunicate request_size=4 [14:47:31]MH_SAM_APDU [14:47:31]CAPDU: 80 13 01 00 [14:47:31]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:31]Read from MH i2c: E2 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: E2 0E 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 34 [14:47:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:47:31]wFMCommunicate OK [14:47:31]SAM_PROTO_GetShiftState done [14:47:31]FM_GetShiftState done [14:47:31]opened in 1729557342 [14:47:31]opened+sec_in_day 1729643742 [14:47:31]quantity*price = 30038 [14:47:31]sum+1 = 30039 [14:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 161 22.10.2024 14:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30928 ФПД: 132521175850595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144732&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30928&fm=132521175850595&tin=02508201610067®Number=0000000000186857&sum=30000 [14:47:32]StoreToDocumentArchive [14:47:32]shift 116 fd 30928 [14:47:32]save to /storage/0116/doc_00030928 [14:47:32]save last doc name /storage/0116/doc_00030928 to /storage/kkm_last_doc_name [14:47:32]save OK [14:47:32]Clear old archive folders... [14:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:32]tlvbuf is 00D37DF0 [14:47:32]SAM_PROTO_ClearQueue [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 09 00 00 [14:47:32]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_ClearQueue done [14:47:32]KKMCreateOFDPacket [14:47:32]OFDProtocolAddRootSTLVToBuf [14:47:32]FM_MakeSignedData [14:47:32]FM_MakeSignedData [14:47:32]SAM_PROTO_SignData [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 0D 01 02 [14:47:32]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]wFMCommunicate request_size=255 [14:47:32]MH_SAM_APDU [14: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 04 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 78 00 00 35 04 06 00 78 [14:47:32]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 04 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 78 00 00 35 04 06 00 78 00 00 FB [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 03 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [14:47:33]RAPDU: 90 00 [14:47:33]wFMCommunicate OK [14:47:33]wFMCommunicate request_size=10 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 0D 02 02 05 86 FD 9C 9E 63 [14:47:33]Write to MH i2c: E2 0D 00 E7 06 80 0D 02 02 05 00 86 FD 9C 9E 63 00 00 91 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 03 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [14:47:33]RAPDU: 90 00 [14:47:33]wFMCommunicate OK [14:47:33]wFMCommunicate request_size=4 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 0D 03 02 [14:47:33]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 0B 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 0B 00 E8 06 00 8B 04 C0 93 22 8B 2F 5A 90 00 82 [14:47:33]RAPDU: 8B 04 C0 93 22 8B 2F 5A 90 00 [14:47:33]wFMCommunicate OK [14:47:33]SAM_PROTO_SignData done [14:47:33]FM_MakeSignedData done [14:47:33]CreateOFDProtocolMessage [14:47:33]wFMCommunicate request_size=4 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 11 00 00 [14:47:33]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 17 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [14:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:47:33]wFMCommunicate OK [14:47:33]CreateOFDProtocolMessage done [14:47:33]OFDSenderStorePacket 30928 [14:47:33]StoreOFDPacket docnum=30928 [14:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD DF 07 01 1B 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 04 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 78 00 00 35 04 06 00 78 86 FD 9C 9E 63 8B 04 C0 93 22 8B 2F 5A [14:47:33]CheckFolder [14:47:33]dirname=/storage/ofd_packets [14:47:33]CheckFolder done [14:47:33]ProducePacketName [14:47:33]name=ofd_packets/00030928 [14:47:33]NVStorageSaveData ofd_packets/00030928 [14:47:33]File name is /storage/ofd_packets/00030928 [14:47:33]Write 301 bytes [14:47:33]NVStorageSaveData done [14:47:33]OFDSenderStorePacket done [14:47:33]KKMCreateOFDPacket done [14:47:33]NVStorageSaveData kkm_last_timestamp [14:47:33]File name is /storage/kkm_last_timestamp [14:47:33]Write 4 bytes [14:47:33]NVStorageSaveData done [14:47:33]ExternCall_PrintAddStr [14:47:33]wPrintStart [14:47:33]Write to MH i2c: 01 00 00 EA 06 F0 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 07 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [14:47:33]RasterBufferAndPrint [14:47:33]line Счет N : (1)343354 [14:47:33]line ИНН: 02508201610067 [14:47:33]line Контрольно-Кассовый Чек [14:47:33]line ПРОДАЖА [14:47:33]line ТРК (МРК, ГНК) : 33 [14:47:33]line Товар: 2710124130 [14:47:33]line Аи-92-К-2 [14:47:33]line 4.490 * 66.90 [14:47:33]line = 300.38 [14:47:33]line НДС 12% НСП 1% [14:47:33]line > о реализуемом товаре [14:47:33]line ОКРУГЛЕНИЕ: -0.38 [14:47:33]line ИТОГО: 300.00 [14:47:33]line Внесено: 300.00 [14:47:33]line СДАЧА: 0.00 [14:47:33]line НСП 1% : 2.66 [14:47:33]line НДС 12% : 31.90 [14:47:33]line Наличными: 300.00 [14:47:33]line Безнал.: 0.00 [14:47:33]line Место: АЗС № 78 "Партнер Нефть" [14:47:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:47:33]line СНО: Общий режим [14:47:33]line Чек 161 22.10.2024 14:47 [14:47:33]line Смена: 116 ФФД: 1.0 [14:47:33]line ЗНМ: 0300000137 [14:47:33]line РНМ: 0000000000186857 [14:47:33]line Версия ККМ: v1.0 [14:47:33]line ФМ: 0000000002094219 [14:47:33]line ФД: 30928 [14:47:33]line ФПД: 132521175850595 [14:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144732&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30928&fm=132521175850595&tin=02508201610067®Number=0000000000186857&sum=30000 [14:47:33]OFD Sender: Processing packet 30928 [packets to send 11, broken 10] [14:47:33]ProducePacketName [14:47:33]name=ofd_packets/00030928 [14:47:33]OFD Sender: To server: pG, [14:47:33]CommunicateWithHost lk.salyk.kg:30040 [14:47:33]ConnectInit lk.salyk.kg [14:47:33]written 0, free lines is 4095 [14:47:33]Connected sock=10 [14:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD DF 07 01 1B 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 04 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 78 00 00 35 04 06 00 78 86 FD 9C 9E 63 8B 04 C0 93 22 8B 2F 5A [14:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3C D2 47 00 08 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 78 00 00 F4 03 04 00 81 65 17 67 B6 04 01 00 00 BC 47 86 84 7D 3E CC C8 [14:47:33]CommunicateWithHost err = 0 [14:47:33]CheckOFDResponse [14:47:33]1017 (14) - 77093643461234 [14:47:33]1041 (16) - 0000000002094219 [14:47:33]1040 (4) - 30928 [14:47:33]1012 (4) - 22.10.2024 08:42 [14:47:33]1206 (1) - 0 [14:47:33]OFD Sender: Remove packet 30928 [14:47:33]ProducePacketName [14:47:33]name=ofd_packets/00030928 [14:47:33]NVStorageDeleteData [14:47:34]Write to MH i2c: 01 00 00 15 07 1C [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 07 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 F8 0C 27 [14:47:34]RasterBufferAndPrint [14:47:34]line [14:47:34]line [14:47:34]line [14:47:34]line [14:47:34]line [14:47:34]written 0, free lines is 3326 [14:47:34]MH_Cut [14:47:34]Write to MH i2c: D1 01 00 1C 07 01 F5 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: D1 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: D1 01 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: D1 01 00 1C 07 00 F4 [14:47:34]Write to MH i2c: 01 00 00 1D 07 24 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]OFD Sender: No OFD packet to send [14:47:34]*** Cut start [14:47:34]*** Partial cut [14:47:34]*** CUTSNS_PIN = 1 [14:47:34]*** CUTSNS_PIN = 0 [14:47:35]*** Brake cut motor [14:47:35]Read from MH i2c: 01 [14:47:35]MH_I2C_Read... [14:47:35]*** Stop cut motor [14:47:35]*** Cut end [14:47:35]Read from MH i2c: 01 07 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 FF 0F 39 [14:47:35]process_action close_receipt done [14:47:35]requested_data is exist [14:47:35]produce_requested_data [14:47:35]requested_item fm.sn is exist - process it [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 11 00 00 [14:47:35]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 17 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 ED [14:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:47:35]wFMCommunicate OK [14:47:35]requested_item fd.num is exist - process it [14:47:35]SAM_PROTO_GetFieldsCounters [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 13 00 00 [14:47:35]Write to MH i2c: E2 08 00 1F 07 80 13 00 00 00 00 00 00 A2 [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 62 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 62 00 1F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [14:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:35]wFMCommunicate OK [14:47:35]SAM_PROTO_GetFieldsCounters done [14:47:35]requested_item shift.num is exist - process it [14:47:35]requested_item shift.opened is exist - process it [14:47:35]req_shift_opened [14:47:35]FM_GetShiftState [14:47:35]SAM_PROTO_GetShiftState [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 13 01 00 [14:47:35]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7E [14:47:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:47:35]wFMCommunicate OK [14:47:35]SAM_PROTO_GetShiftState done [14:47:35]FM_GetShiftState done [14:47:35]req_shift_opened done [14:47:35]requested_item shift.open_date is exist - process it [14:47:35]req_shift_open_date [14:47:35]req_shift_open_date done [14:47:35]produce_requested_data done [14:47:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30928,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:47:35]process_action_free close_receipt [14:47:35]json_value_free [14:47:35]json_value_free done [14:47:35]process_json_proto returns [14:47:35]Send response to host [14:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30928,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:47:35]free response buf [14:47:35]execute_script done [14:47:35]execute_script returns [14:47:35]free content buf [14:47:35]Sock 9.Close socket [14:47:35]Sock 9.Thread stoped [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:47:59]accept exits with 7 [14:47:59]New connection [14:47:59]New thread 3067043172 created [14:47:59]Thread 3066899812 joined [14:47:59]Waiting for new connection... [14:47:59] Sock 7.Parse request [14:47:59]Sock 7.Check first char [14:47:59]Sock 7.First char is OK [14:47:59]request: POST /json_proto HTTP/1.0 [14:47:59]Method: POST [14:47:59]URL: /json_proto [14:47:59]Method is POST - this is cgi request [14:47:59]url: /json_proto [14:47:59]query_string will be loaded in cgi processing [14:47:59]execute_cgi json_proto POST (null) [14:47:59]execute_cgi path=json_proto method=POST [14:47:59]POST find Content-Length [14:47:59]Host: 172.17.51.3:8080 [14:47:59]Content-Length: 674 [14:47:59]Content-Type: application/json [14:47:59] [14:47:59]POST finish read [14:47:59]Found Content-Length = 674 [14:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]execute_script... [14:47: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)343356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]POST & json_proto [14:47:59]process_json_proto [14:47:59]json parsed OK: [14:47:59]protocol is kg_v1.0 [14:47:59]action value=close_receipt [14:47:59]process_action close_receipt [14:47:59]cmd_close_receipt [14:47:59]MH_GetDate [14:47:59]Write to MH i2c: F0 00 00 21 07 17 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 21 07 00 20 BB 17 67 04 C1 95 66 39 [14:47:59]GetLastDocTimeStamp 1729608452 [14:47:59]current date 1729608480 [14:47:59]FM_GetShiftState [14:47:59]SAM_PROTO_GetShiftState [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 13 01 00 [14:47:59]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 80 [14:47:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:47:59]wFMCommunicate OK [14:47:59]SAM_PROTO_GetShiftState done [14:47:59]FM_GetShiftState done [14:47:59]opened in 1729557342 [14:47:59]opened+sec_in_day 1729643742 [14:47:59]quantity*price = 50063 [14:47:59]sum+1 = 50064 [14:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 162 22.10.2024 14:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30929 ФПД: 247000889618753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30929&fm=247000889618753&tin=02508201610067®Number=0000000000186857&sum=50000 [14:48:00]StoreToDocumentArchive [14:48:00]shift 116 fd 30929 [14:48:00]save to /storage/0116/doc_00030929 [14:48:00]save last doc name /storage/0116/doc_00030929 to /storage/kkm_last_doc_name [14:48:00]save OK [14:48:00]Clear old archive folders... [14:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:00]tlvbuf is 00CA5AE0 [14:48:00]SAM_PROTO_ClearQueue [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 09 00 00 [14:48:00]Write to MH i2c: E2 08 00 2F 07 80 09 00 00 00 00 00 00 A8 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]SAM_PROTO_ClearQueue done [14:48:00]KKMCreateOFDPacket [14:48:00]OFDProtocolAddRootSTLVToBuf [14:48:00]FM_MakeSignedData [14:48:00]FM_MakeSignedData [14:48:00]SAM_PROTO_SignData [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 01 02 [14:48:00]Write to MH i2c: E2 08 00 30 07 80 0D 01 02 00 00 00 00 B0 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]wFMCommunicate request_size=255 [14:48:00]MH_SAM_APDU [14:48:00]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 20 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 78 00 00 35 04 06 00 E0 A5 60 48 [14:48:00]Write to MH i2c: E2 02 01 31 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 20 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 78 00 00 35 04 06 00 E0 A5 60 48 00 00 A4 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [14:48:01]RAPDU: 90 00 [14:48:01]wFMCommunicate OK [14:48:01]wFMCommunicate request_size=7 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 0D 02 02 02 F1 41 [14:48:01]Write to MH i2c: E2 0A 00 32 07 80 0D 02 02 02 00 F1 41 00 00 E9 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [14:48:01]RAPDU: 90 00 [14:48:01]wFMCommunicate OK [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 0D 03 02 [14:48:01]Write to MH i2c: E2 08 00 33 07 80 0D 03 02 00 00 00 00 B5 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0B 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0B 00 33 07 00 B4 84 F6 F4 67 A9 B0 7B 90 00 13 [14:48:01]RAPDU: B4 84 F6 F4 67 A9 B0 7B 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_SignData done [14:48:01]FM_MakeSignedData done [14:48:01]CreateOFDProtocolMessage [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 11 00 00 [14:48:01]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [14:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:48:01]wFMCommunicate OK [14:48:01]CreateOFDProtocolMessage done [14:48:01]OFDSenderStorePacket 30929 [14:48:01]StoreOFDPacket docnum=30929 [14:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 19 FB 04 01 07 B0 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 20 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 78 00 00 35 04 06 00 E0 A5 60 48 F1 41 B4 84 F6 F4 67 A9 B0 7B [14:48:01]CheckFolder [14:48:01]dirname=/storage/ofd_packets [14:48:01]CheckFolder done [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00030929 [14:48:01]NVStorageSaveData ofd_packets/00030929 [14:48:01]File name is /storage/ofd_packets/00030929 [14:48:01]Write 298 bytes [14:48:01]NVStorageSaveData done [14:48:01]OFDSenderStorePacket done [14:48:01]KKMCreateOFDPacket done [14:48:01]NVStorageSaveData kkm_last_timestamp [14:48:01]File name is /storage/kkm_last_timestamp [14:48:01]Write 4 bytes [14:48:01]NVStorageSaveData done [14:48:01]ExternCall_PrintAddStr [14:48:01]wPrintStart [14:48:01]Write to MH i2c: 01 00 00 35 07 3C [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 FF 0F 51 [14:48:01]RasterBufferAndPrint [14:48:01]line Счет N : (1)343356 [14:48:01]line ИНН: 02508201610067 [14:48:01]line Контрольно-Кассовый Чек [14:48:01]line ПРОДАЖА [14:48:01]line ТРК (МРК, ГНК) : 64 [14:48:01]line Товар: 2710194210 [14:48:01]line ДТ-К-2 [14:48:01]line 6.570 * 76.20 [14:48:01]line = 500.63 [14:48:01]line НДС 12% НСП 1% [14:48:01]line > о реализуемом товаре [14:48:01]line ОКРУГЛЕНИЕ: -0.63 [14:48:01]line ИТОГО: 500.00 [14:48:01]line Внесено: 500.00 [14:48:01]line СДАЧА: 0.00 [14:48:01]line НСП 1% : 4.43 [14:48:01]line НДС 12% : 53.16 [14:48:01]line Наличными: 500.00 [14:48:01]line Безнал.: 0.00 [14:48:01]line Место: АЗС № 78 "Партнер Нефть" [14:48:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:48:01]line СНО: Общий режим [14:48:01]line Чек 162 22.10.2024 14:48 [14:48:01]line Смена: 116 ФФД: 1.0 [14:48:01]line ЗНМ: 0300000137 [14:48:01]line РНМ: 0000000000186857 [14:48:01]line Версия ККМ: v1.0 [14:48:01]line ФМ: 0000000002094219 [14:48:01]line ФД: 30929 [14:48:01]line ФПД: 247000889618753 [14:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30929&fm=247000889618753&tin=02508201610067®Number=0000000000186857&sum=50000 [14:48:01]OFD Sender: Processing packet 30929 [packets to send 11, broken 10] [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00030929 [14:48:01]OFD Sender: To server: pG, [14:48:01]CommunicateWithHost lk.salyk.kg:30040 [14:48:01]ConnectInit lk.salyk.kg [14:48:01]written 0, free lines is 4095 [14:48:01]Connected sock=10 [14:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 19 FB 04 01 07 B0 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 20 BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 78 00 00 35 04 06 00 E0 A5 60 48 F1 41 B4 84 F6 F4 67 A9 B0 7B [14:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1B 00 47 00 B9 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 78 00 00 F4 03 04 00 9D 65 17 67 B6 04 01 00 00 02 51 E7 BE F2 2F C4 D3 [14:48:01]CommunicateWithHost err = 0 [14:48:01]CheckOFDResponse [14:48:01]1017 (14) - 77093643461234 [14:48:01]1041 (16) - 0000000002094219 [14:48:01]1040 (4) - 30929 [14:48:01]1012 (4) - 22.10.2024 08:43 [14:48:01]1206 (1) - 0 [14:48:01]OFD Sender: Remove packet 30929 [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00030929 [14:48:01]NVStorageDeleteData [14:48:02]Write to MH i2c: 01 00 00 60 07 67 [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 07 00 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 F3 0C 6D [14:48:02]RasterBufferAndPrint [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]written 0, free lines is 3321 [14:48:02]MH_Cut [14:48:02]Write to MH i2c: D1 01 00 67 07 01 40 [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 01 00 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 01 00 67 07 00 3F [14:48:02]Write to MH i2c: 01 00 00 68 07 6F [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]OFD Sender: No OFD packet to send [14:48:02]*** Cut start [14:48:02]*** Partial cut [14:48:02]*** CUTSNS_PIN = 1 [14:48:02]*** CUTSNS_PIN = 0 [14:48:02]*** Brake cut motor [14:48:03]Read from MH i2c: 01 [14:48:03]MH_I2C_Read... [14:48:03]*** Stop cut motor [14:48:03]*** Cut end [14:48:03]Read from MH i2c: 01 07 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [14:48:03]process_action close_receipt done [14:48:03]requested_data is exist [14:48:03]produce_requested_data [14:48:03]requested_item fm.sn is exist - process it [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 11 00 00 [14:48:03]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [14:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:48:03]wFMCommunicate OK [14:48:03]requested_item fd.num is exist - process it [14:48:03]SAM_PROTO_GetFieldsCounters [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 00 00 [14:48:03]Write to MH i2c: E2 08 00 6A 07 80 13 00 00 00 00 00 00 ED [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 6A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14:48:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetFieldsCounters done [14:48:03]requested_item shift.num is exist - process it [14:48:03]requested_item shift.opened is exist - process it [14:48:03]req_shift_opened [14:48:03]FM_GetShiftState [14:48:03]SAM_PROTO_GetShiftState [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 01 00 [14:48:03]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C9 [14:48:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetShiftState done [14:48:03]FM_GetShiftState done [14:48:03]req_shift_opened done [14:48:03]requested_item shift.open_date is exist - process it [14:48:03]req_shift_open_date [14:48:03]req_shift_open_date done [14:48:03]produce_requested_data done [14:48:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30929,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:48:03]process_action_free close_receipt [14:48:03]json_value_free [14:48:03]json_value_free done [14:48:03]process_json_proto returns [14:48:03]Send response to host [14:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30929,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:48:03]free response buf [14:48:03]execute_script done [14:48:03]execute_script returns [14:48:03]free content buf [14:48:03]Sock 7.Close socket [14:48:03]Sock 7.Thread stoped [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:30]accept exits with 9 [14:49:30]New connection [14:49:30]New thread 3066899812 created [14:49:30]Thread 3067043172 joined [14:49:30]Waiting for new connection... [14:49:30] Sock 9.Parse request [14:49:30]Sock 9.Check first char [14:49:30]Sock 9.First char is OK [14:49:30]request: POST /json_proto HTTP/1.0 [14:49:30]Method: POST [14:49:30]URL: /json_proto [14:49:30]Method is POST - this is cgi request [14:49:30]url: /json_proto [14:49:30]query_string will be loaded in cgi processing [14:49:30]execute_cgi json_proto POST (null) [14:49:30]execute_cgi path=json_proto method=POST [14:49:30]POST find Content-Length [14:49:30]Host: 172.17.51.3:8080 [14:49:30]Content-Length: 977 [14:49:30]Content-Type: application/json [14:49:30] [14:49:30]POST finish read [14:49:30]Found Content-Length = 977 [14:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:30]execute_script... [14:49: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)343355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:30]POST & json_proto [14:49:30]process_json_proto [14:49:30]json parsed OK: [14:49:30]protocol is kg_v1.0 [14:49:30]action value=close_receipt [14:49:30]process_action close_receipt [14:49:30]cmd_close_receipt [14:49:30]MH_GetDate [14:49:30]Write to MH i2c: F0 00 00 6C 07 62 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: F0 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: F0 09 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: F0 09 00 6C 07 00 7B BB 17 67 04 C1 95 66 DF [14:49:30]GetLastDocTimeStamp 1729608480 [14:49:30]current date 1729608571 [14:49:30]FM_GetShiftState [14:49:30]SAM_PROTO_GetShiftState [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 13 01 00 [14:49:30]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0E 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CB [14:49:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:49:30]wFMCommunicate OK [14:49:30]SAM_PROTO_GetShiftState done [14:49:30]FM_GetShiftState done [14:49:30]opened in 1729557342 [14:49:30]opened+sec_in_day 1729643742 [14:49:30]quantity*price = 600020 [14:49:30]sum+1 = 600022 [14:49:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 163 22.10.2024 14:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 79.79 сом ФМ: 0000000002094219 ФД: 30930 ФПД: 245673624492964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144931&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30930&fm=245673624492964&tin=02508201610067®Number=0000000000186857&sum=600000 [14:49:31]StoreToDocumentArchive [14:49:31]shift 116 fd 30930 [14:49:31]save to /storage/0116/doc_00030930 [14:49:31]save last doc name /storage/0116/doc_00030930 to /storage/kkm_last_doc_name [14:49:31]save OK [14:49:31]Clear old archive folders... [14:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:31]tlvbuf is 00D49120 [14:49:31]SAM_PROTO_ClearQueue [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 09 00 00 [14:49:31]Write to MH i2c: E2 08 00 7A 07 80 09 00 00 00 00 00 00 F3 [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [14:49:31]RAPDU: 90 00 [14:49:31]wFMCommunicate OK [14:49:31]SAM_PROTO_ClearQueue done [14:49:31]KKMCreateOFDPacket [14:49:31]OFDProtocolAddRootSTLVToBuf [14:49:31]FM_MakeSignedData [14:49:31]FM_MakeSignedData [14:49:31]SAM_PROTO_SignData [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 0D 01 02 [14:49:31]Write to MH i2c: E2 08 00 7B 07 80 0D 01 02 00 00 00 00 FB [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [14:49:31]RAPDU: 90 00 [14:49:31]wFMCommunicate OK [14:49:31]wFMCommunicate request_size=255 [14:49:31]MH_SAM_APDU [14:49:31]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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 7B BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 78 00 00 35 04 06 00 DF 70 59 1E [14:49:31]Write to MH i2c: E2 02 01 7C 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 7B BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 78 00 00 35 04 06 00 DF 70 59 1E 00 00 2E [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [14:49:31]RAPDU: 90 00 [14:49:31]wFMCommunicate OK [14:49:31]wFMCommunicate request_size=7 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 0D 02 02 02 5B A4 [14:49:31]Write to MH i2c: E2 0A 00 7D 07 80 0D 02 02 02 00 5B A4 00 00 01 [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [14:49:31]RAPDU: 90 00 [14:49:31]wFMCommunicate OK [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 0D 03 02 [14:49:31]Write to MH i2c: E2 08 00 7E 07 80 0D 03 02 00 00 00 00 00 [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 0B 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 0B 00 7E 07 00 DA CB 35 3F 39 C0 CB E1 90 00 BF [14:49:31]RAPDU: DA CB 35 3F 39 C0 CB E1 90 00 [14:49:31]wFMCommunicate OK [14:49:31]SAM_PROTO_SignData done [14:49:31]FM_MakeSignedData done [14:49:31]CreateOFDProtocolMessage [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 11 00 00 [14:49:31]Write to MH i2c: E2 08 00 7F 07 80 11 00 00 00 00 00 00 00 [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 17 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 17 00 7F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [14:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:49:31]wFMCommunicate OK [14:49:31]CreateOFDProtocolMessage done [14:49:31]OFDSenderStorePacket 30930 [14:49:31]StoreOFDPacket docnum=30930 [14:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 5D 04 01 F7 FD 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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 7B BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 78 00 00 35 04 06 00 DF 70 59 1E 5B A4 DA CB 35 3F 39 C0 CB E1 [14:49:31]CheckFolder [14:49:31]dirname=/storage/ofd_packets [14:49:31]CheckFolder done [14:49:31]ProducePacketName [14:49:31]name=ofd_packets/00030930 [14:49:31]NVStorageSaveData ofd_packets/00030930 [14:49:31]File name is /storage/ofd_packets/00030930 [14:49:31]Write 298 bytes [14:49:31]NVStorageSaveData done [14:49:31]OFDSenderStorePacket done [14:49:31]KKMCreateOFDPacket done [14:49:31]NVStorageSaveData kkm_last_timestamp [14:49:31]File name is /storage/kkm_last_timestamp [14:49:31]Write 4 bytes [14:49:31]NVStorageSaveData done [14:49:31]ExternCall_PrintAddStr [14:49:31]wPrintStart [14:49:31]Write to MH i2c: 01 00 00 80 07 87 [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: 01 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: 01 07 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [14:49:31]RasterBufferAndPrint [14:49:31]line Счет N : (1)343355 [14:49:31]line ИНН: 02508201610067 [14:49:31]line Контрольно-Кассовый Чек [14:49:31]line ПРОДАЖА [14:49:31]line ТРК (МРК, ГНК) : 44 [14:49:31]line Товар: 2710194210 [14:49:31]line ДТ-К-2 [14:49:31]line 79.790 * 75.20 [14:49:31]line = 6000.21 [14:49:31]line НДС 12% НСП 1% [14:49:31]line > о реализуемом товаре [14:49:31]line ОКРУГЛЕНИЕ: -0.21 [14:49:31]line ИТОГО: 6000.00 [14:49:31]line Внесено: 6000.00 [14:49:31]line СДАЧА: 0.00 [14:49:31]line НСП 1% : 53.10 [14:49:31]line НДС 12% : 637.19 [14:49:31]line Наличными: 6000.00 [14:49:31]line Безнал.: 0.00 [14:49:31]line Место: АЗС № 78 "Партнер Нефть" [14:49:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:49:31]line СНО: Общий режим [14:49:31]line Чек 163 22.10.2024 14:49 [14:49:31]line Смена: 116 ФФД: 1.0 [14:49:31]line ЗНМ: 0300000137 [14:49:31]line РНМ: 0000000000186857 [14:49:31]line Версия ККМ: v1.0 [14:49:31]line [14:49:31]line Дисконтная программа [14:49:31]line ДТ [14:49:31]line номер 78 [14:49:31]line сэкономлено 79.79 сом [14:49:31]line ФМ: 0000000002094219 [14:49:31]line ФД: 30930 [14:49:32]line ФПД: 245673624492964 [14:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144931&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30930&fm=245673624492964&tin=02508201610067®Number=0000000000186857&sum=600000 [14:49:32]OFD Sender: Processing packet 30930 [packets to send 11, broken 10] [14:49:32]ProducePacketName [14:49:32]name=ofd_packets/00030930 [14:49:32]OFD Sender: To server: pG, [14:49:32]CommunicateWithHost lk.salyk.kg:30040 [14:49:32]ConnectInit lk.salyk.kg [14:49:32]written 0, free lines is 4095 [14:49:32]Write to MH i2c: 01 00 00 B0 07 B7 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 07 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 92 0C 5C [14:49:32]RasterBufferAndPrint [14:49:32]line [14:49:32]line [14:49:32]line [14:49:32]line [14:49:32]line [14:49:32]written 0, free lines is 3224 [14:49:32]MH_Cut [14:49:32]Write to MH i2c: D1 01 00 B7 07 01 90 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: D1 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: D1 01 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: D1 01 00 B7 07 00 8F [14:49:32]Write to MH i2c: 01 00 00 B8 07 BF [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:33]*** Cut start [14:49:33]*** Partial cut [14:49:33]*** CUTSNS_PIN = 1 [14:49:33]*** CUTSNS_PIN = 0 [14:49:33]*** Brake cut motor [14:49:33]Read from MH i2c: 01 [14:49:33]MH_I2C_Read... [14:49:33]*** Stop cut motor [14:49:33]*** Cut end [14:49:33]Read from MH i2c: 01 07 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 FF 0F D4 [14:49:33]process_action close_receipt done [14:49:33]requested_data is exist [14:49:33]produce_requested_data [14:49:33]requested_item fm.sn is exist - process it [14:49:33]wFMCommunicate request_size=4 [14:49:33]MH_SAM_APDU [14:49:33]CAPDU: 80 11 00 00 [14:49:33]Write to MH i2c: E2 08 00 B9 07 80 11 00 00 00 00 00 00 3A [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:33]Read from MH i2c: E2 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 17 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 17 00 B9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [14:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:49:33]wFMCommunicate OK [14:49:33]requested_item fd.num is exist - process it [14:49:33]SAM_PROTO_GetFieldsCounters [14:49:33]wFMCommunicate request_size=4 [14:49:33]MH_SAM_APDU [14:49:33]CAPDU: 80 13 00 00 [14:49:33]Write to MH i2c: E2 08 00 BA 07 80 13 00 00 00 00 00 00 3D [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 62 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 62 00 BA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:34]wFMCommunicate OK [14:49:34]SAM_PROTO_GetFieldsCounters done [14:49:34]requested_item shift.num is exist - process it [14:49:34]requested_item shift.opened is exist - process it [14:49:34]req_shift_opened [14:49:34]FM_GetShiftState [14:49:34]SAM_PROTO_GetShiftState [14:49:34]wFMCommunicate request_size=4 [14:49:34]MH_SAM_APDU [14:49:34]CAPDU: 80 13 01 00 [14:49:34]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0E 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 19 [14:49:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:49:34]wFMCommunicate OK [14:49:34]SAM_PROTO_GetShiftState done [14:49:34]FM_GetShiftState done [14:49:34]req_shift_opened done [14:49:34]requested_item shift.open_date is exist - process it [14:49:34]req_shift_open_date [14:49:34]req_shift_open_date done [14:49:34]produce_requested_data done [14:49:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30930,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:49:34]process_action_free close_receipt [14:49:34]json_value_free [14:49:34]json_value_free done [14:49:34]process_json_proto returns [14:49:34]Send response to host [14:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30930,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:49:34]free response buf [14:49:34]execute_script done [14:49:34]execute_script returns [14:49:34]free content buf [14:49:34]Sock 9.Close socket [14:49:34]Sock 9.Thread stoped [14:51:43]ConnectInit Can't connect to host [14:51:43]CommunicateWithHost connect error [14:51:43]CommunicateWithHost err = -1 [14:51:43]OFD Sender: Server communicate error [14:51:48]OFD Sender: Processing packet 30930 [packets to send 11, broken 10] [14:51:48]ProducePacketName [14:51:48]name=ofd_packets/00030930 [14:51:48]OFD Sender: To server: pG, [14:51:48]CommunicateWithHost lk.salyk.kg:30040 [14:51:48]ConnectInit lk.salyk.kg [14:51:49]Connected sock=9 [14:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 5D 04 01 F7 FD 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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 7B BB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 78 00 00 35 04 06 00 DF 70 59 1E 5B A4 DA CB 35 3F 39 C0 CB E1 [14:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 66 77 47 00 65 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 32 30 39 34 32 31 39 10 04 04 00 D2 78 00 00 F4 03 04 00 81 66 17 67 B6 04 01 00 00 6D CA 37 5C 34 28 CF 54 [14:51:49]CommunicateWithHost err = 0 [14:51:49]CheckOFDResponse [14:51:49]1017 (14) - 77093643461234 [14:51:49]1041 (16) - 0000000002094219 [14:51:49]1040 (4) - 30930 [14:51:49]1012 (4) - 22.10.2024 08:46 [14:51:49]1206 (1) - 0 [14:51:49]OFD Sender: Remove packet 30930 [14:51:49]ProducePacketName [14:51:49]name=ofd_packets/00030930 [14:51:49]NVStorageDeleteData [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:28]accept exits with 7 [14:53:28]New connection [14:53:28]New thread 3067043172 created [14:53:28]Thread 3066899812 joined [14:53:28]Waiting for new connection... [14:53:28] Sock 7.Parse request [14:53:28]Sock 7.Check first char [14:53:28]Sock 7.First char is OK [14:53:28]request: POST /json_proto HTTP/1.0 [14:53:28]Method: POST [14:53:28]URL: /json_proto [14:53:28]Method is POST - this is cgi request [14:53:28]url: /json_proto [14:53:28]query_string will be loaded in cgi processing [14:53:28]execute_cgi json_proto POST (null) [14:53:28]execute_cgi path=json_proto method=POST [14:53:28]POST find Content-Length [14:53:28]Host: 172.17.51.3:8080 [14:53:28]Content-Length: 677 [14:53:28]Content-Type: application/json [14:53:28] [14:53:28]POST finish read [14:53:28]Found Content-Length = 677 [14:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:28]execute_script... [14:53: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)343357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:28]POST & json_proto [14:53:28]process_json_proto [14:53:28]json parsed OK: [14:53:28]protocol is kg_v1.0 [14:53:28]action value=close_receipt [14:53:28]process_action close_receipt [14:53:28]cmd_close_receipt [14:53:28]MH_GetDate [14:53:28]Write to MH i2c: F0 00 00 BC 07 B2 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 BC 07 00 69 BC 17 67 04 C1 95 66 1E [14:53:28]GetLastDocTimeStamp 1729608571 [14:53:28]current date 1729608809 [14:53:28]FM_GetShiftState [14:53:28]SAM_PROTO_GetShiftState [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 13 01 00 [14:53:28]Write to MH i2c: E2 08 00 BD 07 80 13 01 00 00 00 00 00 41 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 BD 07 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1B [14:53:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_GetShiftState done [14:53:28]FM_GetShiftState done [14:53:28]opened in 1729557342 [14:53:28]opened+sec_in_day 1729643742 [14:53:28]quantity*price = 50041 [14:53:28]sum+1 = 50042 [14:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 164 22.10.2024 14:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30931 ФПД: 262905561908913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30931&fm=262905561908913&tin=02508201610067®Number=0000000000186857&sum=50000 [14:53:29]StoreToDocumentArchive [14:53:29]shift 116 fd 30931 [14:53:29]save to /storage/0116/doc_00030931 [14:53:29]save last doc name /storage/0116/doc_00030931 to /storage/kkm_last_doc_name [14:53:29]save OK [14:53:29]Clear old archive folders... [14:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:29]tlvbuf is 00CA4B00 [14:53:29]SAM_PROTO_ClearQueue [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 09 00 00 [14:53:29]Write to MH i2c: E2 08 00 CA 07 80 09 00 00 00 00 00 00 43 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]SAM_PROTO_ClearQueue done [14:53:29]KKMCreateOFDPacket [14:53:29]OFDProtocolAddRootSTLVToBuf [14:53:29]FM_MakeSignedData [14:53:29]FM_MakeSignedData [14:53:29]SAM_PROTO_SignData [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 0D 01 02 [14:53:29]Write to MH i2c: E2 08 00 CB 07 80 0D 01 02 00 00 00 00 4B [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]wFMCommunicate request_size=255 [14:53:29]MH_SAM_APDU [14:53: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 69 BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 78 00 00 35 04 06 00 EF [14:53:29]Write to MH i2c: E2 02 01 CC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 69 BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 78 00 00 35 04 06 00 EF 00 00 D1 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]wFMCommunicate request_size=10 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 0D 02 02 05 1C 78 A0 86 B1 [14:53:29]Write to MH i2c: E2 0D 00 CD 07 80 0D 02 02 05 00 1C 78 A0 86 B1 00 00 C3 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 0D 03 02 [14:53:29]Write to MH i2c: E2 08 00 CE 07 80 0D 03 02 00 00 00 00 50 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 0B 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 0B 00 CE 07 00 CE F7 73 66 AB 27 D6 ED 90 00 84 [14:53:29]RAPDU: CE F7 73 66 AB 27 D6 ED 90 00 [14:53:29]wFMCommunicate OK [14:53:29]SAM_PROTO_SignData done [14:53:29]FM_MakeSignedData done [14:53:29]CreateOFDProtocolMessage [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 11 00 00 [14:53:29]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 17 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [14:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:53:29]wFMCommunicate OK [14:53:29]CreateOFDProtocolMessage done [14:53:29]OFDSenderStorePacket 30931 [14:53:29]StoreOFDPacket docnum=30931 [14:53:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F2 38 07 01 7D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 69 BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 78 00 00 35 04 06 00 EF 1C 78 A0 86 B1 CE F7 73 66 AB 27 D6 ED [14:53:29]CheckFolder [14:53:29]dirname=/storage/ofd_packets [14:53:29]CheckFolder done [14:53:29]ProducePacketName [14:53:29]name=ofd_packets/00030931 [14:53:29]NVStorageSaveData ofd_packets/00030931 [14:53:29]File name is /storage/ofd_packets/00030931 [14:53:29]Write 301 bytes [14:53:29]NVStorageSaveData done [14:53:29]OFDSenderStorePacket done [14:53:29]KKMCreateOFDPacket done [14:53:29]NVStorageSaveData kkm_last_timestamp [14:53:29]File name is /storage/kkm_last_timestamp [14:53:29]Write 4 bytes [14:53:29]NVStorageSaveData done [14:53:29]ExternCall_PrintAddStr [14:53:29]wPrintStart [14:53:29]Write to MH i2c: 01 00 00 D0 07 D7 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 FF 0F EC [14:53:29]RasterBufferAndPrint [14:53:29]line Счет N : (1)343357 [14:53:29]line ИНН: 02508201610067 [14:53:29]line Контрольно-Кассовый Чек [14:53:29]line ПРОДАЖА [14:53:29]line ТРК (МРК, ГНК) : 53 [14:53:29]line Товар: 2710124130 [14:53:29]line Аи-92-К-2 [14:53:29]line 7.480 * 66.90 [14:53:29]line = 500.41 [14:53:29]line НДС 12% НСП 1% [14:53:29]line > о реализуемом товаре [14:53:29]line ОКРУГЛЕНИЕ: -0.41 [14:53:29]line ИТОГО: 500.00 [14:53:29]line Внесено: 500.00 [14:53:29]line СДАЧА: 0.00 [14:53:29]line НСП 1% : 4.43 [14:53:29]line НДС 12% : 53.14 [14:53:29]line Наличными: 500.00 [14:53:29]line Безнал.: 0.00 [14:53:29]line Место: АЗС № 78 "Партнер Нефть" [14:53:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:53:29]line СНО: Общий режим [14:53:29]line Чек 164 22.10.2024 14:53 [14:53:29]line Смена: 116 ФФД: 1.0 [14:53:29]line ЗНМ: 0300000137 [14:53:29]line РНМ: 0000000000186857 [14:53:29]line Версия ККМ: v1.0 [14:53:29]line ФМ: 0000000002094219 [14:53:29]line ФД: 30931 [14:53:29]line ФПД: 262905561908913 [14:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30931&fm=262905561908913&tin=02508201610067®Number=0000000000186857&sum=50000 [14:53:30]OFD Sender: Processing packet 30931 [packets to send 11, broken 10] [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00030931 [14:53:30]OFD Sender: To server: pG, [14:53:30]CommunicateWithHost lk.salyk.kg:30040 [14:53:30]ConnectInit lk.salyk.kg [14:53:30]written 0, free lines is 4095 [14:53:30]Connected sock=10 [14:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F2 38 07 01 7D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 69 BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 78 00 00 35 04 06 00 EF 1C 78 A0 86 B1 CE F7 73 66 AB 27 D6 ED [14:53:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 72 E4 47 00 ED BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 78 00 00 F4 03 04 00 E6 66 17 67 B6 04 01 00 00 84 69 14 5D 41 C8 E5 6B [14:53:30]CommunicateWithHost err = 0 [14:53:30]CheckOFDResponse [14:53:30]1017 (14) - 77093643461234 [14:53:30]1041 (16) - 0000000002094219 [14:53:30]1040 (4) - 30931 [14:53:30]1012 (4) - 22.10.2024 08:48 [14:53:30]1206 (1) - 0 [14:53:30]OFD Sender: Remove packet 30931 [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00030931 [14:53:30]NVStorageDeleteData [14:53:30]Write to MH i2c: 01 00 00 FB 07 02 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 F8 0C 0D [14:53:30]RasterBufferAndPrint [14:53:30]line [14:53:30]line [14:53:30]line [14:53:30]line [14:53:30]line [14:53:30]written 0, free lines is 3326 [14:53:30]MH_Cut [14:53:30]Write to MH i2c: D1 01 00 02 08 01 DC [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: D1 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: D1 01 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: D1 01 00 02 08 00 DB [14:53:30]Write to MH i2c: 01 00 00 03 08 0B [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]OFD Sender: No OFD packet to send [14:53:31]*** Cut start [14:53:31]*** Partial cut [14:53:31]*** CUTSNS_PIN = 1 [14:53:31]*** CUTSNS_PIN = 0 [14:53:31]*** Brake cut motor [14:53:31]Read from MH i2c: 01 [14:53:31]MH_I2C_Read... [14:53:31]*** Stop cut motor [14:53:31]*** Cut end [14:53:31]Read from MH i2c: 01 07 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [14:53:31]process_action close_receipt done [14:53:31]requested_data is exist [14:53:31]produce_requested_data [14:53:31]requested_item fm.sn is exist - process it [14:53:31]wFMCommunicate request_size=4 [14:53:31]MH_SAM_APDU [14:53:31]CAPDU: 80 11 00 00 [14:53:31]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:31]Read from MH i2c: E2 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: E2 17 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [14:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:53:31]wFMCommunicate OK [14:53:31]requested_item fd.num is exist - process it [14:53:31]SAM_PROTO_GetFieldsCounters [14:53:31]wFMCommunicate request_size=4 [14:53:31]MH_SAM_APDU [14:53:31]CAPDU: 80 13 00 00 [14:53:31]Write to MH i2c: E2 08 00 05 08 80 13 00 00 00 00 00 00 89 [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 05 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetFieldsCounters done [14:53:32]requested_item shift.num is exist - process it [14:53:32]requested_item shift.opened is exist - process it [14:53:32]req_shift_opened [14:53:32]FM_GetShiftState [14:53:32]SAM_PROTO_GetShiftState [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 01 00 [14:53:32]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 65 [14:53:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetShiftState done [14:53:32]FM_GetShiftState done [14:53:32]req_shift_opened done [14:53:32]requested_item shift.open_date is exist - process it [14:53:32]req_shift_open_date [14:53:32]req_shift_open_date done [14:53:32]produce_requested_data done [14:53:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30931,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:53:32]process_action_free close_receipt [14:53:32]json_value_free [14:53:32]json_value_free done [14:53:32]process_json_proto returns [14:53:32]Send response to host [14:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30931,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:53:32]free response buf [14:53:32]execute_script done [14:53:32]execute_script returns [14:53:32]free content buf [14:53:32]Sock 7.Close socket [14:53:32]Sock 7.Thread stoped [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:49]accept exits with 9 [14:54:49]New connection [14:54:49]New thread 3066899812 created [14:54:49]Thread 3067043172 joined [14:54:49]Waiting for new connection... [14:54:49] Sock 9.Parse request [14:54:49]Sock 9.Check first char [14:54:49]Sock 9.First char is OK [14:54:49]request: POST /json_proto HTTP/1.0 [14:54:49]Method: POST [14:54:49]URL: /json_proto [14:54:49]Method is POST - this is cgi request [14:54:49]url: /json_proto [14:54:49]query_string will be loaded in cgi processing [14:54:49]execute_cgi json_proto POST (null) [14:54:49]execute_cgi path=json_proto method=POST [14:54:49]POST find Content-Length [14:54:49]Host: 172.17.51.3:8080 [14:54:49]Content-Length: 840 [14:54:49]Content-Type: application/json [14:54:49] [14:54:49]POST finish read [14:54:49]Found Content-Length = 840 [14:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 22.970, "sum" : 1750.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1750.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:49]execute_script... [14:54: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)343359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 22.970, "sum" : 1750.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1750.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:49]POST & json_proto [14:54:49]process_json_proto [14:54:49]json parsed OK: [14:54:49]protocol is kg_v1.0 [14:54:49]action value=close_receipt [14:54:49]process_action close_receipt [14:54:49]cmd_close_receipt [14:54:49]MH_GetDate [14:54:49]Write to MH i2c: F0 00 00 07 08 FE [14:54:49]Write i2c OK [14:54:49]MH_I2C_Read... [14:54:49]Read from MH i2c: F0 [14:54:49]MH_I2C_Read... [14:54:49]Read from MH i2c: F0 09 00 [14:54:49]MH_I2C_Read... [14:54:49]Read from MH i2c: F0 09 00 07 08 00 BA BC 17 67 04 C1 95 66 BB [14:54:49]GetLastDocTimeStamp 1729608809 [14:54:49]current date 1729608890 [14:54:49]FM_GetShiftState [14:54:49]SAM_PROTO_GetShiftState [14:54:49]wFMCommunicate request_size=4 [14:54:49]MH_SAM_APDU [14:54:49]CAPDU: 80 13 01 00 [14:54:49]Write to MH i2c: E2 08 00 08 08 80 13 01 00 00 00 00 00 8D [14:54:49]Write i2c OK [14:54:49]MH_I2C_Read... [14:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:49]Read from MH i2c: E2 [14:54:49]MH_I2C_Read... [14:54:49]Read from MH i2c: E2 0E 00 [14:54:49]MH_I2C_Read... [14:54:49]Read from MH i2c: E2 0E 00 08 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 67 [14:54:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:54:49]wFMCommunicate OK [14:54:49]SAM_PROTO_GetShiftState done [14:54:49]FM_GetShiftState done [14:54:49]opened in 1729557342 [14:54:49]opened+sec_in_day 1729643742 [14:54:49]quantity*price = 175031 [14:54:49]sum+1 = 175032 [14:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1750.31 НСП 1% : 15.49 НДС 12% : 185.87 Наличными: 0.00 Безнал.: 1750.31 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 165 22.10.2024 14:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30932 ФПД: 273470918368125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30932&fm=273470918368125&tin=02508201610067®Number=0000000000186857&sum=175031 [14:54:50]StoreToDocumentArchive [14:54:50]shift 116 fd 30932 [14:54:50]save to /storage/0116/doc_00030932 [14:54:50]save last doc name /storage/0116/doc_00030932 to /storage/kkm_last_doc_name [14:54:50]save OK [14:54:50]Clear old archive folders... [14:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:50]tlvbuf is 00CA54D0 [14:54:50]SAM_PROTO_ClearQueue [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 09 00 00 [14:54:50]Write to MH i2c: E2 08 00 15 08 80 09 00 00 00 00 00 00 8F [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [14:54:50]RAPDU: 90 00 [14:54:50]wFMCommunicate OK [14:54:50]SAM_PROTO_ClearQueue done [14:54:50]KKMCreateOFDPacket [14:54:50]OFDProtocolAddRootSTLVToBuf [14:54:50]FM_MakeSignedData [14:54:50]FM_MakeSignedData [14:54:50]SAM_PROTO_SignData [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 0D 01 02 [14:54:50]Write to MH i2c: E2 08 00 16 08 80 0D 01 02 00 00 00 00 97 [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [14:54:50]RAPDU: 90 00 [14:54:50]wFMCommunicate OK [14:54:50]wFMCommunicate request_size=255 [14:54:50]MH_SAM_APDU [14:54: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 32 FF 03 08 00 03 BA 59 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BA BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 78 00 00 35 04 06 00 F8 B8 68 F2 [14:54:50]Write to MH i2c: E2 02 01 17 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 59 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BA BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 78 00 00 35 04 06 00 F8 B8 68 F2 00 00 6F [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [14:54:50]RAPDU: 90 00 [14:54:50]wFMCommunicate OK [14:54:50]wFMCommunicate request_size=7 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 0D 02 02 02 1B 7D [14:54:50]Write to MH i2c: E2 0A 00 18 08 80 0D 02 02 02 00 1B 7D 00 00 36 [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [14:54:50]RAPDU: 90 00 [14:54:50]wFMCommunicate OK [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 0D 03 02 [14:54:50]Write to MH i2c: E2 08 00 19 08 80 0D 03 02 00 00 00 00 9C [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0B 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0B 00 19 08 00 DA B5 4E 72 3E 9C 7D 83 90 00 C6 [14:54:50]RAPDU: DA B5 4E 72 3E 9C 7D 83 90 00 [14:54:50]wFMCommunicate OK [14:54:50]SAM_PROTO_SignData done [14:54:50]FM_MakeSignedData done [14:54:50]CreateOFDProtocolMessage [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 11 00 00 [14:54:50]Write to MH i2c: E2 08 00 1A 08 80 11 00 00 00 00 00 00 9C [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 1A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [14:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:54:51]wFMCommunicate OK [14:54:51]CreateOFDProtocolMessage done [14:54:51]OFDSenderStorePacket 30932 [14:54:51]StoreOFDPacket docnum=30932 [14:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 49 02 04 01 42 25 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 32 FF 03 08 00 03 BA 59 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BA BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 78 00 00 35 04 06 00 F8 B8 68 F2 1B 7D DA B5 4E 72 3E 9C 7D 83 [14:54:51]CheckFolder [14:54:51]dirname=/storage/ofd_packets [14:54:51]CheckFolder done [14:54:51]ProducePacketName [14:54:51]name=ofd_packets/00030932 [14:54:51]NVStorageSaveData ofd_packets/00030932 [14:54:51]File name is /storage/ofd_packets/00030932 [14:54:51]Write 298 bytes [14:54:51]NVStorageSaveData done [14:54:51]OFDSenderStorePacket done [14:54:51]KKMCreateOFDPacket done [14:54:51]NVStorageSaveData kkm_last_timestamp [14:54:51]File name is /storage/kkm_last_timestamp [14:54:51]Write 4 bytes [14:54:51]NVStorageSaveData done [14:54:51]ExternCall_PrintAddStr [14:54:51]wPrintStart [14:54:51]Write to MH i2c: 01 00 00 1B 08 23 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 FF 0F 38 [14:54:51]RasterBufferAndPrint [14:54:51]line Счет N : (1)343359 [14:54:51]line ИНН: 02508201610067 [14:54:51]line Контрольно-Кассовый Чек [14:54:51]line ПРОДАЖА [14:54:51]line ТРК (МРК, ГНК) : 44 [14:54:51]line Товар: 2710194210 [14:54:51]line ДТ-К-2 [14:54:51]line 22.970 * 76.20 [14:54:51]line = 1750.31 [14:54:51]line НДС 12% НСП 1% [14:54:51]line > о реализуемом товаре [14:54:51]line ИТОГО: 1750.31 [14:54:51]line НСП 1% : 15.49 [14:54:51]line НДС 12% : 185.87 [14:54:51]line Наличными: 0.00 [14:54:51]line Безнал.: 1750.31 [14:54:51]line Место: АЗС № 78 "Партнер Нефть" [14:54:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:54:51]line СНО: Общий режим [14:54:51]line Чек 165 22.10.2024 14:54 [14:54:51]line Смена: 116 ФФД: 1.0 [14:54:51]line ЗНМ: 0300000137 [14:54:51]line РНМ: 0000000000186857 [14:54:51]line Версия ККМ: v1.0 [14:54:51]line Платежная система: АКБ Кыргызстан [14:54:51]line ФМ: 0000000002094219 [14:54:51]line ФД: 30932 [14:54:51]line ФПД: 273470918368125 [14:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30932&fm=273470918368125&tin=02508201610067®Number=0000000000186857&sum=175031 [14:54:51]OFD Sender: Processing packet 30932 [packets to send 11, broken 10] [14:54:51]ProducePacketName [14:54:51]name=ofd_packets/00030932 [14:54:51]OFD Sender: To server: pG, [14:54:51]CommunicateWithHost lk.salyk.kg:30040 [14:54:51]ConnectInit lk.salyk.kg [14:54:51]written 0, free lines is 4095 [14:54:51]Connected sock=10 [14:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 49 02 04 01 42 25 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 32 FF 03 08 00 03 BA 59 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BA BC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 78 00 00 35 04 06 00 F8 B8 68 F2 1B 7D DA B5 4E 72 3E 9C 7D 83 [14:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4B C9 47 00 CE 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 78 00 00 F4 03 04 00 37 67 17 67 B6 04 01 00 00 82 84 28 BF A7 AE 6A 51 [14:54:51]CommunicateWithHost err = 0 [14:54:51]CheckOFDResponse [14:54:51]1017 (14) - 77093643461234 [14:54:51]1041 (16) - 0000000002094219 [14:54:51]1040 (4) - 30932 [14:54:51]1012 (4) - 22.10.2024 08:49 [14:54:51]1206 (1) - 0 [14:54:51]OFD Sender: Remove packet 30932 [14:54:51]ProducePacketName [14:54:51]name=ofd_packets/00030932 [14:54:51]NVStorageDeleteData [14:54:51]Write to MH i2c: 01 00 00 45 08 4D [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 0A 0D 6B [14:54:51]RasterBufferAndPrint [14:54:51]line [14:54:51]line [14:54:51]line [14:54:51]line [14:54:51]line [14:54:51]written 0, free lines is 3344 [14:54:51]MH_Cut [14:54:51]Write to MH i2c: D1 01 00 4C 08 01 26 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: D1 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: D1 01 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: D1 01 00 4C 08 00 25 [14:54:51]Write to MH i2c: 01 00 00 4D 08 55 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:52]OFD Sender: No OFD packet to send [14:54:52]*** Cut start [14:54:52]*** Partial cut [14:54:52]*** CUTSNS_PIN = 1 [14:54:52]*** CUTSNS_PIN = 0 [14:54:52]*** Brake cut motor [14:54:53]Read from MH i2c: 01 [14:54:53]MH_I2C_Read... [14:54:53]*** Stop cut motor [14:54:53]*** Cut end [14:54:53]Read from MH i2c: 01 07 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [14:54:53]process_action close_receipt done [14:54:53]requested_data is exist [14:54:53]produce_requested_data [14:54:53]requested_item fm.sn is exist - process it [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 11 00 00 [14:54:53]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 17 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [14:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:54:53]wFMCommunicate OK [14:54:53]requested_item fd.num is exist - process it [14:54:53]SAM_PROTO_GetFieldsCounters [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 13 00 00 [14:54:53]Write to MH i2c: E2 08 00 4F 08 80 13 00 00 00 00 00 00 D3 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 62 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 62 00 4F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:53]wFMCommunicate OK [14:54:53]SAM_PROTO_GetFieldsCounters done [14:54:53]requested_item shift.num is exist - process it [14:54:53]requested_item shift.opened is exist - process it [14:54:53]req_shift_opened [14:54:53]FM_GetShiftState [14:54:53]SAM_PROTO_GetShiftState [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 13 01 00 [14:54:53]Write to MH i2c: E2 08 00 50 08 80 13 01 00 00 00 00 00 D5 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 50 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AF [14:54:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:54:53]wFMCommunicate OK [14:54:53]SAM_PROTO_GetShiftState done [14:54:53]FM_GetShiftState done [14:54:53]req_shift_opened done [14:54:53]requested_item shift.open_date is exist - process it [14:54:53]req_shift_open_date [14:54:53]req_shift_open_date done [14:54:53]produce_requested_data done [14:54:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30932,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:54:53]process_action_free close_receipt [14:54:53]json_value_free [14:54:53]json_value_free done [14:54:53]process_json_proto returns [14:54:53]Send response to host [14:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30932,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:54:53]free response buf [14:54:53]execute_script done [14:54:53]execute_script returns [14:54:53]free content buf [14:54:53]Sock 9.Close socket [14:54:53]Sock 9.Thread stoped [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:26]accept exits with 7 [14:56:26]New connection [14:56:26]New thread 3067043172 created [14:56:26]Thread 3066899812 joined [14:56:26]Waiting for new connection... [14:56:26] Sock 7.Parse request [14:56:26]Sock 7.Check first char [14:56:26]Sock 7.First char is OK [14:56:26]request: POST /json_proto HTTP/1.0 [14:56:26]Method: POST [14:56:26]URL: /json_proto [14:56:26]Method is POST - this is cgi request [14:56:26]url: /json_proto [14:56:26]query_string will be loaded in cgi processing [14:56:26]execute_cgi json_proto POST (null) [14:56:26]execute_cgi path=json_proto method=POST [14:56:26]POST find Content-Length [14:56:26]Host: 172.17.51.3:8080 [14:56:26]Content-Length: 688 [14:56:26]Content-Type: application/json [14:56:26] [14:56:26]POST finish read [14:56:26]Found Content-Length = 688 [14:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 47.930, "sum" : 3700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]execute_script... [14:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 47.930, "sum" : 3700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]POST & json_proto [14:56:26]process_json_proto [14:56:26]json parsed OK: [14:56:26]protocol is kg_v1.0 [14:56:26]action value=close_receipt [14:56:26]process_action close_receipt [14:56:26]cmd_close_receipt [14:56:26]MH_GetDate [14:56:26]Write to MH i2c: F0 00 00 51 08 48 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 51 08 00 1B BD 17 67 04 C1 95 66 67 [14:56:26]GetLastDocTimeStamp 1729608890 [14:56:26]current date 1729608987 [14:56:26]FM_GetShiftState [14:56:26]SAM_PROTO_GetShiftState [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 13 01 00 [14:56:26]Write to MH i2c: E2 08 00 52 08 80 13 01 00 00 00 00 00 D7 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 52 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B1 [14:56:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_GetShiftState done [14:56:26]FM_GetShiftState done [14:56:26]opened in 1729557342 [14:56:26]opened+sec_in_day 1729643742 [14:56:26]quantity*price = 370019 [14:56:26]sum+1 = 370021 [14:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 3700.00 Внесено: 4200.00 СДАЧА: 500.00 НСП 1% : 32.74 НДС 12% : 392.94 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 166 22.10.2024 14:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30933 ФПД: 225306744480319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145627&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30933&fm=225306744480319&tin=02508201610067®Number=0000000000186857&sum=370000 [14:56:27]StoreToDocumentArchive [14:56:27]shift 116 fd 30933 [14:56:27]save to /storage/0116/doc_00030933 [14:56:27]save last doc name /storage/0116/doc_00030933 to /storage/kkm_last_doc_name [14:56:27]save OK [14:56:27]Clear old archive folders... [14:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:56:27]tlvbuf is 00D4B830 [14:56:27]SAM_PROTO_ClearQueue [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 09 00 00 [14:56:27]Write to MH i2c: E2 08 00 5F 08 80 09 00 00 00 00 00 00 D9 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]SAM_PROTO_ClearQueue done [14:56:27]KKMCreateOFDPacket [14:56:27]OFDProtocolAddRootSTLVToBuf [14:56:27]FM_MakeSignedData [14:56:27]FM_MakeSignedData [14:56:27]SAM_PROTO_SignData [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 01 02 [14:56:27]Write to MH i2c: E2 08 00 60 08 80 0D 01 02 00 00 00 00 E1 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=255 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3A BB 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 64 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 78 00 [14:56:27]Write to MH i2c: E2 02 01 61 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3A BB 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 64 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 78 00 00 00 40 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=16 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CC EA 50 78 62 3F [14:56:27]Write to MH i2c: E2 13 00 62 08 80 0D 02 02 0B 00 00 35 04 06 00 CC EA 50 78 62 3F 00 00 58 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 03 02 [14:56:27]Write to MH i2c: E2 08 00 63 08 80 0D 03 02 00 00 00 00 E6 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 63 08 00 9F 96 8C C9 62 12 1D 37 90 00 39 [14:56:28]RAPDU: 9F 96 8C C9 62 12 1D 37 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_SignData done [14:56:28]FM_MakeSignedData done [14:56:28]CreateOFDProtocolMessage [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 11 00 00 [14:56:28]Write to MH i2c: E2 08 00 64 08 80 11 00 00 00 00 00 00 E6 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 64 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [14:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:28]wFMCommunicate OK [14:56:28]CreateOFDProtocolMessage done [14:56:28]OFDSenderStorePacket 30933 [14:56:28]StoreOFDPacket docnum=30933 [14:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 04 B8 0D 01 19 78 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3A BB 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 64 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 78 00 00 35 04 06 00 CC EA 50 78 62 3F 9F 96 8C C9 62 12 1D 37 [14:56:28]CheckFolder [14:56:28]dirname=/storage/ofd_packets [14:56:28]CheckFolder done [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00030933 [14:56:28]NVStorageSaveData ofd_packets/00030933 [14:56:28]File name is /storage/ofd_packets/00030933 [14:56:28]Write 307 bytes [14:56:28]NVStorageSaveData done [14:56:28]OFDSenderStorePacket done [14:56:28]KKMCreateOFDPacket done [14:56:28]NVStorageSaveData kkm_last_timestamp [14:56:28]File name is /storage/kkm_last_timestamp [14:56:28]Write 4 bytes [14:56:28]NVStorageSaveData done [14:56:28]ExternCall_PrintAddStr [14:56:28]wPrintStart [14:56:28]Write to MH i2c: 01 00 00 65 08 6D [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 FF 0F 82 [14:56:28]RasterBufferAndPrint [14:56:28]line Счет N : (1)343358 [14:56:28]line ИНН: 02508201610067 [14:56:28]line Контрольно-Кассовый Чек [14:56:28]line ПРОДАЖА [14:56:28]line ТРК (МРК, ГНК) : 61 [14:56:28]line Товар: 2710194210 [14:56:28]line D-ENERGY Дт-К-2 [14:56:28]line 47.930 * 77.20 [14:56:28]line = 3700.20 [14:56:28]line НДС 12% НСП 1% [14:56:28]line > о реализуемом товаре [14:56:28]line ОКРУГЛЕНИЕ: -0.20 [14:56:28]line ИТОГО: 3700.00 [14:56:28]line Внесено: 4200.00 [14:56:28]line СДАЧА: 500.00 [14:56:28]line НСП 1% : 32.74 [14:56:28]line НДС 12% : 392.94 [14:56:28]line Наличными: 3700.00 [14:56:28]line Безнал.: 0.00 [14:56:28]line Место: АЗС № 78 "Партнер Нефть" [14:56:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:56:28]line СНО: Общий режим [14:56:28]line Чек 166 22.10.2024 14:56 [14:56:28]line Смена: 116 ФФД: 1.0 [14:56:28]line ЗНМ: 0300000137 [14:56:28]line РНМ: 0000000000186857 [14:56:28]line Версия ККМ: v1.0 [14:56:28]line ФМ: 0000000002094219 [14:56:28]line ФД: 30933 [14:56:28]line ФПД: 225306744480319 [14:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145627&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30933&fm=225306744480319&tin=02508201610067®Number=0000000000186857&sum=370000 [14:56:28]OFD Sender: Processing packet 30933 [packets to send 11, broken 10] [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00030933 [14:56:28]OFD Sender: To server: pG, [14:56:28]CommunicateWithHost lk.salyk.kg:30040 [14:56:28]ConnectInit lk.salyk.kg [14:56:28]written 0, free lines is 4095 [14:56:28]Connected sock=10 [14:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 04 B8 0D 01 19 78 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3A BB 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 64 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 78 00 00 35 04 06 00 CC EA 50 78 62 3F 9F 96 8C C9 62 12 1D 37 [14:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3A FF 47 00 40 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 78 00 00 F4 03 04 00 98 67 17 67 B6 04 01 00 00 7F 1E 46 93 B8 71 D3 64 [14:56:28]CommunicateWithHost err = 0 [14:56:28]CheckOFDResponse [14:56:28]1017 (14) - 77093643461234 [14:56:28]1041 (16) - 0000000002094219 [14:56:28]1040 (4) - 30933 [14:56:28]1012 (4) - 22.10.2024 08:51 [14:56:28]1206 (1) - 0 [14:56:28]OFD Sender: Remove packet 30933 [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00030933 [14:56:28]NVStorageDeleteData [14:56:28]Write to MH i2c: 01 00 00 90 08 98 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 FE 0C A9 [14:56:28]RasterBufferAndPrint [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]written 0, free lines is 3332 [14:56:28]MH_Cut [14:56:28]Write to MH i2c: D1 01 00 97 08 01 71 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 01 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 01 00 97 08 00 70 [14:56:28]Write to MH i2c: 01 00 00 98 08 A0 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:29]OFD Sender: No OFD packet to send [14:56:29]*** Cut start [14:56:29]*** Partial cut [14:56:29]*** CUTSNS_PIN = 1 [14:56:29]*** CUTSNS_PIN = 0 [14:56:29]*** Brake cut motor [14:56:30]Read from MH i2c: 01 [14:56:30]MH_I2C_Read... [14:56:30]*** Stop cut motor [14:56:30]*** Cut end [14:56:30]Read from MH i2c: 01 07 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [14:56:30]process_action close_receipt done [14:56:30]requested_data is exist [14:56:30]produce_requested_data [14:56:30]requested_item fm.sn is exist - process it [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 11 00 00 [14:56:30]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [14:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:30]wFMCommunicate OK [14:56:30]requested_item fd.num is exist - process it [14:56:30]SAM_PROTO_GetFieldsCounters [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 00 00 [14:56:30]Write to MH i2c: E2 08 00 9A 08 80 13 00 00 00 00 00 00 1E [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 9A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetFieldsCounters done [14:56:30]requested_item shift.num is exist - process it [14:56:30]requested_item shift.opened is exist - process it [14:56:30]req_shift_opened [14:56:30]FM_GetShiftState [14:56:30]SAM_PROTO_GetShiftState [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 01 00 [14:56:30]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0E 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FA [14:56:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetShiftState done [14:56:30]FM_GetShiftState done [14:56:30]req_shift_opened done [14:56:30]requested_item shift.open_date is exist - process it [14:56:30]req_shift_open_date [14:56:30]req_shift_open_date done [14:56:30]produce_requested_data done [14:56:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30933,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:56:30]process_action_free close_receipt [14:56:30]json_value_free [14:56:30]json_value_free done [14:56:30]process_json_proto returns [14:56:30]Send response to host [14:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30933,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:56:30]free response buf [14:56:30]execute_script done [14:56:30]execute_script returns [14:56:30]free content buf [14:56:30]Sock 7.Close socket [14:56:30]Sock 7.Thread stoped [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:47]accept exits with 9 [14:56:47]New connection [14:56:47]New thread 3066899812 created [14:56:47]Thread 3067043172 joined [14:56:47]Waiting for new connection... [14:56:47] Sock 9.Parse request [14:56:47]Sock 9.Check first char [14:56:47]Sock 9.First char is OK [14:56:47]request: POST /json_proto HTTP/1.0 [14:56:47]Method: POST [14:56:47]URL: /json_proto [14:56:47]Method is POST - this is cgi request [14:56:47]url: /json_proto [14:56:47]query_string will be loaded in cgi processing [14:56:47]execute_cgi json_proto POST (null) [14:56:47]execute_cgi path=json_proto method=POST [14:56:47]POST find Content-Length [14:56:47]Host: 172.17.51.3:8080 [14:56:47]Content-Length: 677 [14:56:47]Content-Type: application/json [14:56:47] [14:56:47]POST finish read [14:56:47]Found Content-Length = 677 [14:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:47]execute_script... [14:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:47]POST & json_proto [14:56:47]process_json_proto [14:56:47]json parsed OK: [14:56:47]protocol is kg_v1.0 [14:56:47]action value=close_receipt [14:56:47]process_action close_receipt [14:56:47]cmd_close_receipt [14:56:47]MH_GetDate [14:56:47]Write to MH i2c: F0 00 00 9C 08 93 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: F0 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: F0 09 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: F0 09 00 9C 08 00 30 BD 17 67 04 C1 95 66 C7 [14:56:47]GetLastDocTimeStamp 1729608987 [14:56:47]current date 1729609008 [14:56:47]FM_GetShiftState [14:56:47]SAM_PROTO_GetShiftState [14:56:47]wFMCommunicate request_size=4 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 13 01 00 [14:56:47]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 0E 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FC [14:56:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:56:47]wFMCommunicate OK [14:56:47]SAM_PROTO_GetShiftState done [14:56:47]FM_GetShiftState done [14:56:47]opened in 1729557342 [14:56:47]opened+sec_in_day 1729643742 [14:56:47]quantity*price = 50010 [14:56:47]sum+1 = 50012 [14:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 167 22.10.2024 14:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30934 ФПД: 163201265849501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30934&fm=163201265849501&tin=02508201610067®Number=0000000000186857&sum=50000 [14:56:48]StoreToDocumentArchive [14:56:48]shift 116 fd 30934 [14:56:48]save to /storage/0116/doc_00030934 [14:56:48]save last doc name /storage/0116/doc_00030934 to /storage/kkm_last_doc_name [14:56:48]save OK [14:56:48]Clear old archive folders... [14:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:48]tlvbuf is 00D3B7B0 [14:56:48]SAM_PROTO_ClearQueue [14:56:48]wFMCommunicate request_size=4 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 09 00 00 [14:56:48]Write to MH i2c: E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [14:56:48]RAPDU: 90 00 [14:56:48]wFMCommunicate OK [14:56:48]SAM_PROTO_ClearQueue done [14:56:48]KKMCreateOFDPacket [14:56:48]OFDProtocolAddRootSTLVToBuf [14:56:48]FM_MakeSignedData [14:56:48]FM_MakeSignedData [14:56:48]SAM_PROTO_SignData [14:56:48]wFMCommunicate request_size=4 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 0D 01 02 [14:56:48]Write to MH i2c: E2 08 00 AB 08 80 0D 01 02 00 00 00 00 2C [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [14:56:48]RAPDU: 90 00 [14:56:48]wFMCommunicate OK [14:56:48]wFMCommunicate request_size=255 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 30 BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 78 00 00 35 04 06 00 94 [14:56:48]Write to MH i2c: E2 02 01 AC 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 30 BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 78 00 00 35 04 06 00 94 00 00 FE [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [14:56:48]RAPDU: 90 00 [14:56:48]wFMCommunicate OK [14:56:48]wFMCommunicate request_size=10 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 0D 02 02 05 6E 41 7A 54 9D [14:56:48]Write to MH i2c: E2 0D 00 AD 08 80 0D 02 02 05 00 6E 41 7A 54 9D 00 00 53 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [14:56:48]RAPDU: 90 00 [14:56:48]wFMCommunicate OK [14:56:48]wFMCommunicate request_size=4 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 0D 03 02 [14:56:48]Write to MH i2c: E2 08 00 AE 08 80 0D 03 02 00 00 00 00 31 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 0B 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 0B 00 AE 08 00 59 A5 07 2B 1E F9 0E 9A 90 00 21 [14:56:48]RAPDU: 59 A5 07 2B 1E F9 0E 9A 90 00 [14:56:48]wFMCommunicate OK [14:56:48]SAM_PROTO_SignData done [14:56:48]FM_MakeSignedData done [14:56:48]CreateOFDProtocolMessage [14:56:48]wFMCommunicate request_size=4 [14:56:48]MH_SAM_APDU [14:56:48]CAPDU: 80 11 00 00 [14:56:48]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:48]Read from MH i2c: E2 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 17 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [14:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:48]wFMCommunicate OK [14:56:48]CreateOFDProtocolMessage done [14:56:48]OFDSenderStorePacket 30934 [14:56:48]StoreOFDPacket docnum=30934 [14:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 24 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 30 BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 78 00 00 35 04 06 00 94 6E 41 7A 54 9D 59 A5 07 2B 1E F9 0E 9A [14:56:48]CheckFolder [14:56:48]dirname=/storage/ofd_packets [14:56:48]CheckFolder done [14:56:48]ProducePacketName [14:56:48]name=ofd_packets/00030934 [14:56:48]NVStorageSaveData ofd_packets/00030934 [14:56:48]File name is /storage/ofd_packets/00030934 [14:56:48]Write 301 bytes [14:56:48]NVStorageSaveData done [14:56:48]OFDSenderStorePacket done [14:56:48]KKMCreateOFDPacket done [14:56:48]NVStorageSaveData kkm_last_timestamp [14:56:48]File name is /storage/kkm_last_timestamp [14:56:48]Write 4 bytes [14:56:48]NVStorageSaveData done [14:56:48]ExternCall_PrintAddStr [14:56:48]wPrintStart [14:56:48]Write to MH i2c: 01 00 00 B0 08 B8 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 07 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [14:56:48]RasterBufferAndPrint [14:56:48]line Счет N : (1)343360 [14:56:48]line ИНН: 02508201610067 [14:56:48]line Контрольно-Кассовый Чек [14:56:48]line ПРОДАЖА [14:56:48]line ТРК (МРК, ГНК) : 52 [14:56:48]line Товар: 2710124500 [14:56:48]line Аи-95-К-3 [14:56:48]line 6.740 * 74.20 [14:56:48]line = 500.11 [14:56:48]line НДС 12% НСП 1% [14:56:48]line > о реализуемом товаре [14:56:48]line ОКРУГЛЕНИЕ: -0.11 [14:56:48]line ИТОГО: 500.00 [14:56:48]line Внесено: 500.00 [14:56:48]line СДАЧА: 0.00 [14:56:48]line НСП 1% : 4.43 [14:56:48]line НДС 12% : 53.11 [14:56:48]line Наличными: 500.00 [14:56:48]line Безнал.: 0.00 [14:56:48]line Место: АЗС № 78 "Партнер Нефть" [14:56:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:56:48]line СНО: Общий режим [14:56:48]line Чек 167 22.10.2024 14:56 [14:56:48]line Смена: 116 ФФД: 1.0 [14:56:48]line ЗНМ: 0300000137 [14:56:48]line РНМ: 0000000000186857 [14:56:48]line Версия ККМ: v1.0 [14:56:48]line ФМ: 0000000002094219 [14:56:48]line ФД: 30934 [14:56:48]line ФПД: 163201265849501 [14:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30934&fm=163201265849501&tin=02508201610067®Number=0000000000186857&sum=50000 [14:56:49]OFD Sender: Processing packet 30934 [packets to send 11, broken 10] [14:56:49]ProducePacketName [14:56:49]name=ofd_packets/00030934 [14:56:49]OFD Sender: To server: pG, [14:56:49]CommunicateWithHost lk.salyk.kg:30040 [14:56:49]ConnectInit lk.salyk.kg [14:56:49]written 0, free lines is 4095 [14:56:49]Connected sock=10 [14:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 24 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 30 BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 78 00 00 35 04 06 00 94 6E 41 7A 54 9D 59 A5 07 2B 1E F9 0E 9A [14:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F2 EA 47 00 78 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 32 30 39 34 32 31 39 10 04 04 00 D6 78 00 00 F4 03 04 00 AD 67 17 67 B6 04 01 00 00 7E 13 A2 39 0C DB 64 8A [14:56:49]CommunicateWithHost err = 0 [14:56:49]CheckOFDResponse [14:56:49]1017 (14) - 77093643461234 [14:56:49]1041 (16) - 0000000002094219 [14:56:49]1040 (4) - 30934 [14:56:49]1012 (4) - 22.10.2024 08:51 [14:56:49]1206 (1) - 0 [14:56:49]OFD Sender: Remove packet 30934 [14:56:49]ProducePacketName [14:56:49]name=ofd_packets/00030934 [14:56:49]NVStorageDeleteData [14:56:49]Write to MH i2c: 01 00 00 DB 08 E3 [14:56:49]Write i2c OK [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: 01 [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: 01 07 00 [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 F2 0C E8 [14:56:49]RasterBufferAndPrint [14:56:49]line [14:56:49]line [14:56:49]line [14:56:49]line [14:56:49]line [14:56:49]written 0, free lines is 3321 [14:56:49]MH_Cut [14:56:49]Write to MH i2c: D1 01 00 E2 08 01 BC [14:56:49]Write i2c OK [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: D1 [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: D1 01 00 [14:56:49]MH_I2C_Read... [14:56:49]Read from MH i2c: D1 01 00 E2 08 00 BB [14:56:49]Write to MH i2c: 01 00 00 E3 08 EB [14:56:49]Write i2c OK [14:56:49]MH_I2C_Read... [14:56:49]OFD Sender: No OFD packet to send [14:56:50]*** Cut start [14:56:50]*** Partial cut [14:56:50]*** CUTSNS_PIN = 1 [14:56:50]*** CUTSNS_PIN = 0 [14:56:50]*** Brake cut motor [14:56:50]Read from MH i2c: 01 [14:56:50]MH_I2C_Read... [14:56:50]*** Stop cut motor [14:56:50]*** Cut end [14:56:50]Read from MH i2c: 01 07 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: 01 07 00 E3 08 00 00 00 00 00 FF 0F 00 [14:56:50]process_action close_receipt done [14:56:50]requested_data is exist [14:56:50]produce_requested_data [14:56:50]requested_item fm.sn is exist - process it [14:56:50]wFMCommunicate request_size=4 [14:56:50]MH_SAM_APDU [14:56:50]CAPDU: 80 11 00 00 [14:56:50]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 17 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [14:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:51]wFMCommunicate OK [14:56:51]requested_item fd.num is exist - process it [14:56:51]SAM_PROTO_GetFieldsCounters [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 13 00 00 [14:56:51]Write to MH i2c: E2 08 00 E5 08 80 13 00 00 00 00 00 00 69 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 62 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 62 00 E5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [14:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:51]wFMCommunicate OK [14:56:51]SAM_PROTO_GetFieldsCounters done [14:56:51]requested_item shift.num is exist - process it [14:56:51]requested_item shift.opened is exist - process it [14:56:51]req_shift_opened [14:56:51]FM_GetShiftState [14:56:51]SAM_PROTO_GetShiftState [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 13 01 00 [14:56:51]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0E 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 45 [14:56:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:56:51]wFMCommunicate OK [14:56:51]SAM_PROTO_GetShiftState done [14:56:51]FM_GetShiftState done [14:56:51]req_shift_opened done [14:56:51]requested_item shift.open_date is exist - process it [14:56:51]req_shift_open_date [14:56:51]req_shift_open_date done [14:56:51]produce_requested_data done [14:56:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30934,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:56:51]process_action_free close_receipt [14:56:51]json_value_free [14:56:51]json_value_free done [14:56:51]process_json_proto returns [14:56:51]Send response to host [14:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30934,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:56:51]free response buf [14:56:51]execute_script done [14:56:51]execute_script returns [14:56:51]free content buf [14:56:51]Sock 9.Close socket [14:56:51]Sock 9.Thread stoped [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:10]accept exits with 7 [14:59:10]New connection [14:59:10]New thread 3067043172 created [14:59:10]Thread 3066899812 joined [14:59:10]Waiting for new connection... [14:59:10] Sock 7.Parse request [14:59:10]Sock 7.Check first char [14:59:10]Sock 7.First char is OK [14:59:10]request: POST /json_proto HTTP/1.0 [14:59:10]Method: POST [14:59:10]URL: /json_proto [14:59:10]Method is POST - this is cgi request [14:59:10]url: /json_proto [14:59:10]query_string will be loaded in cgi processing [14:59:10]execute_cgi json_proto POST (null) [14:59:10]execute_cgi path=json_proto method=POST [14:59:10]POST find Content-Length [14:59:10]Host: 172.17.51.3:8080 [14:59:10]Content-Length: 677 [14:59:10]Content-Type: application/json [14:59:10] [14:59:10]POST finish read [14:59:10]Found Content-Length = 677 [14:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:10]execute_script... [14:59: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)343361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:10]POST & json_proto [14:59:10]process_json_proto [14:59:10]json parsed OK: [14:59:10]protocol is kg_v1.0 [14:59:10]action value=close_receipt [14:59:10]process_action close_receipt [14:59:10]cmd_close_receipt [14:59:10]MH_GetDate [14:59:10]Write to MH i2c: F0 00 00 E7 08 DE [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: F0 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: F0 09 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: F0 09 00 E7 08 00 BF BD 17 67 04 C1 95 66 A1 [14:59:10]GetLastDocTimeStamp 1729609008 [14:59:10]current date 1729609151 [14:59:10]FM_GetShiftState [14:59:10]SAM_PROTO_GetShiftState [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 13 01 00 [14:59:10]Write to MH i2c: E2 08 00 E8 08 80 13 01 00 00 00 00 00 6D [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0E 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0E 00 E8 08 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 47 [14:59:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:59:10]wFMCommunicate OK [14:59:10]SAM_PROTO_GetShiftState done [14:59:10]FM_GetShiftState done [14:59:10]opened in 1729557342 [14:59:10]opened+sec_in_day 1729643742 [14:59:10]quantity*price = 60009 [14:59:10]sum+1 = 60010 [14:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 168 22.10.2024 14:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30935 ФПД: 12186231797008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30935&fm=12186231797008&tin=02508201610067®Number=0000000000186857&sum=60000 [14:59:11]StoreToDocumentArchive [14:59:11]shift 116 fd 30935 [14:59:11]save to /storage/0116/doc_00030935 [14:59:11]save last doc name /storage/0116/doc_00030935 to /storage/kkm_last_doc_name [14:59:11]save OK [14:59:11]Clear old archive folders... [14:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:11]tlvbuf is 00CD67B0 [14:59:11]SAM_PROTO_ClearQueue [14:59:11]wFMCommunicate request_size=4 [14:59:11]MH_SAM_APDU [14:59:11]CAPDU: 80 09 00 00 [14:59:11]Write to MH i2c: E2 08 00 F5 08 80 09 00 00 00 00 00 00 6F [14:59:11]Write i2c OK [14:59:11]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [14:59:12]RAPDU: 90 00 [14:59:12]wFMCommunicate OK [14:59:12]SAM_PROTO_ClearQueue done [14:59:12]KKMCreateOFDPacket [14:59:12]OFDProtocolAddRootSTLVToBuf [14:59:12]FM_MakeSignedData [14:59:12]FM_MakeSignedData [14:59:12]SAM_PROTO_SignData [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 0D 01 02 [14:59:12]Write to MH i2c: E2 08 00 F6 08 80 0D 01 02 00 00 00 00 77 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [14:59:12]RAPDU: 90 00 [14:59:12]wFMCommunicate OK [14:59:12]wFMCommunicate request_size=255 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BF BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 78 00 00 35 04 06 00 0B [14:59:12]Write to MH i2c: E2 02 01 F7 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BF BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 78 00 00 35 04 06 00 0B 00 00 55 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [14:59:12]RAPDU: 90 00 [14:59:12]wFMCommunicate OK [14:59:12]wFMCommunicate request_size=10 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 0D 02 02 05 15 54 04 75 10 [14:59:12]Write to MH i2c: E2 0D 00 F8 08 80 0D 02 02 05 00 15 54 04 75 10 00 00 76 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [14:59:12]RAPDU: 90 00 [14:59:12]wFMCommunicate OK [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 0D 03 02 [14:59:12]Write to MH i2c: E2 08 00 F9 08 80 0D 03 02 00 00 00 00 7C [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 0B 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 0B 00 F9 08 00 E8 E9 8C A5 97 BE 0D D8 90 00 B9 [14:59:12]RAPDU: E8 E9 8C A5 97 BE 0D D8 90 00 [14:59:12]wFMCommunicate OK [14:59:12]SAM_PROTO_SignData done [14:59:12]FM_MakeSignedData done [14:59:12]CreateOFDProtocolMessage [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 11 00 00 [14:59:12]Write to MH i2c: E2 08 00 FA 08 80 11 00 00 00 00 00 00 7C [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 17 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 17 00 FA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [14:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:59:12]wFMCommunicate OK [14:59:12]CreateOFDProtocolMessage done [14:59:12]OFDSenderStorePacket 30935 [14:59:12]StoreOFDPacket docnum=30935 [14:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 30 07 01 56 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BF BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 78 00 00 35 04 06 00 0B 15 54 04 75 10 E8 E9 8C A5 97 BE 0D D8 [14:59:12]CheckFolder [14:59:12]dirname=/storage/ofd_packets [14:59:12]CheckFolder done [14:59:12]ProducePacketName [14:59:12]name=ofd_packets/00030935 [14:59:12]NVStorageSaveData ofd_packets/00030935 [14:59:12]File name is /storage/ofd_packets/00030935 [14:59:12]Write 301 bytes [14:59:12]NVStorageSaveData done [14:59:12]OFDSenderStorePacket done [14:59:12]KKMCreateOFDPacket done [14:59:12]NVStorageSaveData kkm_last_timestamp [14:59:12]File name is /storage/kkm_last_timestamp [14:59:12]Write 4 bytes [14:59:12]NVStorageSaveData done [14:59:12]ExternCall_PrintAddStr [14:59:12]wPrintStart [14:59:12]Write to MH i2c: 01 00 00 FB 08 03 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: 01 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: 01 07 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [14:59:12]RasterBufferAndPrint [14:59:12]line Счет N : (1)343361 [14:59:12]line ИНН: 02508201610067 [14:59:12]line Контрольно-Кассовый Чек [14:59:12]line ПРОДАЖА [14:59:12]line ТРК (МРК, ГНК) : 33 [14:59:12]line Товар: 2710124130 [14:59:12]line Аи-92-К-2 [14:59:12]line 8.970 * 66.90 [14:59:12]line = 600.09 [14:59:12]line НДС 12% НСП 1% [14:59:12]line > о реализуемом товаре [14:59:12]line ОКРУГЛЕНИЕ: -0.09 [14:59:12]line ИТОГО: 600.00 [14:59:12]line Внесено: 600.00 [14:59:12]line СДАЧА: 0.00 [14:59:12]line НСП 1% : 5.31 [14:59:12]line НДС 12% : 63.73 [14:59:12]line Наличными: 600.00 [14:59:12]line Безнал.: 0.00 [14:59:12]line Место: АЗС № 78 "Партнер Нефть" [14:59:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:59:12]line СНО: Общий режим [14:59:12]line Чек 168 22.10.2024 14:59 [14:59:12]line Смена: 116 ФФД: 1.0 [14:59:12]line ЗНМ: 0300000137 [14:59:12]line РНМ: 0000000000186857 [14:59:12]line Версия ККМ: v1.0 [14:59:12]line ФМ: 0000000002094219 [14:59:12]line ФД: 30935 [14:59:12]line ФПД: 12186231797008 [14:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30935&fm=12186231797008&tin=02508201610067®Number=0000000000186857&sum=60000 [14:59:12]OFD Sender: Processing packet 30935 [packets to send 11, broken 10] [14:59:12]ProducePacketName [14:59:12]name=ofd_packets/00030935 [14:59:12]OFD Sender: To server: pG, [14:59:12]CommunicateWithHost lk.salyk.kg:30040 [14:59:12]ConnectInit lk.salyk.kg [14:59:12]written 0, free lines is 4095 [14:59:12]Connected sock=10 [14:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 30 07 01 56 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BF BD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 78 00 00 35 04 06 00 0B 15 54 04 75 10 E8 E9 8C A5 97 BE 0D D8 [14:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DB ED 47 00 17 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 78 00 00 F4 03 04 00 3D 68 17 67 B6 04 01 00 00 D7 BB 73 1A 58 23 60 25 [14:59:13]CommunicateWithHost err = 0 [14:59:13]CheckOFDResponse [14:59:13]1017 (14) - 77093643461234 [14:59:13]1041 (16) - 0000000002094219 [14:59:13]1040 (4) - 30935 [14:59:13]1012 (4) - 22.10.2024 08:54 [14:59:13]1206 (1) - 0 [14:59:13]OFD Sender: Remove packet 30935 [14:59:13]ProducePacketName [14:59:13]name=ofd_packets/00030935 [14:59:13]NVStorageDeleteData [14:59:13]Write to MH i2c: 01 00 00 26 09 2F [14:59:13]Write i2c OK [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: 01 [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: 01 07 00 [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 F3 0C 35 [14:59:13]RasterBufferAndPrint [14:59:13]line [14:59:13]line [14:59:13]line [14:59:13]line [14:59:13]line [14:59:13]written 0, free lines is 3321 [14:59:13]MH_Cut [14:59:13]Write to MH i2c: D1 01 00 2D 09 01 08 [14:59:13]Write i2c OK [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: D1 [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: D1 01 00 [14:59:13]MH_I2C_Read... [14:59:13]Read from MH i2c: D1 01 00 2D 09 00 07 [14:59:13]Write to MH i2c: 01 00 00 2E 09 37 [14:59:13]Write i2c OK [14:59:13]MH_I2C_Read... [14:59:13]OFD Sender: No OFD packet to send [14:59:13]*** Cut start [14:59:13]*** Partial cut [14:59:13]*** CUTSNS_PIN = 1 [14:59:14]*** CUTSNS_PIN = 0 [14:59:14]*** Brake cut motor [14:59:14]Read from MH i2c: 01 [14:59:14]MH_I2C_Read... [14:59:14]*** Stop cut motor [14:59:14]*** Cut end [14:59:14]Read from MH i2c: 01 07 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [14:59:14]process_action close_receipt done [14:59:14]requested_data is exist [14:59:14]produce_requested_data [14:59:14]requested_item fm.sn is exist - process it [14:59:14]wFMCommunicate request_size=4 [14:59:14]MH_SAM_APDU [14:59:14]CAPDU: 80 11 00 00 [14:59:14]Write to MH i2c: E2 08 00 2F 09 80 11 00 00 00 00 00 00 B2 [14:59:14]Write i2c OK [14:59:14]MH_I2C_Read... [14:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:14]Read from MH i2c: E2 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 17 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 17 00 2F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [14:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:59:14]wFMCommunicate OK [14:59:14]requested_item fd.num is exist - process it [14:59:14]SAM_PROTO_GetFieldsCounters [14:59:14]wFMCommunicate request_size=4 [14:59:14]MH_SAM_APDU [14:59:14]CAPDU: 80 13 00 00 [14:59:14]Write to MH i2c: E2 08 00 30 09 80 13 00 00 00 00 00 00 B5 [14:59:14]Write i2c OK [14:59:14]MH_I2C_Read... [14:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:14]Read from MH i2c: E2 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 62 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 62 00 30 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:59:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:14]wFMCommunicate OK [14:59:14]SAM_PROTO_GetFieldsCounters done [14:59:14]requested_item shift.num is exist - process it [14:59:14]requested_item shift.opened is exist - process it [14:59:14]req_shift_opened [14:59:14]FM_GetShiftState [14:59:14]SAM_PROTO_GetShiftState [14:59:14]wFMCommunicate request_size=4 [14:59:14]MH_SAM_APDU [14:59:14]CAPDU: 80 13 01 00 [14:59:14]Write to MH i2c: E2 08 00 31 09 80 13 01 00 00 00 00 00 B7 [14:59:14]Write i2c OK [14:59:14]MH_I2C_Read... [14:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:14]Read from MH i2c: E2 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 0E 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 0E 00 31 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 91 [14:59:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [14:59:14]wFMCommunicate OK [14:59:14]SAM_PROTO_GetShiftState done [14:59:14]FM_GetShiftState done [14:59:14]req_shift_opened done [14:59:14]requested_item shift.open_date is exist - process it [14:59:14]req_shift_open_date [14:59:14]req_shift_open_date done [14:59:14]produce_requested_data done [14:59:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30935,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [14:59:14]process_action_free close_receipt [14:59:14]json_value_free [14:59:14]json_value_free done [14:59:14]process_json_proto returns [14:59:14]Send response to host [14:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30935,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [14:59:14]free response buf [14:59:14]execute_script done [14:59:14]execute_script returns [14:59:14]free content buf [14:59:14]Sock 7.Close socket [14:59:14]Sock 7.Thread stoped [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:57]accept exits with 9 [15:03:57]New connection [15:03:57]New thread 3066899812 created [15:03:57]Thread 3067043172 joined [15:03:57]Waiting for new connection... [15:03:57] Sock 9.Parse request [15:03:57]Sock 9.Check first char [15:03:57]Sock 9.First char is OK [15:03:57]request: POST /json_proto HTTP/1.0 [15:03:57]Method: POST [15:03:57]URL: /json_proto [15:03:57]Method is POST - this is cgi request [15:03:57]url: /json_proto [15:03:57]query_string will be loaded in cgi processing [15:03:57]execute_cgi json_proto POST (null) [15:03:57]execute_cgi path=json_proto method=POST [15:03:57]POST find Content-Length [15:03:57]Host: 172.17.51.3:8080 [15:03:57]Content-Length: 677 [15:03:57]Content-Type: application/json [15:03:57] [15:03:57]POST finish read [15:03:57]Found Content-Length = 677 [15:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:57]execute_script... [15:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:57]POST & json_proto [15:03:57]process_json_proto [15:03:57]json parsed OK: [15:03:57]protocol is kg_v1.0 [15:03:57]action value=close_receipt [15:03:57]process_action close_receipt [15:03:57]cmd_close_receipt [15:03:57]MH_GetDate [15:03:57]Write to MH i2c: F0 00 00 32 09 2A [15:03:57]Write i2c OK [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: F0 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: F0 09 00 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: F0 09 00 32 09 00 DE BE 17 67 04 C1 95 66 0D [15:03:57]GetLastDocTimeStamp 1729609151 [15:03:57]current date 1729609438 [15:03:57]FM_GetShiftState [15:03:57]SAM_PROTO_GetShiftState [15:03:57]wFMCommunicate request_size=4 [15:03:57]MH_SAM_APDU [15:03:57]CAPDU: 80 13 01 00 [15:03:57]Write to MH i2c: E2 08 00 33 09 80 13 01 00 00 00 00 00 B9 [15:03:57]Write i2c OK [15:03:57]MH_I2C_Read... [15:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:57]Read from MH i2c: E2 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: E2 0E 00 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: E2 0E 00 33 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 93 [15:03:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:03:57]wFMCommunicate OK [15:03:57]SAM_PROTO_GetShiftState done [15:03:57]FM_GetShiftState done [15:03:57]opened in 1729557342 [15:03:57]opened+sec_in_day 1729643742 [15:03:57]quantity*price = 20003 [15:03:57]sum+1 = 20004 [15:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 169 22.10.2024 15:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30936 ФПД: 132056200475354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150358&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30936&fm=132056200475354&tin=02508201610067®Number=0000000000186857&sum=20000 [15:03:58]StoreToDocumentArchive [15:03:58]shift 116 fd 30936 [15:03:58]save to /storage/0116/doc_00030936 [15:03:58]save last doc name /storage/0116/doc_00030936 to /storage/kkm_last_doc_name [15:03:58]save OK [15:03:58]Clear old archive folders... [15:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:58]tlvbuf is 00CA4B00 [15:03:58]SAM_PROTO_ClearQueue [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 09 00 00 [15:03:58]Write to MH i2c: E2 08 00 40 09 80 09 00 00 00 00 00 00 BB [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]SAM_PROTO_ClearQueue done [15:03:58]KKMCreateOFDPacket [15:03:58]OFDProtocolAddRootSTLVToBuf [15:03:58]FM_MakeSignedData [15:03:58]FM_MakeSignedData [15:03:58]SAM_PROTO_SignData [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 01 02 [15:03:58]Write to MH i2c: E2 08 00 41 09 80 0D 01 02 00 00 00 00 C3 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=255 [15:03:58]MH_SAM_APDU [15:03: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DE BE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 78 00 00 35 04 06 00 78 [15:03:58]Write to MH i2c: E2 02 01 42 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DE BE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 78 00 00 35 04 06 00 78 00 00 15 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=10 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 02 02 05 1A BA EB 72 DA [15:03:58]Write to MH i2c: E2 0D 00 43 09 80 0D 02 02 05 00 1A BA EB 72 DA 00 00 DB [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 03 02 [15:03:58]Write to MH i2c: E2 08 00 44 09 80 0D 03 02 00 00 00 00 C8 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0B 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0B 00 44 09 00 98 38 0B AA BA BB F7 75 90 00 2F [15:03:58]RAPDU: 98 38 0B AA BA BB F7 75 90 00 [15:03:58]wFMCommunicate OK [15:03:58]SAM_PROTO_SignData done [15:03:58]FM_MakeSignedData done [15:03:58]CreateOFDProtocolMessage [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 11 00 00 [15:03:58]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 17 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [15:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:58]wFMCommunicate OK [15:03:58]CreateOFDProtocolMessage done [15:03:58]OFDSenderStorePacket 30936 [15:03:58]StoreOFDPacket docnum=30936 [15:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F0 36 07 01 71 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DE BE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 78 00 00 35 04 06 00 78 1A BA EB 72 DA 98 38 0B AA BA BB F7 75 [15:03:58]CheckFolder [15:03:58]dirname=/storage/ofd_packets [15:03:58]CheckFolder done [15:03:58]ProducePacketName [15:03:58]name=ofd_packets/00030936 [15:03:58]NVStorageSaveData ofd_packets/00030936 [15:03:58]File name is /storage/ofd_packets/00030936 [15:03:58]Write 301 bytes [15:03:58]NVStorageSaveData done [15:03:58]OFDSenderStorePacket done [15:03:58]KKMCreateOFDPacket done [15:03:58]NVStorageSaveData kkm_last_timestamp [15:03:58]File name is /storage/kkm_last_timestamp [15:03:58]Write 4 bytes [15:03:58]NVStorageSaveData done [15:03:58]ExternCall_PrintAddStr [15:03:58]wPrintStart [15:03:58]Write to MH i2c: 01 00 00 46 09 4F [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 07 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 07 00 46 09 00 00 00 00 00 FF 0F 64 [15:03:58]RasterBufferAndPrint [15:03:58]line Счет N : (1)343362 [15:03:58]line ИНН: 02508201610067 [15:03:58]line Контрольно-Кассовый Чек [15:03:58]line ПРОДАЖА [15:03:58]line ТРК (МРК, ГНК) : 63 [15:03:58]line Товар: 2710124130 [15:03:58]line Аи-92-К-2 [15:03:58]line 2.990 * 66.90 [15:03:58]line = 200.03 [15:03:58]line НДС 12% НСП 1% [15:03:58]line > о реализуемом товаре [15:03:58]line ОКРУГЛЕНИЕ: -0.03 [15:03:58]line ИТОГО: 200.00 [15:03:58]line Внесено: 200.00 [15:03:58]line СДАЧА: 0.00 [15:03:58]line НСП 1% : 1.77 [15:03:58]line НДС 12% : 21.24 [15:03:58]line Наличными: 200.00 [15:03:58]line Безнал.: 0.00 [15:03:58]line Место: АЗС № 78 "Партнер Нефть" [15:03:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:03:58]line СНО: Общий режим [15:03:58]line Чек 169 22.10.2024 15:03 [15:03:58]line Смена: 116 ФФД: 1.0 [15:03:58]line ЗНМ: 0300000137 [15:03:58]line РНМ: 0000000000186857 [15:03:58]line Версия ККМ: v1.0 [15:03:58]line ФМ: 0000000002094219 [15:03:58]line ФД: 30936 [15:03:58]line ФПД: 132056200475354 [15:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150358&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30936&fm=132056200475354&tin=02508201610067®Number=0000000000186857&sum=20000 [15:03:59]OFD Sender: Processing packet 30936 [packets to send 11, broken 10] [15:03:59]ProducePacketName [15:03:59]name=ofd_packets/00030936 [15:03:59]OFD Sender: To server: pG, [15:03:59]CommunicateWithHost lk.salyk.kg:30040 [15:03:59]ConnectInit lk.salyk.kg [15:03:59]written 0, free lines is 4095 [15:03:59]Connected sock=7 [15:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F0 36 07 01 71 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 DE BE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 78 00 00 35 04 06 00 78 1A BA EB 72 DA 98 38 0B AA BA BB F7 75 [15:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 65 17 47 00 7C 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 78 00 00 F4 03 04 00 5B 69 17 67 B6 04 01 00 00 7B 26 09 95 BA C4 86 38 [15:03:59]CommunicateWithHost err = 0 [15:03:59]CheckOFDResponse [15:03:59]1017 (14) - 77093643461234 [15:03:59]1041 (16) - 0000000002094219 [15:03:59]1040 (4) - 30936 [15:03:59]1012 (4) - 22.10.2024 08:59 [15:03:59]1206 (1) - 0 [15:03:59]OFD Sender: Remove packet 30936 [15:03:59]ProducePacketName [15:03:59]name=ofd_packets/00030936 [15:03:59]NVStorageDeleteData [15:03:59]Write to MH i2c: 01 00 00 71 09 7A [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 07 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 F8 0C 85 [15:03:59]RasterBufferAndPrint [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]written 0, free lines is 3326 [15:03:59]MH_Cut [15:03:59]Write to MH i2c: D1 01 00 78 09 01 53 [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 01 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 01 00 78 09 00 52 [15:03:59]Write to MH i2c: 01 00 00 79 09 82 [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]OFD Sender: No OFD packet to send [15:04:00]*** Cut start [15:04:00]*** Partial cut [15:04:00]*** CUTSNS_PIN = 1 [15:04:00]*** CUTSNS_PIN = 0 [15:04:00]*** Brake cut motor [15:04:00]Read from MH i2c: 01 [15:04:00]MH_I2C_Read... [15:04:00]*** Stop cut motor [15:04:00]*** Cut end [15:04:00]Read from MH i2c: 01 07 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 FF 0F 97 [15:04:00]process_action close_receipt done [15:04:00]requested_data is exist [15:04:00]produce_requested_data [15:04:00]requested_item fm.sn is exist - process it [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 11 00 00 [15:04:00]Write to MH i2c: E2 08 00 7A 09 80 11 00 00 00 00 00 00 FD [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 7A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [15:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:04:00]wFMCommunicate OK [15:04:00]requested_item fd.num is exist - process it [15:04:00]SAM_PROTO_GetFieldsCounters [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 13 00 00 [15:04:00]Write to MH i2c: E2 08 00 7B 09 80 13 00 00 00 00 00 00 00 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:00]Read from MH i2c: E2 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 62 00 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 62 00 7B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [15:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:01]wFMCommunicate OK [15:04:01]SAM_PROTO_GetFieldsCounters done [15:04:01]requested_item shift.num is exist - process it [15:04:01]requested_item shift.opened is exist - process it [15:04:01]req_shift_opened [15:04:01]FM_GetShiftState [15:04:01]SAM_PROTO_GetShiftState [15:04:01]wFMCommunicate request_size=4 [15:04:01]MH_SAM_APDU [15:04:01]CAPDU: 80 13 01 00 [15:04:01]Write to MH i2c: E2 08 00 7C 09 80 13 01 00 00 00 00 00 02 [15:04:01]Write i2c OK [15:04:01]MH_I2C_Read... [15:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:01]Read from MH i2c: E2 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 0E 00 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 0E 00 7C 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DC [15:04:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:04:01]wFMCommunicate OK [15:04:01]SAM_PROTO_GetShiftState done [15:04:01]FM_GetShiftState done [15:04:01]req_shift_opened done [15:04:01]requested_item shift.open_date is exist - process it [15:04:01]req_shift_open_date [15:04:01]req_shift_open_date done [15:04:01]produce_requested_data done [15:04:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30936,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:04:01]process_action_free close_receipt [15:04:01]json_value_free [15:04:01]json_value_free done [15:04:01]process_json_proto returns [15:04:01]Send response to host [15:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30936,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:04:01]free response buf [15:04:01]execute_script done [15:04:01]execute_script returns [15:04:01]free content buf [15:04:01]Sock 9.Close socket [15:04:01]Sock 9.Thread stoped [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:28]accept exits with 10 [15:06:28]New connection [15:06:28]New thread 3067043172 created [15:06:28]Thread 3066899812 joined [15:06:28]Waiting for new connection... [15:06:28] Sock 10.Parse request [15:06:28]Sock 10.Check first char [15:06:28]Sock 10.First char is OK [15:06:28]request: POST /json_proto HTTP/1.0 [15:06:28]Method: POST [15:06:28]URL: /json_proto [15:06:28]Method is POST - this is cgi request [15:06:28]url: /json_proto [15:06:28]query_string will be loaded in cgi processing [15:06:28]execute_cgi json_proto POST (null) [15:06:28]execute_cgi path=json_proto method=POST [15:06:28]POST find Content-Length [15:06:28]Host: 172.17.51.3:8080 [15:06:28]Content-Length: 682 [15:06:28]Content-Type: application/json [15:06:28] [15:06:28]POST finish read [15:06:28]Found Content-Length = 682 [15:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:28]execute_script... [15:06: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)343363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:28]POST & json_proto [15:06:28]process_json_proto [15:06:28]json parsed OK: [15:06:28]protocol is kg_v1.0 [15:06:28]action value=close_receipt [15:06:28]process_action close_receipt [15:06:28]cmd_close_receipt [15:06:28]MH_GetDate [15:06:28]Write to MH i2c: F0 00 00 7D 09 75 [15:06:28]Write i2c OK [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 09 00 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 09 00 7D 09 00 75 BF 17 67 04 C1 95 66 F0 [15:06:28]GetLastDocTimeStamp 1729609438 [15:06:28]current date 1729609589 [15:06:28]FM_GetShiftState [15:06:28]SAM_PROTO_GetShiftState [15:06:28]wFMCommunicate request_size=4 [15:06:28]MH_SAM_APDU [15:06:28]CAPDU: 80 13 01 00 [15:06:28]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [15:06:28]Write i2c OK [15:06:28]MH_I2C_Read... [15:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:28]Read from MH i2c: E2 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: E2 0E 00 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DE [15:06:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:06:28]wFMCommunicate OK [15:06:28]SAM_PROTO_GetShiftState done [15:06:28]FM_GetShiftState done [15:06:28]opened in 1729557342 [15:06:28]opened+sec_in_day 1729643742 [15:06:28]quantity*price = 100015 [15:06:28]sum+1 = 100017 [15:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 170 22.10.2024 15:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30937 ФПД: 110122392331992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150629&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30937&fm=110122392331992&tin=02508201610067®Number=0000000000186857&sum=100000 [15:06:29]StoreToDocumentArchive [15:06:29]shift 116 fd 30937 [15:06:29]save to /storage/0116/doc_00030937 [15:06:29]save last doc name /storage/0116/doc_00030937 to /storage/kkm_last_doc_name [15:06:29]save OK [15:06:29]Clear old archive folders... [15:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:29]tlvbuf is 00CA5530 [15:06:29]SAM_PROTO_ClearQueue [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 09 00 00 [15:06:29]Write to MH i2c: E2 08 00 8B 09 80 09 00 00 00 00 00 00 06 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_ClearQueue done [15:06:29]KKMCreateOFDPacket [15:06:29]OFDProtocolAddRootSTLVToBuf [15:06:29]FM_MakeSignedData [15:06:29]FM_MakeSignedData [15:06:29]SAM_PROTO_SignData [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 0D 01 02 [15:06:29]Write to MH i2c: E2 08 00 8C 09 80 0D 01 02 00 00 00 00 0E [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]wFMCommunicate request_size=255 [15:06:29]MH_SAM_APDU [15:06: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 BF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 78 00 00 35 04 06 00 64 [15:06:29]Write to MH i2c: E2 02 01 8D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 BF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 78 00 00 35 04 06 00 64 00 00 1E [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]OFD Sender: No OFD packet to send [15:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]wFMCommunicate request_size=10 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 02 02 05 27 DE 13 A6 D8 [15:06:30]Write to MH i2c: E2 0D 00 8E 09 80 0D 02 02 05 00 27 DE 13 A6 D8 00 00 B1 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 03 02 [15:06:30]Write to MH i2c: E2 08 00 8F 09 80 0D 03 02 00 00 00 00 13 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 0B 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 0B 00 8F 09 00 A2 52 37 2A 5B D1 4F 49 90 00 2D [15:06:30]RAPDU: A2 52 37 2A 5B D1 4F 49 90 00 [15:06:30]wFMCommunicate OK [15:06:30]SAM_PROTO_SignData done [15:06:30]FM_MakeSignedData done [15:06:30]CreateOFDProtocolMessage [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 11 00 00 [15:06:30]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [15:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:06:30]wFMCommunicate OK [15:06:30]CreateOFDProtocolMessage done [15:06:30]OFDSenderStorePacket 30937 [15:06:30]StoreOFDPacket docnum=30937 [15:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 54 07 01 DB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 BF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 78 00 00 35 04 06 00 64 27 DE 13 A6 D8 A2 52 37 2A 5B D1 4F 49 [15:06:30]CheckFolder [15:06:30]dirname=/storage/ofd_packets [15:06:30]CheckFolder done [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00030937 [15:06:30]NVStorageSaveData ofd_packets/00030937 [15:06:30]File name is /storage/ofd_packets/00030937 [15:06:30]Write 301 bytes [15:06:30]NVStorageSaveData done [15:06:30]OFDSenderStorePacket done [15:06:30]KKMCreateOFDPacket done [15:06:30]NVStorageSaveData kkm_last_timestamp [15:06:30]File name is /storage/kkm_last_timestamp [15:06:30]Write 4 bytes [15:06:30]NVStorageSaveData done [15:06:30]ExternCall_PrintAddStr [15:06:30]wPrintStart [15:06:30]Write to MH i2c: 01 00 00 91 09 9A [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 FF 0F AF [15:06:30]RasterBufferAndPrint [15:06:30]line Счет N : (1)343363 [15:06:30]line ИНН: 02508201610067 [15:06:30]line Контрольно-Кассовый Чек [15:06:30]line ПРОДАЖА [15:06:30]line ТРК (МРК, ГНК) : 53 [15:06:30]line Товар: 2710124130 [15:06:30]line Аи-92-К-2 [15:06:30]line 14.950 * 66.90 [15:06:30]line = 1000.16 [15:06:30]line НДС 12% НСП 1% [15:06:30]line > о реализуемом товаре [15:06:30]line ОКРУГЛЕНИЕ: -0.16 [15:06:30]line ИТОГО: 1000.00 [15:06:30]line Внесено: 1000.00 [15:06:30]line СДАЧА: 0.00 [15:06:30]line НСП 1% : 8.85 [15:06:30]line НДС 12% : 106.21 [15:06:30]line Наличными: 1000.00 [15:06:30]line Безнал.: 0.00 [15:06:30]line Место: АЗС № 78 "Партнер Нефть" [15:06:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:06:30]line СНО: Общий режим [15:06:30]line Чек 170 22.10.2024 15:06 [15:06:30]line Смена: 116 ФФД: 1.0 [15:06:30]line ЗНМ: 0300000137 [15:06:30]line РНМ: 0000000000186857 [15:06:30]line Версия ККМ: v1.0 [15:06:30]line ФМ: 0000000002094219 [15:06:30]line ФД: 30937 [15:06:30]line ФПД: 110122392331992 [15:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150629&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30937&fm=110122392331992&tin=02508201610067®Number=0000000000186857&sum=100000 [15:06:30]OFD Sender: Processing packet 30937 [packets to send 11, broken 10] [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00030937 [15:06:30]OFD Sender: To server: pG, [15:06:30]CommunicateWithHost lk.salyk.kg:30040 [15:06:30]ConnectInit lk.salyk.kg [15:06:30]written 0, free lines is 4095 [15:06:30]Connected sock=11 [15:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 54 07 01 DB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 BF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 78 00 00 35 04 06 00 64 27 DE 13 A6 D8 A2 52 37 2A 5B D1 4F 49 [15:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3E C7 47 00 F7 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 78 00 00 F4 03 04 00 F2 69 17 67 B6 04 01 00 00 06 F6 B0 56 04 A0 71 C4 [15:06:31]CommunicateWithHost err = 0 [15:06:31]CheckOFDResponse [15:06:31]1017 (14) - 77093643461234 [15:06:31]1041 (16) - 0000000002094219 [15:06:31]1040 (4) - 30937 [15:06:31]1012 (4) - 22.10.2024 09:01 [15:06:31]1206 (1) - 0 [15:06:31]OFD Sender: Remove packet 30937 [15:06:31]ProducePacketName [15:06:31]name=ofd_packets/00030937 [15:06:31]NVStorageDeleteData [15:06:31]Write to MH i2c: 01 00 00 BC 09 C5 [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FD 0C D5 [15:06:31]RasterBufferAndPrint [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]written 0, free lines is 3331 [15:06:31]MH_Cut [15:06:31]Write to MH i2c: D1 01 00 C3 09 01 9E [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 01 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 01 00 C3 09 00 9D [15:06:31]Write to MH i2c: 01 00 00 C4 09 CD [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]OFD Sender: No OFD packet to send [15:06:31]*** Cut start [15:06:31]*** Partial cut [15:06:31]*** CUTSNS_PIN = 1 [15:06:31]*** CUTSNS_PIN = 0 [15:06:32]*** Brake cut motor [15:06:32]Read from MH i2c: 01 [15:06:32]MH_I2C_Read... [15:06:32]*** Stop cut motor [15:06:32]*** Cut end [15:06:32]Read from MH i2c: 01 07 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [15:06:32]process_action close_receipt done [15:06:32]requested_data is exist [15:06:32]produce_requested_data [15:06:32]requested_item fm.sn is exist - process it [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 11 00 00 [15:06:32]Write to MH i2c: E2 08 00 C5 09 80 11 00 00 00 00 00 00 48 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 17 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 17 00 C5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [15:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:06:32]wFMCommunicate OK [15:06:32]requested_item fd.num is exist - process it [15:06:32]SAM_PROTO_GetFieldsCounters [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 13 00 00 [15:06:32]Write to MH i2c: E2 08 00 C6 09 80 13 00 00 00 00 00 00 4B [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 62 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 62 00 C6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [15:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_GetFieldsCounters done [15:06:32]requested_item shift.num is exist - process it [15:06:32]requested_item shift.opened is exist - process it [15:06:32]req_shift_opened [15:06:32]FM_GetShiftState [15:06:32]SAM_PROTO_GetShiftState [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 13 01 00 [15:06:32]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0E 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 27 [15:06:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_GetShiftState done [15:06:32]FM_GetShiftState done [15:06:32]req_shift_opened done [15:06:32]requested_item shift.open_date is exist - process it [15:06:32]req_shift_open_date [15:06:32]req_shift_open_date done [15:06:32]produce_requested_data done [15:06:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30937,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:06:32]process_action_free close_receipt [15:06:32]json_value_free [15:06:32]json_value_free done [15:06:32]process_json_proto returns [15:06:32]Send response to host [15:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30937,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:06:32]free response buf [15:06:32]execute_script done [15:06:32]execute_script returns [15:06:32]free content buf [15:06:32]Sock 10.Close socket [15:06:32]Sock 10.Thread stoped [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [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:22]accept exits with 7 [15:14:22]New connection [15:14:22]New thread 3066899812 created [15:14:22]Thread 3067043172 joined [15:14:22]Waiting for new connection... [15:14:22] Sock 7.Parse request [15:14:22]Sock 7.Check first char [15:14:22]Sock 7.First char is OK [15:14:22]request: POST /json_proto HTTP/1.0 [15:14:22]Method: POST [15:14:22]URL: /json_proto [15:14:22]Method is POST - this is cgi request [15:14:22]url: /json_proto [15:14:22]query_string will be loaded in cgi processing [15:14:22]execute_cgi json_proto POST (null) [15:14:22]execute_cgi path=json_proto method=POST [15:14:22]POST find Content-Length [15:14:22]Host: 172.17.51.3:8080 [15:14:22]Content-Length: 688 [15:14:22]Content-Type: application/json [15:14:22] [15:14:22]POST finish read [15:14:22]Found Content-Length = 688 [15:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]execute_script... [15:14:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]POST & json_proto [15:14:22]process_json_proto [15:14:22]json parsed OK: [15:14:22]protocol is kg_v1.0 [15:14:22]action value=close_receipt [15:14:22]process_action close_receipt [15:14:22]cmd_close_receipt [15:14:22]MH_GetDate [15:14:22]Write to MH i2c: F0 00 00 C8 09 C0 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 C8 09 00 4F C1 17 67 04 C1 95 66 17 [15:14:22]GetLastDocTimeStamp 1729609589 [15:14:22]current date 1729610063 [15:14:22]FM_GetShiftState [15:14:22]SAM_PROTO_GetShiftState [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 01 00 [15:14:22]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 29 [15:14:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_GetShiftState done [15:14:22]FM_GetShiftState done [15:14:22]opened in 1729557342 [15:14:22]opened+sec_in_day 1729643742 [15:14:22]quantity*price = 100051 [15:14:22]sum+1 = 100052 [15:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 171 22.10.2024 15:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30938 ФПД: 46483171792217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30938&fm=46483171792217&tin=02508201610067®Number=0000000000186857&sum=100000 [15:14:23]StoreToDocumentArchive [15:14:23]shift 116 fd 30938 [15:14:23]save to /storage/0116/doc_00030938 [15:14:23]save last doc name /storage/0116/doc_00030938 to /storage/kkm_last_doc_name [15:14:23]save OK [15:14:23]Clear old archive folders... [15:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:14:23]tlvbuf is 00D48620 [15:14:23]SAM_PROTO_ClearQueue [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 09 00 00 [15:14:23]Write to MH i2c: E2 08 00 D6 09 80 09 00 00 00 00 00 00 51 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_ClearQueue done [15:14:24]KKMCreateOFDPacket [15:14:24]OFDProtocolAddRootSTLVToBuf [15:14:24]FM_MakeSignedData [15:14:24]FM_MakeSignedData [15:14:24]SAM_PROTO_SignData [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 01 02 [15:14:24]Write to MH i2c: E2 08 00 D7 09 80 0D 01 02 00 00 00 00 59 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=255 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 4F C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 78 00 [15:14:24]Write to MH i2c: E2 02 01 D8 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 4F C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 78 00 00 00 B2 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=16 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2A 46 B4 F1 55 59 [15:14:24]Write to MH i2c: E2 13 00 D9 09 80 0D 02 02 0B 00 00 35 04 06 00 2A 46 B4 F1 55 59 00 00 74 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 03 02 [15:14:24]Write to MH i2c: E2 08 00 DA 09 80 0D 03 02 00 00 00 00 5E [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 DA 09 00 9C 2F 3E 59 0F 65 A0 5C 90 00 31 [15:14:24]RAPDU: 9C 2F 3E 59 0F 65 A0 5C 90 00 [15:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_SignData done [15:14:24]FM_MakeSignedData done [15:14:24]CreateOFDProtocolMessage [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 11 00 00 [15:14:24]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [15:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:24]wFMCommunicate OK [15:14:24]CreateOFDProtocolMessage done [15:14:24]OFDSenderStorePacket 30938 [15:14:24]StoreOFDPacket docnum=30938 [15:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 65 C8 0D 01 53 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 4F C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 78 00 00 35 04 06 00 2A 46 B4 F1 55 59 9C 2F 3E 59 0F 65 A0 5C [15:14:24]CheckFolder [15:14:24]dirname=/storage/ofd_packets [15:14:24]CheckFolder done [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00030938 [15:14:24]NVStorageSaveData ofd_packets/00030938 [15:14:24]File name is /storage/ofd_packets/00030938 [15:14:24]Write 307 bytes [15:14:24]NVStorageSaveData done [15:14:24]OFDSenderStorePacket done [15:14:24]KKMCreateOFDPacket done [15:14:24]NVStorageSaveData kkm_last_timestamp [15:14:24]File name is /storage/kkm_last_timestamp [15:14:24]Write 4 bytes [15:14:24]NVStorageSaveData done [15:14:24]ExternCall_PrintAddStr [15:14:24]wPrintStart [15:14:24]Write to MH i2c: 01 00 00 DC 09 E5 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 FF 0F FA [15:14:24]RasterBufferAndPrint [15:14:24]line Счет N : (1)343364 [15:14:24]line ИНН: 02508201610067 [15:14:24]line Контрольно-Кассовый Чек [15:14:24]line ПРОДАЖА [15:14:24]line ТРК (МРК, ГНК) : 51 [15:14:24]line Товар: 2710194210 [15:14:24]line D-ENERGY Дт-К-2 [15:14:24]line 12.960 * 77.20 [15:14:24]line = 1000.51 [15:14:24]line НДС 12% НСП 1% [15:14:24]line > о реализуемом товаре [15:14:24]line ОКРУГЛЕНИЕ: -0.51 [15:14:24]line ИТОГО: 1000.00 [15:14:24]line Внесено: 1000.00 [15:14:24]line СДАЧА: 0.00 [15:14:24]line НСП 1% : 8.85 [15:14:24]line НДС 12% : 106.25 [15:14:24]line Наличными: 1000.00 [15:14:24]line Безнал.: 0.00 [15:14:24]line Место: АЗС № 78 "Партнер Нефть" [15:14:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:14:24]line СНО: Общий режим [15:14:24]line Чек 171 22.10.2024 15:14 [15:14:24]line Смена: 116 ФФД: 1.0 [15:14:24]line ЗНМ: 0300000137 [15:14:24]line РНМ: 0000000000186857 [15:14:24]line Версия ККМ: v1.0 [15:14:24]line ФМ: 0000000002094219 [15:14:24]line ФД: 30938 [15:14:24]line ФПД: 46483171792217 [15:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30938&fm=46483171792217&tin=02508201610067®Number=0000000000186857&sum=100000 [15:14:24]OFD Sender: Processing packet 30938 [packets to send 11, broken 10] [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00030938 [15:14:24]OFD Sender: To server: pG, [15:14:24]CommunicateWithHost lk.salyk.kg:30040 [15:14:24]ConnectInit lk.salyk.kg [15:14:24]written 0, free lines is 4095 [15:14:24]Connected sock=10 [15:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 65 C8 0D 01 53 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 4F C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 78 00 00 35 04 06 00 2A 46 B4 F1 55 59 9C 2F 3E 59 0F 65 A0 5C [15:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 96 B7 47 00 B6 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 78 00 00 F4 03 04 00 CD 6B 17 67 B6 04 01 00 00 BA DB 27 81 AD F7 1D D1 [15:14:25]CommunicateWithHost err = 0 [15:14:25]CheckOFDResponse [15:14:25]1017 (14) - 77093643461234 [15:14:25]1041 (16) - 0000000002094219 [15:14:25]1040 (4) - 30938 [15:14:25]1012 (4) - 22.10.2024 09:09 [15:14:25]1206 (1) - 0 [15:14:25]OFD Sender: Remove packet 30938 [15:14:25]ProducePacketName [15:14:25]name=ofd_packets/00030938 [15:14:25]NVStorageDeleteData [15:14:25]Write to MH i2c: 01 00 00 07 0A 11 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 07 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 EC 0C 10 [15:14:25]RasterBufferAndPrint [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]written 0, free lines is 3317 [15:14:25]MH_Cut [15:14:25]Write to MH i2c: D1 01 00 0E 0A 01 EA [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 0E 0A 00 E9 [15:14:25]Write to MH i2c: 01 00 00 0F 0A 19 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]OFD Sender: No OFD packet to send [15:14:25]*** Cut start [15:14:25]*** Partial cut [15:14:25]*** CUTSNS_PIN = 1 [15:14:26]*** CUTSNS_PIN = 0 [15:14:26]*** Brake cut motor [15:14:26]Read from MH i2c: 01 [15:14:26]MH_I2C_Read... [15:14:26]*** Stop cut motor [15:14:26]*** Cut end [15:14:26]Read from MH i2c: 01 07 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [15:14:26]process_action close_receipt done [15:14:26]requested_data is exist [15:14:26]produce_requested_data [15:14:26]requested_item fm.sn is exist - process it [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 11 00 00 [15:14:26]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [15:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:26]wFMCommunicate OK [15:14:26]requested_item fd.num is exist - process it [15:14:26]SAM_PROTO_GetFieldsCounters [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 00 00 [15:14:26]Write to MH i2c: E2 08 00 11 0A 80 13 00 00 00 00 00 00 97 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 11 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [15:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetFieldsCounters done [15:14:26]requested_item shift.num is exist - process it [15:14:26]requested_item shift.opened is exist - process it [15:14:26]req_shift_opened [15:14:26]FM_GetShiftState [15:14:26]SAM_PROTO_GetShiftState [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 01 00 [15:14:26]Write to MH i2c: E2 08 00 12 0A 80 13 01 00 00 00 00 00 99 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 12 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 73 [15:14:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetShiftState done [15:14:26]FM_GetShiftState done [15:14:26]req_shift_opened done [15:14:26]requested_item shift.open_date is exist - process it [15:14:26]req_shift_open_date [15:14:26]req_shift_open_date done [15:14:26]produce_requested_data done [15:14:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30938,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:14:26]process_action_free close_receipt [15:14:26]json_value_free [15:14:26]json_value_free done [15:14:26]process_json_proto returns [15:14:26]Send response to host [15:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30938,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:14:26]free response buf [15:14:26]execute_script done [15:14:26]execute_script returns [15:14:26]free content buf [15:14:26]Sock 7.Close socket [15:14:26]Sock 7.Thread stoped [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]accept exits with 9 [15:17:00]New connection [15:17:00]New thread 3067043172 created [15:17:00]Thread 3066899812 joined [15:17:00]Waiting for new connection... [15:17:00] Sock 9.Parse request [15:17:00]Sock 9.Check first char [15:17:00]Sock 9.First char is OK [15:17:00]request: POST /json_proto HTTP/1.0 [15:17:00]Method: POST [15:17:00]URL: /json_proto [15:17:00]Method is POST - this is cgi request [15:17:00]url: /json_proto [15:17:00]query_string will be loaded in cgi processing [15:17:00]execute_cgi json_proto POST (null) [15:17:00]execute_cgi path=json_proto method=POST [15:17:00]POST find Content-Length [15:17:00]Host: 172.17.51.3:8080 [15:17:00]Content-Length: 678 [15:17:00]Content-Type: application/json [15:17:00] [15:17:00]POST finish read [15:17:00]Found Content-Length = 678 [15:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:00]execute_script... [15:17: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)343365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:00]POST & json_proto [15:17:00]process_json_proto [15:17:00]json parsed OK: [15:17:00]protocol is kg_v1.0 [15:17:00]action value=close_receipt [15:17:00]process_action close_receipt [15:17:00]cmd_close_receipt [15:17:00]MH_GetDate [15:17:00]Write to MH i2c: F0 00 00 13 0A 0C [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: F0 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: F0 09 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: F0 09 00 13 0A 00 ED C1 17 67 04 C1 95 66 01 [15:17:00]GetLastDocTimeStamp 1729610063 [15:17:00]current date 1729610221 [15:17:00]FM_GetShiftState [15:17:00]SAM_PROTO_GetShiftState [15:17:00]wFMCommunicate request_size=4 [15:17:00]MH_SAM_APDU [15:17:00]CAPDU: 80 13 01 00 [15:17:00]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:00]Read from MH i2c: E2 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: E2 0E 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 75 [15:17:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:17:00]wFMCommunicate OK [15:17:00]SAM_PROTO_GetShiftState done [15:17:00]FM_GetShiftState done [15:17:00]opened in 1729557342 [15:17:00]opened+sec_in_day 1729643742 [15:17:00]quantity*price = 70044 [15:17:00]sum+1 = 70045 [15:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 172 22.10.2024 15:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30939 ФПД: 231463997274087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30939&fm=231463997274087&tin=02508201610067®Number=0000000000186857&sum=70000 [15:17:01]StoreToDocumentArchive [15:17:01]shift 116 fd 30939 [15:17:01]save to /storage/0116/doc_00030939 [15:17:01]save last doc name /storage/0116/doc_00030939 to /storage/kkm_last_doc_name [15:17:01]save OK [15:17:01]Clear old archive folders... [15:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:01]tlvbuf is 00CA4C70 [15:17:01]SAM_PROTO_ClearQueue [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 09 00 00 [15:17:01]Write to MH i2c: E2 08 00 21 0A 80 09 00 00 00 00 00 00 9D [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_ClearQueue done [15:17:01]KKMCreateOFDPacket [15:17:01]OFDProtocolAddRootSTLVToBuf [15:17:01]FM_MakeSignedData [15:17:01]FM_MakeSignedData [15:17:01]SAM_PROTO_SignData [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 01 02 [15:17:01]Write to MH i2c: E2 08 00 22 0A 80 0D 01 02 00 00 00 00 A5 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=255 [15:17:01]MH_SAM_APDU [15:17: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 78 00 00 35 04 06 00 D2 [15:17:01]Write to MH i2c: E2 02 01 23 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 78 00 00 35 04 06 00 D2 00 00 B7 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=10 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 02 02 05 83 E9 55 F7 E7 [15:17:01]Write to MH i2c: E2 0D 00 24 0A 80 0D 02 02 05 00 83 E9 55 F7 E7 00 00 51 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 03 02 [15:17:01]Write to MH i2c: E2 08 00 25 0A 80 0D 03 02 00 00 00 00 AA [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0B 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0B 00 25 0A 00 65 88 66 50 2E F9 81 8B 90 00 81 [15:17:01]RAPDU: 65 88 66 50 2E F9 81 8B 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_SignData done [15:17:01]FM_MakeSignedData done [15:17:01]CreateOFDProtocolMessage [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 11 00 00 [15:17:01]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [15:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:17:01]wFMCommunicate OK [15:17:01]CreateOFDProtocolMessage done [15:17:01]OFDSenderStorePacket 30939 [15:17:01]StoreOFDPacket docnum=30939 [15:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 D2 07 01 AA 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 78 00 00 35 04 06 00 D2 83 E9 55 F7 E7 65 88 66 50 2E F9 81 8B [15:17:01]CheckFolder [15:17:01]dirname=/storage/ofd_packets [15:17:01]CheckFolder done [15:17:01]ProducePacketName [15:17:01]name=ofd_packets/00030939 [15:17:01]NVStorageSaveData ofd_packets/00030939 [15:17:01]File name is /storage/ofd_packets/00030939 [15:17:01]Write 301 bytes [15:17:01]NVStorageSaveData done [15:17:01]OFDSenderStorePacket done [15:17:01]KKMCreateOFDPacket done [15:17:01]NVStorageSaveData kkm_last_timestamp [15:17:01]File name is /storage/kkm_last_timestamp [15:17:01]Write 4 bytes [15:17:01]NVStorageSaveData done [15:17:01]ExternCall_PrintAddStr [15:17:01]wPrintStart [15:17:01]Write to MH i2c: 01 00 00 27 0A 31 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [15:17:01]RasterBufferAndPrint [15:17:01]line Счет N : (1)343365 [15:17:01]line ИНН: 02508201610067 [15:17:01]line Контрольно-Кассовый Чек [15:17:01]line ПРОДАЖА [15:17:01]line ТРК (МРК, ГНК) : 63 [15:17:01]line Товар: 2710124130 [15:17:01]line Аи-92-К-2 [15:17:01]line 10.470 * 66.90 [15:17:01]line = 700.44 [15:17:01]line НДС 12% НСП 1% [15:17:01]line > о реализуемом товаре [15:17:01]line ОКРУГЛЕНИЕ: -0.44 [15:17:01]line ИТОГО: 700.00 [15:17:01]line Внесено: 700.00 [15:17:01]line СДАЧА: 0.00 [15:17:01]line НСП 1% : 6.20 [15:17:01]line НДС 12% : 74.38 [15:17:01]line Наличными: 700.00 [15:17:01]line Безнал.: 0.00 [15:17:01]line Место: АЗС № 78 "Партнер Нефть" [15:17:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:17:01]line СНО: Общий режим [15:17:01]line Чек 172 22.10.2024 15:17 [15:17:01]line Смена: 116 ФФД: 1.0 [15:17:01]line ЗНМ: 0300000137 [15:17:01]line РНМ: 0000000000186857 [15:17:01]line Версия ККМ: v1.0 [15:17:01]line ФМ: 0000000002094219 [15:17:01]line ФД: 30939 [15:17:01]line ФПД: 231463997274087 [15:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30939&fm=231463997274087&tin=02508201610067®Number=0000000000186857&sum=70000 [15:17:02]OFD Sender: Processing packet 30939 [packets to send 11, broken 10] [15:17:02]ProducePacketName [15:17:02]name=ofd_packets/00030939 [15:17:02]OFD Sender: To server: pG, [15:17:02]CommunicateWithHost lk.salyk.kg:30040 [15:17:02]ConnectInit lk.salyk.kg [15:17:02]written 0, free lines is 4095 [15:17:02]Connected sock=6 [15:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 D2 07 01 AA 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED C1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 78 00 00 35 04 06 00 D2 83 E9 55 F7 E7 65 88 66 50 2E F9 81 8B [15:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 CF 47 00 75 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 78 00 00 F4 03 04 00 6A 6C 17 67 B6 04 01 00 00 1D E4 F4 48 80 24 3E 2E [15:17:02]CommunicateWithHost err = 0 [15:17:02]CheckOFDResponse [15:17:02]1017 (14) - 77093643461234 [15:17:02]1041 (16) - 0000000002094219 [15:17:02]1040 (4) - 30939 [15:17:02]1012 (4) - 22.10.2024 09:12 [15:17:02]1206 (1) - 0 [15:17:02]OFD Sender: Remove packet 30939 [15:17:02]ProducePacketName [15:17:02]name=ofd_packets/00030939 [15:17:02]NVStorageDeleteData [15:17:02]Write to MH i2c: 01 00 00 52 0A 5C [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 07 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 F6 0C 65 [15:17:02]RasterBufferAndPrint [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]written 0, free lines is 3324 [15:17:02]MH_Cut [15:17:02]Write to MH i2c: D1 01 00 59 0A 01 35 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 01 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 01 00 59 0A 00 34 [15:17:02]Write to MH i2c: 01 00 00 5A 0A 64 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]OFD Sender: No OFD packet to send [15:17:03]*** Cut start [15:17:03]*** Partial cut [15:17:03]*** CUTSNS_PIN = 1 [15:17:03]*** CUTSNS_PIN = 0 [15:17:03]*** Brake cut motor [15:17:03]Read from MH i2c: 01 [15:17:03]MH_I2C_Read... [15:17:03]*** Stop cut motor [15:17:03]*** Cut end [15:17:03]Read from MH i2c: 01 07 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [15:17:03]process_action close_receipt done [15:17:03]requested_data is exist [15:17:03]produce_requested_data [15:17:03]requested_item fm.sn is exist - process it [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 11 00 00 [15:17:03]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [15:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:17:03]wFMCommunicate OK [15:17:03]requested_item fd.num is exist - process it [15:17:03]SAM_PROTO_GetFieldsCounters [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 13 00 00 [15:17:03]Write to MH i2c: E2 08 00 5C 0A 80 13 00 00 00 00 00 00 E2 [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:04]Read from MH i2c: E2 [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 62 00 [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 62 00 5C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [15:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:04]wFMCommunicate OK [15:17:04]SAM_PROTO_GetFieldsCounters done [15:17:04]requested_item shift.num is exist - process it [15:17:04]requested_item shift.opened is exist - process it [15:17:04]req_shift_opened [15:17:04]FM_GetShiftState [15:17:04]SAM_PROTO_GetShiftState [15:17:04]wFMCommunicate request_size=4 [15:17:04]MH_SAM_APDU [15:17:04]CAPDU: 80 13 01 00 [15:17:04]Write to MH i2c: E2 08 00 5D 0A 80 13 01 00 00 00 00 00 E4 [15:17:04]Write i2c OK [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 [15:17:04]MH_I2C_Read... [15:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:04]Read from MH i2c: E2 0E 00 [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 0E 00 5D 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BE [15:17:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:17:04]wFMCommunicate OK [15:17:04]SAM_PROTO_GetShiftState done [15:17:04]FM_GetShiftState done [15:17:04]req_shift_opened done [15:17:04]requested_item shift.open_date is exist - process it [15:17:04]req_shift_open_date [15:17:04]req_shift_open_date done [15:17:04]produce_requested_data done [15:17:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30939,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:17:04]process_action_free close_receipt [15:17:04]json_value_free [15:17:04]json_value_free done [15:17:04]process_json_proto returns [15:17:04]Send response to host [15:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30939,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:17:04]free response buf [15:17:04]execute_script done [15:17:04]execute_script returns [15:17:04]free content buf [15:17:04]Sock 9.Close socket [15:17:04]Sock 9.Thread stoped [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:41]accept exits with 7 [15:26:41]New connection [15:26:41]New thread 3066899812 created [15:26:41]Thread 3067043172 joined [15:26:41]Waiting for new connection... [15:26:41] Sock 7.Parse request [15:26:41]Sock 7.Check first char [15:26:41]Sock 7.First char is OK [15:26:41]request: POST /json_proto HTTP/1.0 [15:26:41]Method: POST [15:26:41]URL: /json_proto [15:26:41]Method is POST - this is cgi request [15:26:41]url: /json_proto [15:26:41]query_string will be loaded in cgi processing [15:26:41]execute_cgi json_proto POST (null) [15:26:41]execute_cgi path=json_proto method=POST [15:26:41]POST find Content-Length [15:26:41]Host: 172.17.51.3:8080 [15:26:41]Content-Length: 678 [15:26:41]Content-Type: application/json [15:26:41] [15:26:41]POST finish read [15:26:41]Found Content-Length = 678 [15:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:41]execute_script... [15:26: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)343366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:41]POST & json_proto [15:26:41]process_json_proto [15:26:41]json parsed OK: [15:26:41]protocol is kg_v1.0 [15:26:41]action value=close_receipt [15:26:41]process_action close_receipt [15:26:41]cmd_close_receipt [15:26:41]MH_GetDate [15:26:41]Write to MH i2c: F0 00 00 5E 0A 57 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 09 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 09 00 5E 0A 00 32 C4 17 67 04 C1 95 66 94 [15:26:41]GetLastDocTimeStamp 1729610221 [15:26:41]current date 1729610802 [15:26:41]FM_GetShiftState [15:26:41]SAM_PROTO_GetShiftState [15:26:41]wFMCommunicate request_size=4 [15:26:41]MH_SAM_APDU [15:26:41]CAPDU: 80 13 01 00 [15:26:41]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:41]Read from MH i2c: E2 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: E2 0E 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C0 [15:26:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:26:41]wFMCommunicate OK [15:26:41]SAM_PROTO_GetShiftState done [15:26:41]FM_GetShiftState done [15:26:41]opened in 1729557342 [15:26:41]opened+sec_in_day 1729643742 [15:26:41]quantity*price = 80012 [15:26:41]sum+1 = 80013 [15:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 173 22.10.2024 15:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30940 ФПД: 72423042227306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30940&fm=72423042227306&tin=02508201610067®Number=0000000000186857&sum=80000 [15:26:42]StoreToDocumentArchive [15:26:42]shift 116 fd 30940 [15:26:42]save to /storage/0116/doc_00030940 [15:26:42]save last doc name /storage/0116/doc_00030940 to /storage/kkm_last_doc_name [15:26:42]save OK [15:26:42]Clear old archive folders... [15:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:42]tlvbuf is 00D47FB0 [15:26:42]SAM_PROTO_ClearQueue [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 09 00 00 [15:26:42]Write to MH i2c: E2 08 00 6C 0A 80 09 00 00 00 00 00 00 E8 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]SAM_PROTO_ClearQueue done [15:26:42]KKMCreateOFDPacket [15:26:42]OFDProtocolAddRootSTLVToBuf [15:26:42]FM_MakeSignedData [15:26:42]FM_MakeSignedData [15:26:42]SAM_PROTO_SignData [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 01 02 [15:26:42]Write to MH i2c: E2 08 00 6D 0A 80 0D 01 02 00 00 00 00 F0 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=255 [15:26:42]MH_SAM_APDU [15:26: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 32 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 78 00 00 35 04 06 00 41 [15:26:42]Write to MH i2c: E2 02 01 6E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 32 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 78 00 00 35 04 06 00 41 00 00 97 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=10 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 02 02 05 DE 4D B4 9C 6A [15:26:42]Write to MH i2c: E2 0D 00 6F 0A 80 0D 02 02 05 00 DE 4D B4 9C 6A 00 00 E2 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 03 02 [15:26:42]Write to MH i2c: E2 08 00 70 0A 80 0D 03 02 00 00 00 00 F5 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 0B 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 0B 00 70 0A 00 21 E0 4B 1E 69 5B 6A E9 90 00 77 [15:26:42]RAPDU: 21 E0 4B 1E 69 5B 6A E9 90 00 [15:26:42]wFMCommunicate OK [15:26:42]SAM_PROTO_SignData done [15:26:42]FM_MakeSignedData done [15:26:42]CreateOFDProtocolMessage [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 11 00 00 [15:26:42]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [15:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:42]wFMCommunicate OK [15:26:42]CreateOFDProtocolMessage done [15:26:42]OFDSenderStorePacket 30940 [15:26:42]StoreOFDPacket docnum=30940 [15:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 89 07 01 73 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 32 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 78 00 00 35 04 06 00 41 DE 4D B4 9C 6A 21 E0 4B 1E 69 5B 6A E9 [15:26:42]CheckFolder [15:26:42]dirname=/storage/ofd_packets [15:26:42]CheckFolder done [15:26:42]ProducePacketName [15:26:42]name=ofd_packets/00030940 [15:26:42]NVStorageSaveData ofd_packets/00030940 [15:26:42]File name is /storage/ofd_packets/00030940 [15:26:42]Write 301 bytes [15:26:42]NVStorageSaveData done [15:26:42]OFDSenderStorePacket done [15:26:42]KKMCreateOFDPacket done [15:26:42]NVStorageSaveData kkm_last_timestamp [15:26:42]File name is /storage/kkm_last_timestamp [15:26:42]Write 4 bytes [15:26:42]NVStorageSaveData done [15:26:42]ExternCall_PrintAddStr [15:26:42]wPrintStart [15:26:42]Write to MH i2c: 01 00 00 72 0A 7C [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 07 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 FF 0F 91 [15:26:42]RasterBufferAndPrint [15:26:42]line Счет N : (1)343366 [15:26:42]line ИНН: 02508201610067 [15:26:42]line Контрольно-Кассовый Чек [15:26:42]line ПРОДАЖА [15:26:42]line ТРК (МРК, ГНК) : 63 [15:26:42]line Товар: 2710124130 [15:26:42]line Аи-92-К-2 [15:26:42]line 11.960 * 66.90 [15:26:42]line = 800.12 [15:26:42]line НДС 12% НСП 1% [15:26:42]line > о реализуемом товаре [15:26:42]line ОКРУГЛЕНИЕ: -0.12 [15:26:42]line ИТОГО: 800.00 [15:26:42]line Внесено: 800.00 [15:26:42]line СДАЧА: 0.00 [15:26:42]line НСП 1% : 7.08 [15:26:42]line НДС 12% : 84.97 [15:26:42]line Наличными: 800.00 [15:26:42]line Безнал.: 0.00 [15:26:42]line Место: АЗС № 78 "Партнер Нефть" [15:26:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:26:42]line СНО: Общий режим [15:26:42]line Чек 173 22.10.2024 15:26 [15:26:42]line Смена: 116 ФФД: 1.0 [15:26:42]line ЗНМ: 0300000137 [15:26:42]line РНМ: 0000000000186857 [15:26:42]line Версия ККМ: v1.0 [15:26:42]line ФМ: 0000000002094219 [15:26:42]line ФД: 30940 [15:26:42]line ФПД: 72423042227306 [15:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30940&fm=72423042227306&tin=02508201610067®Number=0000000000186857&sum=80000 [15:26:43]OFD Sender: Processing packet 30940 [packets to send 11, broken 10] [15:26:43]ProducePacketName [15:26:43]name=ofd_packets/00030940 [15:26:43]OFD Sender: To server: pG, [15:26:43]CommunicateWithHost lk.salyk.kg:30040 [15:26:43]ConnectInit lk.salyk.kg [15:26:43]written 0, free lines is 4095 [15:26:43]Connected sock=10 [15:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 89 07 01 73 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 32 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 78 00 00 35 04 06 00 41 DE 4D B4 9C 6A 21 E0 4B 1E 69 5B 6A E9 [15:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 75 DC 47 00 DD 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 78 00 00 F4 03 04 00 AF 6E 17 67 B6 04 01 00 00 3C CB AB 10 A9 C7 23 D0 [15:26:43]CommunicateWithHost err = 0 [15:26:43]CheckOFDResponse [15:26:43]1017 (14) - 77093643461234 [15:26:43]1041 (16) - 0000000002094219 [15:26:43]1040 (4) - 30940 [15:26:43]1012 (4) - 22.10.2024 09:21 [15:26:43]1206 (1) - 0 [15:26:43]OFD Sender: Remove packet 30940 [15:26:43]ProducePacketName [15:26:43]name=ofd_packets/00030940 [15:26:43]NVStorageDeleteData [15:26:43]Write to MH i2c: 01 00 00 9D 0A A7 [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 07 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 F3 0C AD [15:26:43]RasterBufferAndPrint [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]written 0, free lines is 3321 [15:26:43]MH_Cut [15:26:43]Write to MH i2c: D1 01 00 A4 0A 01 80 [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 01 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 01 00 A4 0A 00 7F [15:26:43]Write to MH i2c: 01 00 00 A5 0A AF [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]OFD Sender: No OFD packet to send [15:26:44]*** Cut start [15:26:44]*** Partial cut [15:26:44]*** CUTSNS_PIN = 1 [15:26:44]*** CUTSNS_PIN = 0 [15:26:44]*** Brake cut motor [15:26:44]Read from MH i2c: 01 [15:26:44]MH_I2C_Read... [15:26:44]*** Stop cut motor [15:26:44]*** Cut end [15:26:44]Read from MH i2c: 01 07 00 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 FF 0F C4 [15:26:44]process_action close_receipt done [15:26:44]requested_data is exist [15:26:44]produce_requested_data [15:26:44]requested_item fm.sn is exist - process it [15:26:44]wFMCommunicate request_size=4 [15:26:44]MH_SAM_APDU [15:26:44]CAPDU: 80 11 00 00 [15:26:44]Write to MH i2c: E2 08 00 A6 0A 80 11 00 00 00 00 00 00 2A [15:26:44]Write i2c OK [15:26:44]MH_I2C_Read... [15:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:44]Read from MH i2c: E2 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: E2 17 00 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: E2 17 00 A6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [15:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:44]wFMCommunicate OK [15:26:44]requested_item fd.num is exist - process it [15:26:44]SAM_PROTO_GetFieldsCounters [15:26:44]wFMCommunicate request_size=4 [15:26:44]MH_SAM_APDU [15:26:44]CAPDU: 80 13 00 00 [15:26:44]Write to MH i2c: E2 08 00 A7 0A 80 13 00 00 00 00 00 00 2D [15:26:44]Write i2c OK [15:26:44]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 62 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 62 00 A7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [15:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:45]wFMCommunicate OK [15:26:45]SAM_PROTO_GetFieldsCounters done [15:26:45]requested_item shift.num is exist - process it [15:26:45]requested_item shift.opened is exist - process it [15:26:45]req_shift_opened [15:26:45]FM_GetShiftState [15:26:45]SAM_PROTO_GetShiftState [15:26:45]wFMCommunicate request_size=4 [15:26:45]MH_SAM_APDU [15:26:45]CAPDU: 80 13 01 00 [15:26:45]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 09 [15:26:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:26:45]wFMCommunicate OK [15:26:45]SAM_PROTO_GetShiftState done [15:26:45]FM_GetShiftState done [15:26:45]req_shift_opened done [15:26:45]requested_item shift.open_date is exist - process it [15:26:45]req_shift_open_date [15:26:45]req_shift_open_date done [15:26:45]produce_requested_data done [15:26:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30940,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:26:45]process_action_free close_receipt [15:26:45]json_value_free [15:26:45]json_value_free done [15:26:45]process_json_proto returns [15:26:45]Send response to host [15:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30940,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:26:45]free response buf [15:26:45]execute_script done [15:26:45]execute_script returns [15:26:45]free content buf [15:26:45]Sock 7.Close socket [15:26:45]Sock 7.Thread stoped [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:01]accept exits with 9 [15:28:01]New connection [15:28:01]New thread 3067043172 created [15:28:01]Thread 3066899812 joined [15:28:01]Waiting for new connection... [15:28:01] Sock 9.Parse request [15:28:01]Sock 9.Check first char [15:28:01]Sock 9.First char is OK [15:28:01]request: POST /json_proto HTTP/1.0 [15:28:01]Method: POST [15:28:01]URL: /json_proto [15:28:01]Method is POST - this is cgi request [15:28:01]url: /json_proto [15:28:01]query_string will be loaded in cgi processing [15:28:01]execute_cgi json_proto POST (null) [15:28:01]execute_cgi path=json_proto method=POST [15:28:01]POST find Content-Length [15:28:01]Host: 172.17.51.3:8080 [15:28:01]Content-Length: 688 [15:28:01]Content-Type: application/json [15:28:01] [15:28:01]POST finish read [15:28:01]Found Content-Length = 688 [15:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:01]execute_script... [15:28: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)343367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:01]POST & json_proto [15:28:01]process_json_proto [15:28:01]json parsed OK: [15:28:01]protocol is kg_v1.0 [15:28:01]action value=close_receipt [15:28:01]process_action close_receipt [15:28:01]cmd_close_receipt [15:28:01]MH_GetDate [15:28:01]Write to MH i2c: F0 00 00 A9 0A A2 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: F0 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: F0 09 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: F0 09 00 A9 0A 00 82 C4 17 67 04 C1 95 66 2F [15:28:01]GetLastDocTimeStamp 1729610802 [15:28:01]current date 1729610882 [15:28:01]FM_GetShiftState [15:28:01]SAM_PROTO_GetShiftState [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 13 01 00 [15:28:01]Write to MH i2c: E2 08 00 AA 0A 80 13 01 00 00 00 00 00 31 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0E 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0E 00 AA 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0B [15:28:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_GetShiftState done [15:28:01]FM_GetShiftState done [15:28:01]opened in 1729557342 [15:28:01]opened+sec_in_day 1729643742 [15:28:01]quantity*price = 100051 [15:28:01]sum+1 = 100052 [15:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 174 22.10.2024 15:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30941 ФПД: 99195652230163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30941&fm=99195652230163&tin=02508201610067®Number=0000000000186857&sum=100000 [15:28:02]StoreToDocumentArchive [15:28:02]shift 116 fd 30941 [15:28:02]save to /storage/0116/doc_00030941 [15:28:02]save last doc name /storage/0116/doc_00030941 to /storage/kkm_last_doc_name [15:28:02]save OK [15:28:02]Clear old archive folders... [15:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:28:02]tlvbuf is 00D6A4E0 [15:28:02]SAM_PROTO_ClearQueue [15:28:02]wFMCommunicate request_size=4 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 09 00 00 [15:28:02]Write to MH i2c: E2 08 00 B7 0A 80 09 00 00 00 00 00 00 33 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [15:28:02]RAPDU: 90 00 [15:28:02]wFMCommunicate OK [15:28:02]SAM_PROTO_ClearQueue done [15:28:02]KKMCreateOFDPacket [15:28:02]OFDProtocolAddRootSTLVToBuf [15:28:02]FM_MakeSignedData [15:28:02]FM_MakeSignedData [15:28:02]SAM_PROTO_SignData [15:28:02]wFMCommunicate request_size=4 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 0D 01 02 [15:28:02]Write to MH i2c: E2 08 00 B8 0A 80 0D 01 02 00 00 00 00 3B [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [15:28:02]RAPDU: 90 00 [15:28:02]wFMCommunicate OK [15:28:02]wFMCommunicate request_size=255 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 82 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 78 00 [15:28:02]Write to MH i2c: E2 02 01 B9 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 82 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 78 00 00 00 D0 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [15:28:02]RAPDU: 90 00 [15:28:02]wFMCommunicate OK [15:28:02]wFMCommunicate request_size=16 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5A 37 C9 9D 4C 13 [15:28:02]Write to MH i2c: E2 13 00 BA 0A 80 0D 02 02 0B 00 00 35 04 06 00 5A 37 C9 9D 4C 13 00 00 E9 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [15:28:02]RAPDU: 90 00 [15:28:02]wFMCommunicate OK [15:28:02]wFMCommunicate request_size=4 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 0D 03 02 [15:28:02]Write to MH i2c: E2 08 00 BB 0A 80 0D 03 02 00 00 00 00 40 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 0B 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 0B 00 BB 0A 00 11 BA C0 F3 E8 DC CA 6C 90 00 B9 [15:28:02]RAPDU: 11 BA C0 F3 E8 DC CA 6C 90 00 [15:28:02]wFMCommunicate OK [15:28:02]SAM_PROTO_SignData done [15:28:02]FM_MakeSignedData done [15:28:02]CreateOFDProtocolMessage [15:28:02]wFMCommunicate request_size=4 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 11 00 00 [15:28:02]Write to MH i2c: E2 08 00 BC 0A 80 11 00 00 00 00 00 00 40 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 17 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 17 00 BC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [15:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:28:03]wFMCommunicate OK [15:28:03]CreateOFDProtocolMessage done [15:28:03]OFDSenderStorePacket 30941 [15:28:03]StoreOFDPacket docnum=30941 [15:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C4 EB 0D 01 E5 E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 82 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 78 00 00 35 04 06 00 5A 37 C9 9D 4C 13 11 BA C0 F3 E8 DC CA 6C [15:28:03]CheckFolder [15:28:03]dirname=/storage/ofd_packets [15:28:03]CheckFolder done [15:28:03]ProducePacketName [15:28:03]name=ofd_packets/00030941 [15:28:03]NVStorageSaveData ofd_packets/00030941 [15:28:03]File name is /storage/ofd_packets/00030941 [15:28:03]Write 307 bytes [15:28:03]NVStorageSaveData done [15:28:03]OFDSenderStorePacket done [15:28:03]KKMCreateOFDPacket done [15:28:03]NVStorageSaveData kkm_last_timestamp [15:28:03]File name is /storage/kkm_last_timestamp [15:28:03]Write 4 bytes [15:28:03]NVStorageSaveData done [15:28:03]ExternCall_PrintAddStr [15:28:03]wPrintStart [15:28:03]Write to MH i2c: 01 00 00 BD 0A C7 [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 07 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 FF 0F DC [15:28:03]RasterBufferAndPrint [15:28:03]line Счет N : (1)343367 [15:28:03]line ИНН: 02508201610067 [15:28:03]line Контрольно-Кассовый Чек [15:28:03]line ПРОДАЖА [15:28:03]line ТРК (МРК, ГНК) : 51 [15:28:03]line Товар: 2710194210 [15:28:03]line D-ENERGY Дт-К-2 [15:28:03]line 12.960 * 77.20 [15:28:03]line = 1000.51 [15:28:03]line НДС 12% НСП 1% [15:28:03]line > о реализуемом товаре [15:28:03]line ОКРУГЛЕНИЕ: -0.51 [15:28:03]line ИТОГО: 1000.00 [15:28:03]line Внесено: 1000.00 [15:28:03]line СДАЧА: 0.00 [15:28:03]line НСП 1% : 8.85 [15:28:03]line НДС 12% : 106.25 [15:28:03]line Наличными: 1000.00 [15:28:03]line Безнал.: 0.00 [15:28:03]line Место: АЗС № 78 "Партнер Нефть" [15:28:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:28:03]line СНО: Общий режим [15:28:03]line Чек 174 22.10.2024 15:28 [15:28:03]line Смена: 116 ФФД: 1.0 [15:28:03]line ЗНМ: 0300000137 [15:28:03]line РНМ: 0000000000186857 [15:28:03]line Версия ККМ: v1.0 [15:28:03]line ФМ: 0000000002094219 [15:28:03]line ФД: 30941 [15:28:03]line ФПД: 99195652230163 [15:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30941&fm=99195652230163&tin=02508201610067®Number=0000000000186857&sum=100000 [15:28:03]OFD Sender: Processing packet 30941 [packets to send 11, broken 10] [15:28:03]ProducePacketName [15:28:03]name=ofd_packets/00030941 [15:28:03]OFD Sender: To server: pG, [15:28:03]CommunicateWithHost lk.salyk.kg:30040 [15:28:03]ConnectInit lk.salyk.kg [15:28:03]written 0, free lines is 4095 [15:28:03]Connected sock=10 [15:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C4 EB 0D 01 E5 E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 82 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 78 00 00 35 04 06 00 5A 37 C9 9D 4C 13 11 BA C0 F3 E8 DC CA 6C [15:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 81 B2 47 00 76 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 32 30 39 34 32 31 39 10 04 04 00 DD 78 00 00 F4 03 04 00 FF 6E 17 67 B6 04 01 00 00 DA B4 FC 07 1B 87 13 25 [15:28:03]CommunicateWithHost err = 0 [15:28:03]CheckOFDResponse [15:28:03]1017 (14) - 77093643461234 [15:28:03]1041 (16) - 0000000002094219 [15:28:03]1040 (4) - 30941 [15:28:03]1012 (4) - 22.10.2024 09:23 [15:28:03]1206 (1) - 0 [15:28:03]OFD Sender: Remove packet 30941 [15:28:03]ProducePacketName [15:28:03]name=ofd_packets/00030941 [15:28:03]NVStorageDeleteData [15:28:03]Write to MH i2c: 01 00 00 E8 0A F2 [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 07 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FB 0C 00 [15:28:03]RasterBufferAndPrint [15:28:03]line [15:28:03]line [15:28:03]line [15:28:03]line [15:28:03]line [15:28:03]written 0, free lines is 3330 [15:28:03]MH_Cut [15:28:03]Write to MH i2c: D1 01 00 EF 0A 01 CB [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: D1 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: D1 01 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: D1 01 00 EF 0A 00 CA [15:28:03]Write to MH i2c: 01 00 00 F0 0A FA [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:04]OFD Sender: No OFD packet to send [15:28:04]*** Cut start [15:28:04]*** Partial cut [15:28:04]*** CUTSNS_PIN = 1 [15:28:04]*** CUTSNS_PIN = 0 [15:28:04]*** Brake cut motor [15:28:05]Read from MH i2c: 01 [15:28:05]MH_I2C_Read... [15:28:05]*** Stop cut motor [15:28:05]*** Cut end [15:28:05]Read from MH i2c: 01 07 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [15:28:05]process_action close_receipt done [15:28:05]requested_data is exist [15:28:05]produce_requested_data [15:28:05]requested_item fm.sn is exist - process it [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 11 00 00 [15:28:05]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [15:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:28:05]wFMCommunicate OK [15:28:05]requested_item fd.num is exist - process it [15:28:05]SAM_PROTO_GetFieldsCounters [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 13 00 00 [15:28:05]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 62 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_GetFieldsCounters done [15:28:05]requested_item shift.num is exist - process it [15:28:05]requested_item shift.opened is exist - process it [15:28:05]req_shift_opened [15:28:05]FM_GetShiftState [15:28:05]SAM_PROTO_GetShiftState [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 13 01 00 [15:28:05]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0E 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 54 [15:28:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_GetShiftState done [15:28:05]FM_GetShiftState done [15:28:05]req_shift_opened done [15:28:05]requested_item shift.open_date is exist - process it [15:28:05]req_shift_open_date [15:28:05]req_shift_open_date done [15:28:05]produce_requested_data done [15:28:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30941,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:28:05]process_action_free close_receipt [15:28:05]json_value_free [15:28:05]json_value_free done [15:28:05]process_json_proto returns [15:28:05]Send response to host [15:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30941,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:28:05]free response buf [15:28:05]execute_script done [15:28:05]execute_script returns [15:28:05]free content buf [15:28:05]Sock 9.Close socket [15:28:05]Sock 9.Thread stoped [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:22]accept exits with 7 [15:29:22]New connection [15:29:22]New thread 3066899812 created [15:29:22]Thread 3067043172 joined [15:29:22]Waiting for new connection... [15:29:22] Sock 7.Parse request [15:29:22]Sock 7.Check first char [15:29:22]Sock 7.First char is OK [15:29:22]request: POST /json_proto HTTP/1.0 [15:29:22]Method: POST [15:29:22]URL: /json_proto [15:29:22]Method is POST - this is cgi request [15:29:22]url: /json_proto [15:29:22]query_string will be loaded in cgi processing [15:29:22]execute_cgi json_proto POST (null) [15:29:22]execute_cgi path=json_proto method=POST [15:29:22]POST find Content-Length [15:29:22]Host: 172.17.51.3:8080 [15:29:22]Content-Length: 682 [15:29:22]Content-Type: application/json [15:29:22] [15:29:22]POST finish read [15:29:22]Found Content-Length = 682 [15:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:22]execute_script... [15:29: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)343368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:22]POST & json_proto [15:29:22]process_json_proto [15:29:22]json parsed OK: [15:29:22]protocol is kg_v1.0 [15:29:22]action value=close_receipt [15:29:22]process_action close_receipt [15:29:22]cmd_close_receipt [15:29:22]MH_GetDate [15:29:22]Write to MH i2c: F0 00 00 F4 0A ED [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: F0 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: F0 09 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: F0 09 00 F4 0A 00 D3 C4 17 67 04 C1 95 66 CB [15:29:22]GetLastDocTimeStamp 1729610882 [15:29:22]current date 1729610963 [15:29:22]FM_GetShiftState [15:29:22]SAM_PROTO_GetShiftState [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 13 01 00 [15:29:22]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0E 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 56 [15:29:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:29:22]wFMCommunicate OK [15:29:22]SAM_PROTO_GetShiftState done [15:29:22]FM_GetShiftState done [15:29:22]opened in 1729557342 [15:29:22]opened+sec_in_day 1729643742 [15:29:22]quantity*price = 100015 [15:29:22]sum+1 = 100017 [15:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 175 22.10.2024 15:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30942 ФПД: 112510921549631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152923&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30942&fm=112510921549631&tin=02508201610067®Number=0000000000186857&sum=100000 [15:29:23]StoreToDocumentArchive [15:29:23]shift 116 fd 30942 [15:29:23]save to /storage/0116/doc_00030942 [15:29:23]save last doc name /storage/0116/doc_00030942 to /storage/kkm_last_doc_name [15:29:23]save OK [15:29:23]Clear old archive folders... [15:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:23]tlvbuf is 00D6A9E0 [15:29:23]SAM_PROTO_ClearQueue [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 09 00 00 [15:29:23]Write to MH i2c: E2 08 00 02 0B 80 09 00 00 00 00 00 00 7F [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 03 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [15:29:23]RAPDU: 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_ClearQueue done [15:29:23]KKMCreateOFDPacket [15:29:23]OFDProtocolAddRootSTLVToBuf [15:29:23]FM_MakeSignedData [15:29:23]FM_MakeSignedData [15:29:23]SAM_PROTO_SignData [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 0D 01 02 [15:29:23]Write to MH i2c: E2 08 00 03 0B 80 0D 01 02 00 00 00 00 87 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 03 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [15:29:23]RAPDU: 90 00 [15:29:23]wFMCommunicate OK [15:29:23]wFMCommunicate request_size=255 [15:29:23]MH_SAM_APDU [15:29: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 D3 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 78 00 00 35 04 06 00 66 [15:29:23]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 D3 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 78 00 00 35 04 06 00 66 00 00 06 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=10 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 02 02 05 53 FD 83 27 3F [15:29:24]Write to MH i2c: E2 0D 00 05 0B 80 0D 02 02 05 00 53 FD 83 27 3F 00 00 CD [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 03 02 [15:29:24]Write to MH i2c: E2 08 00 06 0B 80 0D 03 02 00 00 00 00 8C [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0B 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0B 00 06 0B 00 A3 94 A0 00 7A 9E 0B 10 90 00 97 [15:29:24]RAPDU: A3 94 A0 00 7A 9E 0B 10 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_SignData done [15:29:24]FM_MakeSignedData done [15:29:24]CreateOFDProtocolMessage [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 11 00 00 [15:29:24]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [15:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:29:24]wFMCommunicate OK [15:29:24]CreateOFDProtocolMessage done [15:29:24]OFDSenderStorePacket 30942 [15:29:24]StoreOFDPacket docnum=30942 [15:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B D7 07 01 34 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 D3 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 78 00 00 35 04 06 00 66 53 FD 83 27 3F A3 94 A0 00 7A 9E 0B 10 [15:29:24]CheckFolder [15:29:24]dirname=/storage/ofd_packets [15:29:24]CheckFolder done [15:29:24]ProducePacketName [15:29:24]name=ofd_packets/00030942 [15:29:24]NVStorageSaveData ofd_packets/00030942 [15:29:24]File name is /storage/ofd_packets/00030942 [15:29:24]Write 301 bytes [15:29:24]NVStorageSaveData done [15:29:24]OFDSenderStorePacket done [15:29:24]KKMCreateOFDPacket done [15:29:24]NVStorageSaveData kkm_last_timestamp [15:29:24]File name is /storage/kkm_last_timestamp [15:29:24]Write 4 bytes [15:29:24]NVStorageSaveData done [15:29:24]ExternCall_PrintAddStr [15:29:24]wPrintStart [15:29:24]Write to MH i2c: 01 00 00 08 0B 13 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 07 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [15:29:24]RasterBufferAndPrint [15:29:24]line Счет N : (1)343368 [15:29:24]line ИНН: 02508201610067 [15:29:24]line Контрольно-Кассовый Чек [15:29:24]line ПРОДАЖА [15:29:24]line ТРК (МРК, ГНК) : 43 [15:29:24]line Товар: 2710124130 [15:29:24]line Аи-92-К-2 [15:29:24]line 14.950 * 66.90 [15:29:24]line = 1000.16 [15:29:24]line НДС 12% НСП 1% [15:29:24]line > о реализуемом товаре [15:29:24]line ОКРУГЛЕНИЕ: -0.16 [15:29:24]line ИТОГО: 1000.00 [15:29:24]line Внесено: 1000.00 [15:29:24]line СДАЧА: 0.00 [15:29:24]line НСП 1% : 8.85 [15:29:24]line НДС 12% : 106.21 [15:29:24]line Наличными: 1000.00 [15:29:24]line Безнал.: 0.00 [15:29:24]line Место: АЗС № 78 "Партнер Нефть" [15:29:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:29:24]line СНО: Общий режим [15:29:24]line Чек 175 22.10.2024 15:29 [15:29:24]line Смена: 116 ФФД: 1.0 [15:29:24]line ЗНМ: 0300000137 [15:29:24]line РНМ: 0000000000186857 [15:29:24]line Версия ККМ: v1.0 [15:29:24]line ФМ: 0000000002094219 [15:29:24]line ФД: 30942 [15:29:24]line ФПД: 112510921549631 [15:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152923&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30942&fm=112510921549631&tin=02508201610067®Number=0000000000186857&sum=100000 [15:29:24]OFD Sender: Processing packet 30942 [packets to send 11, broken 10] [15:29:24]ProducePacketName [15:29:24]name=ofd_packets/00030942 [15:29:24]OFD Sender: To server: pG, [15:29:24]CommunicateWithHost lk.salyk.kg:30040 [15:29:24]ConnectInit lk.salyk.kg [15:29:24]written 0, free lines is 4095 [15:29:24]Connected sock=10 [15:29:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B D7 07 01 34 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 D3 C4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 78 00 00 35 04 06 00 66 53 FD 83 27 3F A3 94 A0 00 7A 9E 0B 10 [15:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 EE 47 00 96 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 78 00 00 F4 03 04 00 50 6F 17 67 B6 04 01 00 00 FF EE 7C 47 FC F7 FA E7 [15:29:24]CommunicateWithHost err = 0 [15:29:24]CheckOFDResponse [15:29:24]1017 (14) - 77093643461234 [15:29:24]1041 (16) - 0000000002094219 [15:29:24]1040 (4) - 30942 [15:29:24]1012 (4) - 22.10.2024 09:24 [15:29:24]1206 (1) - 0 [15:29:24]OFD Sender: Remove packet 30942 [15:29:24]ProducePacketName [15:29:24]name=ofd_packets/00030942 [15:29:24]NVStorageDeleteData [15:29:25]Write to MH i2c: 01 00 00 33 0B 3E [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 F7 0C 48 [15:29:25]RasterBufferAndPrint [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]written 0, free lines is 3326 [15:29:25]MH_Cut [15:29:25]Write to MH i2c: D1 01 00 3A 0B 01 17 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 01 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 01 00 3A 0B 00 16 [15:29:25]Write to MH i2c: 01 00 00 3B 0B 46 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]OFD Sender: No OFD packet to send [15:29:25]*** Cut start [15:29:25]*** Partial cut [15:29:25]*** CUTSNS_PIN = 1 [15:29:25]*** CUTSNS_PIN = 0 [15:29:25]*** Brake cut motor [15:29:26]Read from MH i2c: 01 [15:29:26]MH_I2C_Read... [15:29:26]*** Stop cut motor [15:29:26]*** Cut end [15:29:26]Read from MH i2c: 01 07 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [15:29:26]process_action close_receipt done [15:29:26]requested_data is exist [15:29:26]produce_requested_data [15:29:26]requested_item fm.sn is exist - process it [15:29:26]wFMCommunicate request_size=4 [15:29:26]MH_SAM_APDU [15:29:26]CAPDU: 80 11 00 00 [15:29:26]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:26]Read from MH i2c: E2 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 17 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [15:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:29:26]wFMCommunicate OK [15:29:26]requested_item fd.num is exist - process it [15:29:26]SAM_PROTO_GetFieldsCounters [15:29:26]wFMCommunicate request_size=4 [15:29:26]MH_SAM_APDU [15:29:26]CAPDU: 80 13 00 00 [15:29:26]Write to MH i2c: E2 08 00 3D 0B 80 13 00 00 00 00 00 00 C4 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:26]Read from MH i2c: E2 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 62 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 62 00 3D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [15:29:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:26]wFMCommunicate OK [15:29:26]SAM_PROTO_GetFieldsCounters done [15:29:26]requested_item shift.num is exist - process it [15:29:26]requested_item shift.opened is exist - process it [15:29:26]req_shift_opened [15:29:26]FM_GetShiftState [15:29:26]SAM_PROTO_GetShiftState [15:29:26]wFMCommunicate request_size=4 [15:29:26]MH_SAM_APDU [15:29:26]CAPDU: 80 13 01 00 [15:29:26]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:26]Read from MH i2c: E2 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 0E 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A0 [15:29:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:29:26]wFMCommunicate OK [15:29:26]SAM_PROTO_GetShiftState done [15:29:26]FM_GetShiftState done [15:29:26]req_shift_opened done [15:29:26]requested_item shift.open_date is exist - process it [15:29:26]req_shift_open_date [15:29:26]req_shift_open_date done [15:29:26]produce_requested_data done [15:29:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30942,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:29:26]process_action_free close_receipt [15:29:26]json_value_free [15:29:26]json_value_free done [15:29:26]process_json_proto returns [15:29:26]Send response to host [15:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30942,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:29:26]free response buf [15:29:26]execute_script done [15:29:26]execute_script returns [15:29:26]free content buf [15:29:26]Sock 7.Close socket [15:29:26]Sock 7.Thread stoped [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:39:58]accept exits with 9 [15:39:58]New connection [15:39:58]New thread 3067043172 created [15:39:58]Thread 3066899812 joined [15:39:58]Waiting for new connection... [15:39:58] Sock 9.Parse request [15:39:58]Sock 9.Check first char [15:39:58]Sock 9.First char is OK [15:39:58]request: POST /json_proto HTTP/1.0 [15:39:58]Method: POST [15:39:58]URL: /json_proto [15:39:58]Method is POST - this is cgi request [15:39:58]url: /json_proto [15:39:58]query_string will be loaded in cgi processing [15:39:58]execute_cgi json_proto POST (null) [15:39:58]execute_cgi path=json_proto method=POST [15:39:58]POST find Content-Length [15:39:58]Host: 172.17.51.3:8080 [15:39:58]Content-Length: 677 [15:39:58]Content-Type: application/json [15:39:58] [15:39:58]POST finish read [15:39:58]Found Content-Length = 677 [15:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:58]execute_script... [15:39: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)343369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:58]POST & json_proto [15:39:58]process_json_proto [15:39:58]json parsed OK: [15:39:58]protocol is kg_v1.0 [15:39:58]action value=close_receipt [15:39:58]process_action close_receipt [15:39:58]cmd_close_receipt [15:39:58]MH_GetDate [15:39:58]Write to MH i2c: F0 00 00 3F 0B 39 [15:39:58]Write i2c OK [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: F0 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: F0 09 00 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: F0 09 00 3F 0B 00 4F C7 17 67 04 C1 95 66 96 [15:39:58]GetLastDocTimeStamp 1729610963 [15:39:58]current date 1729611599 [15:39:58]FM_GetShiftState [15:39:58]SAM_PROTO_GetShiftState [15:39:58]wFMCommunicate request_size=4 [15:39:58]MH_SAM_APDU [15:39:58]CAPDU: 80 13 01 00 [15:39:58]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [15:39:58]Write i2c OK [15:39:58]MH_I2C_Read... [15:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:58]Read from MH i2c: E2 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: E2 0E 00 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A2 [15:39:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:39:58]wFMCommunicate OK [15:39:58]SAM_PROTO_GetShiftState done [15:39:58]FM_GetShiftState done [15:39:58]opened in 1729557342 [15:39:58]opened+sec_in_day 1729643742 [15:39:58]quantity*price = 30038 [15:39:58]sum+1 = 30039 [15:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 176 22.10.2024 15:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30943 ФПД: 109356250636218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30943&fm=109356250636218&tin=02508201610067®Number=0000000000186857&sum=30000 [15:39:59]StoreToDocumentArchive [15:39:59]shift 116 fd 30943 [15:39:59]save to /storage/0116/doc_00030943 [15:39:59]save last doc name /storage/0116/doc_00030943 to /storage/kkm_last_doc_name [15:39:59]save OK [15:39:59]Clear old archive folders... [15:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:59]tlvbuf is 00CA4840 [15:39:59]SAM_PROTO_ClearQueue [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 09 00 00 [15:39:59]Write to MH i2c: E2 08 00 4D 0B 80 09 00 00 00 00 00 00 CA [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [15:39:59]RAPDU: 90 00 [15:39:59]wFMCommunicate OK [15:39:59]SAM_PROTO_ClearQueue done [15:39:59]KKMCreateOFDPacket [15:39:59]OFDProtocolAddRootSTLVToBuf [15:39:59]FM_MakeSignedData [15:39:59]FM_MakeSignedData [15:39:59]SAM_PROTO_SignData [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 0D 01 02 [15:39:59]Write to MH i2c: E2 08 00 4E 0B 80 0D 01 02 00 00 00 00 D2 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [15:39:59]RAPDU: 90 00 [15:39:59]wFMCommunicate OK [15:39:59]wFMCommunicate request_size=255 [15:39:59]MH_SAM_APDU [15:39: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4F C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 78 00 00 35 04 06 00 63 [15:39:59]Write to MH i2c: E2 02 01 4F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4F C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 78 00 00 35 04 06 00 63 00 00 C9 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [15:39:59]RAPDU: 90 00 [15:39:59]wFMCommunicate OK [15:39:59]wFMCommunicate request_size=10 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 0D 02 02 05 75 7C 79 1F BA [15:39:59]Write to MH i2c: E2 0D 00 50 0B 80 0D 02 02 05 00 75 7C 79 1F BA 00 00 22 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [15:40:00]RAPDU: 90 00 [15:40:00]wFMCommunicate OK [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 0D 03 02 [15:40:00]Write to MH i2c: E2 08 00 51 0B 80 0D 03 02 00 00 00 00 D7 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0B 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0B 00 51 0B 00 80 3C 78 D0 73 03 00 9A 90 00 EC [15:40:00]RAPDU: 80 3C 78 D0 73 03 00 9A 90 00 [15:40:00]wFMCommunicate OK [15:40:00]SAM_PROTO_SignData done [15:40:00]FM_MakeSignedData done [15:40:00]CreateOFDProtocolMessage [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 11 00 00 [15:40:00]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 17 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [15:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:40:00]wFMCommunicate OK [15:40:00]CreateOFDProtocolMessage done [15:40:00]OFDSenderStorePacket 30943 [15:40:00]StoreOFDPacket docnum=30943 [15:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 48 07 01 E4 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4F C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 78 00 00 35 04 06 00 63 75 7C 79 1F BA 80 3C 78 D0 73 03 00 9A [15:40:00]CheckFolder [15:40:00]dirname=/storage/ofd_packets [15:40:00]CheckFolder done [15:40:00]ProducePacketName [15:40:00]name=ofd_packets/00030943 [15:40:00]NVStorageSaveData ofd_packets/00030943 [15:40:00]File name is /storage/ofd_packets/00030943 [15:40:00]Write 301 bytes [15:40:00]NVStorageSaveData done [15:40:00]OFDSenderStorePacket done [15:40:00]KKMCreateOFDPacket done [15:40:00]NVStorageSaveData kkm_last_timestamp [15:40:00]File name is /storage/kkm_last_timestamp [15:40:00]Write 4 bytes [15:40:00]NVStorageSaveData done [15:40:00]ExternCall_PrintAddStr [15:40:00]wPrintStart [15:40:00]Write to MH i2c: 01 00 00 53 0B 5E [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 53 0B 00 00 00 00 00 FF 0F 73 [15:40:00]RasterBufferAndPrint [15:40:00]line Счет N : (1)343369 [15:40:00]line ИНН: 02508201610067 [15:40:00]line Контрольно-Кассовый Чек [15:40:00]line ПРОДАЖА [15:40:00]line ТРК (МРК, ГНК) : 63 [15:40:00]line Товар: 2710124130 [15:40:00]line Аи-92-К-2 [15:40:00]line 4.490 * 66.90 [15:40:00]line = 300.38 [15:40:00]line НДС 12% НСП 1% [15:40:00]line > о реализуемом товаре [15:40:00]line ОКРУГЛЕНИЕ: -0.38 [15:40:00]line ИТОГО: 300.00 [15:40:00]line Внесено: 300.00 [15:40:00]line СДАЧА: 0.00 [15:40:00]line НСП 1% : 2.66 [15:40:00]line НДС 12% : 31.90 [15:40:00]line Наличными: 300.00 [15:40:00]line Безнал.: 0.00 [15:40:00]line Место: АЗС № 78 "Партнер Нефть" [15:40:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:40:00]line СНО: Общий режим [15:40:00]line Чек 176 22.10.2024 15:39 [15:40:00]line Смена: 116 ФФД: 1.0 [15:40:00]line ЗНМ: 0300000137 [15:40:00]line РНМ: 0000000000186857 [15:40:00]line Версия ККМ: v1.0 [15:40:00]line ФМ: 0000000002094219 [15:40:00]line ФД: 30943 [15:40:00]line ФПД: 109356250636218 [15:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30943&fm=109356250636218&tin=02508201610067®Number=0000000000186857&sum=30000 [15:40:00]OFD Sender: Processing packet 30943 [packets to send 11, broken 10] [15:40:00]ProducePacketName [15:40:00]name=ofd_packets/00030943 [15:40:00]OFD Sender: To server: pG, [15:40:00]CommunicateWithHost lk.salyk.kg:30040 [15:40:00]ConnectInit lk.salyk.kg [15:40:00]written 0, free lines is 4095 [15:40:00]Connected sock=10 [15:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 48 07 01 E4 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4F C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 78 00 00 35 04 06 00 63 75 7C 79 1F BA 80 3C 78 D0 73 03 00 9A [15:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF 39 47 00 F2 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 32 30 39 34 32 31 39 10 04 04 00 DF 78 00 00 F4 03 04 00 CC 71 17 67 B6 04 01 00 00 7F F5 21 44 88 CD 6F DF [15:40:00]CommunicateWithHost err = 0 [15:40:00]CheckOFDResponse [15:40:00]1017 (14) - 77093643461234 [15:40:00]1041 (16) - 0000000002094219 [15:40:00]1040 (4) - 30943 [15:40:00]1012 (4) - 22.10.2024 09:35 [15:40:00]1206 (1) - 0 [15:40:00]OFD Sender: Remove packet 30943 [15:40:00]ProducePacketName [15:40:00]name=ofd_packets/00030943 [15:40:00]NVStorageDeleteData [15:40:00]Write to MH i2c: 01 00 00 7E 0B 89 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 00 0D 9D [15:40:00]RasterBufferAndPrint [15:40:00]line [15:40:00]line [15:40:00]line [15:40:00]line [15:40:00]line [15:40:00]written 0, free lines is 3334 [15:40:00]MH_Cut [15:40:00]Write to MH i2c: D1 01 00 85 0B 01 62 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: D1 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: D1 01 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: D1 01 00 85 0B 00 61 [15:40:00]Write to MH i2c: 01 00 00 86 0B 91 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:01]OFD Sender: No OFD packet to send [15:40:01]*** Cut start [15:40:01]*** Partial cut [15:40:01]*** CUTSNS_PIN = 1 [15:40:01]*** CUTSNS_PIN = 0 [15:40:01]*** Brake cut motor [15:40:02]Read from MH i2c: 01 [15:40:02]MH_I2C_Read... [15:40:02]*** Stop cut motor [15:40:02]*** Cut end [15:40:02]Read from MH i2c: 01 07 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 FF 0F A6 [15:40:02]process_action close_receipt done [15:40:02]requested_data is exist [15:40:02]produce_requested_data [15:40:02]requested_item fm.sn is exist - process it [15:40:02]wFMCommunicate request_size=4 [15:40:02]MH_SAM_APDU [15:40:02]CAPDU: 80 11 00 00 [15:40:02]Write to MH i2c: E2 08 00 87 0B 80 11 00 00 00 00 00 00 0C [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 17 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 17 00 87 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [15:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:40:02]wFMCommunicate OK [15:40:02]requested_item fd.num is exist - process it [15:40:02]SAM_PROTO_GetFieldsCounters [15:40:02]wFMCommunicate request_size=4 [15:40:02]MH_SAM_APDU [15:40:02]CAPDU: 80 13 00 00 [15:40:02]Write to MH i2c: E2 08 00 88 0B 80 13 00 00 00 00 00 00 0F [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 62 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 62 00 88 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:02]wFMCommunicate OK [15:40:02]SAM_PROTO_GetFieldsCounters done [15:40:02]requested_item shift.num is exist - process it [15:40:02]requested_item shift.opened is exist - process it [15:40:02]req_shift_opened [15:40:02]FM_GetShiftState [15:40:02]SAM_PROTO_GetShiftState [15:40:02]wFMCommunicate request_size=4 [15:40:02]MH_SAM_APDU [15:40:02]CAPDU: 80 13 01 00 [15:40:02]Write to MH i2c: E2 08 00 89 0B 80 13 01 00 00 00 00 00 11 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0E 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0E 00 89 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EB [15:40:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:40:02]wFMCommunicate OK [15:40:02]SAM_PROTO_GetShiftState done [15:40:02]FM_GetShiftState done [15:40:02]req_shift_opened done [15:40:02]requested_item shift.open_date is exist - process it [15:40:02]req_shift_open_date [15:40:02]req_shift_open_date done [15:40:02]produce_requested_data done [15:40:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30943,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:40:02]process_action_free close_receipt [15:40:02]json_value_free [15:40:02]json_value_free done [15:40:02]process_json_proto returns [15:40:02]Send response to host [15:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30943,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:40:02]free response buf [15:40:02]execute_script done [15:40:02]execute_script returns [15:40:02]free content buf [15:40:02]Sock 9.Close socket [15:40:02]Sock 9.Thread stoped [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:29]accept exits with 7 [15:42:29]New connection [15:42:29]New thread 3066899812 created [15:42:29]Thread 3067043172 joined [15:42:29]Waiting for new connection... [15:42:29] Sock 7.Parse request [15:42:29]Sock 7.Check first char [15:42:29]Sock 7.First char is OK [15:42:29]request: POST /json_proto HTTP/1.0 [15:42:29]Method: POST [15:42:29]URL: /json_proto [15:42:29]Method is POST - this is cgi request [15:42:29]url: /json_proto [15:42:29]query_string will be loaded in cgi processing [15:42:29]execute_cgi json_proto POST (null) [15:42:29]execute_cgi path=json_proto method=POST [15:42:29]POST find Content-Length [15:42:29]Host: 172.17.51.3:8080 [15:42:29]Content-Length: 678 [15:42:29]Content-Type: application/json [15:42:29] [15:42:29]POST finish read [15:42:29]Found Content-Length = 678 [15:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:29]execute_script... [15: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)343370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:29]POST & json_proto [15:42:29]process_json_proto [15:42:29]json parsed OK: [15:42:29]protocol is kg_v1.0 [15:42:29]action value=close_receipt [15:42:29]process_action close_receipt [15:42:29]cmd_close_receipt [15:42:29]MH_GetDate [15:42:29]Write to MH i2c: F0 00 00 8A 0B 84 [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: F0 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: F0 09 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: F0 09 00 8A 0B 00 E7 C7 17 67 04 C1 95 66 79 [15:42:29]GetLastDocTimeStamp 1729611599 [15:42:29]current date 1729611751 [15:42:29]FM_GetShiftState [15:42:29]SAM_PROTO_GetShiftState [15:42:29]wFMCommunicate request_size=4 [15:42:29]MH_SAM_APDU [15:42:29]CAPDU: 80 13 01 00 [15:42:29]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:29]Read from MH i2c: E2 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 0E 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 ED [15:42:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:42:29]wFMCommunicate OK [15:42:29]SAM_PROTO_GetShiftState done [15:42:29]FM_GetShiftState done [15:42:29]opened in 1729557342 [15:42:29]opened+sec_in_day 1729643742 [15:42:29]quantity*price = 70044 [15:42:29]sum+1 = 70045 [15:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 177 22.10.2024 15:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30944 ФПД: 71397402307983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30944&fm=71397402307983&tin=02508201610067®Number=0000000000186857&sum=70000 [15:42:30]StoreToDocumentArchive [15:42:30]shift 116 fd 30944 [15:42:30]save to /storage/0116/doc_00030944 [15:42:30]save last doc name /storage/0116/doc_00030944 to /storage/kkm_last_doc_name [15:42:30]save OK [15:42:30]Clear old archive folders... [15:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:30]tlvbuf is 00CD6DB0 [15:42:30]SAM_PROTO_ClearQueue [15:42:30]wFMCommunicate request_size=4 [15:42:30]MH_SAM_APDU [15:42:30]CAPDU: 80 09 00 00 [15:42:30]Write to MH i2c: E2 08 00 98 0B 80 09 00 00 00 00 00 00 15 [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [15:42:31]RAPDU: 90 00 [15:42:31]wFMCommunicate OK [15:42:31]SAM_PROTO_ClearQueue done [15:42:31]KKMCreateOFDPacket [15:42:31]OFDProtocolAddRootSTLVToBuf [15:42:31]FM_MakeSignedData [15:42:31]FM_MakeSignedData [15:42:31]SAM_PROTO_SignData [15:42:31]wFMCommunicate request_size=4 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 0D 01 02 [15:42:31]Write to MH i2c: E2 08 00 99 0B 80 0D 01 02 00 00 00 00 1D [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [15:42:31]RAPDU: 90 00 [15:42:31]wFMCommunicate OK [15:42:31]wFMCommunicate request_size=255 [15:42:31]MH_SAM_APDU [15:42: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E7 C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 78 00 00 35 04 06 00 40 [15:42:31]Write to MH i2c: E2 02 01 9A 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E7 C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 78 00 00 35 04 06 00 40 00 00 A7 [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [15:42:31]RAPDU: 90 00 [15:42:31]wFMCommunicate OK [15:42:31]wFMCommunicate request_size=10 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 0D 02 02 05 EF 80 CD 6D 8F [15:42:31]Write to MH i2c: E2 0D 00 9B 0B 80 0D 02 02 05 00 EF 80 CD 6D 8F 00 00 62 [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [15:42:31]RAPDU: 90 00 [15:42:31]wFMCommunicate OK [15:42:31]wFMCommunicate request_size=4 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 0D 03 02 [15:42:31]Write to MH i2c: E2 08 00 9C 0B 80 0D 03 02 00 00 00 00 22 [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 0B 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 0B 00 9C 0B 00 AC 0F 92 63 61 BD A2 38 90 00 CB [15:42:31]RAPDU: AC 0F 92 63 61 BD A2 38 90 00 [15:42:31]wFMCommunicate OK [15:42:31]SAM_PROTO_SignData done [15:42:31]FM_MakeSignedData done [15:42:31]CreateOFDProtocolMessage [15:42:31]wFMCommunicate request_size=4 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 11 00 00 [15:42:31]Write to MH i2c: E2 08 00 9D 0B 80 11 00 00 00 00 00 00 22 [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]OFD Sender: No OFD packet to send [15:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 17 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 17 00 9D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [15:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:42:31]wFMCommunicate OK [15:42:31]CreateOFDProtocolMessage done [15:42:31]OFDSenderStorePacket 30944 [15:42:31]StoreOFDPacket docnum=30944 [15:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8C AB 07 01 CF E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E7 C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 78 00 00 35 04 06 00 40 EF 80 CD 6D 8F AC 0F 92 63 61 BD A2 38 [15:42:31]CheckFolder [15:42:31]dirname=/storage/ofd_packets [15:42:31]CheckFolder done [15:42:31]ProducePacketName [15:42:31]name=ofd_packets/00030944 [15:42:31]NVStorageSaveData ofd_packets/00030944 [15:42:31]File name is /storage/ofd_packets/00030944 [15:42:31]Write 301 bytes [15:42:31]NVStorageSaveData done [15:42:31]OFDSenderStorePacket done [15:42:31]KKMCreateOFDPacket done [15:42:31]NVStorageSaveData kkm_last_timestamp [15:42:31]File name is /storage/kkm_last_timestamp [15:42:31]Write 4 bytes [15:42:31]NVStorageSaveData done [15:42:31]ExternCall_PrintAddStr [15:42:31]wPrintStart [15:42:31]Write to MH i2c: 01 00 00 9E 0B A9 [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: 01 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: 01 07 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 FF 0F BE [15:42:31]RasterBufferAndPrint [15:42:31]line Счет N : (1)343370 [15:42:31]line ИНН: 02508201610067 [15:42:31]line Контрольно-Кассовый Чек [15:42:31]line ПРОДАЖА [15:42:31]line ТРК (МРК, ГНК) : 53 [15:42:31]line Товар: 2710124130 [15:42:31]line Аи-92-К-2 [15:42:31]line 10.470 * 66.90 [15:42:31]line = 700.44 [15:42:31]line НДС 12% НСП 1% [15:42:31]line > о реализуемом товаре [15:42:31]line ОКРУГЛЕНИЕ: -0.44 [15:42:31]line ИТОГО: 700.00 [15:42:31]line Внесено: 700.00 [15:42:31]line СДАЧА: 0.00 [15:42:31]line НСП 1% : 6.20 [15:42:31]line НДС 12% : 74.38 [15:42:31]line Наличными: 700.00 [15:42:31]line Безнал.: 0.00 [15:42:31]line Место: АЗС № 78 "Партнер Нефть" [15:42:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:42:31]line СНО: Общий режим [15:42:31]line Чек 177 22.10.2024 15:42 [15:42:31]line Смена: 116 ФФД: 1.0 [15:42:31]line ЗНМ: 0300000137 [15:42:31]line РНМ: 0000000000186857 [15:42:31]line Версия ККМ: v1.0 [15:42:31]line ФМ: 0000000002094219 [15:42:31]line ФД: 30944 [15:42:31]line ФПД: 71397402307983 [15:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30944&fm=71397402307983&tin=02508201610067®Number=0000000000186857&sum=70000 [15:42:31]OFD Sender: Processing packet 30944 [packets to send 11, broken 10] [15:42:31]ProducePacketName [15:42:31]name=ofd_packets/00030944 [15:42:31]OFD Sender: To server: pG, [15:42:31]CommunicateWithHost lk.salyk.kg:30040 [15:42:31]ConnectInit lk.salyk.kg [15:42:31]written 0, free lines is 4095 [15:42:31]Connected sock=10 [15:42:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8C AB 07 01 CF E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E7 C7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 78 00 00 35 04 06 00 40 EF 80 CD 6D 8F AC 0F 92 63 61 BD A2 38 [15:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 79 B9 47 00 ED 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 32 30 39 34 32 31 39 10 04 04 00 E0 78 00 00 F4 03 04 00 64 72 17 67 B6 04 01 00 00 2D FD AB 64 5C 8A 96 F9 [15:42:32]CommunicateWithHost err = 0 [15:42:32]CheckOFDResponse [15:42:32]1017 (14) - 77093643461234 [15:42:32]1041 (16) - 0000000002094219 [15:42:32]1040 (4) - 30944 [15:42:32]1012 (4) - 22.10.2024 09:37 [15:42:32]1206 (1) - 0 [15:42:32]OFD Sender: Remove packet 30944 [15:42:32]ProducePacketName [15:42:32]name=ofd_packets/00030944 [15:42:32]NVStorageDeleteData [15:42:32]Write to MH i2c: 01 00 00 C9 0B D4 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 07 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 DC 0C C3 [15:42:32]RasterBufferAndPrint [15:42:32]line [15:42:32]line [15:42:32]line [15:42:32]line [15:42:32]line [15:42:32]written 0, free lines is 3298 [15:42:32]MH_Cut [15:42:32]Write to MH i2c: D1 01 00 D0 0B 01 AD [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: D1 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: D1 01 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: D1 01 00 D0 0B 00 AC [15:42:32]Write to MH i2c: 01 00 00 D1 0B DC [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]OFD Sender: No OFD packet to send [15:42:32]*** Cut start [15:42:32]*** Partial cut [15:42:32]*** CUTSNS_PIN = 1 [15:42:33]*** CUTSNS_PIN = 0 [15:42:33]*** Brake cut motor [15:42:33]Read from MH i2c: 01 [15:42:33]MH_I2C_Read... [15:42:33]*** Stop cut motor [15:42:33]*** Cut end [15:42:33]Read from MH i2c: 01 07 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [15:42:33]process_action close_receipt done [15:42:33]requested_data is exist [15:42:33]produce_requested_data [15:42:33]requested_item fm.sn is exist - process it [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 11 00 00 [15:42:33]Write to MH i2c: E2 08 00 D2 0B 80 11 00 00 00 00 00 00 57 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 17 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 17 00 D2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [15:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:42:33]wFMCommunicate OK [15:42:33]requested_item fd.num is exist - process it [15:42:33]SAM_PROTO_GetFieldsCounters [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 13 00 00 [15:42:33]Write to MH i2c: E2 08 00 D3 0B 80 13 00 00 00 00 00 00 5A [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 62 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 62 00 D3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [15:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:33]wFMCommunicate OK [15:42:33]SAM_PROTO_GetFieldsCounters done [15:42:33]requested_item shift.num is exist - process it [15:42:33]requested_item shift.opened is exist - process it [15:42:33]req_shift_opened [15:42:33]FM_GetShiftState [15:42:33]SAM_PROTO_GetShiftState [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 13 01 00 [15:42:33]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 0E 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 36 [15:42:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:42:33]wFMCommunicate OK [15:42:33]SAM_PROTO_GetShiftState done [15:42:33]FM_GetShiftState done [15:42:33]req_shift_opened done [15:42:33]requested_item shift.open_date is exist - process it [15:42:33]req_shift_open_date [15:42:33]req_shift_open_date done [15:42:33]produce_requested_data done [15:42:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30944,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:42:33]process_action_free close_receipt [15:42:33]json_value_free [15:42:33]json_value_free done [15:42:33]process_json_proto returns [15:42:33]Send response to host [15:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30944,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:42:33]free response buf [15:42:33]execute_script done [15:42:33]execute_script returns [15:42:33]free content buf [15:42:33]Sock 7.Close socket [15:42:33]Sock 7.Thread stoped [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:53]accept exits with 9 [15:47:53]New connection [15:47:53]New thread 3067043172 created [15:47:53]Thread 3066899812 joined [15:47:53]Waiting for new connection... [15:47:53] Sock 9.Parse request [15:47:53]Sock 9.Check first char [15:47:53]Sock 9.First char is OK [15:47:53]request: POST /json_proto HTTP/1.0 [15:47:53]Method: POST [15:47:53]URL: /json_proto [15:47:53]Method is POST - this is cgi request [15:47:53]url: /json_proto [15:47:53]query_string will be loaded in cgi processing [15:47:53]execute_cgi json_proto POST (null) [15:47:53]execute_cgi path=json_proto method=POST [15:47:53]POST find Content-Length [15:47:53]Host: 172.17.51.3:8080 [15:47:53]Content-Length: 750 [15:47:53]Content-Type: application/json [15:47:53] [15:47:53]POST finish read [15:47:53]Found Content-Length = 750 [15:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 6.040, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:53]execute_script... [15:47: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)343371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 6.040, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:53]POST & json_proto [15:47:53]process_json_proto [15:47:53]json parsed OK: [15:47:53]protocol is kg_v1.0 [15:47:53]action value=close_receipt [15:47:53]process_action close_receipt [15:47:53]cmd_close_receipt [15:47:53]MH_GetDate [15:47:53]Write to MH i2c: F0 00 00 D5 0B CF [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: F0 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: F0 09 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: F0 09 00 D5 0B 00 2A C9 17 67 04 C1 95 66 09 [15:47:53]GetLastDocTimeStamp 1729611751 [15:47:53]current date 1729612074 [15:47:53]FM_GetShiftState [15:47:53]SAM_PROTO_GetShiftState [15:47:53]wFMCommunicate request_size=4 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 13 01 00 [15:47:53]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 0E 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 38 [15:47:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:47:53]wFMCommunicate OK [15:47:53]SAM_PROTO_GetShiftState done [15:47:53]FM_GetShiftState done [15:47:53]opened in 1729557342 [15:47:53]opened+sec_in_day 1729643742 [15:47:53]quantity*price = 0 [15:47:53]sum+1 = 1 [15:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 178 22.10.2024 15:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30945 ФПД: 83438994656395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30945&fm=83438994656395&tin=02508201610067®Number=0000000000186857&sum=0 [15:47:54]StoreToDocumentArchive [15:47:54]shift 116 fd 30945 [15:47:54]save to /storage/0116/doc_00030945 [15:47:54]save last doc name /storage/0116/doc_00030945 to /storage/kkm_last_doc_name [15:47:54]save OK [15:47:54]Clear old archive folders... [15:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:47:54]tlvbuf is 00D439E0 [15:47:54]SAM_PROTO_ClearQueue [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 09 00 00 [15:47:54]Write to MH i2c: E2 08 00 E3 0B 80 09 00 00 00 00 00 00 60 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_ClearQueue done [15:47:54]KKMCreateOFDPacket [15:47:54]OFDProtocolAddRootSTLVToBuf [15:47:54]FM_MakeSignedData [15:47:54]FM_MakeSignedData [15:47:54]SAM_PROTO_SignData [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 01 02 [15:47:54]Write to MH i2c: E2 08 00 E4 0B 80 0D 01 02 00 00 00 00 68 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=255 [15:47:54]MH_SAM_APDU [15:47: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 32 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 78 00 00 35 04 06 00 4B E3 27 A3 [15:47:54]Write to MH i2c: E2 02 01 E5 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 78 00 00 35 04 06 00 4B E3 27 A3 00 00 5E [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=7 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 02 02 02 0C 8B [15:47:54]Write to MH i2c: E2 0A 00 E6 0B 80 0D 02 02 02 00 0C 8B 00 00 06 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 03 02 [15:47:54]Write to MH i2c: E2 08 00 E7 0B 80 0D 03 02 00 00 00 00 6D [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 0B 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 0B 00 E7 0B 00 88 1C 8E E1 4B 75 EC 59 90 00 86 [15:47:55]RAPDU: 88 1C 8E E1 4B 75 EC 59 90 00 [15:47:55]wFMCommunicate OK [15:47:55]SAM_PROTO_SignData done [15:47:55]FM_MakeSignedData done [15:47:55]CreateOFDProtocolMessage [15:47:55]wFMCommunicate request_size=4 [15:47:55]MH_SAM_APDU [15:47:55]CAPDU: 80 11 00 00 [15:47:55]Write to MH i2c: E2 08 00 E8 0B 80 11 00 00 00 00 00 00 6D [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 17 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 17 00 E8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [15:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:47:55]wFMCommunicate OK [15:47:55]CreateOFDProtocolMessage done [15:47:55]OFDSenderStorePacket 30945 [15:47:55]StoreOFDPacket docnum=30945 [15:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1A F2 04 01 15 CB 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 32 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 78 00 00 35 04 06 00 4B E3 27 A3 0C 8B 88 1C 8E E1 4B 75 EC 59 [15:47:55]CheckFolder [15:47:55]dirname=/storage/ofd_packets [15:47:55]CheckFolder done [15:47:55]ProducePacketName [15:47:55]name=ofd_packets/00030945 [15:47:55]NVStorageSaveData ofd_packets/00030945 [15:47:55]File name is /storage/ofd_packets/00030945 [15:47:55]Write 298 bytes [15:47:55]NVStorageSaveData done [15:47:55]OFDSenderStorePacket done [15:47:55]KKMCreateOFDPacket done [15:47:55]NVStorageSaveData kkm_last_timestamp [15:47:55]File name is /storage/kkm_last_timestamp [15:47:55]Write 4 bytes [15:47:55]NVStorageSaveData done [15:47:55]ExternCall_PrintAddStr [15:47:55]wPrintStart [15:47:55]Write to MH i2c: 01 00 00 E9 0B F4 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 FF 0F 09 [15:47:55]RasterBufferAndPrint [15:47:55]line Счет N : (1)343371 [15:47:55]line ИНН: 02508201610067 [15:47:55]line Контрольно-Кассовый Чек [15:47:55]line ПРОДАЖА [15:47:55]line ТРК (МРК, ГНК) : 64 [15:47:55]line Товар: 2710194210 [15:47:55]line ДТ-К-2 [15:47:55]line 6.040 * 0.00 [15:47:55]line = 0.00 [15:47:55]line НДС 12% НСП 1% [15:47:55]line > о реализуемом товаре [15:47:55]line ИТОГО: 0.00 [15:47:55]line НСП 1% : 0.00 [15:47:55]line НДС 12% : 0.00 [15:47:55]line Наличными: 0.00 [15:47:55]line Безнал.: 0.00 [15:47:55]line Место: АЗС № 78 "Партнер Нефть" [15:47:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:47:55]line СНО: Общий режим [15:47:55]line Чек 178 22.10.2024 15:47 [15:47:55]line Смена: 116 ФФД: 1.0 [15:47:55]line ЗНМ: 0300000137 [15:47:55]line РНМ: 0000000000186857 [15:47:55]line Версия ККМ: v1.0 [15:47:55]line Талоны: ТК ГПНА Online [15:47:55]line 30132031 [15:47:55]line ФМ: 0000000002094219 [15:47:55]line ФД: 30945 [15:47:55]line ФПД: 83438994656395 [15:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30945&fm=83438994656395&tin=02508201610067®Number=0000000000186857&sum=0 [15:47:55]OFD Sender: Processing packet 30945 [packets to send 11, broken 10] [15:47:55]ProducePacketName [15:47:55]name=ofd_packets/00030945 [15:47:55]OFD Sender: To server: pG, [15:47:55]CommunicateWithHost lk.salyk.kg:30040 [15:47:55]ConnectInit lk.salyk.kg [15:47:55]written 0, free lines is 4095 [15:47:55]Connected sock=10 [15:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1A F2 04 01 15 CB 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 32 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 78 00 00 35 04 06 00 4B E3 27 A3 0C 8B 88 1C 8E E1 4B 75 EC 59 [15:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1B D1 47 00 7E 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 32 30 39 34 32 31 39 10 04 04 00 E1 78 00 00 F4 03 04 00 A7 73 17 67 B6 04 01 00 00 F5 7A C2 30 85 FA 6B FD [15:47:55]CommunicateWithHost err = 0 [15:47:55]CheckOFDResponse [15:47:55]1017 (14) - 77093643461234 [15:47:55]1041 (16) - 0000000002094219 [15:47:55]1040 (4) - 30945 [15:47:55]1012 (4) - 22.10.2024 09:43 [15:47:55]1206 (1) - 0 [15:47:55]OFD Sender: Remove packet 30945 [15:47:55]ProducePacketName [15:47:55]name=ofd_packets/00030945 [15:47:55]NVStorageDeleteData [15:47:55]Write to MH i2c: 01 00 00 13 0C 1F [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 EF 0C 21 [15:47:55]RasterBufferAndPrint [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]written 0, free lines is 3317 [15:47:55]MH_Cut [15:47:55]Write to MH i2c: D1 01 00 1A 0C 01 F8 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 01 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 01 00 1A 0C 00 F7 [15:47:55]Write to MH i2c: 01 00 00 1B 0C 27 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:56]OFD Sender: No OFD packet to send [15:47:56]*** Cut start [15:47:56]*** Partial cut [15:47:56]*** CUTSNS_PIN = 1 [15:47:56]*** CUTSNS_PIN = 0 [15:47:56]*** Brake cut motor [15:47:57]Read from MH i2c: 01 [15:47:57]MH_I2C_Read... [15:47:57]*** Stop cut motor [15:47:57]*** Cut end [15:47:57]Read from MH i2c: 01 07 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 1B 0C 00 00 00 00 00 FF 0F 3C [15:47:57]process_action close_receipt done [15:47:57]requested_data is exist [15:47:57]produce_requested_data [15:47:57]requested_item fm.sn is exist - process it [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 11 00 00 [15:47:57]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [15:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:47:57]wFMCommunicate OK [15:47:57]requested_item fd.num is exist - process it [15:47:57]SAM_PROTO_GetFieldsCounters [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 00 00 [15:47:57]Write to MH i2c: E2 08 00 1D 0C 80 13 00 00 00 00 00 00 A5 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 62 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 62 00 1D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetFieldsCounters done [15:47:57]requested_item shift.num is exist - process it [15:47:57]requested_item shift.opened is exist - process it [15:47:57]req_shift_opened [15:47:57]FM_GetShiftState [15:47:57]SAM_PROTO_GetShiftState [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 01 00 [15:47:57]Write to MH i2c: E2 08 00 1E 0C 80 13 01 00 00 00 00 00 A7 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 1E 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 81 [15:47:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetShiftState done [15:47:57]FM_GetShiftState done [15:47:57]req_shift_opened done [15:47:57]requested_item shift.open_date is exist - process it [15:47:57]req_shift_open_date [15:47:57]req_shift_open_date done [15:47:57]produce_requested_data done [15:47:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30945,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:47:57]process_action_free close_receipt [15:47:57]json_value_free [15:47:57]json_value_free done [15:47:57]process_json_proto returns [15:47:57]Send response to host [15:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30945,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:47:57]free response buf [15:47:57]execute_script done [15:47:57]execute_script returns [15:47:57]free content buf [15:47:57]Sock 9.Close socket [15:47:57]Sock 9.Thread stoped [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:51]accept exits with 7 [15:50:51]New connection [15:50:51]New thread 3066899812 created [15:50:51]Thread 3067043172 joined [15:50:51]Waiting for new connection... [15:50:51] Sock 7.Parse request [15:50:51]Sock 7.Check first char [15:50:51]Sock 7.First char is OK [15:50:51]request: POST /json_proto HTTP/1.0 [15:50:51]Method: POST [15:50:51]URL: /json_proto [15:50:51]Method is POST - this is cgi request [15:50:51]url: /json_proto [15:50:51]query_string will be loaded in cgi processing [15:50:51]execute_cgi json_proto POST (null) [15:50:51]execute_cgi path=json_proto method=POST [15:50:51]POST find Content-Length [15:50:51]Host: 172.17.51.3:8080 [15:50:51]Content-Length: 751 [15:50:51]Content-Type: application/json [15:50:51] [15:50:51]POST finish read [15:50:51]Found Content-Length = 751 [15:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:51]execute_script... [15:50: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)343372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:51]POST & json_proto [15:50:51]process_json_proto [15:50:51]json parsed OK: [15:50:51]protocol is kg_v1.0 [15:50:51]action value=close_receipt [15:50:51]process_action close_receipt [15:50:51]cmd_close_receipt [15:50:51]MH_GetDate [15:50:51]Write to MH i2c: F0 00 00 1F 0C 1A [15:50:51]Write i2c OK [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: F0 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: F0 09 00 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: F0 09 00 1F 0C 00 DC C9 17 67 04 C1 95 66 06 [15:50:51]GetLastDocTimeStamp 1729612074 [15:50:51]current date 1729612252 [15:50:51]FM_GetShiftState [15:50:51]SAM_PROTO_GetShiftState [15:50:51]wFMCommunicate request_size=4 [15:50:51]MH_SAM_APDU [15:50:51]CAPDU: 80 13 01 00 [15:50:51]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [15:50:51]Write i2c OK [15:50:51]MH_I2C_Read... [15:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:51]Read from MH i2c: E2 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: E2 0E 00 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 83 [15:50:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:50:51]wFMCommunicate OK [15:50:51]SAM_PROTO_GetShiftState done [15:50:51]FM_GetShiftState done [15:50:51]opened in 1729557342 [15:50:51]opened+sec_in_day 1729643742 [15:50:51]quantity*price = 0 [15:50:51]sum+1 = 1 [15:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 179 22.10.2024 15:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30946 ФПД: 9684840781055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155052&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30946&fm=9684840781055&tin=02508201610067®Number=0000000000186857&sum=0 [15:50:52]StoreToDocumentArchive [15:50:52]shift 116 fd 30946 [15:50:52]save to /storage/0116/doc_00030946 [15:50:52]save last doc name /storage/0116/doc_00030946 to /storage/kkm_last_doc_name [15:50:52]save OK [15:50:52]Clear old archive folders... [15:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:52]tlvbuf is 00D50C10 [15:50:52]SAM_PROTO_ClearQueue [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 09 00 00 [15:50:52]Write to MH i2c: E2 08 00 2D 0C 80 09 00 00 00 00 00 00 AB [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 03 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [15:50:52]RAPDU: 90 00 [15:50:52]wFMCommunicate OK [15:50:52]SAM_PROTO_ClearQueue done [15:50:52]KKMCreateOFDPacket [15:50:52]OFDProtocolAddRootSTLVToBuf [15:50:52]FM_MakeSignedData [15:50:52]FM_MakeSignedData [15:50:52]SAM_PROTO_SignData [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 0D 01 02 [15:50:52]Write to MH i2c: E2 08 00 2E 0C 80 0D 01 02 00 00 00 00 B3 [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 03 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [15:50:52]RAPDU: 90 00 [15:50:52]wFMCommunicate OK [15:50:52]wFMCommunicate request_size=255 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DC C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 78 00 00 35 04 06 00 08 CE ED 7E [15:50:52]Write to MH i2c: E2 02 01 2F 0C 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DC C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 78 00 00 35 04 06 00 08 CE ED 7E 00 00 D3 [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]wFMCommunicate request_size=7 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 0D 02 02 02 94 FF [15:50:53]Write to MH i2c: E2 0A 00 30 0C 80 0D 02 02 02 00 94 FF 00 00 4D [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 0D 03 02 [15:50:53]Write to MH i2c: E2 08 00 31 0C 80 0D 03 02 00 00 00 00 B8 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0B 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0B 00 31 0C 00 3B 95 E6 54 E3 30 95 C2 90 00 2D [15:50:53]RAPDU: 3B 95 E6 54 E3 30 95 C2 90 00 [15:50:53]wFMCommunicate OK [15:50:53]SAM_PROTO_SignData done [15:50:53]FM_MakeSignedData done [15:50:53]CreateOFDProtocolMessage [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 11 00 00 [15:50:53]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 17 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [15:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:50:53]wFMCommunicate OK [15:50:53]CreateOFDProtocolMessage done [15:50:53]OFDSenderStorePacket 30946 [15:50:53]StoreOFDPacket docnum=30946 [15:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 9D 4A 04 01 25 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DC C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 78 00 00 35 04 06 00 08 CE ED 7E 94 FF 3B 95 E6 54 E3 30 95 C2 [15:50:53]CheckFolder [15:50:53]dirname=/storage/ofd_packets [15:50:53]CheckFolder done [15:50:53]ProducePacketName [15:50:53]name=ofd_packets/00030946 [15:50:53]NVStorageSaveData ofd_packets/00030946 [15:50:53]File name is /storage/ofd_packets/00030946 [15:50:53]Write 298 bytes [15:50:53]NVStorageSaveData done [15:50:53]OFDSenderStorePacket done [15:50:53]KKMCreateOFDPacket done [15:50:53]NVStorageSaveData kkm_last_timestamp [15:50:53]File name is /storage/kkm_last_timestamp [15:50:53]Write 4 bytes [15:50:53]NVStorageSaveData done [15:50:53]ExternCall_PrintAddStr [15:50:53]wPrintStart [15:50:53]Write to MH i2c: 01 00 00 33 0C 3F [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 07 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 FF 0F 54 [15:50:53]RasterBufferAndPrint [15:50:53]line Счет N : (1)343372 [15:50:53]line ИНН: 02508201610067 [15:50:53]line Контрольно-Кассовый Чек [15:50:53]line ПРОДАЖА [15:50:53]line ТРК (МРК, ГНК) : 34 [15:50:53]line Товар: 2710194210 [15:50:53]line ДТ-К-2 [15:50:53]line 40.000 * 0.00 [15:50:53]line = 0.00 [15:50:53]line НДС 12% НСП 1% [15:50:53]line > о реализуемом товаре [15:50:53]line ИТОГО: 0.00 [15:50:53]line НСП 1% : 0.00 [15:50:53]line НДС 12% : 0.00 [15:50:53]line Наличными: 0.00 [15:50:53]line Безнал.: 0.00 [15:50:53]line Место: АЗС № 78 "Партнер Нефть" [15:50:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:50:53]line СНО: Общий режим [15:50:53]line Чек 179 22.10.2024 15:50 [15:50:53]line Смена: 116 ФФД: 1.0 [15:50:53]line ЗНМ: 0300000137 [15:50:53]line РНМ: 0000000000186857 [15:50:53]line Версия ККМ: v1.0 [15:50:53]line Талоны: ТК ГПНА Online [15:50:53]line 30132031 [15:50:53]line ФМ: 0000000002094219 [15:50:53]line ФД: 30946 [15:50:53]line ФПД: 9684840781055 [15:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155052&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30946&fm=9684840781055&tin=02508201610067®Number=0000000000186857&sum=0 [15:50:53]OFD Sender: Processing packet 30946 [packets to send 11, broken 10] [15:50:53]ProducePacketName [15:50:53]name=ofd_packets/00030946 [15:50:53]OFD Sender: To server: pG, [15:50:53]CommunicateWithHost lk.salyk.kg:30040 [15:50:53]ConnectInit lk.salyk.kg [15:50:53]written 0, free lines is 4095 [15:50:53]Connected sock=10 [15:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 9D 4A 04 01 25 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DC C9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 78 00 00 35 04 06 00 08 CE ED 7E 94 FF 3B 95 E6 54 E3 30 95 C2 [15:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 79 58 47 00 23 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 78 00 00 F4 03 04 00 5A 74 17 67 B6 04 01 00 00 4B 7E A8 3E 2C FB 8B 20 [15:50:53]CommunicateWithHost err = 0 [15:50:53]CheckOFDResponse [15:50:53]1017 (14) - 77093643461234 [15:50:53]1041 (16) - 0000000002094219 [15:50:53]1040 (4) - 30946 [15:50:53]1012 (4) - 22.10.2024 09:46 [15:50:53]1206 (1) - 0 [15:50:53]OFD Sender: Remove packet 30946 [15:50:53]ProducePacketName [15:50:53]name=ofd_packets/00030946 [15:50:53]NVStorageDeleteData [15:50:54]Write to MH i2c: 01 00 00 5D 0C 69 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 F2 0C 6E [15:50:54]RasterBufferAndPrint [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]written 0, free lines is 3320 [15:50:54]MH_Cut [15:50:54]Write to MH i2c: D1 01 00 64 0C 01 42 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 01 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 01 00 64 0C 00 41 [15:50:54]Write to MH i2c: 01 00 00 65 0C 71 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]OFD Sender: No OFD packet to send [15:50:54]*** Cut start [15:50:54]*** Partial cut [15:50:54]*** CUTSNS_PIN = 1 [15:50:54]*** CUTSNS_PIN = 0 [15:50:55]*** Brake cut motor [15:50:55]Read from MH i2c: 01 [15:50:55]MH_I2C_Read... [15:50:55]*** Stop cut motor [15:50:55]*** Cut end [15:50:55]Read from MH i2c: 01 07 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: 01 07 00 65 0C 00 00 00 00 00 FF 0F 86 [15:50:55]process_action close_receipt done [15:50:55]requested_data is exist [15:50:55]produce_requested_data [15:50:55]requested_item fm.sn is exist - process it [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 11 00 00 [15:50:55]Write to MH i2c: E2 08 00 66 0C 80 11 00 00 00 00 00 00 EC [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 17 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 17 00 66 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [15:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:50:55]wFMCommunicate OK [15:50:55]requested_item fd.num is exist - process it [15:50:55]SAM_PROTO_GetFieldsCounters [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 13 00 00 [15:50:55]Write to MH i2c: E2 08 00 67 0C 80 13 00 00 00 00 00 00 EF [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 62 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 62 00 67 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [15:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:55]wFMCommunicate OK [15:50:55]SAM_PROTO_GetFieldsCounters done [15:50:55]requested_item shift.num is exist - process it [15:50:55]requested_item shift.opened is exist - process it [15:50:55]req_shift_opened [15:50:55]FM_GetShiftState [15:50:55]SAM_PROTO_GetShiftState [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 13 01 00 [15:50:55]Write to MH i2c: E2 08 00 68 0C 80 13 01 00 00 00 00 00 F1 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 0E 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 0E 00 68 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CB [15:50:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:50:55]wFMCommunicate OK [15:50:55]SAM_PROTO_GetShiftState done [15:50:55]FM_GetShiftState done [15:50:55]req_shift_opened done [15:50:55]requested_item shift.open_date is exist - process it [15:50:55]req_shift_open_date [15:50:55]req_shift_open_date done [15:50:55]produce_requested_data done [15:50:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30946,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:50:55]process_action_free close_receipt [15:50:55]json_value_free [15:50:55]json_value_free done [15:50:55]process_json_proto returns [15:50:55]Send response to host [15:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30946,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:50:55]free response buf [15:50:55]execute_script done [15:50:55]execute_script returns [15:50:55]free content buf [15:50:55]Sock 7.Close socket [15:50:55]Sock 7.Thread stoped [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:25]accept exits with 9 [15:53:25]New connection [15:53:25]New thread 3067043172 created [15:53:25]Thread 3066899812 joined [15:53:25]Waiting for new connection... [15:53:25] Sock 9.Parse request [15:53:25]Sock 9.Check first char [15:53:25]Sock 9.First char is OK [15:53:25]request: POST /json_proto HTTP/1.0 [15:53:25]Method: POST [15:53:25]URL: /json_proto [15:53:25]Method is POST - this is cgi request [15:53:25]url: /json_proto [15:53:25]query_string will be loaded in cgi processing [15:53:25]execute_cgi json_proto POST (null) [15:53:25]execute_cgi path=json_proto method=POST [15:53:25]POST find Content-Length [15:53:25]Host: 172.17.51.3:8080 [15:53:25]Content-Length: 688 [15:53:25]Content-Type: application/json [15:53:25] [15:53:25]POST finish read [15:53:25]Found Content-Length = 688 [15:53:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:53:25]execute_script... [15:53: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)343373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:53:25]POST & json_proto [15:53:25]process_json_proto [15:53:25]json parsed OK: [15:53:25]protocol is kg_v1.0 [15:53:25]action value=close_receipt [15:53:25]process_action close_receipt [15:53:25]cmd_close_receipt [15:53:25]MH_GetDate [15:53:25]Write to MH i2c: F0 00 00 69 0C 64 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: F0 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: F0 09 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: F0 09 00 69 0C 00 76 CA 17 67 04 C1 95 66 EB [15:53:25]GetLastDocTimeStamp 1729612252 [15:53:25]current date 1729612406 [15:53:25]FM_GetShiftState [15:53:25]SAM_PROTO_GetShiftState [15:53:25]wFMCommunicate request_size=4 [15:53:25]MH_SAM_APDU [15:53:25]CAPDU: 80 13 01 00 [15:53:25]Write to MH i2c: E2 08 00 6A 0C 80 13 01 00 00 00 00 00 F3 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:25]Read from MH i2c: E2 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 0E 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 0E 00 6A 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CD [15:53:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:53:25]wFMCommunicate OK [15:53:25]SAM_PROTO_GetShiftState done [15:53:25]FM_GetShiftState done [15:53:25]opened in 1729557342 [15:53:25]opened+sec_in_day 1729643742 [15:53:25]quantity*price = 150076 [15:53:25]sum+1 = 150078 [15:53:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 180 22.10.2024 15:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30947 ФПД: 268420250493653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30947&fm=268420250493653&tin=02508201610067®Number=0000000000186857&sum=150000 [15:53:26]StoreToDocumentArchive [15:53:26]shift 116 fd 30947 [15:53:26]save to /storage/0116/doc_00030947 [15:53:26]save last doc name /storage/0116/doc_00030947 to /storage/kkm_last_doc_name [15:53:26]save OK [15:53:26]Clear old archive folders... [15:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:53:26]tlvbuf is B6DBE0E0 [15:53:26]SAM_PROTO_ClearQueue [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 09 00 00 [15:53:26]Write to MH i2c: E2 08 00 77 0C 80 09 00 00 00 00 00 00 F5 [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [15:53:26]RAPDU: 90 00 [15:53:26]wFMCommunicate OK [15:53:26]SAM_PROTO_ClearQueue done [15:53:26]KKMCreateOFDPacket [15:53:26]OFDProtocolAddRootSTLVToBuf [15:53:26]FM_MakeSignedData [15:53:26]FM_MakeSignedData [15:53:26]SAM_PROTO_SignData [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 0D 01 02 [15:53:26]Write to MH i2c: E2 08 00 78 0C 80 0D 01 02 00 00 00 00 FD [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [15:53:26]RAPDU: 90 00 [15:53:26]wFMCommunicate OK [15:53:26]wFMCommunicate request_size=255 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B4 00 00 00 F4 03 04 00 76 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 78 00 [15:53:26]Write to MH i2c: E2 02 01 79 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B4 00 00 00 F4 03 04 00 76 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 78 00 00 00 EA [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [15:53:26]RAPDU: 90 00 [15:53:26]wFMCommunicate OK [15:53:26]wFMCommunicate request_size=16 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F4 20 75 AE 62 D5 [15:53:26]Write to MH i2c: E2 13 00 7A 0C 80 0D 02 02 0B 00 00 35 04 06 00 F4 20 75 AE 62 D5 00 00 C3 [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [15:53:26]RAPDU: 90 00 [15:53:26]wFMCommunicate OK [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 0D 03 02 [15:53:26]Write to MH i2c: E2 08 00 7B 0C 80 0D 03 02 00 00 00 00 02 [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0B 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0B 00 7B 0C 00 34 EC 37 60 2B EF 70 59 90 00 9D [15:53:27]RAPDU: 34 EC 37 60 2B EF 70 59 90 00 [15:53:27]wFMCommunicate OK [15:53:27]SAM_PROTO_SignData done [15:53:27]FM_MakeSignedData done [15:53:27]CreateOFDProtocolMessage [15:53:27]wFMCommunicate request_size=4 [15:53:27]MH_SAM_APDU [15:53:27]CAPDU: 80 11 00 00 [15:53:27]Write to MH i2c: E2 08 00 7C 0C 80 11 00 00 00 00 00 00 02 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 17 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 17 00 7C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 50 [15:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:53:27]wFMCommunicate OK [15:53:27]CreateOFDProtocolMessage done [15:53:27]OFDSenderStorePacket 30947 [15:53:27]StoreOFDPacket docnum=30947 [15:53:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 69 BA 0D 01 CD 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B4 00 00 00 F4 03 04 00 76 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 78 00 00 35 04 06 00 F4 20 75 AE 62 D5 34 EC 37 60 2B EF 70 59 [15:53:27]CheckFolder [15:53:27]dirname=/storage/ofd_packets [15:53:27]CheckFolder done [15:53:27]ProducePacketName [15:53:27]name=ofd_packets/00030947 [15:53:27]NVStorageSaveData ofd_packets/00030947 [15:53:27]File name is /storage/ofd_packets/00030947 [15:53:27]Write 307 bytes [15:53:27]NVStorageSaveData done [15:53:27]OFDSenderStorePacket done [15:53:27]KKMCreateOFDPacket done [15:53:27]NVStorageSaveData kkm_last_timestamp [15:53:27]File name is /storage/kkm_last_timestamp [15:53:27]Write 4 bytes [15:53:27]NVStorageSaveData done [15:53:27]ExternCall_PrintAddStr [15:53:27]wPrintStart [15:53:27]Write to MH i2c: 01 00 00 7D 0C 89 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 7D 0C 00 00 00 00 00 FF 0F 9E [15:53:27]RasterBufferAndPrint [15:53:27]line Счет N : (1)343373 [15:53:27]line ИНН: 02508201610067 [15:53:27]line Контрольно-Кассовый Чек [15:53:27]line ПРОДАЖА [15:53:27]line ТРК (МРК, ГНК) : 51 [15:53:27]line Товар: 2710194210 [15:53:27]line D-ENERGY Дт-К-2 [15:53:27]line 19.440 * 77.20 [15:53:27]line = 1500.77 [15:53:27]line НДС 12% НСП 1% [15:53:27]line > о реализуемом товаре [15:53:27]line ОКРУГЛЕНИЕ: -0.77 [15:53:27]line ИТОГО: 1500.00 [15:53:27]line Внесено: 1500.00 [15:53:27]line СДАЧА: 0.00 [15:53:27]line НСП 1% : 13.28 [15:53:27]line НДС 12% : 159.37 [15:53:27]line Наличными: 1500.00 [15:53:27]line Безнал.: 0.00 [15:53:27]line Место: АЗС № 78 "Партнер Нефть" [15:53:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:53:27]line СНО: Общий режим [15:53:27]line Чек 180 22.10.2024 15:53 [15:53:27]line Смена: 116 ФФД: 1.0 [15:53:27]line ЗНМ: 0300000137 [15:53:27]line РНМ: 0000000000186857 [15:53:27]line Версия ККМ: v1.0 [15:53:27]line ФМ: 0000000002094219 [15:53:27]line ФД: 30947 [15:53:27]line ФПД: 268420250493653 [15:53:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30947&fm=268420250493653&tin=02508201610067®Number=0000000000186857&sum=150000 [15:53:27]OFD Sender: Processing packet 30947 [packets to send 11, broken 10] [15:53:27]ProducePacketName [15:53:27]name=ofd_packets/00030947 [15:53:27]OFD Sender: To server: pG, [15:53:27]CommunicateWithHost lk.salyk.kg:30040 [15:53:27]ConnectInit lk.salyk.kg [15:53:27]written 0, free lines is 4095 [15:53:27]Connected sock=10 [15:53:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 69 BA 0D 01 CD 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B4 00 00 00 F4 03 04 00 76 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 78 00 00 35 04 06 00 F4 20 75 AE 62 D5 34 EC 37 60 2B EF 70 59 [15:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 52 31 47 00 8A 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 78 00 00 F4 03 04 00 F3 74 17 67 B6 04 01 00 00 C0 96 C1 E2 FF F8 4F A1 [15:53:27]CommunicateWithHost err = 0 [15:53:27]CheckOFDResponse [15:53:27]1017 (14) - 77093643461234 [15:53:27]1041 (16) - 0000000002094219 [15:53:27]1040 (4) - 30947 [15:53:27]1012 (4) - 22.10.2024 09:48 [15:53:27]1206 (1) - 0 [15:53:27]OFD Sender: Remove packet 30947 [15:53:27]ProducePacketName [15:53:27]name=ofd_packets/00030947 [15:53:27]NVStorageDeleteData [15:53:27]Write to MH i2c: 01 00 00 A8 0C B4 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 A8 0C 00 00 00 00 00 E9 0C B0 [15:53:27]RasterBufferAndPrint [15:53:27]line [15:53:27]line [15:53:27]line [15:53:27]line [15:53:27]line [15:53:27]written 0, free lines is 3311 [15:53:27]MH_Cut [15:53:27]Write to MH i2c: D1 01 00 AF 0C 01 8D [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: D1 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: D1 01 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: D1 01 00 AF 0C 00 8C [15:53:27]Write to MH i2c: 01 00 00 B0 0C BC [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:28]OFD Sender: No OFD packet to send [15:53:28]*** Cut start [15:53:28]*** Partial cut [15:53:28]*** CUTSNS_PIN = 1 [15:53:28]*** CUTSNS_PIN = 0 [15:53:28]*** Brake cut motor [15:53:29]Read from MH i2c: 01 [15:53:29]MH_I2C_Read... [15:53:29]*** Stop cut motor [15:53:29]*** Cut end [15:53:29]Read from MH i2c: 01 07 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 07 00 B0 0C 00 00 00 00 00 FF 0F D1 [15:53:29]process_action close_receipt done [15:53:29]requested_data is exist [15:53:29]produce_requested_data [15:53:29]requested_item fm.sn is exist - process it [15:53:29]wFMCommunicate request_size=4 [15:53:29]MH_SAM_APDU [15:53:29]CAPDU: 80 11 00 00 [15:53:29]Write to MH i2c: E2 08 00 B1 0C 80 11 00 00 00 00 00 00 37 [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:29]Read from MH i2c: E2 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 17 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 17 00 B1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [15:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:53:29]wFMCommunicate OK [15:53:29]requested_item fd.num is exist - process it [15:53:29]SAM_PROTO_GetFieldsCounters [15:53:29]wFMCommunicate request_size=4 [15:53:29]MH_SAM_APDU [15:53:29]CAPDU: 80 13 00 00 [15:53:29]Write to MH i2c: E2 08 00 B2 0C 80 13 00 00 00 00 00 00 3A [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:29]Read from MH i2c: E2 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 62 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 62 00 B2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [15:53:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:29]wFMCommunicate OK [15:53:29]SAM_PROTO_GetFieldsCounters done [15:53:29]requested_item shift.num is exist - process it [15:53:29]requested_item shift.opened is exist - process it [15:53:29]req_shift_opened [15:53:29]FM_GetShiftState [15:53:29]SAM_PROTO_GetShiftState [15:53:29]wFMCommunicate request_size=4 [15:53:29]MH_SAM_APDU [15:53:29]CAPDU: 80 13 01 00 [15:53:29]Write to MH i2c: E2 08 00 B3 0C 80 13 01 00 00 00 00 00 3C [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:29]Read from MH i2c: E2 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 B3 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 16 [15:53:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:53:29]wFMCommunicate OK [15:53:29]SAM_PROTO_GetShiftState done [15:53:29]FM_GetShiftState done [15:53:29]req_shift_opened done [15:53:29]requested_item shift.open_date is exist - process it [15:53:29]req_shift_open_date [15:53:29]req_shift_open_date done [15:53:29]produce_requested_data done [15:53:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30947,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:53:29]process_action_free close_receipt [15:53:29]json_value_free [15:53:29]json_value_free done [15:53:29]process_json_proto returns [15:53:29]Send response to host [15:53:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30947,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:53:29]free response buf [15:53:29]execute_script done [15:53:29]execute_script returns [15:53:29]free content buf [15:53:29]Sock 9.Close socket [15:53:29]Sock 9.Thread stoped [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:38]accept exits with 7 [15:53:38]New connection [15:53:38]New thread 3066899812 created [15:53:38]Thread 3067043172 joined [15:53:38]Waiting for new connection... [15:53:38] Sock 7.Parse request [15:53:38]Sock 7.Check first char [15:53:38]Sock 7.First char is OK [15:53:38]request: POST /json_proto HTTP/1.0 [15:53:38]Method: POST [15:53:38]URL: /json_proto [15:53:38]Method is POST - this is cgi request [15:53:38]url: /json_proto [15:53:38]query_string will be loaded in cgi processing [15:53:38]execute_cgi json_proto POST (null) [15:53:38]execute_cgi path=json_proto method=POST [15:53:38]POST find Content-Length [15:53:38]Host: 172.17.51.3:8080 [15:53:38]Content-Length: 677 [15:53:38]Content-Type: application/json [15:53:38] [15:53:38]POST finish read [15:53:38]Found Content-Length = 677 [15:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:38]execute_script... [15:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:38]POST & json_proto [15:53:38]process_json_proto [15:53:38]json parsed OK: [15:53:38]protocol is kg_v1.0 [15:53:38]action value=close_receipt [15:53:38]process_action close_receipt [15:53:38]cmd_close_receipt [15:53:38]MH_GetDate [15:53:38]Write to MH i2c: F0 00 00 B4 0C AF [15:53:38]Write i2c OK [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: F0 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: F0 09 00 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: F0 09 00 B4 0C 00 83 CA 17 67 04 C1 95 66 43 [15:53:38]GetLastDocTimeStamp 1729612406 [15:53:38]current date 1729612419 [15:53:38]FM_GetShiftState [15:53:38]SAM_PROTO_GetShiftState [15:53:38]wFMCommunicate request_size=4 [15:53:38]MH_SAM_APDU [15:53:38]CAPDU: 80 13 01 00 [15:53:38]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [15:53:38]Write i2c OK [15:53:38]MH_I2C_Read... [15:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:38]Read from MH i2c: E2 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 0E 00 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 18 [15:53:38]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:53:38]wFMCommunicate OK [15:53:38]SAM_PROTO_GetShiftState done [15:53:38]FM_GetShiftState done [15:53:38]opened in 1729557342 [15:53:38]opened+sec_in_day 1729643742 [15:53:38]quantity*price = 20003 [15:53:38]sum+1 = 20004 [15:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 181 22.10.2024 15:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30948 ФПД: 147696742920173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155339&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30948&fm=147696742920173&tin=02508201610067®Number=0000000000186857&sum=20000 [15:53:39]StoreToDocumentArchive [15:53:39]shift 116 fd 30948 [15:53:39]save to /storage/0116/doc_00030948 [15:53:39]save last doc name /storage/0116/doc_00030948 to /storage/kkm_last_doc_name [15:53:39]save OK [15:53:39]Clear old archive folders... [15:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:39]tlvbuf is 00CC3CE0 [15:53:39]SAM_PROTO_ClearQueue [15:53:39]wFMCommunicate request_size=4 [15:53:39]MH_SAM_APDU [15:53:39]CAPDU: 80 09 00 00 [15:53:39]Write to MH i2c: E2 08 00 C2 0C 80 09 00 00 00 00 00 00 40 [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:39]Read from MH i2c: E2 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [15:53:39]RAPDU: 90 00 [15:53:39]wFMCommunicate OK [15:53:39]SAM_PROTO_ClearQueue done [15:53:39]KKMCreateOFDPacket [15:53:39]OFDProtocolAddRootSTLVToBuf [15:53:39]FM_MakeSignedData [15:53:39]FM_MakeSignedData [15:53:39]SAM_PROTO_SignData [15:53:39]wFMCommunicate request_size=4 [15:53:39]MH_SAM_APDU [15:53:39]CAPDU: 80 0D 01 02 [15:53:39]Write to MH i2c: E2 08 00 C3 0C 80 0D 01 02 00 00 00 00 48 [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:39]Read from MH i2c: E2 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [15:53:39]RAPDU: 90 00 [15:53:39]wFMCommunicate OK [15:53:39]wFMCommunicate request_size=255 [15:53:39]MH_SAM_APDU [15:53: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 83 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 78 00 00 35 04 06 00 86 [15:53:39]Write to MH i2c: E2 02 01 C4 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 83 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 78 00 00 35 04 06 00 86 00 00 71 [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:39]Read from MH i2c: E2 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [15:53:39]RAPDU: 90 00 [15:53:39]wFMCommunicate OK [15:53:39]wFMCommunicate request_size=10 [15:53:39]MH_SAM_APDU [15:53:39]CAPDU: 80 0D 02 02 05 54 53 E5 6F ED [15:53:39]Write to MH i2c: E2 0D 00 C5 0C 80 0D 02 02 05 00 54 53 E5 6F ED 00 00 3D [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [15:53:40]RAPDU: 90 00 [15:53:40]wFMCommunicate OK [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 0D 03 02 [15:53:40]Write to MH i2c: E2 08 00 C6 0C 80 0D 03 02 00 00 00 00 4D [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 0B 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 0B 00 C6 0C 00 35 34 B0 DA 09 26 75 5D 90 00 42 [15:53:40]RAPDU: 35 34 B0 DA 09 26 75 5D 90 00 [15:53:40]wFMCommunicate OK [15:53:40]SAM_PROTO_SignData done [15:53:40]FM_MakeSignedData done [15:53:40]CreateOFDProtocolMessage [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 11 00 00 [15:53:40]Write to MH i2c: E2 08 00 C7 0C 80 11 00 00 00 00 00 00 4D [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 17 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 17 00 C7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9B [15:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:53:40]wFMCommunicate OK [15:53:40]CreateOFDProtocolMessage done [15:53:40]OFDSenderStorePacket 30948 [15:53:40]StoreOFDPacket docnum=30948 [15:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E8 7E 07 01 91 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 83 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 78 00 00 35 04 06 00 86 54 53 E5 6F ED 35 34 B0 DA 09 26 75 5D [15:53:40]CheckFolder [15:53:40]dirname=/storage/ofd_packets [15:53:40]CheckFolder done [15:53:40]ProducePacketName [15:53:40]name=ofd_packets/00030948 [15:53:40]NVStorageSaveData ofd_packets/00030948 [15:53:40]File name is /storage/ofd_packets/00030948 [15:53:40]Write 301 bytes [15:53:40]NVStorageSaveData done [15:53:40]OFDSenderStorePacket done [15:53:40]KKMCreateOFDPacket done [15:53:40]NVStorageSaveData kkm_last_timestamp [15:53:40]File name is /storage/kkm_last_timestamp [15:53:40]Write 4 bytes [15:53:40]NVStorageSaveData done [15:53:40]ExternCall_PrintAddStr [15:53:40]wPrintStart [15:53:40]Write to MH i2c: 01 00 00 C8 0C D4 [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 07 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 07 00 C8 0C 00 00 00 00 00 FF 0F E9 [15:53:40]RasterBufferAndPrint [15:53:40]line Счет N : (1)343374 [15:53:40]line ИНН: 02508201610067 [15:53:40]line Контрольно-Кассовый Чек [15:53:40]line ПРОДАЖА [15:53:40]line ТРК (МРК, ГНК) : 33 [15:53:40]line Товар: 2710124130 [15:53:40]line Аи-92-К-2 [15:53:40]line 2.990 * 66.90 [15:53:40]line = 200.03 [15:53:40]line НДС 12% НСП 1% [15:53:40]line > о реализуемом товаре [15:53:40]line ОКРУГЛЕНИЕ: -0.03 [15:53:40]line ИТОГО: 200.00 [15:53:40]line Внесено: 200.00 [15:53:40]line СДАЧА: 0.00 [15:53:40]line НСП 1% : 1.77 [15:53:40]line НДС 12% : 21.24 [15:53:40]line Наличными: 200.00 [15:53:40]line Безнал.: 0.00 [15:53:40]line Место: АЗС № 78 "Партнер Нефть" [15:53:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:53:40]line СНО: Общий режим [15:53:40]line Чек 181 22.10.2024 15:53 [15:53:40]line Смена: 116 ФФД: 1.0 [15:53:40]line ЗНМ: 0300000137 [15:53:40]line РНМ: 0000000000186857 [15:53:40]line Версия ККМ: v1.0 [15:53:40]line ФМ: 0000000002094219 [15:53:40]line ФД: 30948 [15:53:40]line ФПД: 147696742920173 [15:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155339&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30948&fm=147696742920173&tin=02508201610067®Number=0000000000186857&sum=20000 [15:53:40]OFD Sender: Processing packet 30948 [packets to send 11, broken 10] [15:53:40]ProducePacketName [15:53:40]name=ofd_packets/00030948 [15:53:40]OFD Sender: To server: pG, [15:53:40]CommunicateWithHost lk.salyk.kg:30040 [15:53:40]ConnectInit lk.salyk.kg [15:53:40]written 0, free lines is 4095 [15:53:40]Connected sock=10 [15:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E8 7E 07 01 91 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 83 CA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 78 00 00 35 04 06 00 86 54 53 E5 6F ED 35 34 B0 DA 09 26 75 5D [15:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 00 44 47 00 08 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 78 00 00 F4 03 04 00 00 75 17 67 B6 04 01 00 00 C2 93 B4 8B 18 13 4F 13 [15:53:40]CommunicateWithHost err = 0 [15:53:40]CheckOFDResponse [15:53:40]1017 (14) - 77093643461234 [15:53:40]1041 (16) - 0000000002094219 [15:53:40]1040 (4) - 30948 [15:53:40]1012 (4) - 22.10.2024 09:48 [15:53:40]1206 (1) - 0 [15:53:40]OFD Sender: Remove packet 30948 [15:53:40]ProducePacketName [15:53:40]name=ofd_packets/00030948 [15:53:40]NVStorageDeleteData [15:53:40]Write to MH i2c: 01 00 00 F3 0C FF [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 07 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 F5 0C 07 [15:53:40]RasterBufferAndPrint [15:53:40]line [15:53:40]line [15:53:40]line [15:53:40]line [15:53:40]line [15:53:40]written 0, free lines is 3328 [15:53:40]MH_Cut [15:53:40]Write to MH i2c: D1 01 00 FA 0C 01 D8 [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: D1 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: D1 01 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: D1 01 00 FA 0C 00 D7 [15:53:40]Write to MH i2c: 01 00 00 FB 0C 07 [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:41]OFD Sender: No OFD packet to send [15:53:41]*** Cut start [15:53:41]*** Partial cut [15:53:41]*** CUTSNS_PIN = 1 [15:53:41]*** CUTSNS_PIN = 0 [15:53:41]*** Brake cut motor [15:53:42]Read from MH i2c: 01 [15:53:42]MH_I2C_Read... [15:53:42]*** Stop cut motor [15:53:42]*** Cut end [15:53:42]Read from MH i2c: 01 07 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [15:53:42]process_action close_receipt done [15:53:42]requested_data is exist [15:53:42]produce_requested_data [15:53:42]requested_item fm.sn is exist - process it [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 11 00 00 [15:53:42]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 17 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [15:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:53:42]wFMCommunicate OK [15:53:42]requested_item fd.num is exist - process it [15:53:42]SAM_PROTO_GetFieldsCounters [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 13 00 00 [15:53:42]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 62 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 62 00 FD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [15:53:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:42]wFMCommunicate OK [15:53:42]SAM_PROTO_GetFieldsCounters done [15:53:42]requested_item shift.num is exist - process it [15:53:42]requested_item shift.opened is exist - process it [15:53:42]req_shift_opened [15:53:42]FM_GetShiftState [15:53:42]SAM_PROTO_GetShiftState [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 13 01 00 [15:53:42]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:42]Read from MH i2c: E2 0E 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 61 [15:53:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:53:42]wFMCommunicate OK [15:53:42]SAM_PROTO_GetShiftState done [15:53:42]FM_GetShiftState done [15:53:42]req_shift_opened done [15:53:42]requested_item shift.open_date is exist - process it [15:53:42]req_shift_open_date [15:53:42]req_shift_open_date done [15:53:42]produce_requested_data done [15:53:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30948,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:53:42]process_action_free close_receipt [15:53:42]json_value_free [15:53:42]json_value_free done [15:53:42]process_json_proto returns [15:53:42]Send response to host [15:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30948,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:53:42]free response buf [15:53:42]execute_script done [15:53:42]execute_script returns [15:53:42]free content buf [15:53:42]Sock 7.Close socket [15:53:42]Sock 7.Thread stoped [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [15:59:27]New connection [15:59:27]New thread 3067043172 created [15:59:27]Thread 3066899812 joined [15:59:27]Waiting for new connection... [15:59:27] Sock 9.Parse request [15:59:27]Sock 9.Check first char [15:59:27]Sock 9.First char is OK [15:59:27]request: POST /json_proto HTTP/1.0 [15:59:27]Method: POST [15:59:27]URL: /json_proto [15:59:27]Method is POST - this is cgi request [15:59:27]url: /json_proto [15:59:27]query_string will be loaded in cgi processing [15:59:27]execute_cgi json_proto POST (null) [15:59:27]execute_cgi path=json_proto method=POST [15:59:27]POST find Content-Length [15:59:27]Host: 172.17.51.3:8080 [15:59:27]Content-Length: 674 [15:59:27]Content-Type: application/json [15:59:27] [15:59:27]POST finish read [15:59:27]Found Content-Length = 674 [15:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:27]execute_script... [15:59: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)343375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:27]POST & json_proto [15:59:27]process_json_proto [15:59:27]json parsed OK: [15:59:27]protocol is kg_v1.0 [15:59:27]action value=close_receipt [15:59:27]process_action close_receipt [15:59:27]cmd_close_receipt [15:59:27]MH_GetDate [15:59:27]Write to MH i2c: F0 00 00 FF 0C FA [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: F0 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: F0 09 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: F0 09 00 FF 0C 00 E0 CB 17 67 04 C1 95 66 EC [15:59:27]GetLastDocTimeStamp 1729612419 [15:59:27]current date 1729612768 [15:59:27]FM_GetShiftState [15:59:27]SAM_PROTO_GetShiftState [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 13 01 00 [15:59:27]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 0E 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 64 [15:59:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:59:27]wFMCommunicate OK [15:59:27]SAM_PROTO_GetShiftState done [15:59:27]FM_GetShiftState done [15:59:27]opened in 1729557342 [15:59:27]opened+sec_in_day 1729643742 [15:59:27]quantity*price = 50063 [15:59:27]sum+1 = 50064 [15:59:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 182 22.10.2024 15:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30949 ФПД: 198341975033663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30949&fm=198341975033663&tin=02508201610067®Number=0000000000186857&sum=50000 [15:59:28]StoreToDocumentArchive [15:59:28]shift 116 fd 30949 [15:59:28]save to /storage/0116/doc_00030949 [15:59:28]save last doc name /storage/0116/doc_00030949 to /storage/kkm_last_doc_name [15:59:28]save OK [15:59:28]Clear old archive folders... [15:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:28]tlvbuf is B6EBEE30 [15:59:28]SAM_PROTO_ClearQueue [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 09 00 00 [15:59:28]Write to MH i2c: E2 08 00 0D 0D 80 09 00 00 00 00 00 00 8C [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 03 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [15:59:28]RAPDU: 90 00 [15:59:28]wFMCommunicate OK [15:59:28]SAM_PROTO_ClearQueue done [15:59:28]KKMCreateOFDPacket [15:59:28]OFDProtocolAddRootSTLVToBuf [15:59:28]FM_MakeSignedData [15:59:28]FM_MakeSignedData [15:59:28]SAM_PROTO_SignData [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 0D 01 02 [15:59:28]Write to MH i2c: E2 08 00 0E 0D 80 0D 01 02 00 00 00 00 94 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 03 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [15:59:28]RAPDU: 90 00 [15:59:28]wFMCommunicate OK [15:59:28]wFMCommunicate request_size=255 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 E0 CB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 78 00 00 35 04 06 00 B4 64 16 F7 [15:59:28]Write to MH i2c: E2 02 01 0F 0D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 E0 CB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 78 00 00 35 04 06 00 B4 64 16 F7 00 00 78 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]wFMCommunicate request_size=7 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 02 02 02 47 3F [15:59:29]Write to MH i2c: E2 0A 00 10 0D 80 0D 02 02 02 00 47 3F 00 00 21 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 03 02 [15:59:29]Write to MH i2c: E2 08 00 11 0D 80 0D 03 02 00 00 00 00 99 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0B 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0B 00 11 0D 00 4B 19 52 A2 82 92 D2 71 90 00 49 [15:59:29]RAPDU: 4B 19 52 A2 82 92 D2 71 90 00 [15:59:29]wFMCommunicate OK [15:59:29]SAM_PROTO_SignData done [15:59:29]FM_MakeSignedData done [15:59:29]CreateOFDProtocolMessage [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 11 00 00 [15:59:29]Write to MH i2c: E2 08 00 12 0D 80 11 00 00 00 00 00 00 99 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 12 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [15:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:59:29]wFMCommunicate OK [15:59:29]CreateOFDProtocolMessage done [15:59:29]OFDSenderStorePacket 30949 [15:59:29]StoreOFDPacket docnum=30949 [15:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A8 4F 04 01 B4 90 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 E0 CB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 78 00 00 35 04 06 00 B4 64 16 F7 47 3F 4B 19 52 A2 82 92 D2 71 [15:59:29]CheckFolder [15:59:29]dirname=/storage/ofd_packets [15:59:29]CheckFolder done [15:59:29]ProducePacketName [15:59:29]name=ofd_packets/00030949 [15:59:29]NVStorageSaveData ofd_packets/00030949 [15:59:29]File name is /storage/ofd_packets/00030949 [15:59:29]Write 298 bytes [15:59:29]NVStorageSaveData done [15:59:29]OFDSenderStorePacket done [15:59:29]KKMCreateOFDPacket done [15:59:29]NVStorageSaveData kkm_last_timestamp [15:59:29]File name is /storage/kkm_last_timestamp [15:59:29]Write 4 bytes [15:59:29]NVStorageSaveData done [15:59:29]ExternCall_PrintAddStr [15:59:29]wPrintStart [15:59:29]Write to MH i2c: 01 00 00 13 0D 20 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 07 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [15:59:29]RasterBufferAndPrint [15:59:29]line Счет N : (1)343375 [15:59:29]line ИНН: 02508201610067 [15:59:29]line Контрольно-Кассовый Чек [15:59:29]line ПРОДАЖА [15:59:29]line ТРК (МРК, ГНК) : 54 [15:59:29]line Товар: 2710194210 [15:59:29]line ДТ-К-2 [15:59:29]line 6.570 * 76.20 [15:59:29]line = 500.63 [15:59:29]line НДС 12% НСП 1% [15:59:29]line > о реализуемом товаре [15:59:29]line ОКРУГЛЕНИЕ: -0.63 [15:59:29]line ИТОГО: 500.00 [15:59:29]line Внесено: 500.00 [15:59:29]line СДАЧА: 0.00 [15:59:29]line НСП 1% : 4.43 [15:59:29]line НДС 12% : 53.16 [15:59:29]line Наличными: 500.00 [15:59:29]line Безнал.: 0.00 [15:59:29]line Место: АЗС № 78 "Партнер Нефть" [15:59:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:59:29]line СНО: Общий режим [15:59:29]line Чек 182 22.10.2024 15:59 [15:59:29]line Смена: 116 ФФД: 1.0 [15:59:29]line ЗНМ: 0300000137 [15:59:29]line РНМ: 0000000000186857 [15:59:29]line Версия ККМ: v1.0 [15:59:29]line ФМ: 0000000002094219 [15:59:29]line ФД: 30949 [15:59:29]line ФПД: 198341975033663 [15:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30949&fm=198341975033663&tin=02508201610067®Number=0000000000186857&sum=50000 [15:59:29]OFD Sender: Processing packet 30949 [packets to send 11, broken 10] [15:59:29]ProducePacketName [15:59:29]name=ofd_packets/00030949 [15:59:29]OFD Sender: To server: pG, [15:59:29]CommunicateWithHost lk.salyk.kg:30040 [15:59:29]ConnectInit lk.salyk.kg [15:59:29]written 0, free lines is 4095 [15:59:29]Connected sock=10 [15:59:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A8 4F 04 01 B4 90 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 E0 CB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 78 00 00 35 04 06 00 B4 64 16 F7 47 3F 4B 19 52 A2 82 92 D2 71 [15:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B3 68 47 00 ED E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 78 00 00 F4 03 04 00 5E 76 17 67 B6 04 01 00 00 79 5C 7C 3B 2C C2 95 AF [15:59:29]CommunicateWithHost err = 0 [15:59:29]CheckOFDResponse [15:59:29]1017 (14) - 77093643461234 [15:59:29]1041 (16) - 0000000002094219 [15:59:29]1040 (4) - 30949 [15:59:29]1012 (4) - 22.10.2024 09:54 [15:59:29]1206 (1) - 0 [15:59:29]OFD Sender: Remove packet 30949 [15:59:29]ProducePacketName [15:59:29]name=ofd_packets/00030949 [15:59:29]NVStorageDeleteData [15:59:30]Write to MH i2c: 01 00 00 3E 0D 4B [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 07 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 F4 0C 52 [15:59:30]RasterBufferAndPrint [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]written 0, free lines is 3323 [15:59:30]MH_Cut [15:59:30]Write to MH i2c: D1 01 00 45 0D 01 24 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 01 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 01 00 45 0D 00 23 [15:59:30]Write to MH i2c: 01 00 00 46 0D 53 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]OFD Sender: No OFD packet to send [15:59:30]*** Cut start [15:59:30]*** Partial cut [15:59:30]*** CUTSNS_PIN = 1 [15:59:30]*** CUTSNS_PIN = 0 [15:59:31]*** Brake cut motor [15:59:31]Read from MH i2c: 01 [15:59:31]MH_I2C_Read... [15:59:31]*** Stop cut motor [15:59:31]*** Cut end [15:59:31]Read from MH i2c: 01 07 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [15:59:31]process_action close_receipt done [15:59:31]requested_data is exist [15:59:31]produce_requested_data [15:59:31]requested_item fm.sn is exist - process it [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 11 00 00 [15:59:31]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [15:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:59:31]wFMCommunicate OK [15:59:31]requested_item fd.num is exist - process it [15:59:31]SAM_PROTO_GetFieldsCounters [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 13 00 00 [15:59:31]Write to MH i2c: E2 08 00 48 0D 80 13 00 00 00 00 00 00 D1 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 62 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 62 00 48 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [15:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_GetFieldsCounters done [15:59:31]requested_item shift.num is exist - process it [15:59:31]requested_item shift.opened is exist - process it [15:59:31]req_shift_opened [15:59:31]FM_GetShiftState [15:59:31]SAM_PROTO_GetShiftState [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 13 01 00 [15:59:31]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0E 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AD [15:59:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_GetShiftState done [15:59:31]FM_GetShiftState done [15:59:31]req_shift_opened done [15:59:31]requested_item shift.open_date is exist - process it [15:59:31]req_shift_open_date [15:59:31]req_shift_open_date done [15:59:31]produce_requested_data done [15:59:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30949,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [15:59:31]process_action_free close_receipt [15:59:31]json_value_free [15:59:31]json_value_free done [15:59:31]process_json_proto returns [15:59:31]Send response to host [15:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30949,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [15:59:31]free response buf [15:59:31]execute_script done [15:59:31]execute_script returns [15:59:31]free content buf [15:59:31]Sock 9.Close socket [15:59:31]Sock 9.Thread stoped [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:13]accept exits with 7 [16:03:13]New connection [16:03:13]New thread 3066899812 created [16:03:13]Thread 3067043172 joined [16:03:13]Waiting for new connection... [16:03:13] Sock 7.Parse request [16:03:13]Sock 7.Check first char [16:03:13]Sock 7.First char is OK [16:03:13]request: POST /json_proto HTTP/1.0 [16:03:13]Method: POST [16:03:13]URL: /json_proto [16:03:13]Method is POST - this is cgi request [16:03:13]url: /json_proto [16:03:13]query_string will be loaded in cgi processing [16:03:13]execute_cgi json_proto POST (null) [16:03:13]execute_cgi path=json_proto method=POST [16:03:13]POST find Content-Length [16:03:13]Host: 172.17.51.3:8080 [16:03:13]Content-Length: 677 [16:03:13]Content-Type: application/json [16:03:13] [16:03:13]POST finish read [16:03:13]Found Content-Length = 677 [16:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:13]execute_script... [16:03: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)343376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:13]POST & json_proto [16:03:13]process_json_proto [16:03:13]json parsed OK: [16:03:13]protocol is kg_v1.0 [16:03:13]action value=close_receipt [16:03:13]process_action close_receipt [16:03:13]cmd_close_receipt [16:03:13]MH_GetDate [16:03:13]Write to MH i2c: F0 00 00 4A 0D 46 [16:03:13]Write i2c OK [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 09 00 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 09 00 4A 0D 00 C3 CC 17 67 04 C1 95 66 1C [16:03:13]GetLastDocTimeStamp 1729612768 [16:03:13]current date 1729612995 [16:03:13]FM_GetShiftState [16:03:13]SAM_PROTO_GetShiftState [16:03:13]wFMCommunicate request_size=4 [16:03:13]MH_SAM_APDU [16:03:13]CAPDU: 80 13 01 00 [16:03:13]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [16:03:13]Write i2c OK [16:03:13]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 0E 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AF [16:03:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:03:14]wFMCommunicate OK [16:03:14]SAM_PROTO_GetShiftState done [16:03:14]FM_GetShiftState done [16:03:14]opened in 1729557342 [16:03:14]opened+sec_in_day 1729643742 [16:03:14]quantity*price = 40006 [16:03:14]sum+1 = 40007 [16:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 183 22.10.2024 16:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30950 ФПД: 161519198175503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30950&fm=161519198175503&tin=02508201610067®Number=0000000000186857&sum=40000 [16:03:15]StoreToDocumentArchive [16:03:15]shift 116 fd 30950 [16:03:15]save to /storage/0116/doc_00030950 [16:03:15]save last doc name /storage/0116/doc_00030950 to /storage/kkm_last_doc_name [16:03:15]save OK [16:03:15]Clear old archive folders... [16:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:15]tlvbuf is B6F6E990 [16:03:15]SAM_PROTO_ClearQueue [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 09 00 00 [16:03:15]Write to MH i2c: E2 08 00 58 0D 80 09 00 00 00 00 00 00 D7 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]SAM_PROTO_ClearQueue done [16:03:15]KKMCreateOFDPacket [16:03:15]OFDProtocolAddRootSTLVToBuf [16:03:15]FM_MakeSignedData [16:03:15]FM_MakeSignedData [16:03:15]SAM_PROTO_SignData [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 01 02 [16:03:15]Write to MH i2c: E2 08 00 59 0D 80 0D 01 02 00 00 00 00 DF [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=255 [16:03:15]MH_SAM_APDU [16:03: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C3 CC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 78 00 00 35 04 06 00 92 [16:03:15]Write to MH i2c: E2 02 01 5A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C3 CC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 78 00 00 35 04 06 00 92 00 00 67 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=10 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 02 02 05 E6 9E 6E 81 0F [16:03:15]Write to MH i2c: E2 0D 00 5B 0D 80 0D 02 02 05 00 E6 9E 6E 81 0F 00 00 6E [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 03 02 [16:03:15]Write to MH i2c: E2 08 00 5C 0D 80 0D 03 02 00 00 00 00 E4 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 5C 0D 00 4B 3D 5C 95 91 43 8F 47 90 00 08 [16:03:15]RAPDU: 4B 3D 5C 95 91 43 8F 47 90 00 [16:03:15]wFMCommunicate OK [16:03:15]SAM_PROTO_SignData done [16:03:15]FM_MakeSignedData done [16:03:15]CreateOFDProtocolMessage [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 11 00 00 [16:03:15]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]OFD Sender: No OFD packet to send [16:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 17 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [16:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:03:15]wFMCommunicate OK [16:03:15]CreateOFDProtocolMessage done [16:03:15]OFDSenderStorePacket 30950 [16:03:15]StoreOFDPacket docnum=30950 [16:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E6 16 07 01 97 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C3 CC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 78 00 00 35 04 06 00 92 E6 9E 6E 81 0F 4B 3D 5C 95 91 43 8F 47 [16:03:15]CheckFolder [16:03:15]dirname=/storage/ofd_packets [16:03:15]CheckFolder done [16:03:15]ProducePacketName [16:03:15]name=ofd_packets/00030950 [16:03:15]NVStorageSaveData ofd_packets/00030950 [16:03:15]File name is /storage/ofd_packets/00030950 [16:03:15]Write 301 bytes [16:03:15]NVStorageSaveData done [16:03:15]OFDSenderStorePacket done [16:03:15]KKMCreateOFDPacket done [16:03:15]NVStorageSaveData kkm_last_timestamp [16:03:15]File name is /storage/kkm_last_timestamp [16:03:15]Write 4 bytes [16:03:15]NVStorageSaveData done [16:03:15]ExternCall_PrintAddStr [16:03:15]wPrintStart [16:03:15]Write to MH i2c: 01 00 00 5E 0D 6B [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 07 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FF 0F 80 [16:03:15]RasterBufferAndPrint [16:03:15]line Счет N : (1)343376 [16:03:15]line ИНН: 02508201610067 [16:03:15]line Контрольно-Кассовый Чек [16:03:15]line ПРОДАЖА [16:03:15]line ТРК (МРК, ГНК) : 53 [16:03:15]line Товар: 2710124130 [16:03:15]line Аи-92-К-2 [16:03:15]line 5.980 * 66.90 [16:03:15]line = 400.06 [16:03:15]line НДС 12% НСП 1% [16:03:15]line > о реализуемом товаре [16:03:15]line ОКРУГЛЕНИЕ: -0.06 [16:03:15]line ИТОГО: 400.00 [16:03:15]line Внесено: 400.00 [16:03:15]line СДАЧА: 0.00 [16:03:15]line НСП 1% : 3.54 [16:03:15]line НДС 12% : 42.48 [16:03:15]line Наличными: 400.00 [16:03:15]line Безнал.: 0.00 [16:03:15]line Место: АЗС № 78 "Партнер Нефть" [16:03:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:03:15]line СНО: Общий режим [16:03:15]line Чек 183 22.10.2024 16:03 [16:03:15]line Смена: 116 ФФД: 1.0 [16:03:15]line ЗНМ: 0300000137 [16:03:15]line РНМ: 0000000000186857 [16:03:15]line Версия ККМ: v1.0 [16:03:15]line ФМ: 0000000002094219 [16:03:15]line ФД: 30950 [16:03:15]line ФПД: 161519198175503 [16:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30950&fm=161519198175503&tin=02508201610067®Number=0000000000186857&sum=40000 [16:03:16]OFD Sender: Processing packet 30950 [packets to send 11, broken 10] [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00030950 [16:03:16]OFD Sender: To server: pG, [16:03:16]CommunicateWithHost lk.salyk.kg:30040 [16:03:16]ConnectInit lk.salyk.kg [16:03:16]written 0, free lines is 4095 [16:03:16]Connected sock=10 [16:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E6 16 07 01 97 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C3 CC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 78 00 00 35 04 06 00 92 E6 9E 6E 81 0F 4B 3D 5C 95 91 43 8F 47 [16:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 A5 47 00 2F 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 32 30 39 34 32 31 39 10 04 04 00 E6 78 00 00 F4 03 04 00 40 77 17 67 B6 04 01 00 00 6E CE 75 73 6A 06 F8 C0 [16:03:16]CommunicateWithHost err = 0 [16:03:16]CheckOFDResponse [16:03:16]1017 (14) - 77093643461234 [16:03:16]1041 (16) - 0000000002094219 [16:03:16]1040 (4) - 30950 [16:03:16]1012 (4) - 22.10.2024 09:58 [16:03:16]1206 (1) - 0 [16:03:16]OFD Sender: Remove packet 30950 [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00030950 [16:03:16]NVStorageDeleteData [16:03:16]Write to MH i2c: 01 00 00 89 0D 96 [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 89 0D 00 00 00 00 00 EC 0C 95 [16:03:16]RasterBufferAndPrint [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]line [16:03:16]written 0, free lines is 3314 [16:03:16]MH_Cut [16:03:16]Write to MH i2c: D1 01 00 90 0D 01 6F [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 01 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: D1 01 00 90 0D 00 6E [16:03:16]Write to MH i2c: 01 00 00 91 0D 9E [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]OFD Sender: No OFD packet to send [16:03:17]*** Cut start [16:03:17]*** Partial cut [16:03:17]*** CUTSNS_PIN = 1 [16:03:17]*** CUTSNS_PIN = 0 [16:03:17]*** Brake cut motor [16:03:17]Read from MH i2c: 01 [16:03:17]MH_I2C_Read... [16:03:17]*** Stop cut motor [16:03:17]*** Cut end [16:03:17]Read from MH i2c: 01 07 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [16:03:17]process_action close_receipt done [16:03:17]requested_data is exist [16:03:17]produce_requested_data [16:03:17]requested_item fm.sn is exist - process it [16:03:17]wFMCommunicate request_size=4 [16:03:17]MH_SAM_APDU [16:03:17]CAPDU: 80 11 00 00 [16:03:17]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:17]Read from MH i2c: E2 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: E2 17 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [16:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:03:17]wFMCommunicate OK [16:03:17]requested_item fd.num is exist - process it [16:03:17]SAM_PROTO_GetFieldsCounters [16:03:17]wFMCommunicate request_size=4 [16:03:17]MH_SAM_APDU [16:03:17]CAPDU: 80 13 00 00 [16:03:17]Write to MH i2c: E2 08 00 93 0D 80 13 00 00 00 00 00 00 1C [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:17]Read from MH i2c: E2 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: E2 62 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: E2 62 00 93 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:03:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:17]wFMCommunicate OK [16:03:17]SAM_PROTO_GetFieldsCounters done [16:03:17]requested_item shift.num is exist - process it [16:03:17]requested_item shift.opened is exist - process it [16:03:17]req_shift_opened [16:03:17]FM_GetShiftState [16:03:17]SAM_PROTO_GetShiftState [16:03:17]wFMCommunicate request_size=4 [16:03:17]MH_SAM_APDU [16:03:17]CAPDU: 80 13 01 00 [16:03:17]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:18]Read from MH i2c: E2 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 0E 00 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F8 [16:03:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:03:18]wFMCommunicate OK [16:03:18]SAM_PROTO_GetShiftState done [16:03:18]FM_GetShiftState done [16:03:18]req_shift_opened done [16:03:18]requested_item shift.open_date is exist - process it [16:03:18]req_shift_open_date [16:03:18]req_shift_open_date done [16:03:18]produce_requested_data done [16:03:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30950,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [16:03:18]process_action_free close_receipt [16:03:18]json_value_free [16:03:18]json_value_free done [16:03:18]process_json_proto returns [16:03:18]Send response to host [16:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30950,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [16:03:18]free response buf [16:03:18]execute_script done [16:03:18]execute_script returns [16:03:18]free content buf [16:03:18]Sock 7.Close socket [16:03:18]Sock 7.Thread stoped [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send 00 00 00 00 00 90 00 [16:56:36]wFMCommunicate OK [16:56:36]SAM_PROTO_GetFieldsCounters done [16:56:36]requested_item shift.num is exist - process it [16:56:36]requested_item shift.opened is exist - process it [16:56:36]req_shift_opened [16:56:36]FM_GetShiftState [16:56:36]SAM_PROTO_GetShiftState [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 13 01 00 [16:56:36]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 0E 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A5 [16:56:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:56:36]wFMCommunicate OK [16:56:36]SAM_PROTO_GetShiftState done [16:56:36]FM_GetShiftState done [16:56:36]req_shift_opened done [16:56:36]requested_item shift.open_date is exist - process it [16:56:36]req_shift_open_date [16:56:36]req_shift_open_date done [16:56:36]produce_requested_data done [16:56:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30966,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [16:56:36]process_action_free close_receipt [16:56:36]json_value_free [16:56:36]json_value_free done [16:56:36]process_json_proto returns [16:56:36]Send response to host [16:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30966,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [16:56:36]free response buf [16:56:36]execute_script done [16:56:36]execute_script returns [16:56:36]free content buf [16:56:36]Sock 10.Close socket [16:56:36]Sock 10.Thread stoped [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:46]accept exits with 9 [16:57:46]New connection [16:57:46]New thread 3067043172 created [16:57:46]Thread 3066899812 joined [16:57:46]Waiting for new connection... [16:57:46] Sock 9.Parse request [16:57:46]Sock 9.Check first char [16:57:46]Sock 9.First char is OK [16:57:46]request: POST /json_proto HTTP/1.0 [16:57:46]Method: POST [16:57:46]URL: /json_proto [16:57:46]Method is POST - this is cgi request [16:57:46]url: /json_proto [16:57:46]query_string will be loaded in cgi processing [16:57:46]execute_cgi json_proto POST (null) [16:57:46]execute_cgi path=json_proto method=POST [16:57:46]POST find Content-Length [16:57:46]Host: 172.17.51.3:8080 [16:57:46]Content-Length: 677 [16:57:46]Content-Type: application/json [16:57:46] [16:57:46]POST finish read [16:57:46]Found Content-Length = 677 [16:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:46]execute_script... [16:57: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)343393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:46]POST & json_proto [16:57:46]process_json_proto [16:57:46]json parsed OK: [16:57:46]protocol is kg_v1.0 [16:57:46]action value=close_receipt [16:57:46]process_action close_receipt [16:57:46]cmd_close_receipt [16:57:46]MH_GetDate [16:57:46]Write to MH i2c: F0 00 00 3D 12 3E [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: F0 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: F0 09 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: F0 09 00 3D 12 00 8C D9 17 67 04 C1 95 66 EA [16:57:46]GetLastDocTimeStamp 1729616191 [16:57:46]current date 1729616268 [16:57:46]FM_GetShiftState [16:57:46]SAM_PROTO_GetShiftState [16:57:46]wFMCommunicate request_size=4 [16:57:46]MH_SAM_APDU [16:57:46]CAPDU: 80 13 01 00 [16:57:46]Write to MH i2c: E2 08 00 3E 12 80 13 01 00 00 00 00 00 CD [16:57:47]Write i2c OK [16:57:47]MH_I2C_Read... [16:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:47]Read from MH i2c: E2 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 0E 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 0E 00 3E 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A7 [16:57:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:57:47]wFMCommunicate OK [16:57:47]SAM_PROTO_GetShiftState done [16:57:47]FM_GetShiftState done [16:57:47]opened in 1729557342 [16:57:47]opened+sec_in_day 1729643742 [16:57:47]quantity*price = 50041 [16:57:47]sum+1 = 50042 [16:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 200 22.10.2024 16:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30967 ФПД: 252786919720394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30967&fm=252786919720394&tin=02508201610067®Number=0000000000186857&sum=50000 [16:57:49]StoreToDocumentArchive [16:57:49]shift 116 fd 30967 [16:57:49]save to /storage/0116/doc_00030967 [16:57:49]save last doc name /storage/0116/doc_00030967 to /storage/kkm_last_doc_name [16:57:49]save OK [16:57:49]Clear old archive folders... [16:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:49]tlvbuf is 00DC9440 [16:57:49]SAM_PROTO_ClearQueue [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 09 00 00 [16:57:49]Write to MH i2c: E2 08 00 4B 12 80 09 00 00 00 00 00 00 CF [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]SAM_PROTO_ClearQueue done [16:57:49]KKMCreateOFDPacket [16:57:49]OFDProtocolAddRootSTLVToBuf [16:57:49]FM_MakeSignedData [16:57:49]FM_MakeSignedData [16:57:49]SAM_PROTO_SignData [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 0D 01 02 [16:57:49]Write to MH i2c: E2 08 00 4C 12 80 0D 01 02 00 00 00 00 D7 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]wFMCommunicate request_size=255 [16:57:49]MH_SAM_APDU [16:57: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8C D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 78 00 00 35 04 06 00 E5 [16:57:50]Write to MH i2c: E2 02 01 4D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8C D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 78 00 00 35 04 06 00 E5 00 00 DB [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]OFD Sender: No OFD packet to send [16:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 4D 12 00 90 00 D3 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]wFMCommunicate request_size=10 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 02 02 05 E8 8A 8D C5 CA [16:57:50]Write to MH i2c: E2 0D 00 4E 12 80 0D 02 02 05 00 E8 8A 8D C5 CA 00 00 72 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 4E 12 00 90 00 D4 [16:57:51]RAPDU: 90 00 [16:57:51]wFMCommunicate OK [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 0D 03 02 [16:57:51]Write to MH i2c: E2 08 00 4F 12 80 0D 03 02 00 00 00 00 DC [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 0B 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 0B 00 4F 12 00 16 E9 A8 BE B5 BF D1 3E 90 00 C5 [16:57:51]RAPDU: 16 E9 A8 BE B5 BF D1 3E 90 00 [16:57:51]wFMCommunicate OK [16:57:51]SAM_PROTO_SignData done [16:57:51]FM_MakeSignedData done [16:57:51]CreateOFDProtocolMessage [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 11 00 00 [16:57:51]Write to MH i2c: E2 08 00 50 12 80 11 00 00 00 00 00 00 DC [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 17 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 17 00 50 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [16:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:57:51]wFMCommunicate OK [16:57:51]CreateOFDProtocolMessage done [16:57:51]OFDSenderStorePacket 30967 [16:57:51]StoreOFDPacket docnum=30967 [16:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 54 CB 07 01 20 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8C D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 78 00 00 35 04 06 00 E5 E8 8A 8D C5 CA 16 E9 A8 BE B5 BF D1 3E [16:57:51]CheckFolder [16:57:51]dirname=/storage/ofd_packets [16:57:51]CheckFolder done [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00030967 [16:57:51]NVStorageSaveData ofd_packets/00030967 [16:57:51]File name is /storage/ofd_packets/00030967 [16:57:51]Write 301 bytes [16:57:51]NVStorageSaveData done [16:57:51]OFDSenderStorePacket done [16:57:51]KKMCreateOFDPacket done [16:57:51]NVStorageSaveData kkm_last_timestamp [16:57:51]File name is /storage/kkm_last_timestamp [16:57:51]Write 4 bytes [16:57:51]NVStorageSaveData done [16:57:51]ExternCall_PrintAddStr [16:57:51]wPrintStart [16:57:51]Write to MH i2c: 01 00 00 51 12 63 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 07 00 [16:57:51]MH_I2C_Read... [16:57:51]OFD Sender: Processing packet 30967 [packets to send 11, broken 10] [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00030967 [16:57:51]OFD Sender: To server: pG, [16:57:51]CommunicateWithHost lk.salyk.kg:30040 [16:57:51]ConnectInit lk.salyk.kg [16:57:51]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 FF 0F 78 [16:57:51]RasterBufferAndPrint [16:57:51]line Счет N : (1)343393 [16:57:51]line ИНН: 02508201610067 [16:57:51]line Контрольно-Кассовый Чек [16:57:51]line ПРОДАЖА [16:57:51]line ТРК (МРК, ГНК) : 63 [16:57:51]line Товар: 2710124130 [16:57:51]line Аи-92-К-2 [16:57:51]line 7.480 * 66.90 [16:57:51]line = 500.41 [16:57:51]line НДС 12% НСП 1% [16:57:51]line > о реализуемом товаре [16:57:51]line ОКРУГЛЕНИЕ: -0.41 [16:57:51]line ИТОГО: 500.00 [16:57:51]line Внесено: 500.00 [16:57:51]line СДАЧА: 0.00 [16:57:51]line НСП 1% : 4.43 [16:57:51]line НДС 12% : 53.14 [16:57:51]line Наличными: 500.00 [16:57:51]line Безнал.: 0.00 [16:57:51]line Место: АЗС № 78 "Партнер Нефть" [16:57:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:57:51]line СНО: Общий режим [16:57:51]line Чек 200 22.10.2024 16:57 [16:57:51]line Смена: 116 ФФД: 1.0 [16:57:51]line ЗНМ: 0300000137 [16:57:51]line РНМ: 0000000000186857 [16:57:51]line Версия ККМ: v1.0 [16:57:51]line ФМ: 0000000002094219 [16:57:51]line ФД: 30967 [16:57:51]line ФПД: 252786919720394 [16:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30967&fm=252786919720394&tin=02508201610067®Number=0000000000186857&sum=50000 [16:57:51]Connected sock=11 [16:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 written 0, free lines is 4095 [16:57:51]30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 54 CB 07 01 20 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8C D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 Write to MH i2c: 10 01 00 00 30 00 30 30 30 30 30 30 30 7C 30 12 30 8E 31 38 36 38 35 37 11 04 [16:57:52]10 00 30 30 30 Write i2c OK [16:57:52]30 MH_I2C_Read... [16:57:52]30 Read from MH i2c: 30 01 30 [16:57:52]30 30 32 30 39 34 32 31 39 10 04 04 00 F7 78 00 00 35 04 06 00 E5 E8 8A 8D C5 CA 16 E9 A8 BE B5 BF D1 3E [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 7C 12 00 00 00 00 00 3A 0D DC [16:57:52]RasterBufferAndPrint [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]written 0, free lines is 3668 [16:57:52]MH_Cut [16:57:52]Write to MH i2c: D1 01 00 83 12 01 67 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: D1 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: D1 01 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: D1 01 00 83 12 00 66 [16:57:52]Write to MH i2c: 01 00 00 84 12 96 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 49 FB 47 00 C2 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 32 30 39 34 32 31 39 10 04 04 00 F7 78 00 00 F4 03 04 00 0C 84 17 67 B6 *** Cut start [16:57:52]04 *** Partial cut [16:57:52]01 *** CUTSNS_PIN = 1 [16:57:52]00 00 6C 5F B3 AA 27 60 B0 D4 [16:57:52]CommunicateWithHost err = 0 [16:57:52]CheckOFDResponse [16:57:52]*** CUTSNS_PIN = 0 [16:57:52]1017 (14) - 77093643461234 [16:57:52]1041 (16) - 0000000002094219 [16:57:52]1040 (4) - 30967 [16:57:52]1012 (4) - 22.10.2024 10:53 [16:57:52]1206 (1) - 0 [16:57:52]OFD Sender: Remove packet 30967 [16:57:52]ProducePacketName [16:57:52]name=ofd_packets/00030967 [16:57:52]NVStorageDeleteData [16:57:52]*** Brake cut motor [16:57:53]Read from MH i2c: 01 [16:57:53]MH_I2C_Read... [16:57:53]OFD Sender: No OFD packet to send [16:57:53]Read from MH i2c: 01 07 00 [16:57:53]MH_I2C_Read... [16:57:53]*** Stop cut motor [16:57:53]*** Cut end [16:57:53]Read from MH i2c: 01 07 00 84 12 00 00 00 00 00 FF 0F AB [16:57:53]process_action close_receipt done [16:57:53]requested_data is exist [16:57:53]produce_requested_data [16:57:53]requested_item fm.sn is exist - process it [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 11 00 00 [16:57:53]Write to MH i2c: E2 08 00 85 12 80 11 00 00 00 00 00 00 11 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 17 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 17 00 85 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [16:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:57:53]wFMCommunicate OK [16:57:53]requested_item fd.num is exist - process it [16:57:53]SAM_PROTO_GetFieldsCounters [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 13 00 00 [16:57:53]Write to MH i2c: E2 08 00 86 12 80 13 00 00 00 00 00 00 14 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 62 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 62 00 86 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_GetFieldsCounters done [16:57:54]requested_item shift.num is exist - process it [16:57:54]requested_item shift.opened is exist - process it [16:57:54]req_shift_opened [16:57:54]FM_GetShiftState [16:57:54]SAM_PROTO_GetShiftState [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 13 01 00 [16:57:54]Write to MH i2c: E2 08 00 87 12 80 13 01 00 00 00 00 00 16 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 87 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F0 [16:57:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_GetShiftState done [16:57:54]FM_GetShiftState done [16:57:54]req_shift_opened done [16:57:54]requested_item shift.open_date is exist - process it [16:57:54]req_shift_open_date [16:57:54]req_shift_open_date done [16:57:54]produce_requested_data done [16:57:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30967,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [16:57:54]process_action_free close_receipt [16:57:54]json_value_free [16:57:54]json_value_free done [16:57:54]process_json_proto returns [16:57:54]Send response to host [16:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30967,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [16:57:54]free response buf [16:57:54]execute_script done [16:57:54]execute_script returns [16:57:54]free content buf [16:57:54]Sock 9.Close socket [16:57:54]Sock 9.Thread stoped [16:57:58]OFD Sender: No OFD packet to send [16:58:01]ConnectInit Can't connect to host [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:24]accept exits with 10 [16:58:24]New connection [16:58:24]New thread 3066899812 created [16:58:24]Thread 3067043172 joined [16:58:24]Waiting for new connection... [16:58:24] Sock 10.Parse request [16:58:24]Sock 10.Check first char [16:58:24]Sock 10.First char is OK [16:58:24]request: POST /json_proto HTTP/1.0 [16:58:24]Method: POST [16:58:24]URL: /json_proto [16:58:24]Method is POST - this is cgi request [16:58:24]url: /json_proto [16:58:24]query_string will be loaded in cgi processing [16:58:24]execute_cgi json_proto POST (null) [16:58:24]execute_cgi path=json_proto method=POST [16:58:24]POST find Content-Length [16:58:24]Host: 172.17.51.3:8080 [16:58:24]Content-Length: 682 [16:58:24]Content-Type: application/json [16:58:24] [16:58:24]POST finish read [16:58:24]Found Content-Length = 682 [16:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:24]execute_script... [16:58: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)343394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:24]POST & json_proto [16:58:24]process_json_proto [16:58:24]json parsed OK: [16:58:24]protocol is kg_v1.0 [16:58:24]action value=close_receipt [16:58:24]process_action close_receipt [16:58:24]cmd_close_receipt [16:58:24]MH_GetDate [16:58:24]Write to MH i2c: F0 00 00 88 12 89 [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 09 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 09 00 88 12 00 B2 D9 17 67 04 C1 95 66 5B [16:58:24]GetLastDocTimeStamp 1729616268 [16:58:24]current date 1729616306 [16:58:24]FM_GetShiftState [16:58:24]SAM_PROTO_GetShiftState [16:58:24]wFMCommunicate request_size=4 [16:58:24]MH_SAM_APDU [16:58:24]CAPDU: 80 13 01 00 [16:58:24]Write to MH i2c: E2 08 00 89 12 80 13 01 00 00 00 00 00 18 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 89 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F2 [16:58:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetShiftState done [16:58:25]FM_GetShiftState done [16:58:25]opened in 1729557342 [16:58:25]opened+sec_in_day 1729643742 [16:58:25]quantity*price = 130053 [16:58:25]sum+1 = 130055 [16:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 201 22.10.2024 16:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30968 ФПД: 268144911649938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30968&fm=268144911649938&tin=02508201610067®Number=0000000000186857&sum=130000 [16:58:27]StoreToDocumentArchive [16:58:27]shift 116 fd 30968 [16:58:27]save to /storage/0116/doc_00030968 [16:58:27]save last doc name /storage/0116/doc_00030968 to /storage/kkm_last_doc_name [16:58:27]save OK [16:58:27]Clear old archive folders... [16:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:27]tlvbuf is 00DC1C10 [16:58:27]SAM_PROTO_ClearQueue [16:58:27]wFMCommunicate request_size=4 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 09 00 00 [16:58:27]Write to MH i2c: E2 08 00 96 12 80 09 00 00 00 00 00 00 1A [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [16:58:27]RAPDU: 90 00 [16:58:27]wFMCommunicate OK [16:58:27]SAM_PROTO_ClearQueue done [16:58:27]KKMCreateOFDPacket [16:58:27]OFDProtocolAddRootSTLVToBuf [16:58:27]FM_MakeSignedData [16:58:27]FM_MakeSignedData [16:58:27]SAM_PROTO_SignData [16:58:27]wFMCommunicate request_size=4 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 0D 01 02 [16:58:27]Write to MH i2c: E2 08 00 97 12 80 0D 01 02 00 00 00 00 22 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:27]Read from MH i2c: E2 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [16:58:27]RAPDU: 90 00 [16:58:27]wFMCommunicate OK [16:58:27]wFMCommunicate request_size=255 [16:58:27]MH_SAM_APDU [16:58:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 B2 D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 78 00 00 35 04 06 00 F3 [16:58:28]Write to MH i2c: E2 02 01 98 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 OFD Sender: No OFD packet to send [16:58:28]D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 B2 D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 78 00 00 35 04 06 00 F3 00 00 94 [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 03 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [16:58:29]RAPDU: 90 00 [16:58:29]wFMCommunicate OK [16:58:29]wFMCommunicate request_size=10 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 0D 02 02 05 E0 5A 35 0C 92 [16:58:29]Write to MH i2c: E2 0D 00 99 12 80 0D 02 02 05 00 E0 5A 35 0C 92 00 00 3C [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 03 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [16:58:29]RAPDU: 90 00 [16:58:29]wFMCommunicate OK [16:58:29]wFMCommunicate request_size=4 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 0D 03 02 [16:58:29]Write to MH i2c: E2 08 00 9A 12 80 0D 03 02 00 00 00 00 27 [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0B 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0B 00 9A 12 00 6F 3B A9 3A 3C 95 03 67 90 00 F0 [16:58:29]RAPDU: 6F 3B A9 3A 3C 95 03 67 90 00 [16:58:29]wFMCommunicate OK [16:58:29]SAM_PROTO_SignData done [16:58:29]FM_MakeSignedData done [16:58:29]CreateOFDProtocolMessage [16:58:29]wFMCommunicate request_size=4 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 11 00 00 [16:58:29]Write to MH i2c: E2 08 00 9B 12 80 11 00 00 00 00 00 00 27 [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 17 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 17 00 9B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [16:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:29]wFMCommunicate OK [16:58:29]CreateOFDProtocolMessage done [16:58:29]OFDSenderStorePacket 30968 [16:58:29]StoreOFDPacket docnum=30968 [16:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 05 07 01 FD DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 B2 D9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 78 00 00 35 04 06 00 F3 E0 5A 35 0C 92 6F 3B A9 3A 3C 95 03 67 [16:58:29]CheckFolder [16:58:29]dirname=/storage/ofd_packets [16:58:29]CheckFolder done [16:58:29]ProducePacketName [16:58:29]name=ofd_packets/00030968 [16:58:29]NVStorageSaveData ofd_packets/00030968 [16:58:29]File name is /storage/ofd_packets/00030968 [16:58:29]Write 301 bytes [16:58:29]NVStorageSaveData done [16:58:29]OFDSenderStorePacket done [16:58:29]KKMCreateOFDPacket done [16:58:29]NVStorageSaveData kkm_last_timestamp [16:58:29]File name is /storage/kkm_last_timestamp [16:58:29]Write 4 bytes [16:58:29]NVStorageSaveData done [16:58:29]ExternCall_PrintAddStr [16:58:29]wPrintStart [16:58:29]Write to MH i2c: 01 00 00 9C 12 AE [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: 01 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: 01 07 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: 01 07 00 9C 12 00 00 00 00 00 FF 0F C3 [16:58:29]RasterBufferAndPrint [16:58:29]line Счет N : (1)343394 [16:58:29]line ИНН: 02508201610067 [16:58:29]line Контрольно-Кассовый Чек [16:58:29]line ПРОДАЖА [16:58:29]line ТРК (МРК, ГНК) : 53 [16:58:29]line Товар: 2710124130 [16:58:29]line Аи-92-К-2 [16:58:29]line 19.440 * 66.90 [16:58:29]line = 1300.54 [16:58:29]line НДС 12% НСП 1% [16:58:29]line > о реализуемом товаре [16:58:29]line ОКРУГЛЕНИЕ: -0.54 [16:58:29]line ИТОГО: 1300.00 [16:58:29]OFD Sender: Processing packet 30968 [packets to send 11, broken 10] [16:58:29]line Внесено: 1300.00 [16:58:29]ProducePacketName [16:58:29]line СДАЧА: 0.00 [16:58:29]name=ofd_packets/00030968 [16:58:29]line НСП 1% : 11.51 [16:58:29]OFD Sender: To server: pG, [16:58:29]line НДС 12% : 138.11 [16:58:29]CommunicateWithHost lk.salyk.kg:30040 [16:58:29]line Наличными: 1300.00 [16:58:29]ConnectInit lk.salyk.kg [16:58:29]line Безнал.: 0.00 [16:58:29]line Место: АЗС № 78 "Партнер Нефть" [16:58:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:58:29]line СНО: Общий режим [16:58:29]line Чек 201 22.10.2024 16:58 [16:58:29]line Смена: 116 ФФД: 1.0 [16:58:29]line ЗНМ: 0300000137 [16:58:29]line РНМ: 0000000000186857 [16:58:29]line Версия ККМ: v1.0 [16:58:29]line ФМ: 0000000002094219 [16:58:29]line ФД: 30968 [16:58:29]line ФПД: 268144911649938 [16:58:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30968&fm=268144911649938&tin=02508201610067®Number=0000000000186857&sum=130000 [16:58:29]written 0, free lines is 4095 [16:58:30]Connected sock=11 [16:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 05 07 01 FD DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 B2 D9 17 67 0E 04 04 00 74 00 00 00 B9 04 Write to MH i2c: 01 01 00 00 00 01 C7 0D 12 04 D9 10 [16:58:30]00 Write i2c OK [16:58:30]30 MH_I2C_Read... [16:58:30]30 30 30 30 30 30 Read from MH i2c: 30 01 30 [16:58:30]30 MH_I2C_Read... [16:58:30]31 Read from MH i2c: 38 01 36 07 38 00 35 [16:58:30]37 MH_I2C_Read... [16:58:30]11 Read from MH i2c: 04 01 10 07 00 00 30 C7 12 00 00 00 00 00 5A 0E 48 [16:58:30]RasterBufferAndPrint [16:58:30]line [16:58:30]line [16:58:30]line [16:58:30]line [16:58:30]line [16:58:30]30 30 30 30 30 30 30 30 32 30 written 0, free lines is 3935 [16:58:30]39 34 32 31 39 10 04 04 00 F8 MH_Cut [16:58:30]78 Write to MH i2c: 00 00 35 04 06 00 F3 D1 E0 01 5A 00 35 0C 92 6F 3B A9 3A CE 3C 12 95 01 03 67 [16:58:30]B2 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: D1 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: D1 01 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: D1 01 00 CE 12 00 B1 [16:58:30]Write to MH i2c: 01 00 00 CF 12 E1 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:31]Received data: 87 95 F6 70 47 2C 01 00 *** Cut start [16:58:31]30 30 *** Partial cut [16:58:31]*** CUTSNS_PIN = 1 [16:58:31]30 *** CUTSNS_PIN = 0 [16:58:31]30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 B4 47 00 54 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 *** Brake cut motor [16:58:31]32 30 39 34 32 31 39 10 04 04 00 F8 78 00 00 F4 03 04 00 33 84 17 67 B6 04 01 00 00 BB 18 7F E4 2C 09 92 7D [16:58:31]CommunicateWithHost err = 0 [16:58:31]CheckOFDResponse [16:58:31]1017 (14) - 77093643461234 [16:58:31]1041 (16) - 0000000002094219 [16:58:31]1040 (4) - 30968 [16:58:31]1012 (4) - 22.10.2024 10:53 [16:58:31]1206 (1) - 0 [16:58:31]OFD Sender: Remove packet 30968 [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00030968 [16:58:31]NVStorageDeleteData [16:58:31]Read from MH i2c: 01 [16:58:31]MH_I2C_Read... [16:58:31]*** Stop cut motor [16:58:31]*** Cut end [16:58:31]Read from MH i2c: 01 07 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 CF 12 00 00 00 00 00 FF 0F F6 [16:58:31]process_action close_receipt done [16:58:31]requested_data is exist [16:58:31]produce_requested_data [16:58:31]requested_item fm.sn is exist - process it [16:58:31]wFMCommunicate request_size=4 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 11 00 00 [16:58:31]Write to MH i2c: E2 08 00 D0 12 80 11 00 00 00 00 00 00 5C [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 D0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [16:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:31]wFMCommunicate OK [16:58:31]requested_item fd.num is exist - process it [16:58:31]SAM_PROTO_GetFieldsCounters [16:58:31]wFMCommunicate request_size=4 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 13 00 00 [16:58:31]Write to MH i2c: E2 08 00 D1 12 80 13 00 00 00 00 00 00 5F [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:32]Read from MH i2c: E2 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: E2 62 00 [16:58:32]MH_I2C_Read... [16:58:32]OFD Sender: No OFD packet to send [16:58:32]Read from MH i2c: E2 62 00 D1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:32]wFMCommunicate OK [16:58:32]SAM_PROTO_GetFieldsCounters done [16:58:32]requested_item shift.num is exist - process it [16:58:32]requested_item shift.opened is exist - process it [16:58:32]req_shift_opened [16:58:32]FM_GetShiftState [16:58:32]SAM_PROTO_GetShiftState [16:58:32]wFMCommunicate request_size=4 [16:58:32]MH_SAM_APDU [16:58:32]CAPDU: 80 13 01 00 [16:58:32]Write to MH i2c: E2 08 00 D2 12 80 13 01 00 00 00 00 00 61 [16:58:32]Write i2c OK [16:58:32]MH_I2C_Read... [16:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:32]Read from MH i2c: E2 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: E2 0E 00 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: E2 0E 00 D2 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3B [16:58:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:58:32]wFMCommunicate OK [16:58:32]SAM_PROTO_GetShiftState done [16:58:32]FM_GetShiftState done [16:58:32]req_shift_opened done [16:58:32]requested_item shift.open_date is exist - process it [16:58:32]req_shift_open_date [16:58:32]req_shift_open_date done [16:58:32]produce_requested_data done [16:58:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30968,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [16:58:32]process_action_free close_receipt [16:58:32]json_value_free [16:58:32]json_value_free done [16:58:32]process_json_proto returns [16:58:32]Send response to host [16:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30968,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [16:58:32]free response buf [16:58:32]execute_script done [16:58:32]execute_script returns [16:58:32]free content buf [16:58:32]Sock 10.Close socket [16:58:32]Sock 10.Thread stoped [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:53]accept exits with 9 [16:59:53]New connection [16:59:53]New thread 3067043172 created [16:59:53]Thread 3066899812 joined [16:59:53]Waiting for new connection... [16:59:53] Sock 9.Parse request [16:59:53]Sock 9.Check first char [16:59:53]Sock 9.First char is OK [16:59:53]request: POST /json_proto HTTP/1.0 [16:59:53]Method: POST [16:59:53]URL: /json_proto [16:59:53]Method is POST - this is cgi request [16:59:53]url: /json_proto [16:59:53]query_string will be loaded in cgi processing [16:59:53]execute_cgi json_proto POST (null) [16:59:53]execute_cgi path=json_proto method=POST [16:59:53]POST find Content-Length [16:59:53]Host: 172.17.51.3:8080 [16:59:53]Content-Length: 674 [16:59:53]Content-Type: application/json [16:59:53] [16:59:53]POST finish read [16:59:53]Found Content-Length = 674 [16:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]execute_script... [16: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)343395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]POST & json_proto [16:59:53]process_json_proto [16:59:53]json parsed OK: [16:59:53]protocol is kg_v1.0 [16:59:53]action value=close_receipt [16:59:53]process_action close_receipt [16:59:53]cmd_close_receipt [16:59:53]MH_GetDate [16:59:53]Write to MH i2c: F0 00 00 D3 12 D4 [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 D3 12 00 0B DA 17 67 04 C1 95 66 00 [16:59:54]GetLastDocTimeStamp 1729616306 [16:59:54]current date 1729616395 [16:59:54]FM_GetShiftState [16:59:54]SAM_PROTO_GetShiftState [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 13 01 00 [16:59:54]Write to MH i2c: E2 08 00 D4 12 80 13 01 00 00 00 00 00 63 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 D4 12 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3D [16:59:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_GetShiftState done [16:59:54]FM_GetShiftState done [16:59:54]opened in 1729557342 [16:59:54]opened+sec_in_day 1729643742 [16:59:54]quantity*price = 70027 [16:59:54]sum+1 = 70029 [16:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 202 22.10.2024 16:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30969 ФПД: 65389361255257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165955&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30969&fm=65389361255257&tin=02508201610067®Number=0000000000186857&sum=70000 [16:59:56]StoreToDocumentArchive [16:59:56]shift 116 fd 30969 [16:59:56]save to /storage/0116/doc_00030969 [16:59:56]save last doc name /storage/0116/doc_00030969 to /storage/kkm_last_doc_name [16:59:56]save OK [16:59:56]Clear old archive folders... [16:59:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:56]tlvbuf is 00F1DE80 [16:59:56]SAM_PROTO_ClearQueue [16:59:56]wFMCommunicate request_size=4 [16:59:56]MH_SAM_APDU [16:59:56]CAPDU: 80 09 00 00 [16:59:56]Write to MH i2c: E2 08 00 E1 12 80 09 00 00 00 00 00 00 65 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:56]Read from MH i2c: E2 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 E1 12 00 90 00 67 [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_ClearQueue done [16:59:57]KKMCreateOFDPacket [16:59:57]OFDProtocolAddRootSTLVToBuf [16:59:57]FM_MakeSignedData [16:59:57]FM_MakeSignedData [16:59:57]SAM_PROTO_SignData [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 0D 01 02 [16:59:57]Write to MH i2c: E2 08 00 E2 12 80 0D 01 02 00 00 00 00 6D [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 E2 12 00 90 00 68 [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]wFMCommunicate request_size=255 [16:59:57]MH_SAM_APDU [16:59:57]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 32 FF 03 08 00 03 E6 23 00 OFD Sender: No OFD packet to send [16:59:57]00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 78 00 00 35 04 06 00 3B 78 A5 A6 [16:59:57]Write to MH i2c: E2 02 01 E3 12 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 78 00 00 35 04 06 00 3B 78 A5 A6 00 00 00 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:58]Read from MH i2c: E2 03 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 E3 12 00 90 00 69 [16:59:58]RAPDU: 90 00 [16:59:58]wFMCommunicate OK [16:59:58]wFMCommunicate request_size=7 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 0D 02 02 02 53 59 [16:59:58]Write to MH i2c: E2 0A 00 E4 12 80 0D 02 02 02 00 53 59 00 00 20 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 E4 12 00 90 00 6A [16:59:58]RAPDU: 90 00 [16:59:58]wFMCommunicate OK [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 0D 03 02 [16:59:58]Write to MH i2c: E2 08 00 E5 12 80 0D 03 02 00 00 00 00 72 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0B 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0B 00 E5 12 00 54 5C B9 64 81 8D 05 2D 90 00 80 [16:59:58]RAPDU: 54 5C B9 64 81 8D 05 2D 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_SignData done [16:59:58]FM_MakeSignedData done [16:59:58]CreateOFDProtocolMessage [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 11 00 00 [16:59:58]Write to MH i2c: E2 08 00 E6 12 80 11 00 00 00 00 00 00 72 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 E6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [16:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:59:59]wFMCommunicate OK [16:59:59]CreateOFDProtocolMessage done [16:59:59]OFDSenderStorePacket 30969 [16:59:59]StoreOFDPacket docnum=30969 [16:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BD E8 04 01 EF 3C 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 78 00 00 35 04 06 00 3B 78 A5 A6 53 59 54 5C B9 64 81 8D 05 2D [16:59:59]CheckFolder [16:59:59]dirname=/storage/ofd_packets [16:59:59]CheckFolder done [16:59:59]ProducePacketName [16:59:59]name=ofd_packets/00030969 [16:59:59]NVStorageSaveData ofd_packets/00030969 [16:59:59]File name is /storage/ofd_packets/00030969 [16:59:59]Write 298 bytes [16:59:59]NVStorageSaveData done [16:59:59]OFDSenderStorePacket done [16:59:59]KKMCreateOFDPacket done [16:59:59]NVStorageSaveData kkm_last_timestamp [16:59:59]File name is /storage/kkm_last_timestamp [16:59:59]Write 4 bytes [16:59:59]NVStorageSaveData done [16:59:59]ExternCall_PrintAddStr [16:59:59]wPrintStart [16:59:59]Write to MH i2c: 01 00 00 E7 12 F9 [16:59:59]Write i2c OK [16:59:59]MH_I2C_Read... [16:59:59]Read from MH i2c: 01 [16:59:59]MH_I2C_Read... [16:59:59]Read from MH i2c: 01 07 00 [16:59:59]MH_I2C_Read... [16:59:59]Read from MH i2c: 01 07 00 E7 12 00 00 00 00 00 FF 0F 0E [16:59:59]RasterBufferAndPrint [16:59:59]line Счет N : (1)343395 [16:59:59]line ИНН: 02508201610067 [16:59:59]line Контрольно-Кассовый Чек [16:59:59]line ПРОДАЖА [16:59:59]line ТРК (МРК, ГНК) : 54 [16:59:59]line Товар: 2710194210 [16:59:59]line ДТ-К-2 [16:59:59]line 9.190 * 76.20 [16:59:59]line = 700.28 [16:59:59]line НДС 12% НСП 1% [16:59:59]line > о реализуемом товаре [16:59:59]line ОКРУГЛЕНИЕ: -0.28 [16:59:59]line ИТОГО: 700.00 [16:59:59]line Внесено: 700.00 [16:59:59]line СДАЧА: 0.00 [16:59:59]line НСП 1% : 6.20 [16:59:59]line НДС 12% : 74.37 [16:59:59]OFD Sender: Processing packet 30969 [packets to send 11, broken 10] [16:59:59]ProducePacketName [16:59:59]name=ofd_packets/00030969 [16:59:59]OFD Sender: To server: pG, [16:59:59]CommunicateWithHost lk.salyk.kg:30040 [16:59:59]ConnectInit lk.salyk.kg [16:59:59]line Наличными: 700.00 [16:59:59]line Безнал.: 0.00 [16:59:59]line Место: АЗС № 78 "Партнер Нефть" [16:59:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:59:59]line СНО: Общий режим [16:59:59]line Чек 202 22.10.2024 16:59 [16:59:59]line Смена: 116 ФФД: 1.0 [16:59:59]line ЗНМ: 0300000137 [16:59:59]line РНМ: 0000000000186857 [16:59:59]line Версия ККМ: v1.0 [16:59:59]line ФМ: 0000000002094219 [16:59:59]line ФД: 30969 [16:59:59]line ФПД: 65389361255257 [16:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165955&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30969&fm=65389361255257&tin=02508201610067®Number=0000000000186857&sum=70000 [16:59:59]written 0, free lines is 4095 [16:59:59]Connected sock=11 [16:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BD E8 04 01 EF 3C 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 Write to MH i2c: 02 01 00 00 01 00 00 12 12 13 25 04 [16:59:59]04 Write i2c OK [16:59:59]00 MH_I2C_Read... [16:59:59]CA 00 00 00 F4 03 04 00 0B Read from MH i2c: DA 01 17 [16:59:59]67 MH_I2C_Read... [16:59:59]0E 04 04 00 74 00 00 00 B9 Read from MH i2c: 04 01 01 07 00 00 01 [16:59:59]0D 04 10 00 30 30 30 MH_I2C_Read... [16:59:59]30 30 30 30 Read from MH i2c: 30 01 30 07 30 31 38 36 38 35 37 11 04 10 00 00 30 12 30 13 30 30 30 30 30 30 00 30 00 32 00 30 39 34 32 31 39 00 10 00 04 EC 04 00 F9 78 00 00 0D 35 25 04 [17:00:00]06 RasterBufferAndPrint [17:00:00]00 line [17:00:00]3B line [17:00:00]78 line [17:00:00]A5 line [17:00:00]A6 53 59 54 5C B9 line [17:00:00]64 written 0, free lines is 3959 [17:00:00]81 8D 05 2D [17:00:00]MH_Cut [17:00:00]Write to MH i2c: D1 01 00 19 13 01 FE [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: D1 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: D1 01 00 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: D1 01 00 19 13 00 FD [17:00:00]Write to MH i2c: 01 00 00 1A 13 2D [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 80 C4 47 00 47 AA A5 07 01 00 07 00 3B 00 F9 *** Cut start [17:00:00]03 *** Partial cut [17:00:00]0E *** CUTSNS_PIN = 1 [17:00:00]00 37 37 *** CUTSNS_PIN = 0 [17:00:00]30 *** Brake cut motor [17:00:00]39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 78 00 00 F4 03 04 00 8C 84 17 67 B6 04 01 00 00 C5 23 7C F3 D4 E6 7A E2 [17:00:00]CommunicateWithHost err = 0 [17:00:00]CheckOFDResponse [17:00:00]1017 (14) - 77093643461234 [17:00:00]1041 (16) - 0000000002094219 [17:00:00]1040 (4) - 30969 [17:00:00]1012 (4) - 22.10.2024 10:55 [17:00:00]1206 (1) - 0 [17:00:00]OFD Sender: Remove packet 30969 [17:00:00]ProducePacketName [17:00:00]name=ofd_packets/00030969 [17:00:01]NVStorageDeleteData [17:00:01]Read from MH i2c: 01 [17:00:01]MH_I2C_Read... [17:00:01]*** Stop cut motor [17:00:01]Read from MH i2c: *** Cut end [17:00:01]01 07 00 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: 01 07 00 1A 13 00 00 00 00 00 FF 0F 42 [17:00:01]process_action close_receipt done [17:00:01]requested_data is exist [17:00:01]produce_requested_data [17:00:01]requested_item fm.sn is exist - process it [17:00:01]wFMCommunicate request_size=4 [17:00:01]MH_SAM_APDU [17:00:01]CAPDU: 80 11 00 00 [17:00:01]Write to MH i2c: E2 08 00 1B 13 80 11 00 00 00 00 00 00 A8 [17:00:01]Write i2c OK [17:00:01]MH_I2C_Read... [17:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:01]Read from MH i2c: E2 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 17 00 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 17 00 1B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [17:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:00:01]wFMCommunicate OK [17:00:01]requested_item fd.num is exist - process it [17:00:01]SAM_PROTO_GetFieldsCounters [17:00:01]wFMCommunicate request_size=4 [17:00:01]MH_SAM_APDU [17:00:01]CAPDU: 80 13 00 00 [17:00:01]Write to MH i2c: E2 08 00 1C 13 80 13 00 00 00 00 00 00 AB [17:00:01]Write i2c OK [17:00:01]MH_I2C_Read... [17:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:01]Read from MH i2c: E2 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 62 00 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 62 00 1C 13 00 5D 00 B9 04 01 00 01 11 04 OFD Sender: No OFD packet to send [17:00:01]10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [17:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:01]wFMCommunicate OK [17:00:01]SAM_PROTO_GetFieldsCounters done [17:00:01]requested_item shift.num is exist - process it [17:00:01]requested_item shift.opened is exist - process it [17:00:01]req_shift_opened [17:00:01]FM_GetShiftState [17:00:01]SAM_PROTO_GetShiftState [17:00:01]wFMCommunicate request_size=4 [17:00:01]MH_SAM_APDU [17:00:01]CAPDU: 80 13 01 00 [17:00:01]Write to MH i2c: E2 08 00 1D 13 80 13 01 00 00 00 00 00 AD [17:00:01]Write i2c OK [17:00:01]MH_I2C_Read... [17:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:01]Read from MH i2c: E2 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 0E 00 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: E2 0E 00 1D 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 87 [17:00:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:00:02]wFMCommunicate OK [17:00:02]SAM_PROTO_GetShiftState done [17:00:02]FM_GetShiftState done [17:00:02]req_shift_opened done [17:00:02]requested_item shift.open_date is exist - process it [17:00:02]req_shift_open_date [17:00:02]req_shift_open_date done [17:00:02]produce_requested_data done [17:00:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30969,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:00:02]process_action_free close_receipt [17:00:02]json_value_free [17:00:02]json_value_free done [17:00:02]process_json_proto returns [17:00:02]Send response to host [17:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30969,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:00:02]free response buf [17:00:02]execute_script done [17:00:02]execute_script returns [17:00:02]free content buf [17:00:02]Sock 9.Close socket [17:00:02]Sock 9.Thread stoped [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:19]ConnectInit Can't connect to host [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:38]ConnectInit Can't connect to host [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:55]accept exits with 10 [17:04:55]New connection [17:04:55]New thread 3066899812 created [17:04:55]Thread 3067043172 joined [17:04:55]Waiting for new connection... [17:04:55] Sock 10.Parse request [17:04:55]Sock 10.Check first char [17:04:55]Sock 10.First char is OK [17:04:55]request: POST /json_proto HTTP/1.0 [17:04:55]Method: POST [17:04:55]URL: /json_proto [17:04:55]Method is POST - this is cgi request [17:04:55]url: /json_proto [17:04:55]query_string will be loaded in cgi processing [17:04:55]execute_cgi json_proto POST (null) [17:04:55]execute_cgi path=json_proto method=POST [17:04:55]POST find Content-Length [17:04:55]Host: 172.17.51.3:8080 [17:04:55]Content-Length: 688 [17:04:55]Content-Type: application/json [17:04:55] [17:04:55]POST finish read [17:04:55]Found Content-Length = 688 [17:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [17:04:55]execute_script... [17:04:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [17:04:55]POST & json_proto [17:04:55]process_json_proto [17:04:55]json parsed OK: [17:04:55]protocol is kg_v1.0 [17:04:55]action value=close_receipt [17:04:55]process_action close_receipt [17:04:55]cmd_close_receipt [17:04:55]MH_GetDate [17:04:55]Write to MH i2c: F0 00 00 1E 13 20 [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: F0 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: F0 09 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: F0 09 00 1E 13 00 38 DB 17 67 04 C1 95 66 7A [17:04:55]GetLastDocTimeStamp 1729616395 [17:04:55]current date 1729616696 [17:04:55]FM_GetShiftState [17:04:55]SAM_PROTO_GetShiftState [17:04:55]wFMCommunicate request_size=4 [17:04:55]MH_SAM_APDU [17:04:55]CAPDU: 80 13 01 00 [17:04:55]Write to MH i2c: E2 08 00 1F 13 80 13 01 00 00 00 00 00 AF [17:04:55]Write i2c OK [17:04:55]MH_I2C_Read... [17:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:55]Read from MH i2c: E2 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: E2 0E 00 [17:04:55]MH_I2C_Read... [17:04:55]Read from MH i2c: E2 0E 00 1F 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 89 [17:04:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:04:55]wFMCommunicate OK [17:04:55]SAM_PROTO_GetShiftState done [17:04:55]FM_GetShiftState done [17:04:55]opened in 1729557342 [17:04:55]opened+sec_in_day 1729643742 [17:04:55]quantity*price = 120046 [17:04:55]sum+1 = 120047 [17:04:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 203 22.10.2024 17:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30970 ФПД: 249099946550163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170457&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30970&fm=249099946550163&tin=02508201610067®Number=0000000000186857&sum=120000 [17:04:58]StoreToDocumentArchive [17:04:58]shift 116 fd 30970 [17:04:58]save to /storage/0116/doc_00030970 [17:04:58]save last doc name /storage/0116/doc_00030970 to /storage/kkm_last_doc_name [17:04:58]save OK [17:04:58]Clear old archive folders... [17:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:04:58]tlvbuf is 00DE08E0 [17:04:58]SAM_PROTO_ClearQueue [17:04:58]wFMCommunicate request_size=4 [17:04:58]MH_SAM_APDU [17:04:58]CAPDU: 80 09 00 00 [17:04:58]Write to MH i2c: E2 08 00 2C 13 80 09 00 00 00 00 00 00 B1 [17:04:58]Write i2c OK [17:04:58]MH_I2C_Read... [17:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:58]Read from MH i2c: E2 [17:04:58]MH_I2C_Read... [17:04:58]Read from MH i2c: E2 03 00 [17:04:58]MH_I2C_Read... [17:04:58]Read from MH i2c: E2 03 00 2C 13 00 90 00 B3 [17:04:58]RAPDU: 90 00 [17:04:58]wFMCommunicate OK [17:04:58]SAM_PROTO_ClearQueue done [17:04:58]KKMCreateOFDPacket [17:04:58]OFDProtocolAddRootSTLVToBuf [17:04:58]FM_MakeSignedData [17:04:58]FM_MakeSignedData [17:04:58]SAM_PROTO_SignData [17:04:58]wFMCommunicate request_size=4 [17:04:58]MH_SAM_APDU [17:04:58]CAPDU: 80 0D 01 02 [17:04:58]Write to MH i2c: E2 08 00 2D 13 80 0D 01 02 00 00 00 00 B9 [17:04:58]Write i2c OK [17:04:58]MH_I2C_Read... [17:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:58]Read from MH i2c: E2 [17:04:58]MH_I2C_Read... [17:04:58]Read from MH i2c: E2 03 00 [17:04:58]MH_I2C_Read... [17:04:58]Read from MH i2c: E2 03 00 2D 13 00 90 00 B4 [17:04:58]RAPDU: 90 00 [17:04:58]wFMCommunicate OK [17:04:58]wFMCommunicate request_size=255 [17:04:58]MH_SAM_APDU [17:04:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 CB 00 00 00 F4 03 04 00 39 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 78 00 [17:04:59]Write to MH i2c: E2 02 01 2E 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 CB 00 00 00 F4 03 04 00 39 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 78 00 00 00 C8 [17:04:59]Write i2c OK [17:04:59]MH_I2C_Read... [17:04:59]Read from MH i2c: E2 [17:04:59]MH_I2C_Read... [17:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:59]Read from MH i2c: E2 03 00 [17:04:59]MH_I2C_Read... [17:04:59]Read from MH i2c: E2 03 00 2E 13 00 90 00 B5 [17:04:59]RAPDU: 90 00 [17:04:59]wFMCommunicate OK [17:04:59]wFMCommunicate request_size=16 [17:04:59]MH_SAM_APDU [17:04:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E2 8E 19 D3 E3 93 [17:04:59]Write to MH i2c: E2 13 00 2F 13 80 0D 02 02 0B 00 00 35 04 06 00 E2 8E 19 D3 E3 93 00 00 E3 [17:05:00]Write i2c OK [17:05:00]MH_I2C_Read... [17:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:00]Read from MH i2c: E2 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 03 00 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 03 00 2F 13 00 90 00 B6 [17:05:00]RAPDU: 90 00 [17:05:00]wFMCommunicate OK [17:05:00]wFMCommunicate request_size=4 [17:05:00]MH_SAM_APDU [17:05:00]CAPDU: 80 0D 03 02 [17:05:00]Write to MH i2c: E2 08 00 30 13 80 0D 03 02 00 00 00 00 BE [17:05:00]Write i2c OK [17:05:00]MH_I2C_Read... [17:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:00]Read from MH i2c: E2 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 0B 00 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 0B 00 30 13 00 03 18 C2 A5 94 75 F3 0E 90 00 4B [17:05:00]RAPDU: 03 18 C2 A5 94 75 F3 0E 90 00 [17:05:00]wFMCommunicate OK [17:05:00]SAM_PROTO_SignData done [17:05:00]FM_MakeSignedData done [17:05:00]CreateOFDProtocolMessage [17:05:00]wFMCommunicate request_size=4 [17:05:00]MH_SAM_APDU [17:05:00]CAPDU: 80 11 00 00 [17:05:00]Write to MH i2c: E2 08 00 31 13 80 11 00 00 00 00 00 00 BE [17:05:00]Write i2c OK [17:05:00]MH_I2C_Read... [17:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:00]Read from MH i2c: E2 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 17 00 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: E2 17 00 31 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [17:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:05:00]wFMCommunicate OK [17:05:00]CreateOFDProtocolMessage done [17:05:00]OFDSenderStorePacket 30970 [17:05:00]StoreOFDPacket docnum=30970 [17:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 90 A8 0D 01 D7 99 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 CB 00 00 00 F4 03 04 00 39 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 78 00 00 35 04 06 00 E2 8E 19 D3 E3 93 03 18 C2 A5 94 75 F3 0E [17:05:00]CheckFolder [17:05:00]dirname=/storage/ofd_packets [17:05:00]CheckFolder done [17:05:00]ProducePacketName [17:05:00]name=ofd_packets/00030970 [17:05:00]NVStorageSaveData ofd_packets/00030970 [17:05:00]File name is /storage/ofd_packets/00030970 [17:05:00]Write 307 bytes [17:05:00]NVStorageSaveData done [17:05:00]OFDSenderStorePacket done [17:05:00]KKMCreateOFDPacket done [17:05:00]NVStorageSaveData kkm_last_timestamp [17:05:00]File name is /storage/kkm_last_timestamp [17:05:00]Write 4 bytes [17:05:00]NVStorageSaveData done [17:05:00]ExternCall_PrintAddStr [17:05:00]wPrintStart [17:05:00]Write to MH i2c: 01 00 00 32 13 45 [17:05:00]Write i2c OK [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 07 00 [17:05:00]MH_I2C_Read... [17:05:00]Read from MH i2c: 01 07 00 32 13 00 00 00 00 00 FF 0F 5A [17:05:00]RasterBufferAndPrint [17:05:00]line Счет N : (1)343396 [17:05:00]line ИНН: 02508201610067 [17:05:00]line Контрольно-Кассовый Чек [17:05:00]line ПРОДАЖА [17:05:00]line ТРК (МРК, ГНК) : 61 [17:05:00]line Товар: 2710194210 [17:05:00]line D-ENERGY Дт-К-2 [17:05:00]line 15.550 * 77.20 [17:05:00]line = 1200.46 [17:05:00]line НДС 12% НСП 1% [17:05:00]line > о реализуемом товаре [17:05:00]line ОКРУГЛЕНИЕ: -0.46 [17:05:00]line ИТОГО: 1200.00 [17:05:00]line Внесено: 1200.00 [17:05:00]line СДАЧА: 0.00 [17:05:00]line НСП 1% : 10.62 [17:05:00]line НДС 12% : 127.48 [17:05:00]line Наличными: 1200.00 [17:05:00]line Безнал.: 0.00 [17:05:00]line Место: АЗС № 78 "Партнер Нефть" [17:05:00]OFD Sender: Processing packet 30970 [packets to send 11, broken 10] [17:05:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:05:00]ProducePacketName [17:05:00]line СНО: Общий режим [17:05:00]name=ofd_packets/00030970 [17:05:00]line Чек 203 22.10.2024 17:04 [17:05:00]OFD Sender: To server: pG, [17:05:00]line Смена: 116 ФФД: 1.0 [17:05:00]CommunicateWithHost lk.salyk.kg:30040 [17:05:00]line ЗНМ: 0300000137 [17:05:00]line РНМ: 0000000000186857 [17:05:00]line Версия ККМ: v1.0 [17:05:00]line ФМ: 0000000002094219 [17:05:00]line ФД: 30970 [17:05:00]line ФПД: 249099946550163 [17:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170457&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30970&fm=249099946550163&tin=02508201610067®Number=0000000000186857&sum=120000 [17:05:00]ConnectInit lk.salyk.kg [17:05:00]written 0, free lines is 4095 [17:05:00]Connected sock=7 [17:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 90 A8 0D 01 D7 99 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 Write to MH i2c: 00 01 26 00 04 00 5D 13 70 [17:05:01]00 00 00 00 EE Write i2c OK [17:05:01]MH_I2C_Read... [17:05:01]Read from MH i2c: 01 [17:05:01]03 MH_I2C_Read... [17:05:01]0F Read from MH i2c: 00 01 F2 07 03 00 01 [17:05:01]00 MH_I2C_Read... [17:05:01]01 Read from MH i2c: F3 01 03 06 00 CC 31 00 00 07 00 00 00 5D 07 13 04 00 06 00 00 00 00 A0 0D 24 [17:05:01]RasterBufferAndPrint [17:05:01]line [17:05:01]line [17:05:01]line [17:05:01]00 line [17:05:01]C0 line [17:05:01]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 CB 00 00 00 F4 03 04 00 39 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 written 0, free lines is 3792 [17:05:01]30 30 30 30 30 30 30 30 MH_Cut [17:05:01]31 Write to MH i2c: 38 D1 36 38 35 37 11 04 01 10 00 00 64 30 13 30 01 30 49 30 [17:05:01]30 30 30 30 30 32 30 39 34 Write i2c OK [17:05:01]32 MH_I2C_Read... [17:05:01]31 39 10 04 04 00 FA Read from MH i2c: 78 D1 00 [17:05:01]00 MH_I2C_Read... [17:05:01]35 04 06 00 E2 8E 19 D3 E3 Read from MH i2c: 93 D1 03 01 18 00 C2 [17:05:01]A5 MH_I2C_Read... [17:05:01]94 Read from MH i2c: 75 D1 F3 0E [17:05:01]01 00 64 13 00 48 [17:05:01]Write to MH i2c: 01 00 00 65 13 78 [17:05:01]Write i2c OK [17:05:01]MH_I2C_Read... [17:05:01]*** Cut start [17:05:01]*** Partial cut [17:05:01]*** CUTSNS_PIN = 1 [17:05:01]*** CUTSNS_PIN = 0 [17:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 *** Brake cut motor [17:05:02]00 00 D9 19 47 00 26 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 78 00 00 F4 03 04 00 BA 85 17 67 B6 04 *** Stop cut motor [17:05:02]01 *** Cut end [17:05:02]00 Read from MH i2c: 00 01 58 [17:05:02]5D MH_I2C_Read... [17:05:02]3F 01 13 95 5B Read from MH i2c: 01 01 [17:05:02]07 CommunicateWithHost err = 0 [17:05:02]00 CheckOFDResponse [17:05:02] [17:05:02]1017 (14) - 77093643461234 [17:05:02]1041 (16) - 0000000002094219 [17:05:02]1040 (4) - 30970 [17:05:02]1012 (4) - 22.10.2024 11:00 [17:05:02]1206 (1) - 0 [17:05:02]OFD Sender: Remove packet 30970 [17:05:02]MH_I2C_Read... [17:05:02]ProducePacketName [17:05:02]Read from MH i2c: name=ofd_packets/00030970 [17:05:02]01 NVStorageDeleteData [17:05:02]07 00 65 13 00 00 00 00 00 FF 0F 8D [17:05:02]process_action close_receipt done [17:05:02]requested_data is exist [17:05:02]produce_requested_data [17:05:02]requested_item fm.sn is exist - process it [17:05:02]wFMCommunicate request_size=4 [17:05:02]MH_SAM_APDU [17:05:02]CAPDU: 80 11 00 00 [17:05:02]Write to MH i2c: E2 08 00 66 13 80 11 00 00 00 00 00 00 F3 [17:05:02]Write i2c OK [17:05:02]MH_I2C_Read... [17:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:02]Read from MH i2c: E2 [17:05:02]MH_I2C_Read... [17:05:02]Read from MH i2c: E2 17 00 [17:05:02]MH_I2C_Read... [17:05:02]Read from MH i2c: E2 17 00 66 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [17:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:05:02]wFMCommunicate OK [17:05:02]requested_item fd.num is exist - process it [17:05:02]SAM_PROTO_GetFieldsCounters [17:05:02]wFMCommunicate request_size=4 [17:05:02]MH_SAM_APDU [17:05:02]CAPDU: 80 13 00 00 [17:05:02]Write to MH i2c: E2 08 00 67 13 80 13 00 00 00 00 00 00 F6 [17:05:02]Write i2c OK [17:05:02]MH_I2C_Read... [17:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:03]Read from MH i2c: E2 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 62 00 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 62 00 67 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 OFD Sender: No OFD packet to send [17:05:03]00 00 90 00 63 [17:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:03]wFMCommunicate OK [17:05:03]SAM_PROTO_GetFieldsCounters done [17:05:03]requested_item shift.num is exist - process it [17:05:03]requested_item shift.opened is exist - process it [17:05:03]req_shift_opened [17:05:03]FM_GetShiftState [17:05:03]SAM_PROTO_GetShiftState [17:05:03]wFMCommunicate request_size=4 [17:05:03]MH_SAM_APDU [17:05:03]CAPDU: 80 13 01 00 [17:05:03]Write to MH i2c: E2 08 00 68 13 80 13 01 00 00 00 00 00 F8 [17:05:03]Write i2c OK [17:05:03]MH_I2C_Read... [17:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:03]Read from MH i2c: E2 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 0E 00 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 0E 00 68 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D2 [17:05:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:05:03]wFMCommunicate OK [17:05:03]SAM_PROTO_GetShiftState done [17:05:03]FM_GetShiftState done [17:05:03]req_shift_opened done [17:05:03]requested_item shift.open_date is exist - process it [17:05:03]req_shift_open_date [17:05:03]req_shift_open_date done [17:05:03]produce_requested_data done [17:05:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30970,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:05:03]process_action_free close_receipt [17:05:03]json_value_free [17:05:03]json_value_free done [17:05:03]process_json_proto returns [17:05:03]Send response to host [17:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30970,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:05:03]free response buf [17:05:03]execute_script done [17:05:03]execute_script returns [17:05:03]free content buf [17:05:03]Sock 10.Close socket [17:05:03]Sock 10.Thread stoped [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:54]accept exits with 9 [17:05:54]New connection [17:05:54]New thread 3067043172 created [17:05:54]Thread 3066899812 joined [17:05:54]Waiting for new connection... [17:05:54] Sock 9.Parse request [17:05:54]Sock 9.Check first char [17:05:54]Sock 9.First char is OK [17:05:54]request: POST /json_proto HTTP/1.0 [17:05:54]Method: POST [17:05:54]URL: /json_proto [17:05:54]Method is POST - this is cgi request [17:05:54]url: /json_proto [17:05:54]query_string will be loaded in cgi processing [17:05:54]execute_cgi json_proto POST (null) [17:05:54]execute_cgi path=json_proto method=POST [17:05:54]POST find Content-Length [17:05:54]Host: 172.17.51.3:8080 [17:05:54]Content-Length: 677 [17:05:54]Content-Type: application/json [17:05:54] [17:05:54]POST finish read [17:05:54]Found Content-Length = 677 [17:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:54]execute_script... [17:05: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)343398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:54]POST & json_proto [17:05:54]process_json_proto [17:05:54]json parsed OK: [17:05:54]protocol is kg_v1.0 [17:05:54]action value=close_receipt [17:05:54]process_action close_receipt [17:05:54]cmd_close_receipt [17:05:54]MH_GetDate [17:05:54]Write to MH i2c: F0 00 00 69 13 6B [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: F0 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: F0 09 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: F0 09 00 69 13 00 74 DB 17 67 04 C1 95 66 01 [17:05:54]GetLastDocTimeStamp 1729616697 [17:05:54]current date 1729616756 [17:05:54]FM_GetShiftState [17:05:54]SAM_PROTO_GetShiftState [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 13 01 00 [17:05:54]Write to MH i2c: E2 08 00 6A 13 80 13 01 00 00 00 00 00 FA [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 6A 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D4 [17:05:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_GetShiftState done [17:05:54]FM_GetShiftState done [17:05:54]opened in 1729557342 [17:05:54]opened+sec_in_day 1729643742 [17:05:54]quantity*price = 10035 [17:05:54]sum+1 = 10036 [17:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 204 22.10.2024 17:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30971 ФПД: 279803031308537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30971&fm=279803031308537&tin=02508201610067®Number=0000000000186857&sum=10000 [17:05:57]StoreToDocumentArchive [17:05:57]shift 116 fd 30971 [17:05:57]save to /storage/0116/doc_00030971 [17:05:57]save last doc name /storage/0116/doc_00030971 to /storage/kkm_last_doc_name [17:05:57]save OK [17:05:57]Clear old archive folders... [17:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:57]tlvbuf is 00F5A100 [17:05:57]SAM_PROTO_ClearQueue [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 09 00 00 [17:05:57]Write to MH i2c: E2 08 00 77 13 80 09 00 00 00 00 00 00 FC [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 77 13 00 90 00 FE [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]SAM_PROTO_ClearQueue done [17:05:57]KKMCreateOFDPacket [17:05:57]OFDProtocolAddRootSTLVToBuf [17:05:57]FM_MakeSignedData [17:05:57]FM_MakeSignedData [17:05:57]SAM_PROTO_SignData [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 0D 01 02 [17:05:57]Write to MH i2c: E2 08 00 78 13 80 0D 01 02 00 00 00 00 04 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]wFMCommunicate request_size=255 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 74 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 78 00 00 35 04 06 00 FE [17:05:58]Write to MH i2c: E2 02 01 79 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 OFD Sender: No OFD packet to send [17:05:58]31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 74 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 78 00 00 35 04 06 00 FE 00 00 FA [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 03 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 03 00 79 13 00 90 00 00 [17:05:59]RAPDU: 90 00 [17:05:59]wFMCommunicate OK [17:05:59]wFMCommunicate request_size=10 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 0D 02 02 05 7A B8 49 C8 F9 [17:05:59]Write to MH i2c: E2 0D 00 7A 13 80 0D 02 02 05 00 7A B8 49 C8 F9 00 00 4D [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 03 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 03 00 7A 13 00 90 00 01 [17:05:59]RAPDU: 90 00 [17:05:59]wFMCommunicate OK [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 0D 03 02 [17:05:59]Write to MH i2c: E2 08 00 7B 13 80 0D 03 02 00 00 00 00 09 [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 0B 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 0B 00 7B 13 00 47 99 4E D6 97 E0 9F 23 90 00 47 [17:05:59]RAPDU: 47 99 4E D6 97 E0 9F 23 90 00 [17:05:59]wFMCommunicate OK [17:05:59]SAM_PROTO_SignData done [17:05:59]FM_MakeSignedData done [17:05:59]CreateOFDProtocolMessage [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 11 00 00 [17:05:59]Write to MH i2c: E2 08 00 7C 13 80 11 00 00 00 00 00 00 09 [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 17 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 17 00 7C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [17:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:05:59]wFMCommunicate OK [17:05:59]CreateOFDProtocolMessage done [17:05:59]OFDSenderStorePacket 30971 [17:05:59]StoreOFDPacket docnum=30971 [17:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 2D 07 01 A9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 74 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 78 00 00 35 04 06 00 FE 7A B8 49 C8 F9 47 99 4E D6 97 E0 9F 23 [17:05:59]CheckFolder [17:05:59]dirname=/storage/ofd_packets [17:05:59]CheckFolder done [17:05:59]ProducePacketName [17:05:59]name=ofd_packets/00030971 [17:05:59]NVStorageSaveData ofd_packets/00030971 [17:05:59]File name is /storage/ofd_packets/00030971 [17:05:59]Write 301 bytes [17:05:59]NVStorageSaveData done [17:05:59]OFDSenderStorePacket done [17:05:59]KKMCreateOFDPacket done [17:05:59]NVStorageSaveData kkm_last_timestamp [17:05:59]File name is /storage/kkm_last_timestamp [17:05:59]Write 4 bytes [17:05:59]NVStorageSaveData done [17:05:59]OFD Sender: Processing packet 30971 [packets to send 11, broken 10] [17:05:59]ProducePacketName [17:06:00]name=ofd_packets/00030971 [17:06:00]OFD Sender: To server: pG, [17:06:00]CommunicateWithHost lk.salyk.kg:30040 [17:06:00]ConnectInit lk.salyk.kg [17:06:00]ExternCall_PrintAddStr [17:06:00]wPrintStart [17:06:00]Write to MH i2c: 01 00 00 7D 13 90 [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: 01 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: 01 07 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: 01 07 00 7D 13 00 00 00 00 00 FF 0F A5 [17:06:00]RasterBufferAndPrint [17:06:00]line Счет N : (1)343398 [17:06:00]line ИНН: 02508201610067 [17:06:00]line Контрольно-Кассовый Чек [17:06:00]Connected sock=10 [17:06:00]line ПРОДАЖА [17:06:00]Data to sent: line ТРК (МРК, ГНК) : 43 [17:06:00]line Товар: 2710124130 [17:06:00]line Аи-92-К-2 [17:06:00]line 1.500 * 66.90 [17:06:00]line = 100.35 [17:06:00]line НДС 12% НСП 1% [17:06:00]87 line > о реализуемом товаре [17:06:00]95 line ОКРУГЛЕНИЕ: -0.35 [17:06:00]F6 line ИТОГО: 100.00 [17:06:00]70 line Внесено: 100.00 [17:06:00]47 line СДАЧА: 0.00 [17:06:00]line НСП 1% : 0.89 [17:06:00]line НДС 12% : 10.66 [17:06:00]line Наличными: 100.00 [17:06:00]line Безнал.: 0.00 [17:06:00]2C line Место: АЗС № 78 "Партнер Нефть" [17:06:00]01 line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:06:00]00 line СНО: Общий режим [17:06:00]30 line Чек 204 22.10.2024 17:05 [17:06:00]30 line Смена: 116 ФФД: 1.0 [17:06:00]line ЗНМ: 0300000137 [17:06:00]line РНМ: 0000000000186857 [17:06:00]line Версия ККМ: v1.0 [17:06:00]line ФМ: 0000000002094219 [17:06:00]line ФД: 30971 [17:06:00]30 line ФПД: 279803031308537 [17:06:00]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30971&fm=279803031308537&tin=02508201610067®Number=0000000000186857&sum=10000 [17:06:00]written 0, free lines is 4095 [17:06:00]30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 2D 07 01 A9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 74 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 Write to MH i2c: 01 01 00 00 01 00 0D 04 10 00 30 30 A8 30 13 30 BB 30 [17:06:00]30 30 30 30 30 31 38 36 Write i2c OK [17:06:00]38 MH_I2C_Read... [17:06:00]35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 78 00 00 35 04 Read from MH i2c: 06 01 00 [17:06:00]MH_I2C_Read... [17:06:00]FE 7A B8 49 C8 F9 47 99 4E D6 97 E0 9F 23 Read from MH i2c: [17:06:00]01 07 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 46 0D 15 [17:06:00]RasterBufferAndPrint [17:06:00]line [17:06:00]line [17:06:00]line [17:06:00]line [17:06:00]line [17:06:00]written 0, free lines is 3823 [17:06:01]MH_Cut [17:06:01]Write to MH i2c: D1 01 00 AF 13 01 94 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: D1 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: D1 01 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: D1 01 00 AF 13 00 93 [17:06:01]Write to MH i2c: 01 00 00 B0 13 C3 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 E4 47 00 CB A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 78 00 00 F4 03 04 00 F5 85 17 67 B6 04 01 00 00 70 E7 50 6A DA 36 A4 DF [17:06:01]CommunicateWithHost err = 0 [17:06:01]CheckOFDResponse [17:06:01]1017 (14) - 77093643461234 [17:06:01]1041 (16) - 0000000002094219 [17:06:01]1040 (4) - 30971 [17:06:01]1012 (4) - 22.10.2024 11:01 [17:06:01]1206 (1) - 0 [17:06:01]OFD Sender: Remove packet 30971 [17:06:01]ProducePacketName [17:06:01]name=ofd_packets/00030971 [17:06:01]NVStorageDeleteData [17:06:01]*** Cut start [17:06:01]*** Partial cut [17:06:01]*** CUTSNS_PIN = 1 [17:06:01]*** CUTSNS_PIN = 0 [17:06:01]*** Brake cut motor [17:06:01]OFD Sender: No OFD packet to send [17:06:01]Read from MH i2c: 01 [17:06:01]MH_I2C_Read... [17:06:01]*** Stop cut motor [17:06:01]*** Cut end [17:06:01]Read from MH i2c: 01 07 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [17:06:01]process_action close_receipt done [17:06:01]requested_data is exist [17:06:01]produce_requested_data [17:06:01]requested_item fm.sn is exist - process it [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:02]CAPDU: 80 11 00 00 [17:06:02]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:02]Read from MH i2c: E2 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 17 00 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [17:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:06:02]wFMCommunicate OK [17:06:02]requested_item fd.num is exist - process it [17:06:02]SAM_PROTO_GetFieldsCounters [17:06:02]wFMCommunicate request_size=4 [17:06:02]MH_SAM_APDU [17:06:02]CAPDU: 80 13 00 00 [17:06:02]Write to MH i2c: E2 08 00 B2 13 80 13 00 00 00 00 00 00 41 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:02]Read from MH i2c: E2 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 62 00 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 62 00 B2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:02]wFMCommunicate OK [17:06:02]SAM_PROTO_GetFieldsCounters done [17:06:02]requested_item shift.num is exist - process it [17:06:02]requested_item shift.opened is exist - process it [17:06:02]req_shift_opened [17:06:02]FM_GetShiftState [17:06:02]SAM_PROTO_GetShiftState [17:06:02]wFMCommunicate request_size=4 [17:06:02]MH_SAM_APDU [17:06:02]CAPDU: 80 13 01 00 [17:06:02]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:02]Read from MH i2c: E2 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 0E 00 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1D [17:06:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:06:03]wFMCommunicate OK [17:06:03]SAM_PROTO_GetShiftState done [17:06:03]FM_GetShiftState done [17:06:03]req_shift_opened done [17:06:03]requested_item shift.open_date is exist - process it [17:06:03]req_shift_open_date [17:06:03]req_shift_open_date done [17:06:03]produce_requested_data done [17:06:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30971,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:06:03]process_action_free close_receipt [17:06:03]json_value_free [17:06:03]json_value_free done [17:06:03]process_json_proto returns [17:06:03]Send response to host [17:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30971,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:06:03]free response buf [17:06:03]execute_script done [17:06:03]execute_script returns [17:06:03]free content buf [17:06:03]Sock 9.Close socket [17:06:03]Sock 9.Thread stoped [17:06:06]ConnectInit Can't connect to host [17:06:06]OFD Sender: No OFD packet to send [17:06:11]ConnectInit Can't connect to host [17:06:11]OFD Sender: No OFD packet to send [17:06:16]ConnectInit Can't connect to host [17:06:16]OFD Sender: No OFD packet to send [17:06:21]ConnectInit Can't connect to host [17:06:21]OFD Sender: No OFD packet to send [17:06:24]accept exits with 7 [17:06:24]New connection [17:06:24]New thread 3066899812 created [17:06:24]Thread 3067043172 joined [17:06:24]Waiting for new connection... [17:06:24] Sock 7.Parse request [17:06:24]Sock 7.Check first char [17:06:24]Sock 7.First char is OK [17:06:24]request: POST /json_proto HTTP/1.0 [17:06:24]Method: POST [17:06:24]URL: /json_proto [17:06:24]Method is POST - this is cgi request [17:06:24]url: /json_proto [17:06:24]query_string will be loaded in cgi processing [17:06:24]execute_cgi json_proto POST (null) [17:06:24]execute_cgi path=json_proto method=POST [17:06:24]POST find Content-Length [17:06:24]Host: 172.17.51.3:8080 [17:06:24]Content-Length: 977 [17:06:24]Content-Type: application/json [17:06:24] [17:06:24]POST finish read [17:06:24]Found Content-Length = 977 [17:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:24]execute_script... [17:06: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)343397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:24]POST & json_proto [17:06:24]process_json_proto [17:06:24]json parsed OK: [17:06:24]protocol is kg_v1.0 [17:06:24]action value=close_receipt [17:06:24]process_action close_receipt [17:06:24]cmd_close_receipt [17:06:24]MH_GetDate [17:06:24]Write to MH i2c: F0 00 00 B4 13 B6 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 09 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 09 00 B4 13 00 91 DB 17 67 04 C1 95 66 69 [17:06:24]GetLastDocTimeStamp 1729616756 [17:06:24]current date 1729616785 [17:06:24]FM_GetShiftState [17:06:24]SAM_PROTO_GetShiftState [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 13 01 00 [17:06:24]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1F [17:06:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:06:24]wFMCommunicate OK [17:06:24]SAM_PROTO_GetShiftState done [17:06:24]FM_GetShiftState done [17:06:24]opened in 1729557342 [17:06:24]opened+sec_in_day 1729643742 [17:06:24]quantity*price = 400064 [17:06:24]sum+1 = 400065 [17:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 205 22.10.2024 17:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 53.20 сом ФМ: 0000000002094219 ФД: 30972 ФПД: 261573826244932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30972&fm=261573826244932&tin=02508201610067®Number=0000000000186857&sum=400000 [17:06:27]StoreToDocumentArchive [17:06:27]shift 116 fd 30972 [17:06:27]save to /storage/0116/doc_00030972 [17:06:27]save last doc name /storage/0116/doc_00030972 to /storage/kkm_last_doc_name [17:06:27]save OK [17:06:27]Clear old archive folders... [17:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:27]tlvbuf is 00CD66F0 [17:06:27]SAM_PROTO_ClearQueue [17:06:27]wFMCommunicate request_size=4 [17:06:27]MH_SAM_APDU [17:06:27]CAPDU: 80 09 00 00 [17:06:27]Write to MH i2c: E2 08 00 C2 13 80 09 00 00 00 00 00 00 47 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:27]Read from MH i2c: E2 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 03 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [17:06:27]RAPDU: 90 00 [17:06:27]wFMCommunicate OK [17:06:27]SAM_PROTO_ClearQueue done [17:06:27]KKMCreateOFDPacket [17:06:27]OFDProtocolAddRootSTLVToBuf [17:06:27]FM_MakeSignedData [17:06:27]FM_MakeSignedData [17:06:27]SAM_PROTO_SignData [17:06:27]wFMCommunicate request_size=4 [17:06:27]MH_SAM_APDU [17:06:27]CAPDU: 80 0D 01 02 [17:06:27]Write to MH i2c: E2 08 00 C3 13 80 0D 01 02 00 00 00 00 4F [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:27]Read from MH i2c: E2 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 03 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [17:06:27]RAPDU: 90 00 [17:06:27]wFMCommunicate OK [17:06:27]wFMCommunicate request_size=255 [17:06:27]MH_SAM_APDU [17:06:27]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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 91 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 78 00 00 35 04 06 00 ED E6 66 FE [17:06:28]Write to MH i2c: E2 02 01 C4 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 91 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 78 00 00 35 04 06 00 ED E6 66 FE 00 00 3B [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [17:06:29]RAPDU: 90 00 [17:06:29]wFMCommunicate OK [17:06:29]wFMCommunicate request_size=7 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 0D 02 02 02 F1 44 [17:06:29]Write to MH i2c: E2 0A 00 C5 13 80 0D 02 02 02 00 F1 44 00 00 8B [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [17:06:29]RAPDU: 90 00 [17:06:29]wFMCommunicate OK [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 0D 03 02 [17:06:29]Write to MH i2c: E2 08 00 C6 13 80 0D 03 02 00 00 00 00 54 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0B 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0B 00 C6 13 00 EC 80 EA 5C 78 80 7F BA 90 00 38 [17:06:29]RAPDU: EC 80 EA 5C 78 80 7F BA 90 00 [17:06:29]wFMCommunicate OK [17:06:29]SAM_PROTO_SignData done [17:06:29]FM_MakeSignedData done [17:06:29]CreateOFDProtocolMessage [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 11 00 00 [17:06:29]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 17 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [17:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:06:29]wFMCommunicate OK [17:06:29]CreateOFDProtocolMessage done [17:06:29]OFDSenderStorePacket 30972 [17:06:29]StoreOFDPacket docnum=30972 [17:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 AF DE 04 01 BE 7D 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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 91 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 78 00 00 35 04 06 00 ED E6 66 FE F1 44 EC 80 EA 5C 78 80 7F BA [17:06:29]CheckFolder [17:06:29]dirname=/storage/ofd_packets [17:06:29]CheckFolder done [17:06:29]ProducePacketName [17:06:29]name=ofd_packets/00030972 [17:06:29]NVStorageSaveData ofd_packets/00030972 [17:06:29]File name is /storage/ofd_packets/00030972 [17:06:29]Write 298 bytes [17:06:29]NVStorageSaveData done [17:06:29]OFDSenderStorePacket done [17:06:29]KKMCreateOFDPacket done [17:06:29]NVStorageSaveData kkm_last_timestamp [17:06:29]File name is /storage/kkm_last_timestamp [17:06:29]Write 4 bytes [17:06:29]NVStorageSaveData done [17:06:29]ExternCall_PrintAddStr [17:06:29]wPrintStart [17:06:29]Write to MH i2c: 01 00 00 C8 13 DB [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 07 00 [17:06:29]MH_I2C_Read... [17:06:29]OFD Sender: Processing packet 30972 [packets to send 11, broken 10] [17:06:29]ProducePacketName [17:06:29]name=ofd_packets/00030972 [17:06:29]OFD Sender: To server: pG, [17:06:29]CommunicateWithHost lk.salyk.kg:30040 [17:06:29]ConnectInit lk.salyk.kg [17:06:29]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 FF 0F F0 [17:06:29]RasterBufferAndPrint [17:06:29]line Счет N : (1)343397 [17:06:29]line ИНН: 02508201610067 [17:06:29]line Контрольно-Кассовый Чек [17:06:29]line ПРОДАЖА [17:06:29]line ТРК (МРК, ГНК) : 54 [17:06:29]line Товар: 2710194210 [17:06:29]line ДТ-К-2 [17:06:29]line 53.200 * 75.20 [17:06:29]line = 4000.64 [17:06:29]line НДС 12% НСП 1% [17:06:29]line > о реализуемом товаре [17:06:29]line ОКРУГЛЕНИЕ: -0.64 [17:06:29]line ИТОГО: 4000.00 [17:06:29]line Внесено: 4000.00 [17:06:29]line СДАЧА: 0.00 [17:06:29]line НСП 1% : 35.40 [17:06:29]line НДС 12% : 424.85 [17:06:29]line Наличными: 4000.00 [17:06:29]line Безнал.: 0.00 [17:06:29]line Место: АЗС № 78 "Партнер Нефть" [17:06:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:06:29]line СНО: Общий режим [17:06:29]line Чек 205 22.10.2024 17:06 [17:06:29]line Смена: 116 ФФД: 1.0 [17:06:29]line ЗНМ: 0300000137 [17:06:29]line РНМ: 0000000000186857 [17:06:29]line Версия ККМ: v1.0 [17:06:29]line [17:06:29]line Дисконтная программа [17:06:29]line ДТ [17:06:29]line номер 78 [17:06:29]line сэкономлено 53.20 сом [17:06:29]line ФМ: 0000000002094219 [17:06:29]line ФД: 30972 [17:06:29]line ФПД: 261573826244932 [17:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30972&fm=261573826244932&tin=02508201610067®Number=0000000000186857&sum=400000 [17:06:29]Connected sock=10 [17:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 written 0, free lines is 4095 [17:06:29]31 39 0C 01 00 00 AF DE 04 01 BE 7D 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 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 91 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 Write to MH i2c: 32 01 30 00 39 00 34 F8 32 31 39 10 04 04 13 00 0B FC [17:06:30]78 Write i2c OK [17:06:30]00 MH_I2C_Read... [17:06:30]00 35 04 06 00 ED Read from MH i2c: E6 01 66 [17:06:30]FE MH_I2C_Read... [17:06:30]F1 Read from MH i2c: 44 01 EC 07 80 00 EA [17:06:30]5C MH_I2C_Read... [17:06:30]78 80 7F BA [17:06:30]Read from MH i2c: 01 07 00 F8 13 00 00 00 00 00 6E 0E 8E [17:06:30]RasterBufferAndPrint [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]written 0, free lines is 3924 [17:06:30]MH_Cut [17:06:30]Write to MH i2c: D1 01 00 FF 13 01 E4 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 01 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 01 00 FF 13 00 E3 [17:06:30]Write to MH i2c: 01 00 00 00 14 14 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6A 2E 47 00 47 98 A5 07 01 00 *** Cut start [17:06:31]07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 *** Partial cut [17:06:31]34 *** CUTSNS_PIN = 1 [17:06:31]36 31 32 *** CUTSNS_PIN = 0 [17:06:31]*** Brake cut motor [17:06:31]33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 78 00 00 F4 03 04 00 13 86 17 67 B6 04 01 00 00 7D 8E 28 5F 69 B0 85 E7 [17:06:31]CommunicateWithHost err = 0 [17:06:31]CheckOFDResponse [17:06:31]1017 (14) - 77093643461234 [17:06:31]1041 (16) - 0000000002094219 [17:06:31]*** Stop cut motor [17:06:31]1040 (4) - 30972 [17:06:31]*** Cut end [17:06:31]1012 (4) - 22.10.2024 11:01 [17:06:31]Read from MH i2c: 01 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 1206 (1) - 0 [17:06:31]07 OFD Sender: Remove packet 30972 [17:06:31]00 ConnectInit Can't connect to host [17:06:31] [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 ProducePacketName [17:06:31]07 name=ofd_packets/00030972 [17:06:31]00 NVStorageDeleteData [17:06:31]00 14 00 00 00 00 00 FF 0F 29 [17:06:31]process_action close_receipt done [17:06:31]requested_data is exist [17:06:31]produce_requested_data [17:06:31]requested_item fm.sn is exist - process it [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 11 00 00 [17:06:31]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [17:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:06:32]wFMCommunicate OK [17:06:32]requested_item fd.num is exist - process it [17:06:32]SAM_PROTO_GetFieldsCounters [17:06:32]wFMCommunicate request_size=4 [17:06:32]MH_SAM_APDU [17:06:32]CAPDU: 80 13 00 00 [17:06:32]Write to MH i2c: E2 08 00 02 14 80 13 00 00 00 00 00 00 92 [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 62 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 62 00 02 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 OFD Sender: No OFD packet to send [17:06:32]30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [17:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:32]wFMCommunicate OK [17:06:32]SAM_PROTO_GetFieldsCounters done [17:06:32]requested_item shift.num is exist - process it [17:06:32]requested_item shift.opened is exist - process it [17:06:32]req_shift_opened [17:06:32]FM_GetShiftState [17:06:32]SAM_PROTO_GetShiftState [17:06:32]wFMCommunicate request_size=4 [17:06:32]MH_SAM_APDU [17:06:32]CAPDU: 80 13 01 00 [17:06:32]Write to MH i2c: E2 08 00 03 14 80 13 01 00 00 00 00 00 94 [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 0E 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 0E 00 03 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6E [17:06:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:06:32]wFMCommunicate OK [17:06:32]SAM_PROTO_GetShiftState done [17:06:32]FM_GetShiftState done [17:06:32]req_shift_opened done [17:06:32]requested_item shift.open_date is exist - process it [17:06:32]req_shift_open_date [17:06:32]req_shift_open_date done [17:06:32]produce_requested_data done [17:06:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30972,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:06:32]process_action_free close_receipt [17:06:32]json_value_free [17:06:32]json_value_free done [17:06:32]process_json_proto returns [17:06:32]Send response to host [17:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30972,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:06:32]free response buf [17:06:32]execute_script done [17:06:32]execute_script returns [17:06:32]free content buf [17:06:32]Sock 7.Close socket [17:06:32]Sock 7.Thread stoped [17:06:36]ConnectInit Can't connect to host [17:06:37]OFD Sender: No OFD packet to send [17:06:41]ConnectInit Can't connect to host [17:06:42]OFD Sender: No OFD packet to send [17:06:46]ConnectInit Can't connect to host [17:06:47]OFD Sender: No OFD packet to send [17:06:52]ConnectInit Can't connect to host [17:06:52]OFD Sender: No OFD packet to send [17:06:57]ConnectInit Can't connect to host [17:06:57]OFD Sender: No OFD packet to send [17:07:02]ConnectInit Can't connect to host [17:07:02]OFD Sender: No OFD packet to send [17:07:07]ConnectInit Can't connect to host [17:07:07]OFD Sender: No OFD packet to send [17:07:10]accept exits with 9 [17:07:10]New connection [17:07:10]New thread 3067043172 created [17:07:10]Thread 3066899812 joined [17:07:10]Waiting for new connection... [17:07:10] Sock 9.Parse request [17:07:10]Sock 9.Check first char [17:07:10]Sock 9.First char is OK [17:07:10]request: POST /json_proto HTTP/1.0 [17:07:10]Method: POST [17:07:10]URL: /json_proto [17:07:10]Method is POST - this is cgi request [17:07:10]url: /json_proto [17:07:10]query_string will be loaded in cgi processing [17:07:10]execute_cgi json_proto POST (null) [17:07:10]execute_cgi path=json_proto method=POST [17:07:10]POST find Content-Length [17:07:10]Host: 172.17.51.3:8080 [17:07:10]Content-Length: 677 [17:07:10]Content-Type: application/json [17:07:10] [17:07:10]POST finish read [17:07:10]Found Content-Length = 677 [17:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:10]execute_script... [17:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:10]POST & json_proto [17:07:10]process_json_proto [17:07:10]json parsed OK: [17:07:10]protocol is kg_v1.0 [17:07:10]action value=close_receipt [17:07:10]process_action close_receipt [17:07:10]cmd_close_receipt [17:07:10]MH_GetDate [17:07:10]Write to MH i2c: F0 00 00 04 14 07 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 09 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 09 00 04 14 00 C0 DB 17 67 04 C1 95 66 E9 [17:07:11]GetLastDocTimeStamp 1729616785 [17:07:11]current date 1729616832 [17:07:11]FM_GetShiftState [17:07:11]SAM_PROTO_GetShiftState [17:07:11]wFMCommunicate request_size=4 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 13 01 00 [17:07:11]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 0E 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 70 [17:07:11]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:07:11]wFMCommunicate OK [17:07:11]SAM_PROTO_GetShiftState done [17:07:11]FM_GetShiftState done [17:07:11]opened in 1729557342 [17:07:11]opened+sec_in_day 1729643742 [17:07:11]quantity*price = 38066 [17:07:11]sum+1 = 38067 [17:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.42 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 206 22.10.2024 17:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30973 ФПД: 252815606330111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170712&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30973&fm=252815606330111&tin=02508201610067®Number=0000000000186857&sum=38000 [17:07:13]StoreToDocumentArchive [17:07:13]shift 116 fd 30973 [17:07:13]save to /storage/0116/doc_00030973 [17:07:13]save last doc name /storage/0116/doc_00030973 to /storage/kkm_last_doc_name [17:07:13]save OK [17:07:13]Clear old archive folders... [17:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:13]tlvbuf is 00CFBEE0 [17:07:13]SAM_PROTO_ClearQueue [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 09 00 00 [17:07:13]Write to MH i2c: E2 08 00 12 14 80 09 00 00 00 00 00 00 98 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:14]Read from MH i2c: E2 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 03 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [17:07:14]RAPDU: 90 00 [17:07:14]wFMCommunicate OK [17:07:14]SAM_PROTO_ClearQueue done [17:07:14]KKMCreateOFDPacket [17:07:14]OFDProtocolAddRootSTLVToBuf [17:07:14]FM_MakeSignedData [17:07:14]FM_MakeSignedData [17:07:14]SAM_PROTO_SignData [17:07:14]wFMCommunicate request_size=4 [17:07:14]MH_SAM_APDU [17:07:14]CAPDU: 80 0D 01 02 [17:07:14]Write to MH i2c: E2 08 00 13 14 80 0D 01 02 00 00 00 00 A0 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:14]Read from MH i2c: E2 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 03 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [17:07:14]RAPDU: 90 00 [17:07:14]wFMCommunicate OK [17:07:14]wFMCommunicate request_size=255 [17:07:14]MH_SAM_APDU [17:07: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 32 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C0 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 78 00 00 35 04 06 00 E5 [17:07:14]Write to MH i2c: E2 02 01 14 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C0 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 78 00 00 35 04 06 00 E5 00 00 66 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=10 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 02 02 05 EF 38 68 B2 FF [17:07:15]Write to MH i2c: E2 0D 00 15 14 80 0D 02 02 05 00 EF 38 68 B2 FF 00 00 ED [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 03 02 [17:07:15]Write to MH i2c: E2 08 00 16 14 80 0D 03 02 00 00 00 00 A5 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 16 14 00 BA C7 27 42 B0 21 B4 E5 90 00 FA [17:07:15]RAPDU: BA C7 27 42 B0 21 B4 E5 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_SignData done [17:07:15]FM_MakeSignedData done [17:07:15]CreateOFDProtocolMessage [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 11 00 00 [17:07:15]Write to MH i2c: E2 08 00 17 14 80 11 00 00 00 00 00 00 A5 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 17 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [17:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:07:15]wFMCommunicate OK [17:07:15]CreateOFDProtocolMessage done [17:07:15]OFDSenderStorePacket 30973 [17:07:15]StoreOFDPacket docnum=30973 [17:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A 85 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C0 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 78 00 00 35 04 06 00 E5 EF 38 68 B2 FF BA C7 27 42 B0 21 B4 E5 [17:07:15]CheckFolder [17:07:15]dirname=/storage/ofd_packets [17:07:15]CheckFolder done [17:07:15]ProducePacketName [17:07:15]name=ofd_packets/00030973 [17:07:15]NVStorageSaveData ofd_packets/00030973 [17:07:15]File name is /storage/ofd_packets/00030973 [17:07:15]Write 301 bytes [17:07:16]NVStorageSaveData done [17:07:16]OFDSenderStorePacket done [17:07:16]KKMCreateOFDPacket done [17:07:16]NVStorageSaveData kkm_last_timestamp [17:07:16]File name is /storage/kkm_last_timestamp [17:07:16]Write 4 bytes [17:07:16]NVStorageSaveData done [17:07:16]ExternCall_PrintAddStr [17:07:16]wPrintStart [17:07:16]Write to MH i2c: 01 00 00 18 14 2C [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [17:07:16]RasterBufferAndPrint [17:07:16]line Счет N : (1)343399 [17:07:16]line ИНН: 02508201610067 [17:07:16]line Контрольно-Кассовый Чек [17:07:16]line ПРОДАЖА [17:07:16]line ТРК (МРК, ГНК) : 63 [17:07:16]line Товар: 2710124130 [17:07:16]line Аи-92-К-2 [17:07:16]line 5.690 * 66.90 [17:07:16]line = 380.66 [17:07:16]line НДС 12% НСП 1% [17:07:16]line > о реализуемом товаре [17:07:16]line ОКРУГЛЕНИЕ: -0.66 [17:07:16]line ИТОГО: 380.00 [17:07:16]line Внесено: 380.00 [17:07:16]line СДАЧА: 0.00 [17:07:16]line НСП 1% : 3.37 [17:07:16]line НДС 12% : 40.42 [17:07:16]line Наличными: 380.00 [17:07:16]line Безнал.: 0.00 [17:07:16]line Место: АЗС № 78 "Партнер Нефть" [17:07:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:07:16]line СНО: Общий режим [17:07:16]line Чек 206 22.10.2024 17:07 [17:07:16]line Смена: 116 ФФД: 1.0 [17:07:16]line ЗНМ: 0300000137 [17:07:16]line РНМ: 0000000000186857 [17:07:16]line Версия ККМ: v1.0 [17:07:16]line ФМ: 0000000002094219 [17:07:16]line ФД: 30973 [17:07:16]line ФПД: 252815606330111 [17:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170712&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30973&fm=252815606330111&tin=02508201610067®Number=0000000000186857&sum=38000 [17:07:16]OFD Sender: Processing packet 30973 [packets to send 11, broken 10] [17:07:16]ProducePacketName [17:07:16]name=ofd_packets/00030973 [17:07:16]OFD Sender: To server: pG, [17:07:16]CommunicateWithHost lk.salyk.kg:30040 [17:07:16]ConnectInit lk.salyk.kg [17:07:16]written 0, free lines is 4095 [17:07:16]Connected sock=10 [17:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A 85 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C0 DB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 32 30 39 34 32 31 00 39 43 10 14 04 04 00 FD 78 00 00 57 35 [17:07:17]04 Write i2c OK [17:07:17]06 MH_I2C_Read... [17:07:17]00 E5 EF 38 Read from MH i2c: 68 01 B2 [17:07:17]FF BA C7 27 42 B0 MH_I2C_Read... [17:07:17]21 Read from MH i2c: B4 01 E5 [17:07:17]07 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 8A 0F F7 [17:07:17]RasterBufferAndPrint [17:07:17]line [17:07:17]line [17:07:17]line [17:07:17]line [17:07:17]line [17:07:17]written 0, free lines is 4072 [17:07:17]MH_Cut [17:07:17]Write to MH i2c: D1 01 00 4A 14 01 30 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: D1 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: D1 01 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: D1 01 00 4A 14 00 2F [17:07:17]Write to MH i2c: 01 00 00 4B 14 5F [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6D FB 47 00 81 AA A5 07 01 *** Cut start [17:07:17]00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 *** Partial cut [17:07:17]*** CUTSNS_PIN = 1 [17:07:17]*** CUTSNS_PIN = 0 [17:07:17]33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 *** Brake cut motor [17:07:17]39 34 32 31 39 10 04 04 00 FD 78 00 00 F4 03 04 00 41 86 17 67 B6 04 01 00 00 B4 2D 9A CC DF C2 3F 58 [17:07:17]CommunicateWithHost err = 0 [17:07:17]CheckOFDResponse [17:07:17]1017 (14) - 77093643461234 [17:07:17]1041 (16) - 0000000002094219 [17:07:17]1040 (4) - 30973 [17:07:17]1012 (4) - 22.10.2024 11:02 [17:07:17]1206 (1) - 0 [17:07:17]OFD Sender: Remove packet 30973 [17:07:17]ProducePacketName [17:07:17]name=ofd_packets/00030973 [17:07:17]NVStorageDeleteData [17:07:17]ConnectInit Can't connect to host [17:07:17]Read from MH i2c: 01 [17:07:18]MH_I2C_Read... [17:07:18]*** Stop cut motor [17:07:18]*** Cut end [17:07:18]Read from MH i2c: 01 07 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [17:07:18]process_action close_receipt done [17:07:18]requested_data is exist [17:07:18]produce_requested_data [17:07:18]requested_item fm.sn is exist - process it [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 11 00 00 [17:07:18]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 17 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [17:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:07:18]wFMCommunicate OK [17:07:18]requested_item fd.num is exist - process it [17:07:18]SAM_PROTO_GetFieldsCounters [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 13 00 00 [17:07:18]Write to MH i2c: E2 08 00 4D 14 80 13 00 00 00 00 00 00 DD [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]OFD Sender: No OFD packet to send [17:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 62 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 62 00 4D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_GetFieldsCounters done [17:07:18]requested_item shift.num is exist - process it [17:07:18]requested_item shift.opened is exist - process it [17:07:18]req_shift_opened [17:07:18]FM_GetShiftState [17:07:18]SAM_PROTO_GetShiftState [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 13 01 00 [17:07:18]Write to MH i2c: E2 08 00 4E 14 80 13 01 00 00 00 00 00 DF [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 4E 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B9 [17:07:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:07:19]wFMCommunicate OK [17:07:19]SAM_PROTO_GetShiftState done [17:07:19]FM_GetShiftState done [17:07:19]req_shift_opened done [17:07:19]requested_item shift.open_date is exist - process it [17:07:19]req_shift_open_date [17:07:19]req_shift_open_date done [17:07:19]produce_requested_data done [17:07:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30973,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:07:19]process_action_free close_receipt [17:07:19]json_value_free [17:07:19]json_value_free done [17:07:19]process_json_proto returns [17:07:19]Send response to host [17:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30973,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:07:19]free response buf [17:07:19]execute_script done [17:07:19]execute_script returns [17:07:19]free content buf [17:07:19]Sock 9.Close socket [17:07:19]Sock 9.Thread stoped [17:07:23]ConnectInit Can't connect to host [17:07:23]OFD Sender: No OFD packet to send [17:07:28]ConnectInit Can't connect to host [17:07:28]OFD Sender: No OFD packet to send [17:07:33]ConnectInit Can't connect to host [17:07:33]OFD Sender: No OFD packet to send [17:07:38]ConnectInit Can't connect to host [17:07:38]OFD Sender: No OFD packet to send [17:07:43]ConnectInit Can't connect to host [17:07:43]OFD Sender: No OFD packet to send [17:07:48]ConnectInit Can't connect to host [17:07:48]OFD Sender: No OFD packet to send [17:07:53]ConnectInit Can't connect to host [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:07:58]ConnectInit Can't connect to host [17:08:03]OFD Sender: No OFD packet to send [17:08:03]ConnectInit Can't connect to host [17:08:08]OFD Sender: No OFD packet to send [17:08:08]ConnectInit Can't connect to host [17:08:13]OFD Sender: No OFD packet to send [17:08:13]ConnectInit Can't connect to host [17:08:18]OFD Sender: No OFD packet to send [17:08:18]ConnectInit Can't connect to host [17:08:23]OFD Sender: No OFD packet to send [17:08:23]ConnectInit Can't connect to host [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]accept exits with 7 [17:10:13]New connection [17:10:13]New thread 3066899812 created [17:10:13]Thread 3067043172 joined [17:10:13]Waiting for new connection... [17:10:13] Sock 7.Parse request [17:10:13]Sock 7.Check first char [17:10:13]Sock 7.First char is OK [17:10:13]request: POST /json_proto HTTP/1.0 [17:10:13]Method: POST [17:10:13]URL: /json_proto [17:10:13]Method is POST - this is cgi request [17:10:13]url: /json_proto [17:10:13]query_string will be loaded in cgi processing [17:10:13]execute_cgi json_proto POST (null) [17:10:13]execute_cgi path=json_proto method=POST [17:10:13]POST find Content-Length [17:10:13]Host: 172.17.51.3:8080 [17:10:13]Content-Length: 674 [17:10:13]Content-Type: application/json [17:10:13] [17:10:13]POST finish read [17:10:13]Found Content-Length = 674 [17:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.980, "sum" : 303.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:13]execute_script... [17:10: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)343400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.980, "sum" : 303.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:13]POST & json_proto [17:10:13]process_json_proto [17:10:13]json parsed OK: [17:10:13]protocol is kg_v1.0 [17:10:13]action value=close_receipt [17:10:13]process_action close_receipt [17:10:13]cmd_close_receipt [17:10:13]MH_GetDate [17:10:13]Write to MH i2c: F0 00 00 4F 14 52 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 09 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 09 00 4F 14 00 77 DC 17 67 04 C1 95 66 EC [17:10:13]GetLastDocTimeStamp 1729616832 [17:10:13]current date 1729617015 [17:10:13]FM_GetShiftState [17:10:13]SAM_PROTO_GetShiftState [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 13 01 00 [17:10:13]Write to MH i2c: E2 08 00 50 14 80 13 01 00 00 00 00 00 E1 [17:10:13]OFD Sender: No OFD packet to send [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 [17:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 0E 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 0E 00 50 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BB [17:10:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:10:13]wFMCommunicate OK [17:10:13]SAM_PROTO_GetShiftState done [17:10:13]FM_GetShiftState done [17:10:13]opened in 1729557342 [17:10:13]opened+sec_in_day 1729643742 [17:10:13]quantity*price = 30327 [17:10:13]sum+1 = 30329 [17:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 303.00 Внесено: 550.00 СДАЧА: 247.00 НСП 1% : 2.68 НДС 12% : 32.21 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 207 22.10.2024 17:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30974 ФПД: 202519529097057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171015&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30974&fm=202519529097057&tin=02508201610067®Number=0000000000186857&sum=30300 [17:10:14]StoreToDocumentArchive [17:10:14]shift 116 fd 30974 [17:10:14]save to /storage/0116/doc_00030974 [17:10:14]save last doc name /storage/0116/doc_00030974 to /storage/kkm_last_doc_name [17:10:14]save OK [17:10:14]Clear old archive folders... [17:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:14]tlvbuf is 00CEBD00 [17:10:14]SAM_PROTO_ClearQueue [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 09 00 00 [17:10:14]Write to MH i2c: E2 08 00 5D 14 80 09 00 00 00 00 00 00 E3 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 03 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [17:10:14]RAPDU: 90 00 [17:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_ClearQueue done [17:10:14]KKMCreateOFDPacket [17:10:14]OFDProtocolAddRootSTLVToBuf [17:10:14]FM_MakeSignedData [17:10:14]FM_MakeSignedData [17:10:14]SAM_PROTO_SignData [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 0D 01 02 [17:10:14]Write to MH i2c: E2 08 00 5E 14 80 0D 01 02 00 00 00 00 EB [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 03 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [17:10:14]RAPDU: 90 00 [17:10:14]wFMCommunicate OK [17:10:14]wFMCommunicate request_size=255 [17:10:14]MH_SAM_APDU [17:10: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 32 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 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 CF 00 00 00 F4 03 04 00 77 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 78 00 00 35 04 06 00 B8 30 C0 97 [17:10:14]Write to MH i2c: E2 02 01 5F 14 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 32 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 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 CF 00 00 00 F4 03 04 00 77 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 78 00 00 35 04 06 00 B8 30 C0 97 00 00 CF [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=7 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 02 02 02 87 61 [17:10:15]Write to MH i2c: E2 0A 00 60 14 80 0D 02 02 02 00 87 61 00 00 DA [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 03 02 [17:10:15]Write to MH i2c: E2 08 00 61 14 80 0D 03 02 00 00 00 00 F0 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0B 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0B 00 61 14 00 1F E0 E8 4C AB 59 22 DB 90 00 25 [17:10:15]RAPDU: 1F E0 E8 4C AB 59 22 DB 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_SignData done [17:10:15]FM_MakeSignedData done [17:10:15]CreateOFDProtocolMessage [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 11 00 00 [17:10:15]Write to MH i2c: E2 08 00 62 14 80 11 00 00 00 00 00 00 F0 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 62 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [17:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:10:15]wFMCommunicate OK [17:10:15]CreateOFDProtocolMessage done [17:10:15]OFDSenderStorePacket 30974 [17:10:15]StoreOFDPacket docnum=30974 [17:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 43 68 04 01 15 D6 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 32 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 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 CF 00 00 00 F4 03 04 00 77 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 78 00 00 35 04 06 00 B8 30 C0 97 87 61 1F E0 E8 4C AB 59 22 DB [17:10:15]CheckFolder [17:10:15]dirname=/storage/ofd_packets [17:10:15]CheckFolder done [17:10:15]ProducePacketName [17:10:15]name=ofd_packets/00030974 [17:10:15]NVStorageSaveData ofd_packets/00030974 [17:10:15]File name is /storage/ofd_packets/00030974 [17:10:15]Write 298 bytes [17:10:15]NVStorageSaveData done [17:10:15]OFDSenderStorePacket done [17:10:15]KKMCreateOFDPacket done [17:10:15]NVStorageSaveData kkm_last_timestamp [17:10:15]File name is /storage/kkm_last_timestamp [17:10:15]Write 4 bytes [17:10:15]NVStorageSaveData done [17:10:15]ExternCall_PrintAddStr [17:10:15]wPrintStart [17:10:15]Write to MH i2c: 01 00 00 63 14 77 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 FF 0F 8C [17:10:15]RasterBufferAndPrint [17:10:15]line Счет N : (1)343400 [17:10:15]line ИНН: 02508201610067 [17:10:15]line Контрольно-Кассовый Чек [17:10:15]line ПРОДАЖА [17:10:15]line ТРК (МРК, ГНК) : 44 [17:10:15]line Товар: 2710194210 [17:10:15]line ДТ-К-2 [17:10:15]line 3.980 * 76.20 [17:10:15]line = 303.28 [17:10:15]line НДС 12% НСП 1% [17:10:15]line > о реализуемом товаре [17:10:15]line ОКРУГЛЕНИЕ: -0.28 [17:10:15]line ИТОГО: 303.00 [17:10:15]line Внесено: 550.00 [17:10:15]line СДАЧА: 247.00 [17:10:15]line НСП 1% : 2.68 [17:10:15]line НДС 12% : 32.21 [17:10:15]line Наличными: 303.00 [17:10:15]line Безнал.: 0.00 [17:10:15]line Место: АЗС № 78 "Партнер Нефть" [17:10:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:10:15]line СНО: Общий режим [17:10:15]line Чек 207 22.10.2024 17:10 [17:10:15]line Смена: 116 ФФД: 1.0 [17:10:15]line ЗНМ: 0300000137 [17:10:15]line РНМ: 0000000000186857 [17:10:15]line Версия ККМ: v1.0 [17:10:15]line ФМ: 0000000002094219 [17:10:15]line ФД: 30974 [17:10:15]line ФПД: 202519529097057 [17:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171015&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30974&fm=202519529097057&tin=02508201610067®Number=0000000000186857&sum=30300 [17:10:15]written 0, free lines is 4095 [17:10:15]OFD Sender: Processing packet 30974 [packets to send 11, broken 10] [17:10:15]ProducePacketName [17:10:15]name=ofd_packets/00030974 [17:10:15]OFD Sender: To server: pG, [17:10:15]CommunicateWithHost lk.salyk.kg:30040 [17:10:15]ConnectInit lk.salyk.kg [17:10:15]Connected sock=10 [17:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 43 68 04 01 15 D6 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 32 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 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 CF 00 00 00 F4 03 04 00 77 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 78 00 00 35 04 06 00 B8 30 C0 97 87 61 1F E0 E8 4C AB 59 22 DB [17:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 2A 47 00 FE 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 78 00 00 F4 03 04 00 F3 86 17 67 B6 04 01 00 00 89 23 F3 10 31 55 99 30 [17:10:15]CommunicateWithHost err = 0 [17:10:15]CheckOFDResponse [17:10:15]1017 (14) - 77093643461234 [17:10:15]1041 (16) - 0000000002094219 [17:10:15]1040 (4) - 30974 [17:10:15]1012 (4) - 22.10.2024 11:05 [17:10:15]1206 (1) - 0 [17:10:15]OFD Sender: Remove packet 30974 [17:10:15]ProducePacketName [17:10:15]name=ofd_packets/00030974 [17:10:15]NVStorageDeleteData [17:10:15]Write to MH i2c: 01 00 00 8E 14 A2 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 FE 0C B3 [17:10:15]RasterBufferAndPrint [17:10:15]line [17:10:15]line [17:10:15]line [17:10:15]line [17:10:15]line [17:10:15]written 0, free lines is 3338 [17:10:15]MH_Cut [17:10:15]Write to MH i2c: D1 01 00 95 14 01 7B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: D1 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: D1 01 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: D1 01 00 95 14 00 7A [17:10:15]Write to MH i2c: 01 00 00 96 14 AA [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:16]OFD Sender: No OFD packet to send [17:10:16]*** Cut start [17:10:16]*** Partial cut [17:10:16]*** CUTSNS_PIN = 1 [17:10:16]*** CUTSNS_PIN = 0 [17:10:16]*** Brake cut motor [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]*** Stop cut motor [17:10:17]*** Cut end [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 96 14 00 00 00 00 00 FF 0F BF [17:10:17]process_action close_receipt done [17:10:17]requested_data is exist [17:10:17]produce_requested_data [17:10:17]requested_item fm.sn is exist - process it [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 11 00 00 [17:10:17]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 73 [17:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:10:17]wFMCommunicate OK [17:10:17]requested_item fd.num is exist - process it [17:10:17]SAM_PROTO_GetFieldsCounters [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 13 00 00 [17:10:17]Write to MH i2c: E2 08 00 98 14 80 13 00 00 00 00 00 00 28 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 62 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 62 00 98 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [17:10:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetFieldsCounters done [17:10:17]requested_item shift.num is exist - process it [17:10:17]requested_item shift.opened is exist - process it [17:10:17]req_shift_opened [17:10:17]FM_GetShiftState [17:10:17]SAM_PROTO_GetShiftState [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 13 01 00 [17:10:17]Write to MH i2c: E2 08 00 99 14 80 13 01 00 00 00 00 00 2A [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 99 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 04 [17:10:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetShiftState done [17:10:17]FM_GetShiftState done [17:10:17]req_shift_opened done [17:10:17]requested_item shift.open_date is exist - process it [17:10:17]req_shift_open_date [17:10:17]req_shift_open_date done [17:10:17]produce_requested_data done [17:10:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30974,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:10:17]process_action_free close_receipt [17:10:17]json_value_free [17:10:17]json_value_free done [17:10:17]process_json_proto returns [17:10:17]Send response to host [17:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30974,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:10:17]free response buf [17:10:17]execute_script done [17:10:17]execute_script returns [17:10:17]free content buf [17:10:17]Sock 7.Close socket [17:10:17]Sock 7.Thread stoped [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:55]accept exits with 9 [17:10:55]New connection [17:10:55]New thread 3067043172 created [17:10:55]Thread 3066899812 joined [17:10:55]Waiting for new connection... [17:10:55] Sock 9.Parse request [17:10:55]Sock 9.Check first char [17:10:55]Sock 9.First char is OK [17:10:55]request: POST /json_proto HTTP/1.0 [17:10:55]Method: POST [17:10:55]URL: /json_proto [17:10:55]Method is POST - this is cgi request [17:10:55]url: /json_proto [17:10:55]query_string will be loaded in cgi processing [17:10:55]execute_cgi json_proto POST (null) [17:10:55]execute_cgi path=json_proto method=POST [17:10:55]POST find Content-Length [17:10:55]Host: 172.17.51.3:8080 [17:10:55]Content-Length: 753 [17:10:55]Content-Type: application/json [17:10:55] [17:10:55]POST finish read [17:10:55]Found Content-Length = 753 [17:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 3.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:55]execute_script... [17:10:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 3.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:55]POST & json_proto [17:10:55]process_json_proto [17:10:55]json parsed OK: [17:10:55]protocol is kg_v1.0 [17:10:55]action value=close_receipt [17:10:55]process_action close_receipt [17:10:55]cmd_close_receipt [17:10:55]MH_GetDate [17:10:55]Write to MH i2c: F0 00 00 9A 14 9D [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 9A 14 00 A1 DC 17 67 04 C1 95 66 61 [17:10:55]GetLastDocTimeStamp 1729617015 [17:10:55]current date 1729617057 [17:10:55]FM_GetShiftState [17:10:55]SAM_PROTO_GetShiftState [17:10:55]wFMCommunicate request_size=4 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 13 01 00 [17:10:55]Write to MH i2c: E2 08 00 9B 14 80 13 01 00 00 00 00 00 2C [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 9B 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 06 [17:10:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:10:56]wFMCommunicate OK [17:10:56]SAM_PROTO_GetShiftState done [17:10:56]FM_GetShiftState done [17:10:56]opened in 1729557342 [17:10:56]opened+sec_in_day 1729643742 [17:10:56]quantity*price = 0 [17:10:56]sum+1 = 1 [17:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 208 22.10.2024 17:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30975 ФПД: 6632782000905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30975&fm=6632782000905&tin=02508201610067®Number=0000000000186857&sum=0 [17:10:57]StoreToDocumentArchive [17:10:57]shift 116 fd 30975 [17:10:57]save to /storage/0116/doc_00030975 [17:10:57]save last doc name /storage/0116/doc_00030975 to /storage/kkm_last_doc_name [17:10:57]save OK [17:10:57]Clear old archive folders... [17:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:57]tlvbuf is 00CBF520 [17:10:57]SAM_PROTO_ClearQueue [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 09 00 00 [17:10:57]Write to MH i2c: E2 08 00 A8 14 80 09 00 00 00 00 00 00 2E [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_ClearQueue done [17:10:57]KKMCreateOFDPacket [17:10:57]OFDProtocolAddRootSTLVToBuf [17:10:57]FM_MakeSignedData [17:10:57]FM_MakeSignedData [17:10:57]SAM_PROTO_SignData [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 01 02 [17:10:57]Write to MH i2c: E2 08 00 A9 14 80 0D 01 02 00 00 00 00 36 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=255 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A1 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 78 00 00 35 04 06 00 06 [17:10:57]Write to MH i2c: E2 02 01 AA 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A1 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 78 00 00 35 04 06 00 06 00 00 85 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=10 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 05 08 50 9D 73 09 [17:10:57]Write to MH i2c: E2 0D 00 AB 14 80 0D 02 02 05 00 08 50 9D 73 09 00 00 B4 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 AB 14 00 90 00 33 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 03 02 [17:10:57]Write to MH i2c: E2 08 00 AC 14 80 0D 03 02 00 00 00 00 3B [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 AC 14 00 E0 B9 25 BE 5F E9 BC 2C 90 00 E8 [17:10:57]RAPDU: E0 B9 25 BE 5F E9 BC 2C 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_SignData done [17:10:57]FM_MakeSignedData done [17:10:57]CreateOFDProtocolMessage [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 11 00 00 [17:10:57]Write to MH i2c: E2 08 00 AD 14 80 11 00 00 00 00 00 00 3B [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 AD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [17:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:10:57]wFMCommunicate OK [17:10:57]CreateOFDProtocolMessage done [17:10:57]OFDSenderStorePacket 30975 [17:10:57]StoreOFDPacket docnum=30975 [17:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 37 07 01 85 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A1 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 78 00 00 35 04 06 00 06 08 50 9D 73 09 E0 B9 25 BE 5F E9 BC 2C [17:10:57]CheckFolder [17:10:57]dirname=/storage/ofd_packets [17:10:57]CheckFolder done [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00030975 [17:10:57]NVStorageSaveData ofd_packets/00030975 [17:10:57]File name is /storage/ofd_packets/00030975 [17:10:57]Write 301 bytes [17:10:57]NVStorageSaveData done [17:10:57]OFDSenderStorePacket done [17:10:57]KKMCreateOFDPacket done [17:10:57]NVStorageSaveData kkm_last_timestamp [17:10:57]File name is /storage/kkm_last_timestamp [17:10:57]Write 4 bytes [17:10:57]NVStorageSaveData done [17:10:57]ExternCall_PrintAddStr [17:10:57]wPrintStart [17:10:57]Write to MH i2c: 01 00 00 AE 14 C2 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 FF 0F D7 [17:10:57]RasterBufferAndPrint [17:10:57]line Счет N : (1)343401 [17:10:57]line ИНН: 02508201610067 [17:10:57]line Контрольно-Кассовый Чек [17:10:57]line ПРОДАЖА [17:10:57]line ТРК (МРК, ГНК) : 43 [17:10:57]line Товар: 2710124130 [17:10:57]line Аи-92-К-2 [17:10:57]line 3.960 * 0.00 [17:10:57]line = 0.00 [17:10:57]line НДС 12% НСП 1% [17:10:57]line > о реализуемом товаре [17:10:57]line ИТОГО: 0.00 [17:10:57]line НСП 1% : 0.00 [17:10:57]line НДС 12% : 0.00 [17:10:57]line Наличными: 0.00 [17:10:57]line Безнал.: 0.00 [17:10:57]line Место: АЗС № 78 "Партнер Нефть" [17:10:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:10:57]line СНО: Общий режим [17:10:57]line Чек 208 22.10.2024 17:10 [17:10:57]line Смена: 116 ФФД: 1.0 [17:10:57]line ЗНМ: 0300000137 [17:10:57]line РНМ: 0000000000186857 [17:10:57]line Версия ККМ: v1.0 [17:10:57]line Талоны: ТК ГПНА Online [17:10:57]line 30132031 [17:10:57]line ФМ: 0000000002094219 [17:10:57]line ФД: 30975 [17:10:57]line ФПД: 6632782000905 [17:10:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30975&fm=6632782000905&tin=02508201610067®Number=0000000000186857&sum=0 [17:10:58]OFD Sender: Processing packet 30975 [packets to send 11, broken 10] [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00030975 [17:10:58]OFD Sender: To server: pG, [17:10:58]CommunicateWithHost lk.salyk.kg:30040 [17:10:58]ConnectInit lk.salyk.kg [17:10:58]written 0, free lines is 4095 [17:10:58]Connected sock=11 [17:10:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 37 07 01 85 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A1 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 78 00 00 35 04 06 00 06 08 50 9D 73 09 E0 B9 25 BE 5F E9 BC 2C [17:10:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 23 47 00 62 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 78 00 00 F4 03 04 00 1E 87 17 67 B6 04 01 00 00 37 84 24 AE 74 BF 9B 8C [17:10:58]CommunicateWithHost err = 0 [17:10:58]CheckOFDResponse [17:10:58]1017 (14) - 77093643461234 [17:10:58]1041 (16) - 0000000002094219 [17:10:58]1040 (4) - 30975 [17:10:58]1012 (4) - 22.10.2024 11:06 [17:10:58]1206 (1) - 0 [17:10:58]OFD Sender: Remove packet 30975 [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00030975 [17:10:58]NVStorageDeleteData [17:10:58]Write to MH i2c: 01 00 00 D8 14 EC [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 04 0D 04 [17:10:58]RasterBufferAndPrint [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]written 0, free lines is 3338 [17:10:58]MH_Cut [17:10:58]Write to MH i2c: D1 01 00 DF 14 01 C5 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 DF 14 00 C4 [17:10:58]Write to MH i2c: 01 00 00 E0 14 F4 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]OFD Sender: No OFD packet to send [17:10:59]*** Cut start [17:10:59]*** Partial cut [17:10:59]*** CUTSNS_PIN = 1 [17:10:59]*** CUTSNS_PIN = 0 [17:10:59]*** Brake cut motor [17:10:59]Read from MH i2c: 01 [17:10:59]MH_I2C_Read... [17:10:59]*** Stop cut motor [17:10:59]*** Cut end [17:10:59]Read from MH i2c: 01 07 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 E0 14 00 00 00 00 00 FF 0F 09 [17:10:59]process_action close_receipt done [17:10:59]requested_data is exist [17:10:59]produce_requested_data [17:10:59]requested_item fm.sn is exist - process it [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 11 00 00 [17:10:59]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BD [17:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:10:59]wFMCommunicate OK [17:10:59]requested_item fd.num is exist - process it [17:10:59]SAM_PROTO_GetFieldsCounters [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 00 00 [17:10:59]Write to MH i2c: E2 08 00 E2 14 80 13 00 00 00 00 00 00 72 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 62 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 62 00 E2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [17:10:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_GetFieldsCounters done [17:10:59]requested_item shift.num is exist - process it [17:10:59]requested_item shift.opened is exist - process it [17:10:59]req_shift_opened [17:10:59]FM_GetShiftState [17:10:59]SAM_PROTO_GetShiftState [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 01 00 [17:10:59]Write to MH i2c: E2 08 00 E3 14 80 13 01 00 00 00 00 00 74 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 0E 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 0E 00 E3 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4E [17:10:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_GetShiftState done [17:10:59]FM_GetShiftState done [17:10:59]req_shift_opened done [17:10:59]requested_item shift.open_date is exist - process it [17:10:59]req_shift_open_date [17:10:59]req_shift_open_date done [17:10:59]produce_requested_data done [17:10:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30975,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:10:59]process_action_free close_receipt [17:10:59]json_value_free [17:10:59]json_value_free done [17:10:59]process_json_proto returns [17:10:59]Send response to host [17:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30975,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:10:59]free response buf [17:10:59]execute_script done [17:10:59]execute_script returns [17:10:59]free content buf [17:10:59]Sock 9.Close socket [17:10:59]Sock 9.Thread stoped [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:05]accept exits with 7 [17:12:05]New connection [17:12:05]New thread 3066899812 created [17:12:05]Thread 3067043172 joined [17:12:05]Waiting for new connection... [17:12:05] Sock 7.Parse request [17:12:05]Sock 7.Check first char [17:12:05]Sock 7.First char is OK [17:12:05]request: POST /json_proto HTTP/1.0 [17:12:05]Method: POST [17:12:05]URL: /json_proto [17:12:05]Method is POST - this is cgi request [17:12:05]url: /json_proto [17:12:05]query_string will be loaded in cgi processing [17:12:05]execute_cgi json_proto POST (null) [17:12:05]execute_cgi path=json_proto method=POST [17:12:05]POST find Content-Length [17:12:05]Host: 172.17.51.3:8080 [17:12:05]Content-Length: 677 [17:12:05]Content-Type: application/json [17:12:05] [17:12:05]POST finish read [17:12:05]Found Content-Length = 677 [17:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:05]execute_script... [17:12: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)343402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:05]POST & json_proto [17:12:05]process_json_proto [17:12:05]json parsed OK: [17:12:05]protocol is kg_v1.0 [17:12:05]action value=close_receipt [17:12:05]process_action close_receipt [17:12:05]cmd_close_receipt [17:12:05]MH_GetDate [17:12:05]Write to MH i2c: F0 00 00 E4 14 E7 [17:12:05]Write i2c OK [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: F0 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: F0 09 00 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: F0 09 00 E4 14 00 E7 DC 17 67 04 C1 95 66 F1 [17:12:05]GetLastDocTimeStamp 1729617057 [17:12:05]current date 1729617127 [17:12:05]FM_GetShiftState [17:12:05]SAM_PROTO_GetShiftState [17:12:05]wFMCommunicate request_size=4 [17:12:05]MH_SAM_APDU [17:12:05]CAPDU: 80 13 01 00 [17:12:05]Write to MH i2c: E2 08 00 E5 14 80 13 01 00 00 00 00 00 76 [17:12:05]Write i2c OK [17:12:05]MH_I2C_Read... [17:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:05]Read from MH i2c: E2 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: E2 0E 00 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: E2 0E 00 E5 14 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 50 [17:12:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:12:05]wFMCommunicate OK [17:12:05]SAM_PROTO_GetShiftState done [17:12:05]FM_GetShiftState done [17:12:05]opened in 1729557342 [17:12:05]opened+sec_in_day 1729643742 [17:12:05]quantity*price = 50041 [17:12:05]sum+1 = 50042 [17:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 209 22.10.2024 17:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30976 ФПД: 203301235886015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30976&fm=203301235886015&tin=02508201610067®Number=0000000000186857&sum=50000 [17:12:07]StoreToDocumentArchive [17:12:07]shift 116 fd 30976 [17:12:07]save to /storage/0116/doc_00030976 [17:12:07]save last doc name /storage/0116/doc_00030976 to /storage/kkm_last_doc_name [17:12:07]save OK [17:12:07]Clear old archive folders... [17:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:07]tlvbuf is 00D4D2E0 [17:12:07]SAM_PROTO_ClearQueue [17:12:07]wFMCommunicate request_size=4 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 09 00 00 [17:12:07]Write to MH i2c: E2 08 00 F2 14 80 09 00 00 00 00 00 00 78 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 F2 14 00 90 00 7A [17:12:07]RAPDU: 90 00 [17:12:07]wFMCommunicate OK [17:12:07]SAM_PROTO_ClearQueue done [17:12:07]KKMCreateOFDPacket [17:12:07]OFDProtocolAddRootSTLVToBuf [17:12:07]FM_MakeSignedData [17:12:07]FM_MakeSignedData [17:12:07]SAM_PROTO_SignData [17:12:07]wFMCommunicate request_size=4 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 0D 01 02 [17:12:07]Write to MH i2c: E2 08 00 F3 14 80 0D 01 02 00 00 00 00 80 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [17:12:07]RAPDU: 90 00 [17:12:07]wFMCommunicate OK [17:12:07]wFMCommunicate request_size=255 [17:12:07]MH_SAM_APDU [17:12: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 E7 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 79 00 00 35 04 06 00 B8 [17:12:07]Write to MH i2c: E2 02 01 F4 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 E7 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 79 00 00 35 04 06 00 B8 00 00 C8 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [17:12:07]RAPDU: 90 00 [17:12:07]wFMCommunicate OK [17:12:07]wFMCommunicate request_size=10 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 0D 02 02 05 E6 C1 F2 87 BF [17:12:07]Write to MH i2c: E2 0D 00 F5 14 80 0D 02 02 05 00 E6 C1 F2 87 BF 00 00 6C [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [17:12:07]RAPDU: 90 00 [17:12:07]wFMCommunicate OK [17:12:07]wFMCommunicate request_size=4 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 0D 03 02 [17:12:07]Write to MH i2c: E2 08 00 F6 14 80 0D 03 02 00 00 00 00 85 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 0B 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 0B 00 F6 14 00 8C C1 8D 73 0A 26 23 31 90 00 57 [17:12:07]RAPDU: 8C C1 8D 73 0A 26 23 31 90 00 [17:12:07]wFMCommunicate OK [17:12:07]SAM_PROTO_SignData done [17:12:07]FM_MakeSignedData done [17:12:07]CreateOFDProtocolMessage [17:12:07]wFMCommunicate request_size=4 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 11 00 00 [17:12:07]Write to MH i2c: E2 08 00 F7 14 80 11 00 00 00 00 00 00 85 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 17 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 17 00 F7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D3 [17:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:12:07]wFMCommunicate OK [17:12:07]CreateOFDProtocolMessage done [17:12:07]OFDSenderStorePacket 30976 [17:12:07]StoreOFDPacket docnum=30976 [17:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E4 5C 07 01 5A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 E7 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 79 00 00 35 04 06 00 B8 E6 C1 F2 87 BF 8C C1 8D 73 0A 26 23 31 [17:12:07]CheckFolder [17:12:07]dirname=/storage/ofd_packets [17:12:07]CheckFolder done [17:12:07]ProducePacketName [17:12:07]name=ofd_packets/00030976 [17:12:07]NVStorageSaveData ofd_packets/00030976 [17:12:07]File name is /storage/ofd_packets/00030976 [17:12:07]Write 301 bytes [17:12:07]NVStorageSaveData done [17:12:07]OFDSenderStorePacket done [17:12:07]KKMCreateOFDPacket done [17:12:07]NVStorageSaveData kkm_last_timestamp [17:12:07]File name is /storage/kkm_last_timestamp [17:12:07]Write 4 bytes [17:12:07]NVStorageSaveData done [17:12:07]ExternCall_PrintAddStr [17:12:07]wPrintStart [17:12:07]Write to MH i2c: 01 00 00 F8 14 0C [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 07 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 FF 0F 21 [17:12:07]RasterBufferAndPrint [17:12:07]line Счет N : (1)343402 [17:12:07]line ИНН: 02508201610067 [17:12:07]line Контрольно-Кассовый Чек [17:12:07]line ПРОДАЖА [17:12:07]line ТРК (МРК, ГНК) : 33 [17:12:07]line Товар: 2710124130 [17:12:07]line Аи-92-К-2 [17:12:07]line 7.480 * 66.90 [17:12:07]line = 500.41 [17:12:07]line НДС 12% НСП 1% [17:12:07]line > о реализуемом товаре [17:12:07]line ОКРУГЛЕНИЕ: -0.41 [17:12:07]line ИТОГО: 500.00 [17:12:07]line Внесено: 500.00 [17:12:07]line СДАЧА: 0.00 [17:12:07]line НСП 1% : 4.43 [17:12:07]line НДС 12% : 53.14 [17:12:07]line Наличными: 500.00 [17:12:07]line Безнал.: 0.00 [17:12:07]line Место: АЗС № 78 "Партнер Нефть" [17:12:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:12:07]line СНО: Общий режим [17:12:07]line Чек 209 22.10.2024 17:12 [17:12:07]line Смена: 116 ФФД: 1.0 [17:12:07]line ЗНМ: 0300000137 [17:12:07]line РНМ: 0000000000186857 [17:12:07]line Версия ККМ: v1.0 [17:12:07]line ФМ: 0000000002094219 [17:12:07]line ФД: 30976 [17:12:07]line ФПД: 203301235886015 [17:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30976&fm=203301235886015&tin=02508201610067®Number=0000000000186857&sum=50000 [17:12:07]OFD Sender: Processing packet 30976 [packets to send 11, broken 10] [17:12:07]ProducePacketName [17:12:07]name=ofd_packets/00030976 [17:12:07]OFD Sender: To server: pG, [17:12:07]CommunicateWithHost lk.salyk.kg:30040 [17:12:07]ConnectInit lk.salyk.kg [17:12:07]written 0, free lines is 4095 [17:12:08]Connected sock=10 [17:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E4 5C 07 01 5A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 E7 DC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 79 00 00 35 04 06 00 B8 E6 C1 F2 87 BF 8C C1 8D 73 0A 26 23 31 [17:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 46 85 47 00 D2 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 79 00 00 F4 03 04 00 64 87 17 67 B6 04 01 00 00 4B 03 04 EA 42 DE 1A 9C [17:12:08]CommunicateWithHost err = 0 [17:12:08]CheckOFDResponse [17:12:08]1017 (14) - 77093643461234 [17:12:08]1041 (16) - 0000000002094219 [17:12:08]1040 (4) - 30976 [17:12:08]1012 (4) - 22.10.2024 11:07 [17:12:08]1206 (1) - 0 [17:12:08]OFD Sender: Remove packet 30976 [17:12:08]ProducePacketName [17:12:08]name=ofd_packets/00030976 [17:12:08]NVStorageDeleteData [17:12:08]Write to MH i2c: 01 00 00 23 15 38 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 23 15 00 00 00 00 00 EE 0C 39 [17:12:08]RasterBufferAndPrint [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]written 0, free lines is 3316 [17:12:08]MH_Cut [17:12:08]Write to MH i2c: D1 01 00 2A 15 01 11 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 01 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 01 00 2A 15 00 10 [17:12:08]Write to MH i2c: 01 00 00 2B 15 40 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]OFD Sender: No OFD packet to send [17:12:09]*** Cut start [17:12:09]*** Partial cut [17:12:09]*** CUTSNS_PIN = 1 [17:12:09]*** CUTSNS_PIN = 0 [17:12:09]*** Brake cut motor [17:12:09]Read from MH i2c: 01 [17:12:09]MH_I2C_Read... [17:12:09]*** Stop cut motor [17:12:09]*** Cut end [17:12:09]Read from MH i2c: 01 07 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 FF 0F 55 [17:12:09]process_action close_receipt done [17:12:09]requested_data is exist [17:12:09]produce_requested_data [17:12:09]requested_item fm.sn is exist - process it [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 11 00 00 [17:12:09]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 09 [17:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:12:09]wFMCommunicate OK [17:12:09]requested_item fd.num is exist - process it [17:12:09]SAM_PROTO_GetFieldsCounters [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 00 00 [17:12:09]Write to MH i2c: E2 08 00 2D 15 80 13 00 00 00 00 00 00 BE [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 2D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [17:12:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetFieldsCounters done [17:12:09]requested_item shift.num is exist - process it [17:12:09]requested_item shift.opened is exist - process it [17:12:09]req_shift_opened [17:12:09]FM_GetShiftState [17:12:09]SAM_PROTO_GetShiftState [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 01 00 [17:12:09]Write to MH i2c: E2 08 00 2E 15 80 13 01 00 00 00 00 00 C0 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 2E 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9A [17:12:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetShiftState done [17:12:09]FM_GetShiftState done [17:12:09]req_shift_opened done [17:12:09]requested_item shift.open_date is exist - process it [17:12:09]req_shift_open_date [17:12:09]req_shift_open_date done [17:12:09]produce_requested_data done [17:12:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30976,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:12:09]process_action_free close_receipt [17:12:09]json_value_free [17:12:09]json_value_free done [17:12:09]process_json_proto returns [17:12:09]Send response to host [17:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30976,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:12:09]free response buf [17:12:09]execute_script done [17:12:09]execute_script returns [17:12:09]free content buf [17:12:09]Sock 7.Close socket [17:12:09]Sock 7.Thread stoped [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:22]accept exits with 9 [17:13:22]New connection [17:13:22]New thread 3067043172 created [17:13:22]Thread 3066899812 joined [17:13:22]Waiting for new connection... [17:13:22] Sock 9.Parse request [17:13:22]Sock 9.Check first char [17:13:22]Sock 9.First char is OK [17:13:22]request: POST /json_proto HTTP/1.0 [17:13:22]Method: POST [17:13:22]URL: /json_proto [17:13:22]Method is POST - this is cgi request [17:13:22]url: /json_proto [17:13:22]query_string will be loaded in cgi processing [17:13:22]execute_cgi json_proto POST (null) [17:13:22]execute_cgi path=json_proto method=POST [17:13:22]POST find Content-Length [17:13:22]Host: 172.17.51.3:8080 [17:13:22]Content-Length: 677 [17:13:22]Content-Type: application/json [17:13:22] [17:13:22]POST finish read [17:13:22]Found Content-Length = 677 [17:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [17:13:22]execute_script... [17:13: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)343405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [17:13:22]POST & json_proto [17:13:22]process_json_proto [17:13:22]json parsed OK: [17:13:22]protocol is kg_v1.0 [17:13:22]action value=close_receipt [17:13:22]process_action close_receipt [17:13:22]cmd_close_receipt [17:13:22]MH_GetDate [17:13:22]Write to MH i2c: F0 00 00 2F 15 33 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 09 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 09 00 2F 15 00 34 DD 17 67 04 C1 95 66 8B [17:13:22]GetLastDocTimeStamp 1729617127 [17:13:22]current date 1729617204 [17:13:22]FM_GetShiftState [17:13:22]SAM_PROTO_GetShiftState [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 13 01 00 [17:13:22]Write to MH i2c: E2 08 00 30 15 80 13 01 00 00 00 00 00 C2 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0E 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0E 00 30 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9C [17:13:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:13:22]wFMCommunicate OK [17:13:22]SAM_PROTO_GetShiftState done [17:13:22]FM_GetShiftState done [17:13:22]opened in 1729557342 [17:13:22]opened+sec_in_day 1729643742 [17:13:22]quantity*price = 60027 [17:13:22]sum+1 = 60029 [17:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 210 22.10.2024 17:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30977 ФПД: 232299383319776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30977&fm=232299383319776&tin=02508201610067®Number=0000000000186857&sum=60000 [17:13:23]StoreToDocumentArchive [17:13:23]shift 116 fd 30977 [17:13:23]save to /storage/0116/doc_00030977 [17:13:23]save last doc name /storage/0116/doc_00030977 to /storage/kkm_last_doc_name [17:13:23]save OK [17:13:23]Clear old archive folders... [17:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:23]tlvbuf is 00CC9950 [17:13:23]SAM_PROTO_ClearQueue [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 09 00 00 [17:13:23]Write to MH i2c: E2 08 00 3D 15 80 09 00 00 00 00 00 00 C4 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_ClearQueue done [17:13:23]KKMCreateOFDPacket [17:13:23]OFDProtocolAddRootSTLVToBuf [17:13:23]FM_MakeSignedData [17:13:23]FM_MakeSignedData [17:13:23]SAM_PROTO_SignData [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 01 02 [17:13:23]Write to MH i2c: E2 08 00 3E 15 80 0D 01 02 00 00 00 00 CC [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]wFMCommunicate request_size=255 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D2 00 00 00 F4 03 04 00 34 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 79 00 00 35 04 06 00 D3 [17:13:23]Write to MH i2c: E2 02 01 3F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D2 00 00 00 F4 03 04 00 34 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 79 00 00 35 04 06 00 D3 00 00 DE [17:13:23]OFD Sender: No OFD packet to send [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=10 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 02 02 05 46 6A 39 6C E0 [17:13:24]Write to MH i2c: E2 0D 00 40 15 80 0D 02 02 05 00 46 6A 39 6C E0 00 00 0E [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 03 02 [17:13:24]Write to MH i2c: E2 08 00 41 15 80 0D 03 02 00 00 00 00 D1 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0B 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0B 00 41 15 00 BF 24 05 7B A7 F0 E5 0F 90 00 C0 [17:13:24]RAPDU: BF 24 05 7B A7 F0 E5 0F 90 00 [17:13:24]wFMCommunicate OK [17:13:24]SAM_PROTO_SignData done [17:13:24]FM_MakeSignedData done [17:13:24]CreateOFDProtocolMessage [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 11 00 00 [17:13:24]Write to MH i2c: E2 08 00 42 15 80 11 00 00 00 00 00 00 D1 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 17 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 17 00 42 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [17:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:13:24]wFMCommunicate OK [17:13:24]CreateOFDProtocolMessage done [17:13:24]OFDSenderStorePacket 30977 [17:13:24]StoreOFDPacket docnum=30977 [17:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5F 87 07 01 AB F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D2 00 00 00 F4 03 04 00 34 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 79 00 00 35 04 06 00 D3 46 6A 39 6C E0 BF 24 05 7B A7 F0 E5 0F [17:13:24]CheckFolder [17:13:24]dirname=/storage/ofd_packets [17:13:24]CheckFolder done [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00030977 [17:13:24]NVStorageSaveData ofd_packets/00030977 [17:13:24]File name is /storage/ofd_packets/00030977 [17:13:24]Write 301 bytes [17:13:24]NVStorageSaveData done [17:13:24]OFDSenderStorePacket done [17:13:24]KKMCreateOFDPacket done [17:13:24]NVStorageSaveData kkm_last_timestamp [17:13:24]File name is /storage/kkm_last_timestamp [17:13:24]Write 4 bytes [17:13:24]NVStorageSaveData done [17:13:24]ExternCall_PrintAddStr [17:13:24]wPrintStart [17:13:24]Write to MH i2c: 01 00 00 43 15 58 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 07 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 FF 0F 6D [17:13:24]RasterBufferAndPrint [17:13:24]line Счет N : (1)343405 [17:13:24]line ИНН: 02508201610067 [17:13:24]line Контрольно-Кассовый Чек [17:13:24]line ПРОДАЖА [17:13:24]line ТРК (МРК, ГНК) : 52 [17:13:24]line Товар: 2710124500 [17:13:24]line Аи-95-К-3 [17:13:24]line 8.090 * 74.20 [17:13:24]line = 600.28 [17:13:24]line НДС 12% НСП 1% [17:13:24]line > о реализуемом товаре [17:13:24]line ОКРУГЛЕНИЕ: -0.28 [17:13:24]line ИТОГО: 600.00 [17:13:24]line Внесено: 600.00 [17:13:24]line СДАЧА: 0.00 [17:13:24]line НСП 1% : 5.31 [17:13:24]line НДС 12% : 63.75 [17:13:24]line Наличными: 600.00 [17:13:24]line Безнал.: 0.00 [17:13:24]line Место: АЗС № 78 "Партнер Нефть" [17:13:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:13:24]line СНО: Общий режим [17:13:24]line Чек 210 22.10.2024 17:13 [17:13:24]line Смена: 116 ФФД: 1.0 [17:13:24]line ЗНМ: 0300000137 [17:13:24]line РНМ: 0000000000186857 [17:13:24]line Версия ККМ: v1.0 [17:13:24]line ФМ: 0000000002094219 [17:13:24]line ФД: 30977 [17:13:24]line ФПД: 232299383319776 [17:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30977&fm=232299383319776&tin=02508201610067®Number=0000000000186857&sum=60000 [17:13:24]OFD Sender: Processing packet 30977 [packets to send 11, broken 10] [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00030977 [17:13:24]OFD Sender: To server: pG, [17:13:24]CommunicateWithHost lk.salyk.kg:30040 [17:13:24]ConnectInit lk.salyk.kg [17:13:24]written 0, free lines is 4095 [17:13:24]Connected sock=10 [17:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5F 87 07 01 AB F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D2 00 00 00 F4 03 04 00 34 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 79 00 00 35 04 06 00 D3 46 6A 39 6C E0 BF 24 05 7B A7 F0 E5 0F [17:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 66 C5 47 00 AD 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 32 30 39 34 32 31 39 10 04 04 00 01 79 00 00 F4 03 04 00 B1 87 17 67 B6 04 01 00 00 62 C9 73 17 D9 1A 18 61 [17:13:24]CommunicateWithHost err = 0 [17:13:24]CheckOFDResponse [17:13:24]1017 (14) - 77093643461234 [17:13:24]1041 (16) - 0000000002094219 [17:13:24]1040 (4) - 30977 [17:13:24]1012 (4) - 22.10.2024 11:08 [17:13:24]1206 (1) - 0 [17:13:24]OFD Sender: Remove packet 30977 [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00030977 [17:13:24]NVStorageDeleteData [17:13:25]Write to MH i2c: 01 00 00 6E 15 83 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 E4 0C 7A [17:13:25]RasterBufferAndPrint [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]written 0, free lines is 3306 [17:13:25]MH_Cut [17:13:25]Write to MH i2c: D1 01 00 75 15 01 5C [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 01 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 01 00 75 15 00 5B [17:13:25]Write to MH i2c: 01 00 00 76 15 8B [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]OFD Sender: No OFD packet to send [17:13:25]*** Cut start [17:13:25]*** Partial cut [17:13:25]*** CUTSNS_PIN = 1 [17:13:25]*** CUTSNS_PIN = 0 [17:13:25]*** Brake cut motor [17:13:26]Read from MH i2c: 01 [17:13:26]MH_I2C_Read... [17:13:26]*** Stop cut motor [17:13:26]*** Cut end [17:13:26]Read from MH i2c: 01 07 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 FF 0F A0 [17:13:26]process_action close_receipt done [17:13:26]requested_data is exist [17:13:26]produce_requested_data [17:13:26]requested_item fm.sn is exist - process it [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 11 00 00 [17:13:26]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:26]Read from MH i2c: E2 17 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 54 [17:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:13:26]wFMCommunicate OK [17:13:26]requested_item fd.num is exist - process it [17:13:26]SAM_PROTO_GetFieldsCounters [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 13 00 00 [17:13:26]Write to MH i2c: E2 08 00 78 15 80 13 00 00 00 00 00 00 09 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 62 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 62 00 78 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_GetFieldsCounters done [17:13:26]requested_item shift.num is exist - process it [17:13:26]requested_item shift.opened is exist - process it [17:13:26]req_shift_opened [17:13:26]FM_GetShiftState [17:13:26]SAM_PROTO_GetShiftState [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 13 01 00 [17:13:26]Write to MH i2c: E2 08 00 79 15 80 13 01 00 00 00 00 00 0B [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0E 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0E 00 79 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E5 [17:13:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_GetShiftState done [17:13:26]FM_GetShiftState done [17:13:26]req_shift_opened done [17:13:26]requested_item shift.open_date is exist - process it [17:13:26]req_shift_open_date [17:13:26]req_shift_open_date done [17:13:26]produce_requested_data done [17:13:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30977,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:13:26]process_action_free close_receipt [17:13:26]json_value_free [17:13:26]json_value_free done [17:13:26]process_json_proto returns [17:13:26]Send response to host [17:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30977,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:13:26]free response buf [17:13:26]execute_script done [17:13:26]execute_script returns [17:13:26]free content buf [17:13:26]Sock 9.Close socket [17:13:26]Sock 9.Thread stoped [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:54]accept exits with 7 [17:13:54]New connection [17:13:54]New thread 3066899812 created [17:13:54]Thread 3067043172 joined [17:13:54]Waiting for new connection... [17:13:54] Sock 7.Parse request [17:13:54]Sock 7.Check first char [17:13:54]Sock 7.First char is OK [17:13:54]request: POST /json_proto HTTP/1.0 [17:13:54]Method: POST [17:13:54]URL: /json_proto [17:13:54]Method is POST - this is cgi request [17:13:54]url: /json_proto [17:13:54]query_string will be loaded in cgi processing [17:13:54]execute_cgi json_proto POST (null) [17:13:54]execute_cgi path=json_proto method=POST [17:13:54]POST find Content-Length [17:13:54]Host: 172.17.51.3:8080 [17:13:54]Content-Length: 679 [17:13:54]Content-Type: application/json [17:13:54] [17:13:54]POST finish read [17:13:54]Found Content-Length = 679 [17:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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:13:54]execute_script... [17:13: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)343403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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:13:54]POST & json_proto [17:13:54]process_json_proto [17:13:54]json parsed OK: [17:13:54]protocol is kg_v1.0 [17:13:54]action value=close_receipt [17:13:54]process_action close_receipt [17:13:54]cmd_close_receipt [17:13:54]MH_GetDate [17:13:54]Write to MH i2c: F0 00 00 7A 15 7E [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: F0 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: F0 09 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: F0 09 00 7A 15 00 53 DD 17 67 04 C1 95 66 F5 [17:13:54]GetLastDocTimeStamp 1729617204 [17:13:54]current date 1729617235 [17:13:54]FM_GetShiftState [17:13:54]SAM_PROTO_GetShiftState [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 01 00 [17:13:54]Write to MH i2c: E2 08 00 7B 15 80 13 01 00 00 00 00 00 0D [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 7B 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E7 [17:13:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetShiftState done [17:13:54]FM_GetShiftState done [17:13:54]opened in 1729557342 [17:13:54]opened+sec_in_day 1729643742 [17:13:54]quantity*price = 250012 [17:13:54]sum+1 = 250013 [17:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 211 22.10.2024 17:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30978 ФПД: 124323848588023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30978&fm=124323848588023&tin=02508201610067®Number=0000000000186857&sum=250000 [17:13:55]StoreToDocumentArchive [17:13:55]shift 116 fd 30978 [17:13:55]save to /storage/0116/doc_00030978 [17:13:55]save last doc name /storage/0116/doc_00030978 to /storage/kkm_last_doc_name [17:13:55]save OK [17:13:55]Clear old archive folders... [17:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:55]tlvbuf is 00D4CF70 [17:13:55]SAM_PROTO_ClearQueue [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 09 00 00 [17:13:55]Write to MH i2c: E2 08 00 88 15 80 09 00 00 00 00 00 00 0F [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [17:13:55]RAPDU: 90 00 [17:13:55]wFMCommunicate OK [17:13:55]SAM_PROTO_ClearQueue done [17:13:55]KKMCreateOFDPacket [17:13:55]OFDProtocolAddRootSTLVToBuf [17:13:55]FM_MakeSignedData [17:13:55]FM_MakeSignedData [17:13:55]SAM_PROTO_SignData [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 0D 01 02 [17:13:55]Write to MH i2c: E2 08 00 89 15 80 0D 01 02 00 00 00 00 17 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [17:13:55]RAPDU: 90 00 [17:13:55]wFMCommunicate OK [17:13:55]wFMCommunicate request_size=255 [17:13:55]MH_SAM_APDU [17:13: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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 D3 00 00 00 F4 03 04 00 53 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 79 00 00 35 04 06 00 71 12 66 D5 [17:13:55]Write to MH i2c: E2 02 01 8A 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 D3 00 00 00 F4 03 04 00 53 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 79 00 00 35 04 06 00 71 12 66 D5 00 00 2D [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]OFD Sender: No OFD packet to send [17:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [17:13:55]RAPDU: 90 00 [17:13:55]wFMCommunicate OK [17:13:55]wFMCommunicate request_size=7 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 0D 02 02 02 0A F7 [17:13:55]Write to MH i2c: E2 0A 00 8B 15 80 0D 02 02 02 00 0A F7 00 00 1F [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [17:13:55]RAPDU: 90 00 [17:13:55]wFMCommunicate OK [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 0D 03 02 [17:13:55]Write to MH i2c: E2 08 00 8C 15 80 0D 03 02 00 00 00 00 1C [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 0B 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 0B 00 8C 15 00 FD F7 A9 04 84 F4 C4 05 90 00 FF [17:13:55]RAPDU: FD F7 A9 04 84 F4 C4 05 90 00 [17:13:55]wFMCommunicate OK [17:13:55]SAM_PROTO_SignData done [17:13:55]FM_MakeSignedData done [17:13:55]CreateOFDProtocolMessage [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 11 00 00 [17:13:55]Write to MH i2c: E2 08 00 8D 15 80 11 00 00 00 00 00 00 1C [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 17 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 17 00 8D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6A [17:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:13:55]wFMCommunicate OK [17:13:55]CreateOFDProtocolMessage done [17:13:55]OFDSenderStorePacket 30978 [17:13:55]StoreOFDPacket docnum=30978 [17:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 57 23 04 01 B4 0A 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 D3 00 00 00 F4 03 04 00 53 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 79 00 00 35 04 06 00 71 12 66 D5 0A F7 FD F7 A9 04 84 F4 C4 05 [17:13:55]CheckFolder [17:13:55]dirname=/storage/ofd_packets [17:13:55]CheckFolder done [17:13:55]ProducePacketName [17:13:55]name=ofd_packets/00030978 [17:13:55]NVStorageSaveData ofd_packets/00030978 [17:13:55]File name is /storage/ofd_packets/00030978 [17:13:55]Write 298 bytes [17:13:55]NVStorageSaveData done [17:13:55]OFDSenderStorePacket done [17:13:55]KKMCreateOFDPacket done [17:13:55]NVStorageSaveData kkm_last_timestamp [17:13:55]File name is /storage/kkm_last_timestamp [17:13:55]Write 4 bytes [17:13:55]NVStorageSaveData done [17:13:55]ExternCall_PrintAddStr [17:13:55]wPrintStart [17:13:55]Write to MH i2c: 01 00 00 8E 15 A3 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 07 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 07 00 8E 15 00 00 00 00 00 FF 0F B8 [17:13:55]RasterBufferAndPrint [17:13:55]line Счет N : (1)343403 [17:13:55]line ИНН: 02508201610067 [17:13:55]line Контрольно-Кассовый Чек [17:13:55]line ПРОДАЖА [17:13:55]line ТРК (МРК, ГНК) : 44 [17:13:55]line Товар: 2710194210 [17:13:55]line ДТ-К-2 [17:13:55]line 32.810 * 76.20 [17:13:55]line = 2500.12 [17:13:55]line НДС 12% НСП 1% [17:13:55]line > о реализуемом товаре [17:13:55]line ОКРУГЛЕНИЕ: -0.12 [17:13:55]line ИТОГО: 2500.00 [17:13:55]line Внесено: 2500.00 [17:13:55]line СДАЧА: 0.00 [17:13:55]line НСП 1% : 22.12 [17:13:55]line НДС 12% : 265.50 [17:13:55]line Наличными: 2500.00 [17:13:55]line Безнал.: 0.00 [17:13:55]line Место: АЗС № 78 "Партнер Нефть" [17:13:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:13:55]line СНО: Общий режим [17:13:55]line Чек 211 22.10.2024 17:13 [17:13:55]line Смена: 116 ФФД: 1.0 [17:13:55]line ЗНМ: 0300000137 [17:13:55]line РНМ: 0000000000186857 [17:13:55]line Версия ККМ: v1.0 [17:13:55]line ФМ: 0000000002094219 [17:13:55]line ФД: 30978 [17:13:55]line ФПД: 124323848588023 [17:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30978&fm=124323848588023&tin=02508201610067®Number=0000000000186857&sum=250000 [17:13:56]OFD Sender: Processing packet 30978 [packets to send 11, broken 10] [17:13:56]ProducePacketName [17:13:56]name=ofd_packets/00030978 [17:13:56]OFD Sender: To server: pG, [17:13:56]CommunicateWithHost lk.salyk.kg:30040 [17:13:56]ConnectInit lk.salyk.kg [17:13:56]written 0, free lines is 4095 [17:13:56]Connected sock=10 [17:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 57 23 04 01 B4 0A 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 D3 00 00 00 F4 03 04 00 53 DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 79 00 00 35 04 06 00 71 12 66 D5 0A F7 FD F7 A9 04 84 F4 C4 05 [17:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 22 06 47 00 72 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 32 30 39 34 32 31 39 10 04 04 00 02 79 00 00 F4 03 04 00 D0 87 17 67 B6 04 01 00 00 D4 FD 9C 16 2B 2B EA 40 [17:13:56]CommunicateWithHost err = 0 [17:13:56]CheckOFDResponse [17:13:56]1017 (14) - 77093643461234 [17:13:56]1041 (16) - 0000000002094219 [17:13:56]1040 (4) - 30978 [17:13:56]1012 (4) - 22.10.2024 11:09 [17:13:56]1206 (1) - 0 [17:13:56]OFD Sender: Remove packet 30978 [17:13:56]ProducePacketName [17:13:56]name=ofd_packets/00030978 [17:13:56]NVStorageDeleteData [17:13:56]Write to MH i2c: 01 00 00 B9 15 CE [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: 01 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: 01 07 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 F3 0C D4 [17:13:56]RasterBufferAndPrint [17:13:56]line [17:13:56]line [17:13:56]line [17:13:56]line [17:13:56]line [17:13:56]written 0, free lines is 3321 [17:13:56]MH_Cut [17:13:56]Write to MH i2c: D1 01 00 C0 15 01 A7 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: D1 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: D1 01 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: D1 01 00 C0 15 00 A6 [17:13:56]Write to MH i2c: 01 00 00 C1 15 D6 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]OFD Sender: No OFD packet to send [17:13:57]*** Cut start [17:13:57]*** Partial cut [17:13:57]*** CUTSNS_PIN = 1 [17:13:57]*** CUTSNS_PIN = 0 [17:13:57]*** Brake cut motor [17:13:57]Read from MH i2c: 01 [17:13:57]MH_I2C_Read... [17:13:57]*** Stop cut motor [17:13:57]*** Cut end [17:13:57]Read from MH i2c: 01 07 00 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 FF 0F EB [17:13:57]process_action close_receipt done [17:13:57]requested_data is exist [17:13:57]produce_requested_data [17:13:57]requested_item fm.sn is exist - process it [17:13:57]wFMCommunicate request_size=4 [17:13:57]MH_SAM_APDU [17:13:57]CAPDU: 80 11 00 00 [17:13:57]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [17:13:57]Write i2c OK [17:13:57]MH_I2C_Read... [17:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:57]Read from MH i2c: E2 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 17 00 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [17:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:13:57]wFMCommunicate OK [17:13:57]requested_item fd.num is exist - process it [17:13:57]SAM_PROTO_GetFieldsCounters [17:13:57]wFMCommunicate request_size=4 [17:13:57]MH_SAM_APDU [17:13:57]CAPDU: 80 13 00 00 [17:13:57]Write to MH i2c: E2 08 00 C3 15 80 13 00 00 00 00 00 00 54 [17:13:57]Write i2c OK [17:13:57]MH_I2C_Read... [17:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:57]Read from MH i2c: E2 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 62 00 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 62 00 C3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:57]wFMCommunicate OK [17:13:57]SAM_PROTO_GetFieldsCounters done [17:13:57]requested_item shift.num is exist - process it [17:13:57]requested_item shift.opened is exist - process it [17:13:57]req_shift_opened [17:13:57]FM_GetShiftState [17:13:57]SAM_PROTO_GetShiftState [17:13:57]wFMCommunicate request_size=4 [17:13:57]MH_SAM_APDU [17:13:57]CAPDU: 80 13 01 00 [17:13:57]Write to MH i2c: E2 08 00 C4 15 80 13 01 00 00 00 00 00 56 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:58]Read from MH i2c: E2 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: E2 0E 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: E2 0E 00 C4 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 30 [17:13:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:13:58]wFMCommunicate OK [17:13:58]SAM_PROTO_GetShiftState done [17:13:58]FM_GetShiftState done [17:13:58]req_shift_opened done [17:13:58]requested_item shift.open_date is exist - process it [17:13:58]req_shift_open_date [17:13:58]req_shift_open_date done [17:13:58]produce_requested_data done [17:13:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30978,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:13:58]process_action_free close_receipt [17:13:58]json_value_free [17:13:58]json_value_free done [17:13:58]process_json_proto returns [17:13:58]Send response to host [17:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30978,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:13:58]free response buf [17:13:58]execute_script done [17:13:58]execute_script returns [17:13:58]free content buf [17:13:58]Sock 7.Close socket [17:13:58]Sock 7.Thread stoped [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:39]accept exits with 9 [17:15:39]New connection [17:15:39]New thread 3067043172 created [17:15:39]Thread 3066899812 joined [17:15:39]Waiting for new connection... [17:15:39] Sock 9.Parse request [17:15:39]Sock 9.Check first char [17:15:39]Sock 9.First char is OK [17:15:39]request: POST /json_proto HTTP/1.0 [17:15:39]Method: POST [17:15:39]URL: /json_proto [17:15:39]Method is POST - this is cgi request [17:15:39]url: /json_proto [17:15:39]query_string will be loaded in cgi processing [17:15:39]execute_cgi json_proto POST (null) [17:15:39]execute_cgi path=json_proto method=POST [17:15:39]POST find Content-Length [17:15:39]Host: 172.17.51.3:8080 [17:15:39]Content-Length: 843 [17:15:39]Content-Type: application/json [17:15:39] [17:15:39]POST finish read [17:15:39]Found Content-Length = 843 [17:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:39]execute_script... [17:15: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)343406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:39]POST & json_proto [17:15:39]process_json_proto [17:15:39]json parsed OK: [17:15:39]protocol is kg_v1.0 [17:15:39]action value=close_receipt [17:15:39]process_action close_receipt [17:15:39]cmd_close_receipt [17:15:39]MH_GetDate [17:15:39]Write to MH i2c: F0 00 00 C5 15 C9 [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 09 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 09 00 C5 15 00 BD DD 17 67 04 C1 95 66 AA [17:15:39]GetLastDocTimeStamp 1729617235 [17:15:39]current date 1729617341 [17:15:39]FM_GetShiftState [17:15:39]SAM_PROTO_GetShiftState [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 13 01 00 [17:15:39]Write to MH i2c: E2 08 00 C6 15 80 13 01 00 00 00 00 00 58 [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0E 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0E 00 C6 15 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 32 [17:15:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:15:39]wFMCommunicate OK [17:15:39]SAM_PROTO_GetShiftState done [17:15:39]FM_GetShiftState done [17:15:39]opened in 1729557342 [17:15:39]opened+sec_in_day 1729643742 [17:15:39]quantity*price = 100021 [17:15:39]sum+1 = 100023 [17:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 212 22.10.2024 17:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30979 ФПД: 197560507609176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171541&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30979&fm=197560507609176&tin=02508201610067®Number=0000000000186857&sum=100022 [17:15:40]StoreToDocumentArchive [17:15:40]shift 116 fd 30979 [17:15:40]save to /storage/0116/doc_00030979 [17:15:40]save last doc name /storage/0116/doc_00030979 to /storage/kkm_last_doc_name [17:15:40]save OK [17:15:40]Clear old archive folders... [17:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:40]tlvbuf is 00CD49F0 [17:15:40]SAM_PROTO_ClearQueue [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 09 00 00 [17:15:40]Write to MH i2c: E2 08 00 D3 15 80 09 00 00 00 00 00 00 5A [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 D3 15 00 90 00 5C [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]SAM_PROTO_ClearQueue done [17:15:40]KKMCreateOFDPacket [17:15:40]OFDProtocolAddRootSTLVToBuf [17:15:40]FM_MakeSignedData [17:15:40]FM_MakeSignedData [17:15:40]SAM_PROTO_SignData [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 0D 01 02 [17:15:40]Write to MH i2c: E2 08 00 D4 15 80 0D 01 02 00 00 00 00 62 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]wFMCommunicate request_size=255 [17:15:40]MH_SAM_APDU [17:15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 BD DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 79 00 00 35 04 06 00 B3 [17:15:40]Write to MH i2c: E2 02 01 D5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 BD DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 79 00 00 35 04 06 00 B3 00 00 CC [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]wFMCommunicate request_size=10 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 02 02 05 AE 23 E0 B0 58 [17:15:41]Write to MH i2c: E2 0D 00 D6 15 80 0D 02 02 05 00 AE 23 E0 B0 58 00 00 28 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 03 02 [17:15:41]Write to MH i2c: E2 08 00 D7 15 80 0D 03 02 00 00 00 00 67 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0B 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0B 00 D7 15 00 E4 D4 A3 4F E6 B8 16 27 90 00 ED [17:15:41]RAPDU: E4 D4 A3 4F E6 B8 16 27 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_SignData done [17:15:41]FM_MakeSignedData done [17:15:41]CreateOFDProtocolMessage [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 11 00 00 [17:15:41]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 17 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [17:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:15:41]wFMCommunicate OK [17:15:41]CreateOFDProtocolMessage done [17:15:41]OFDSenderStorePacket 30979 [17:15:41]StoreOFDPacket docnum=30979 [17:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F1 EF 07 01 51 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 BD DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 79 00 00 35 04 06 00 B3 AE 23 E0 B0 58 E4 D4 A3 4F E6 B8 16 27 [17:15:41]CheckFolder [17:15:41]dirname=/storage/ofd_packets [17:15:41]CheckFolder done [17:15:41]ProducePacketName [17:15:41]name=ofd_packets/00030979 [17:15:41]NVStorageSaveData ofd_packets/00030979 [17:15:41]File name is /storage/ofd_packets/00030979 [17:15:41]Write 301 bytes [17:15:41]NVStorageSaveData done [17:15:41]OFDSenderStorePacket done [17:15:41]KKMCreateOFDPacket done [17:15:41]NVStorageSaveData kkm_last_timestamp [17:15:41]File name is /storage/kkm_last_timestamp [17:15:41]Write 4 bytes [17:15:41]NVStorageSaveData done [17:15:41]ExternCall_PrintAddStr [17:15:41]wPrintStart [17:15:41]Write to MH i2c: 01 00 00 D9 15 EE [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 FF 0F 03 [17:15:41]RasterBufferAndPrint [17:15:41]line Счет N : (1)343406 [17:15:41]line ИНН: 02508201610067 [17:15:41]line Контрольно-Кассовый Чек [17:15:41]line ПРОДАЖА [17:15:41]line ТРК (МРК, ГНК) : 32 [17:15:41]line Товар: 2710124500 [17:15:41]line Аи-95-К-3 [17:15:41]line 13.480 * 74.20 [17:15:41]line = 1000.22 [17:15:41]line НДС 12% НСП 1% [17:15:41]line > о реализуемом товаре [17:15:41]line ИТОГО: 1000.22 [17:15:41]line НСП 1% : 8.85 [17:15:41]line НДС 12% : 106.22 [17:15:41]line Наличными: 0.00 [17:15:41]line Безнал.: 1000.22 [17:15:41]line Место: АЗС № 78 "Партнер Нефть" [17:15:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:15:41]line СНО: Общий режим [17:15:41]line Чек 212 22.10.2024 17:15 [17:15:41]line Смена: 116 ФФД: 1.0 [17:15:41]line ЗНМ: 0300000137 [17:15:41]line РНМ: 0000000000186857 [17:15:41]line Версия ККМ: v1.0 [17:15:41]line Платежная система: АКБ Кыргызстан [17:15:41]line ФМ: 0000000002094219 [17:15:41]line ФД: 30979 [17:15:41]line ФПД: 197560507609176 [17:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171541&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30979&fm=197560507609176&tin=02508201610067®Number=0000000000186857&sum=100022 [17:15:41]OFD Sender: Processing packet 30979 [packets to send 11, broken 10] [17:15:41]ProducePacketName [17:15:41]name=ofd_packets/00030979 [17:15:41]OFD Sender: To server: pG, [17:15:41]CommunicateWithHost lk.salyk.kg:30040 [17:15:41]ConnectInit lk.salyk.kg [17:15:41]written 0, free lines is 4095 [17:15:41]Connected sock=10 [17:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F1 EF 07 01 51 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 BD DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 79 00 00 35 04 06 00 B3 AE 23 E0 B0 58 E4 D4 A3 4F E6 B8 16 27 [17:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C3 DE 47 00 20 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 32 30 39 34 32 31 39 10 04 04 00 03 79 00 00 F4 03 04 00 3A 88 17 67 B6 04 01 00 00 45 4D C3 A4 C5 01 37 53 [17:15:42]CommunicateWithHost err = 0 [17:15:42]CheckOFDResponse [17:15:42]1017 (14) - 77093643461234 [17:15:42]1041 (16) - 0000000002094219 [17:15:42]1040 (4) - 30979 [17:15:42]1012 (4) - 22.10.2024 11:10 [17:15:42]1206 (1) - 0 [17:15:42]OFD Sender: Remove packet 30979 [17:15:42]ProducePacketName [17:15:42]name=ofd_packets/00030979 [17:15:42]NVStorageDeleteData [17:15:42]Write to MH i2c: 01 00 00 03 16 19 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 07 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0C 2B [17:15:42]RasterBufferAndPrint [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]written 0, free lines is 3336 [17:15:42]MH_Cut [17:15:42]Write to MH i2c: D1 01 00 0A 16 01 F2 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 01 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 01 00 0A 16 00 F1 [17:15:42]Write to MH i2c: 01 00 00 0B 16 21 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]OFD Sender: No OFD packet to send [17:15:42]*** Cut start [17:15:42]*** Partial cut [17:15:42]*** CUTSNS_PIN = 1 [17:15:42]*** CUTSNS_PIN = 0 [17:15:43]*** Brake cut motor [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]*** Stop cut motor [17:15:43]*** Cut end [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 FF 0F 36 [17:15:43]process_action close_receipt done [17:15:43]requested_data is exist [17:15:43]produce_requested_data [17:15:43]requested_item fm.sn is exist - process it [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 11 00 00 [17:15:43]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [17:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:15:43]wFMCommunicate OK [17:15:43]requested_item fd.num is exist - process it [17:15:43]SAM_PROTO_GetFieldsCounters [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 13 00 00 [17:15:43]Write to MH i2c: E2 08 00 0D 16 80 13 00 00 00 00 00 00 9F [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 62 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 62 00 0D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:43]wFMCommunicate OK [17:15:43]SAM_PROTO_GetFieldsCounters done [17:15:43]requested_item shift.num is exist - process it [17:15:43]requested_item shift.opened is exist - process it [17:15:43]req_shift_opened [17:15:43]FM_GetShiftState [17:15:43]SAM_PROTO_GetShiftState [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 13 01 00 [17:15:43]Write to MH i2c: E2 08 00 0E 16 80 13 01 00 00 00 00 00 A1 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0E 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0E 00 0E 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7B [17:15:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:15:43]wFMCommunicate OK [17:15:43]SAM_PROTO_GetShiftState done [17:15:43]FM_GetShiftState done [17:15:43]req_shift_opened done [17:15:43]requested_item shift.open_date is exist - process it [17:15:43]req_shift_open_date [17:15:43]req_shift_open_date done [17:15:43]produce_requested_data done [17:15:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30979,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:15:43]process_action_free close_receipt [17:15:43]json_value_free [17:15:43]json_value_free done [17:15:43]process_json_proto returns [17:15:43]Send response to host [17:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30979,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:15:43]free response buf [17:15:43]execute_script done [17:15:43]execute_script returns [17:15:43]free content buf [17:15:43]Sock 9.Close socket [17:15:43]Sock 9.Thread stoped [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:24]accept exits with 7 [17:16:24]New connection [17:16:24]New thread 3066899812 created [17:16:24]Thread 3067043172 joined [17:16:24]Waiting for new connection... [17:16:24] Sock 7.Parse request [17:16:24]Sock 7.Check first char [17:16:24]Sock 7.First char is OK [17:16:24]request: POST /json_proto HTTP/1.0 [17:16:24]Method: POST [17:16:24]URL: /json_proto [17:16:24]Method is POST - this is cgi request [17:16:24]url: /json_proto [17:16:24]query_string will be loaded in cgi processing [17:16:24]execute_cgi json_proto POST (null) [17:16:24]execute_cgi path=json_proto method=POST [17:16:24]POST find Content-Length [17:16:24]Host: 172.17.51.3:8080 [17:16:24]Content-Length: 679 [17:16:24]Content-Type: application/json [17:16:24] [17:16:24]POST finish read [17:16:24]Found Content-Length = 679 [17:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:24]execute_script... [17:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:24]POST & json_proto [17:16:24]process_json_proto [17:16:24]json parsed OK: [17:16:24]protocol is kg_v1.0 [17:16:24]action value=close_receipt [17:16:24]process_action close_receipt [17:16:24]cmd_close_receipt [17:16:24]MH_GetDate [17:16:24]Write to MH i2c: F0 00 00 0F 16 14 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 09 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 09 00 0F 16 00 EA DD 17 67 04 C1 95 66 22 [17:16:24]GetLastDocTimeStamp 1729617341 [17:16:24]current date 1729617386 [17:16:24]FM_GetShiftState [17:16:24]SAM_PROTO_GetShiftState [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 01 00 [17:16:24]Write to MH i2c: E2 08 00 10 16 80 13 01 00 00 00 00 00 A3 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 10 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7D [17:16:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:16:24]wFMCommunicate OK [17:16:24]SAM_PROTO_GetShiftState done [17:16:24]FM_GetShiftState done [17:16:24]opened in 1729557342 [17:16:24]opened+sec_in_day 1729643742 [17:16:24]quantity*price = 100050 [17:16:24]sum+1 = 100052 [17:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 213 22.10.2024 17:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30980 ФПД: 151290564760206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30980&fm=151290564760206&tin=02508201610067®Number=0000000000186857&sum=100000 [17:16:25]StoreToDocumentArchive [17:16:25]shift 116 fd 30980 [17:16:25]save to /storage/0116/doc_00030980 [17:16:25]save last doc name /storage/0116/doc_00030980 to /storage/kkm_last_doc_name [17:16:25]save OK [17:16:25]Clear old archive folders... [17:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:16:25]tlvbuf is 00CCD4B0 [17:16:25]SAM_PROTO_ClearQueue [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 09 00 00 [17:16:25]Write to MH i2c: E2 08 00 1D 16 80 09 00 00 00 00 00 00 A5 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_ClearQueue done [17:16:25]KKMCreateOFDPacket [17:16:25]OFDProtocolAddRootSTLVToBuf [17:16:25]FM_MakeSignedData [17:16:25]FM_MakeSignedData [17:16:25]SAM_PROTO_SignData [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 0D 01 02 [17:16:25]Write to MH i2c: E2 08 00 1E 16 80 0D 01 02 00 00 00 00 AD [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]wFMCommunicate request_size=255 [17:16:25]MH_SAM_APDU [17:16: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 EA DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 79 00 00 35 04 06 00 89 99 14 5E [17:16:25]Write to MH i2c: E2 02 01 1F 16 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 EA DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 79 00 00 35 04 06 00 89 99 14 5E 00 00 D3 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 [17:16:26]MH_I2C_Read... [17:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:26]Read from MH i2c: E2 03 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [17:16:26]RAPDU: 90 00 [17:16:26]wFMCommunicate OK [17:16:26]wFMCommunicate request_size=7 [17:16:26]MH_SAM_APDU [17:16:26]CAPDU: 80 0D 02 02 02 D2 8E [17:16:26]Write to MH i2c: E2 0A 00 20 16 80 0D 02 02 02 00 D2 8E 00 00 14 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:26]Read from MH i2c: E2 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 03 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 03 00 20 16 00 90 00 AA [17:16:26]RAPDU: 90 00 [17:16:26]wFMCommunicate OK [17:16:26]wFMCommunicate request_size=4 [17:16:26]MH_SAM_APDU [17:16:26]CAPDU: 80 0D 03 02 [17:16:26]Write to MH i2c: E2 08 00 21 16 80 0D 03 02 00 00 00 00 B2 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:26]Read from MH i2c: E2 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 0B 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 0B 00 21 16 00 D5 1E 8E 56 E6 6C F6 45 90 00 17 [17:16:26]RAPDU: D5 1E 8E 56 E6 6C F6 45 90 00 [17:16:26]wFMCommunicate OK [17:16:26]SAM_PROTO_SignData done [17:16:26]FM_MakeSignedData done [17:16:26]CreateOFDProtocolMessage [17:16:26]wFMCommunicate request_size=4 [17:16:26]MH_SAM_APDU [17:16:26]CAPDU: 80 11 00 00 [17:16:26]Write to MH i2c: E2 08 00 22 16 80 11 00 00 00 00 00 00 B2 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:26]Read from MH i2c: E2 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 17 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 17 00 22 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [17:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:16:26]wFMCommunicate OK [17:16:26]CreateOFDProtocolMessage done [17:16:26]OFDSenderStorePacket 30980 [17:16:26]StoreOFDPacket docnum=30980 [17:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B2 E1 04 01 C2 C8 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 EA DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 79 00 00 35 04 06 00 89 99 14 5E D2 8E D5 1E 8E 56 E6 6C F6 45 [17:16:26]CheckFolder [17:16:26]dirname=/storage/ofd_packets [17:16:26]CheckFolder done [17:16:26]ProducePacketName [17:16:26]name=ofd_packets/00030980 [17:16:26]NVStorageSaveData ofd_packets/00030980 [17:16:26]File name is /storage/ofd_packets/00030980 [17:16:26]Write 298 bytes [17:16:26]NVStorageSaveData done [17:16:26]OFDSenderStorePacket done [17:16:26]KKMCreateOFDPacket done [17:16:26]NVStorageSaveData kkm_last_timestamp [17:16:26]File name is /storage/kkm_last_timestamp [17:16:26]Write 4 bytes [17:16:26]NVStorageSaveData done [17:16:26]ExternCall_PrintAddStr [17:16:26]wPrintStart [17:16:26]Write to MH i2c: 01 00 00 23 16 39 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 07 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 FF 0F 4E [17:16:26]RasterBufferAndPrint [17:16:26]line Счет N : (1)343407 [17:16:26]line ИНН: 02508201610067 [17:16:26]line Контрольно-Кассовый Чек [17:16:26]line ПРОДАЖА [17:16:26]line ТРК (МРК, ГНК) : 54 [17:16:26]line Товар: 2710194210 [17:16:26]line ДТ-К-2 [17:16:26]line 13.130 * 76.20 [17:16:26]line = 1000.51 [17:16:26]line НДС 12% НСП 1% [17:16:26]line > о реализуемом товаре [17:16:26]line ОКРУГЛЕНИЕ: -0.51 [17:16:26]line ИТОГО: 1000.00 [17:16:26]line Внесено: 1000.00 [17:16:26]line СДАЧА: 0.00 [17:16:26]line НСП 1% : 8.85 [17:16:26]line НДС 12% : 106.25 [17:16:26]line Наличными: 1000.00 [17:16:26]line Безнал.: 0.00 [17:16:26]line Место: АЗС № 78 "Партнер Нефть" [17:16:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:16:26]line СНО: Общий режим [17:16:26]line Чек 213 22.10.2024 17:16 [17:16:26]line Смена: 116 ФФД: 1.0 [17:16:26]line ЗНМ: 0300000137 [17:16:26]line РНМ: 0000000000186857 [17:16:26]line Версия ККМ: v1.0 [17:16:26]line ФМ: 0000000002094219 [17:16:26]line ФД: 30980 [17:16:26]line ФПД: 151290564760206 [17:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30980&fm=151290564760206&tin=02508201610067®Number=0000000000186857&sum=100000 [17:16:26]OFD Sender: Processing packet 30980 [packets to send 11, broken 10] [17:16:26]ProducePacketName [17:16:26]name=ofd_packets/00030980 [17:16:26]OFD Sender: To server: pG, [17:16:26]CommunicateWithHost lk.salyk.kg:30040 [17:16:26]ConnectInit lk.salyk.kg [17:16:26]written 0, free lines is 4095 [17:16:26]Connected sock=10 [17:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B2 E1 04 01 C2 C8 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 EA DD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 79 00 00 35 04 06 00 89 99 14 5E D2 8E D5 1E 8E 56 E6 6C F6 45 [17:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5A EE 47 00 8A 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 32 30 39 34 32 31 39 10 04 04 00 04 79 00 00 F4 03 04 00 67 88 17 67 B6 04 01 00 00 A6 4C 56 4A 28 8F EE 82 [17:16:26]CommunicateWithHost err = 0 [17:16:26]CheckOFDResponse [17:16:26]1017 (14) - 77093643461234 [17:16:26]1041 (16) - 0000000002094219 [17:16:26]1040 (4) - 30980 [17:16:26]1012 (4) - 22.10.2024 11:11 [17:16:26]1206 (1) - 0 [17:16:26]OFD Sender: Remove packet 30980 [17:16:26]ProducePacketName [17:16:26]name=ofd_packets/00030980 [17:16:26]NVStorageDeleteData [17:16:27]Write to MH i2c: 01 00 00 4E 16 64 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 07 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 07 00 4E 16 00 00 00 00 00 EC 0C 63 [17:16:27]RasterBufferAndPrint [17:16:27]line [17:16:27]line [17:16:27]line [17:16:27]line [17:16:27]line [17:16:27]written 0, free lines is 3314 [17:16:27]MH_Cut [17:16:27]Write to MH i2c: D1 01 00 55 16 01 3D [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: D1 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: D1 01 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: D1 01 00 55 16 00 3C [17:16:27]Write to MH i2c: 01 00 00 56 16 6C [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]OFD Sender: No OFD packet to send [17:16:27]*** Cut start [17:16:27]*** Partial cut [17:16:27]*** CUTSNS_PIN = 1 [17:16:27]*** CUTSNS_PIN = 0 [17:16:27]*** Brake cut motor [17:16:28]Read from MH i2c: 01 [17:16:28]MH_I2C_Read... [17:16:28]*** Stop cut motor [17:16:28]*** Cut end [17:16:28]Read from MH i2c: 01 07 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 FF 0F 81 [17:16:28]process_action close_receipt done [17:16:28]requested_data is exist [17:16:28]produce_requested_data [17:16:28]requested_item fm.sn is exist - process it [17:16:28]wFMCommunicate request_size=4 [17:16:28]MH_SAM_APDU [17:16:28]CAPDU: 80 11 00 00 [17:16:28]Write to MH i2c: E2 08 00 57 16 80 11 00 00 00 00 00 00 E7 [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:28]Read from MH i2c: E2 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 17 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 17 00 57 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [17:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:16:28]wFMCommunicate OK [17:16:28]requested_item fd.num is exist - process it [17:16:28]SAM_PROTO_GetFieldsCounters [17:16:28]wFMCommunicate request_size=4 [17:16:28]MH_SAM_APDU [17:16:28]CAPDU: 80 13 00 00 [17:16:28]Write to MH i2c: E2 08 00 58 16 80 13 00 00 00 00 00 00 EA [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:28]Read from MH i2c: E2 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 62 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 62 00 58 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:28]wFMCommunicate OK [17:16:28]SAM_PROTO_GetFieldsCounters done [17:16:28]requested_item shift.num is exist - process it [17:16:28]requested_item shift.opened is exist - process it [17:16:28]req_shift_opened [17:16:28]FM_GetShiftState [17:16:28]SAM_PROTO_GetShiftState [17:16:28]wFMCommunicate request_size=4 [17:16:28]MH_SAM_APDU [17:16:28]CAPDU: 80 13 01 00 [17:16:28]Write to MH i2c: E2 08 00 59 16 80 13 01 00 00 00 00 00 EC [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:28]Read from MH i2c: E2 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 0E 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 0E 00 59 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C6 [17:16:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:16:28]wFMCommunicate OK [17:16:28]SAM_PROTO_GetShiftState done [17:16:28]FM_GetShiftState done [17:16:28]req_shift_opened done [17:16:28]requested_item shift.open_date is exist - process it [17:16:28]req_shift_open_date [17:16:28]req_shift_open_date done [17:16:28]produce_requested_data done [17:16:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30980,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:16:28]process_action_free close_receipt [17:16:28]json_value_free [17:16:28]json_value_free done [17:16:28]process_json_proto returns [17:16:28]Send response to host [17:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30980,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:16:28]free response buf [17:16:28]execute_script done [17:16:28]execute_script returns [17:16:28]free content buf [17:16:28]Sock 7.Close socket [17:16:28]Sock 7.Thread stoped [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:14]accept exits with 9 [17:18:14]New connection [17:18:14]New thread 3067043172 created [17:18:14]Thread 3066899812 joined [17:18:14]Waiting for new connection... [17:18:14] Sock 9.Parse request [17:18:14]Sock 9.Check first char [17:18:14]Sock 9.First char is OK [17:18:14]request: POST /json_proto HTTP/1.0 [17:18:14]Method: POST [17:18:14]URL: /json_proto [17:18:14]Method is POST - this is cgi request [17:18:14]url: /json_proto [17:18:14]query_string will be loaded in cgi processing [17:18:14]execute_cgi json_proto POST (null) [17:18:14]execute_cgi path=json_proto method=POST [17:18:14]POST find Content-Length [17:18:14]Host: 172.17.51.3:8080 [17:18:14]Content-Length: 688 [17:18:14]Content-Type: application/json [17:18:14] [17:18:14]POST finish read [17:18:14]Found Content-Length = 688 [17:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:14]execute_script... [17:18: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)343408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:14]POST & json_proto [17:18:14]process_json_proto [17:18:14]json parsed OK: [17:18:14]protocol is kg_v1.0 [17:18:14]action value=close_receipt [17:18:14]process_action close_receipt [17:18:14]cmd_close_receipt [17:18:14]MH_GetDate [17:18:14]Write to MH i2c: F0 00 00 5A 16 5F [17:18:14]Write i2c OK [17:18:14]MH_I2C_Read... [17:18:14]Read from MH i2c: F0 [17:18:14]MH_I2C_Read... [17:18:14]Read from MH i2c: F0 09 00 [17:18:14]MH_I2C_Read... [17:18:14]Read from MH i2c: F0 09 00 5A 16 00 57 DE 17 67 04 C1 95 66 DB [17:18:14]GetLastDocTimeStamp 1729617386 [17:18:14]current date 1729617495 [17:18:14]FM_GetShiftState [17:18:14]SAM_PROTO_GetShiftState [17:18:14]wFMCommunicate request_size=4 [17:18:14]MH_SAM_APDU [17:18:14]CAPDU: 80 13 01 00 [17:18:14]Write to MH i2c: E2 08 00 5B 16 80 13 01 00 00 00 00 00 EE [17:18:14]Write i2c OK [17:18:14]MH_I2C_Read... [17:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:14]Read from MH i2c: E2 [17:18:14]MH_I2C_Read... [17:18:14]Read from MH i2c: E2 0E 00 [17:18:14]MH_I2C_Read... [17:18:14]Read from MH i2c: E2 0E 00 5B 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C8 [17:18:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:18:14]wFMCommunicate OK [17:18:14]SAM_PROTO_GetShiftState done [17:18:14]FM_GetShiftState done [17:18:14]opened in 1729557342 [17:18:14]opened+sec_in_day 1729643742 [17:18:14]quantity*price = 130004 [17:18:14]sum+1 = 130006 [17:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 214 22.10.2024 17:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30981 ФПД: 207704013854512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171815&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30981&fm=207704013854512&tin=02508201610067®Number=0000000000186857&sum=130000 [17:18:15]StoreToDocumentArchive [17:18:15]shift 116 fd 30981 [17:18:15]save to /storage/0116/doc_00030981 [17:18:15]save last doc name /storage/0116/doc_00030981 to /storage/kkm_last_doc_name [17:18:15]save OK [17:18:15]Clear old archive folders... [17:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:18:15]tlvbuf is 00D65C30 [17:18:15]SAM_PROTO_ClearQueue [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 09 00 00 [17:18:15]Write to MH i2c: E2 08 00 68 16 80 09 00 00 00 00 00 00 F0 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]SAM_PROTO_ClearQueue done [17:18:15]KKMCreateOFDPacket [17:18:15]OFDProtocolAddRootSTLVToBuf [17:18:15]FM_MakeSignedData [17:18:15]FM_MakeSignedData [17:18:15]SAM_PROTO_SignData [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 01 02 [17:18:15]Write to MH i2c: E2 08 00 69 16 80 0D 01 02 00 00 00 00 F8 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=255 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 57 DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 79 00 [17:18:15]Write to MH i2c: E2 02 01 6A 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 57 DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 79 00 00 00 48 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=16 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BC E7 DB F6 D7 30 [17:18:15]Write to MH i2c: E2 13 00 6B 16 80 0D 02 02 0B 00 00 35 04 06 00 BC E7 DB F6 D7 30 00 00 CB [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 03 02 [17:18:15]Write to MH i2c: E2 08 00 6C 16 80 0D 03 02 00 00 00 00 FD [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 0B 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 0B 00 6C 16 00 BC B8 15 20 19 DE 6D 06 90 00 11 [17:18:15]RAPDU: BC B8 15 20 19 DE 6D 06 90 00 [17:18:15]wFMCommunicate OK [17:18:15]SAM_PROTO_SignData done [17:18:15]FM_MakeSignedData done [17:18:15]CreateOFDProtocolMessage [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 11 00 00 [17:18:15]Write to MH i2c: E2 08 00 6D 16 80 11 00 00 00 00 00 00 FD [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 17 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 17 00 6D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [17:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:18:15]wFMCommunicate OK [17:18:15]CreateOFDProtocolMessage done [17:18:15]OFDSenderStorePacket 30981 [17:18:15]StoreOFDPacket docnum=30981 [17:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 02 CC 0D 01 45 B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 57 DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 79 00 00 35 04 06 00 BC E7 DB F6 D7 30 BC B8 15 20 19 DE 6D 06 [17:18:15]CheckFolder [17:18:15]dirname=/storage/ofd_packets [17:18:15]CheckFolder done [17:18:15]ProducePacketName [17:18:15]name=ofd_packets/00030981 [17:18:15]NVStorageSaveData ofd_packets/00030981 [17:18:15]File name is /storage/ofd_packets/00030981 [17:18:15]Write 307 bytes [17:18:15]NVStorageSaveData done [17:18:15]OFDSenderStorePacket done [17:18:15]KKMCreateOFDPacket done [17:18:15]NVStorageSaveData kkm_last_timestamp [17:18:15]File name is /storage/kkm_last_timestamp [17:18:15]Write 4 bytes [17:18:15]NVStorageSaveData done [17:18:15]ExternCall_PrintAddStr [17:18:15]wPrintStart [17:18:15]Write to MH i2c: 01 00 00 6E 16 84 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 07 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 FF 0F 99 [17:18:15]RasterBufferAndPrint [17:18:15]line Счет N : (1)343408 [17:18:15]line ИНН: 02508201610067 [17:18:15]line Контрольно-Кассовый Чек [17:18:15]line ПРОДАЖА [17:18:15]line ТРК (МРК, ГНК) : 51 [17:18:15]line Товар: 2710194210 [17:18:15]line D-ENERGY Дт-К-2 [17:18:15]line 16.840 * 77.20 [17:18:15]line = 1300.05 [17:18:15]line НДС 12% НСП 1% [17:18:15]line > о реализуемом товаре [17:18:15]line ОКРУГЛЕНИЕ: -0.05 [17:18:15]line ИТОГО: 1300.00 [17:18:15]line Внесено: 1300.00 [17:18:15]line СДАЧА: 0.00 [17:18:15]line НСП 1% : 11.50 [17:18:15]line НДС 12% : 138.06 [17:18:15]line Наличными: 1300.00 [17:18:15]line Безнал.: 0.00 [17:18:15]line Место: АЗС № 78 "Партнер Нефть" [17:18:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:18:15]line СНО: Общий режим [17:18:15]line Чек 214 22.10.2024 17:18 [17:18:15]line Смена: 116 ФФД: 1.0 [17:18:15]line ЗНМ: 0300000137 [17:18:15]line РНМ: 0000000000186857 [17:18:15]line Версия ККМ: v1.0 [17:18:15]line ФМ: 0000000002094219 [17:18:15]line ФД: 30981 [17:18:15]line ФПД: 207704013854512 [17:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171815&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30981&fm=207704013854512&tin=02508201610067®Number=0000000000186857&sum=130000 [17:18:16]OFD Sender: Processing packet 30981 [packets to send 11, broken 10] [17:18:16]ProducePacketName [17:18:16]name=ofd_packets/00030981 [17:18:16]OFD Sender: To server: pG, [17:18:16]CommunicateWithHost lk.salyk.kg:30040 [17:18:16]ConnectInit lk.salyk.kg [17:18:16]written 0, free lines is 4095 [17:18:16]Connected sock=11 [17:18:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 02 CC 0D 01 45 B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 57 DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 79 00 00 35 04 06 00 BC E7 DB F6 D7 30 BC B8 15 20 19 DE 6D 06 [17:18:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0B 16 47 00 C4 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 32 30 39 34 32 31 39 10 04 04 00 05 79 00 00 F4 03 04 00 D4 88 17 67 B6 04 01 00 00 C4 14 01 C3 BA 26 FF F7 [17:18:16]CommunicateWithHost err = 0 [17:18:16]CheckOFDResponse [17:18:16]1017 (14) - 77093643461234 [17:18:16]1041 (16) - 0000000002094219 [17:18:16]1040 (4) - 30981 [17:18:16]1012 (4) - 22.10.2024 11:13 [17:18:16]1206 (1) - 0 [17:18:16]OFD Sender: Remove packet 30981 [17:18:16]ProducePacketName [17:18:16]name=ofd_packets/00030981 [17:18:16]NVStorageDeleteData [17:18:16]Write to MH i2c: 01 00 00 99 16 AF [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 07 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 07 00 99 16 00 00 00 00 00 EA 0C AC [17:18:16]RasterBufferAndPrint [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]written 0, free lines is 3313 [17:18:16]MH_Cut [17:18:16]Write to MH i2c: D1 01 00 A0 16 01 88 [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 01 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 01 00 A0 16 00 87 [17:18:16]Write to MH i2c: 01 00 00 A1 16 B7 [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:17]OFD Sender: No OFD packet to send [17:18:17]*** Cut start [17:18:17]*** Partial cut [17:18:17]*** CUTSNS_PIN = 1 [17:18:17]*** CUTSNS_PIN = 0 [17:18:17]*** Brake cut motor [17:18:17]Read from MH i2c: 01 [17:18:17]MH_I2C_Read... [17:18:17]*** Stop cut motor [17:18:17]*** Cut end [17:18:17]Read from MH i2c: 01 07 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 FF 0F CC [17:18:17]process_action close_receipt done [17:18:17]requested_data is exist [17:18:17]produce_requested_data [17:18:17]requested_item fm.sn is exist - process it [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 11 00 00 [17:18:17]Write to MH i2c: E2 08 00 A2 16 80 11 00 00 00 00 00 00 32 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:18]Read from MH i2c: E2 17 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 17 00 A2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [17:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:18:18]wFMCommunicate OK [17:18:18]requested_item fd.num is exist - process it [17:18:18]SAM_PROTO_GetFieldsCounters [17:18:18]wFMCommunicate request_size=4 [17:18:18]MH_SAM_APDU [17:18:18]CAPDU: 80 13 00 00 [17:18:18]Write to MH i2c: E2 08 00 A3 16 80 13 00 00 00 00 00 00 35 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 62 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 62 00 A3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:18]wFMCommunicate OK [17:18:18]SAM_PROTO_GetFieldsCounters done [17:18:18]requested_item shift.num is exist - process it [17:18:18]requested_item shift.opened is exist - process it [17:18:18]req_shift_opened [17:18:18]FM_GetShiftState [17:18:18]SAM_PROTO_GetShiftState [17:18:18]wFMCommunicate request_size=4 [17:18:18]MH_SAM_APDU [17:18:18]CAPDU: 80 13 01 00 [17:18:18]Write to MH i2c: E2 08 00 A4 16 80 13 01 00 00 00 00 00 37 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 0E 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 0E 00 A4 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 11 [17:18:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:18:18]wFMCommunicate OK [17:18:18]SAM_PROTO_GetShiftState done [17:18:18]FM_GetShiftState done [17:18:18]req_shift_opened done [17:18:18]requested_item shift.open_date is exist - process it [17:18:18]req_shift_open_date [17:18:18]req_shift_open_date done [17:18:18]produce_requested_data done [17:18:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30981,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:18:18]process_action_free close_receipt [17:18:18]json_value_free [17:18:18]json_value_free done [17:18:18]process_json_proto returns [17:18:18]Send response to host [17:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30981,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:18:18]free response buf [17:18:18]execute_script done [17:18:18]execute_script returns [17:18:18]free content buf [17:18:18]Sock 9.Close socket [17:18:18]Sock 9.Thread stoped [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]accept exits with 7 [17:20:57]New connection [17:20:57]New thread 3066899812 created [17:20:57]Thread 3067043172 joined [17:20:57]Waiting for new connection... [17:20:57] Sock 7.Parse request [17:20:57]Sock 7.Check first char [17:20:57]Sock 7.First char is OK [17:20:57]request: POST /json_proto HTTP/1.0 [17:20:57]Method: POST [17:20:57]URL: /json_proto [17:20:57]Method is POST - this is cgi request [17:20:57]url: /json_proto [17:20:57]query_string will be loaded in cgi processing [17:20:57]execute_cgi json_proto POST (null) [17:20:57]execute_cgi path=json_proto method=POST [17:20:57]POST find Content-Length [17:20:57]Host: 172.17.51.3:8080 [17:20:57]Content-Length: 678 [17:20:57]Content-Type: application/json [17:20:57] [17:20:57]POST finish read [17:20:57]Found Content-Length = 678 [17:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:57]execute_script... [17:20:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:57]POST & json_proto [17:20:57]process_json_proto [17:20:57]json parsed OK: [17:20:57]protocol is kg_v1.0 [17:20:57]action value=close_receipt [17:20:57]process_action close_receipt [17:20:57]cmd_close_receipt [17:20:57]MH_GetDate [17:20:57]Write to MH i2c: F0 00 00 A5 16 AA [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 09 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 09 00 A5 16 00 FA DE 17 67 04 C1 95 66 C9 [17:20:57]GetLastDocTimeStamp 1729617495 [17:20:57]current date 1729617658 [17:20:57]FM_GetShiftState [17:20:57]SAM_PROTO_GetShiftState [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 13 01 00 [17:20:57]Write to MH i2c: E2 08 00 A6 16 80 13 01 00 00 00 00 00 39 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:57]OFD Sender: No OFD packet to send [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0E 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0E 00 A6 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 13 [17:20:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:20:57]wFMCommunicate OK [17:20:57]SAM_PROTO_GetShiftState done [17:20:57]FM_GetShiftState done [17:20:57]opened in 1729557342 [17:20:57]opened+sec_in_day 1729643742 [17:20:57]quantity*price = 80012 [17:20:57]sum+1 = 80013 [17:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 215 22.10.2024 17:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30982 ФПД: 126859685442788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30982&fm=126859685442788&tin=02508201610067®Number=0000000000186857&sum=80000 [17:20:58]StoreToDocumentArchive [17:20:58]shift 116 fd 30982 [17:20:58]save to /storage/0116/doc_00030982 [17:20:58]save last doc name /storage/0116/doc_00030982 to /storage/kkm_last_doc_name [17:20:58]save OK [17:20:58]Clear old archive folders... [17:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:58]tlvbuf is 00DA1BE0 [17:20:58]SAM_PROTO_ClearQueue [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 09 00 00 [17:20:58]Write to MH i2c: E2 08 00 B3 16 80 09 00 00 00 00 00 00 3B [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]SAM_PROTO_ClearQueue done [17:20:58]KKMCreateOFDPacket [17:20:58]OFDProtocolAddRootSTLVToBuf [17:20:58]FM_MakeSignedData [17:20:58]FM_MakeSignedData [17:20:58]SAM_PROTO_SignData [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 0D 01 02 [17:20:58]Write to MH i2c: E2 08 00 B4 16 80 0D 01 02 00 00 00 00 43 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]wFMCommunicate request_size=255 [17:20:58]MH_SAM_APDU [17:20: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 FA DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 79 00 00 35 04 06 00 73 [17:20:58]Write to MH i2c: E2 02 01 B5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 FA DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 79 00 00 35 04 06 00 73 00 00 53 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]wFMCommunicate request_size=10 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 0D 02 02 05 60 D2 7C B4 E4 [17:20:58]Write to MH i2c: E2 0D 00 B6 16 80 0D 02 02 05 00 60 D2 7C B4 E4 00 00 96 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 0D 03 02 [17:20:58]Write to MH i2c: E2 08 00 B7 16 80 0D 03 02 00 00 00 00 48 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 0B 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 0B 00 B7 16 00 1A 0C A6 04 27 AA 2C 27 90 00 3D [17:20:58]RAPDU: 1A 0C A6 04 27 AA 2C 27 90 00 [17:20:58]wFMCommunicate OK [17:20:58]SAM_PROTO_SignData done [17:20:58]FM_MakeSignedData done [17:20:58]CreateOFDProtocolMessage [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 11 00 00 [17:20:58]Write to MH i2c: E2 08 00 B8 16 80 11 00 00 00 00 00 00 48 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 17 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 17 00 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [17:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:20:58]wFMCommunicate OK [17:20:58]CreateOFDProtocolMessage done [17:20:58]OFDSenderStorePacket 30982 [17:20:58]StoreOFDPacket docnum=30982 [17:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7F 2C 07 01 4A 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 FA DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 79 00 00 35 04 06 00 73 60 D2 7C B4 E4 1A 0C A6 04 27 AA 2C 27 [17:20:58]CheckFolder [17:20:58]dirname=/storage/ofd_packets [17:20:58]CheckFolder done [17:20:58]ProducePacketName [17:20:58]name=ofd_packets/00030982 [17:20:58]NVStorageSaveData ofd_packets/00030982 [17:20:58]File name is /storage/ofd_packets/00030982 [17:20:58]Write 301 bytes [17:20:58]NVStorageSaveData done [17:20:58]OFDSenderStorePacket done [17:20:58]KKMCreateOFDPacket done [17:20:58]NVStorageSaveData kkm_last_timestamp [17:20:58]File name is /storage/kkm_last_timestamp [17:20:58]Write 4 bytes [17:20:58]NVStorageSaveData done [17:20:58]ExternCall_PrintAddStr [17:20:58]wPrintStart [17:20:58]Write to MH i2c: 01 00 00 B9 16 CF [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 B9 16 00 00 00 00 00 FF 0F E4 [17:20:58]RasterBufferAndPrint [17:20:58]line Счет N : (1)343409 [17:20:58]line ИНН: 02508201610067 [17:20:58]line Контрольно-Кассовый Чек [17:20:58]line ПРОДАЖА [17:20:58]line ТРК (МРК, ГНК) : 43 [17:20:58]line Товар: 2710124130 [17:20:58]line Аи-92-К-2 [17:20:58]line 11.960 * 66.90 [17:20:58]line = 800.12 [17:20:58]line НДС 12% НСП 1% [17:20:58]line > о реализуемом товаре [17:20:58]line ОКРУГЛЕНИЕ: -0.12 [17:20:58]line ИТОГО: 800.00 [17:20:58]line Внесено: 800.00 [17:20:58]line СДАЧА: 0.00 [17:20:58]line НСП 1% : 7.08 [17:20:58]line НДС 12% : 84.97 [17:20:58]line Наличными: 800.00 [17:20:58]line Безнал.: 0.00 [17:20:58]line Место: АЗС № 78 "Партнер Нефть" [17:20:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:20:58]line СНО: Общий режим [17:20:58]line Чек 215 22.10.2024 17:20 [17:20:58]line Смена: 116 ФФД: 1.0 [17:20:58]line ЗНМ: 0300000137 [17:20:58]line РНМ: 0000000000186857 [17:20:58]line Версия ККМ: v1.0 [17:20:58]line ФМ: 0000000002094219 [17:20:58]line ФД: 30982 [17:20:58]line ФПД: 126859685442788 [17:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30982&fm=126859685442788&tin=02508201610067®Number=0000000000186857&sum=80000 [17:20:59]OFD Sender: Processing packet 30982 [packets to send 11, broken 10] [17:20:59]ProducePacketName [17:20:59]name=ofd_packets/00030982 [17:20:59]OFD Sender: To server: pG, [17:20:59]CommunicateWithHost lk.salyk.kg:30040 [17:20:59]ConnectInit lk.salyk.kg [17:20:59]written 0, free lines is 4095 [17:20:59]Connected sock=10 [17:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7F 2C 07 01 4A 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 FA DE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 79 00 00 35 04 06 00 73 60 D2 7C B4 E4 1A 0C A6 04 27 AA 2C 27 [17:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 41 D1 47 00 67 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 32 30 39 34 32 31 39 10 04 04 00 06 79 00 00 F4 03 04 00 77 89 17 67 B6 04 01 00 00 AD 40 B9 60 87 FE DF E5 [17:20:59]CommunicateWithHost err = 0 [17:20:59]CheckOFDResponse [17:20:59]1017 (14) - 77093643461234 [17:20:59]1041 (16) - 0000000002094219 [17:20:59]1040 (4) - 30982 [17:20:59]1012 (4) - 22.10.2024 11:16 [17:20:59]1206 (1) - 0 [17:20:59]OFD Sender: Remove packet 30982 [17:20:59]ProducePacketName [17:20:59]name=ofd_packets/00030982 [17:20:59]NVStorageDeleteData [17:20:59]Write to MH i2c: 01 00 00 E4 16 FA [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 07 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 EA 0C F7 [17:20:59]RasterBufferAndPrint [17:20:59]line [17:20:59]line [17:20:59]line [17:20:59]line [17:20:59]line [17:20:59]written 0, free lines is 3312 [17:20:59]MH_Cut [17:20:59]Write to MH i2c: D1 01 00 EB 16 01 D3 [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: D1 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: D1 01 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: D1 01 00 EB 16 00 D2 [17:20:59]Write to MH i2c: 01 00 00 EC 16 02 [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:21:00]OFD Sender: No OFD packet to send [17:21:00]*** Cut start [17:21:00]*** Partial cut [17:21:00]*** CUTSNS_PIN = 1 [17:21:00]*** CUTSNS_PIN = 0 [17:21:00]*** Brake cut motor [17:21:00]Read from MH i2c: 01 [17:21:00]MH_I2C_Read... [17:21:00]*** Stop cut motor [17:21:00]Read from MH i2c: 01 07 00 [17:21:00]MH_I2C_Read... [17:21:00]*** Cut end [17:21:00]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 FF 0F 17 [17:21:00]process_action close_receipt done [17:21:00]requested_data is exist [17:21:00]produce_requested_data [17:21:00]requested_item fm.sn is exist - process it [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 11 00 00 [17:21:00]Write to MH i2c: E2 08 00 ED 16 80 11 00 00 00 00 00 00 7D [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 17 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 17 00 ED 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [17:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:21:00]wFMCommunicate OK [17:21:00]requested_item fd.num is exist - process it [17:21:00]SAM_PROTO_GetFieldsCounters [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 13 00 00 [17:21:00]Write to MH i2c: E2 08 00 EE 16 80 13 00 00 00 00 00 00 80 [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 62 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 62 00 EE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:01]wFMCommunicate OK [17:21:01]SAM_PROTO_GetFieldsCounters done [17:21:01]requested_item shift.num is exist - process it [17:21:01]requested_item shift.opened is exist - process it [17:21:01]req_shift_opened [17:21:01]FM_GetShiftState [17:21:01]SAM_PROTO_GetShiftState [17:21:01]wFMCommunicate request_size=4 [17:21:01]MH_SAM_APDU [17:21:01]CAPDU: 80 13 01 00 [17:21:01]Write to MH i2c: E2 08 00 EF 16 80 13 01 00 00 00 00 00 82 [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 EF 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5C [17:21:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:21:01]wFMCommunicate OK [17:21:01]SAM_PROTO_GetShiftState done [17:21:01]FM_GetShiftState done [17:21:01]req_shift_opened done [17:21:01]requested_item shift.open_date is exist - process it [17:21:01]req_shift_open_date [17:21:01]req_shift_open_date done [17:21:01]produce_requested_data done [17:21:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30982,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:21:01]process_action_free close_receipt [17:21:01]json_value_free [17:21:01]json_value_free done [17:21:01]process_json_proto returns [17:21:01]Send response to host [17:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30982,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:21:01]free response buf [17:21:01]execute_script done [17:21:01]execute_script returns [17:21:01]free content buf [17:21:01]Sock 7.Close socket [17:21:01]Sock 7.Thread stoped [17:21:02]accept exits with 9 [17:21:02]New connection [17:21:02]New thread 3067043172 created [17:21:02]Thread 3066899812 joined [17:21:02]Waiting for new connection... [17:21:02] Sock 9.Parse request [17:21:02]Sock 9.Check first char [17:21:02]Sock 9.First char is OK [17:21:02]request: POST /json_proto HTTP/1.0 [17:21:02]Method: POST [17:21:02]URL: /json_proto [17:21:02]Method is POST - this is cgi request [17:21:02]url: /json_proto [17:21:02]query_string will be loaded in cgi processing [17:21:02]execute_cgi json_proto POST (null) [17:21:02]execute_cgi path=json_proto method=POST [17:21:02]POST find Content-Length [17:21:02]Host: 172.17.51.3:8080 [17:21:02]Content-Length: 682 [17:21:02]Content-Type: application/json [17:21:02] [17:21:02]POST finish read [17:21:02]Found Content-Length = 682 [17:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:02]execute_script... [17:21: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)343404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:02]POST & json_proto [17:21:02]process_json_proto [17:21:02]json parsed OK: [17:21:02]protocol is kg_v1.0 [17:21:02]action value=close_receipt [17:21:02]process_action close_receipt [17:21:02]cmd_close_receipt [17:21:02]MH_GetDate [17:21:02]Write to MH i2c: F0 00 00 F0 16 F5 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: F0 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: F0 09 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: F0 09 00 F0 16 00 00 DF 17 67 04 C1 95 66 1B [17:21:02]GetLastDocTimeStamp 1729617658 [17:21:02]current date 1729617664 [17:21:02]FM_GetShiftState [17:21:02]SAM_PROTO_GetShiftState [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 13 01 00 [17:21:02]Write to MH i2c: E2 08 00 F1 16 80 13 01 00 00 00 00 00 84 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 0E 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 0E 00 F1 16 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5E [17:21:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:21:02]wFMCommunicate OK [17:21:02]SAM_PROTO_GetShiftState done [17:21:02]FM_GetShiftState done [17:21:02]opened in 1729557342 [17:21:02]opened+sec_in_day 1729643742 [17:21:02]quantity*price = 180027 [17:21:02]sum+1 = 180029 [17:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 216 22.10.2024 17:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30983 ФПД: 44536454939607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172104&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30983&fm=44536454939607&tin=02508201610067®Number=0000000000186857&sum=180000 [17:21:03]StoreToDocumentArchive [17:21:03]shift 116 fd 30983 [17:21:03]save to /storage/0116/doc_00030983 [17:21:03]save last doc name /storage/0116/doc_00030983 to /storage/kkm_last_doc_name [17:21:03]save OK [17:21:03]Clear old archive folders... [17:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:03]tlvbuf is 00CCDA80 [17:21:03]SAM_PROTO_ClearQueue [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 09 00 00 [17:21:03]Write to MH i2c: E2 08 00 FE 16 80 09 00 00 00 00 00 00 86 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 03 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [17:21:03]RAPDU: 90 00 [17:21:03]wFMCommunicate OK [17:21:03]SAM_PROTO_ClearQueue done [17:21:03]KKMCreateOFDPacket [17:21:03]OFDProtocolAddRootSTLVToBuf [17:21:03]FM_MakeSignedData [17:21:03]FM_MakeSignedData [17:21:03]SAM_PROTO_SignData [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 0D 01 02 [17:21:03]Write to MH i2c: E2 08 00 FF 16 80 0D 01 02 00 00 00 00 8E [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 03 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [17:21:03]RAPDU: 90 00 [17:21:03]wFMCommunicate OK [17:21:03]wFMCommunicate request_size=255 [17:21:03]MH_SAM_APDU [17:21: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 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 79 00 00 35 04 06 00 28 [17:21:03]Write to MH i2c: E2 02 01 00 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 79 00 00 35 04 06 00 28 00 00 A5 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [17:21:04]RAPDU: 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=10 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 0D 02 02 05 81 73 93 83 D7 [17:21:04]Write to MH i2c: E2 0D 00 01 17 80 0D 02 02 05 00 81 73 93 83 D7 00 00 7D [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [17:21:04]RAPDU: 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 0D 03 02 [17:21:04]Write to MH i2c: E2 08 00 02 17 80 0D 03 02 00 00 00 00 94 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0B 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0B 00 02 17 00 86 A1 C6 C2 6E 5B A1 98 90 00 46 [17:21:04]RAPDU: 86 A1 C6 C2 6E 5B A1 98 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_SignData done [17:21:04]FM_MakeSignedData done [17:21:04]CreateOFDProtocolMessage [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 11 00 00 [17:21:04]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 17 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [17:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:21:04]wFMCommunicate OK [17:21:04]CreateOFDProtocolMessage done [17:21:04]OFDSenderStorePacket 30983 [17:21:04]StoreOFDPacket docnum=30983 [17:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 B1 07 01 84 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 79 00 00 35 04 06 00 28 81 73 93 83 D7 86 A1 C6 C2 6E 5B A1 98 [17:21:04]CheckFolder [17:21:04]dirname=/storage/ofd_packets [17:21:04]CheckFolder done [17:21:04]ProducePacketName [17:21:04]name=ofd_packets/00030983 [17:21:04]NVStorageSaveData ofd_packets/00030983 [17:21:04]File name is /storage/ofd_packets/00030983 [17:21:04]Write 301 bytes [17:21:04]NVStorageSaveData done [17:21:04]OFDSenderStorePacket done [17:21:04]KKMCreateOFDPacket done [17:21:04]NVStorageSaveData kkm_last_timestamp [17:21:04]File name is /storage/kkm_last_timestamp [17:21:04]Write 4 bytes [17:21:04]NVStorageSaveData done [17:21:04]ExternCall_PrintAddStr [17:21:04]wPrintStart [17:21:04]Write to MH i2c: 01 00 00 04 17 1B [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 07 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 07 00 04 17 00 00 00 00 00 FF 0F 30 [17:21:04]RasterBufferAndPrint [17:21:04]line Счет N : (1)343404 [17:21:04]line ИНН: 02508201610067 [17:21:04]line Контрольно-Кассовый Чек [17:21:04]line ПРОДАЖА [17:21:04]line ТРК (МРК, ГНК) : 63 [17:21:04]line Товар: 2710124130 [17:21:04]line Аи-92-К-2 [17:21:04]line 26.910 * 66.90 [17:21:04]line = 1800.28 [17:21:04]line НДС 12% НСП 1% [17:21:04]line > о реализуемом товаре [17:21:04]line ОКРУГЛЕНИЕ: -0.28 [17:21:04]line ИТОГО: 1800.00 [17:21:04]line Внесено: 1800.00 [17:21:04]line СДАЧА: 0.00 [17:21:04]line НСП 1% : 15.93 [17:21:04]line НДС 12% : 191.18 [17:21:04]line Наличными: 1800.00 [17:21:04]line Безнал.: 0.00 [17:21:04]line Место: АЗС № 78 "Партнер Нефть" [17:21:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:21:04]line СНО: Общий режим [17:21:04]line Чек 216 22.10.2024 17:21 [17:21:04]line Смена: 116 ФФД: 1.0 [17:21:04]line ЗНМ: 0300000137 [17:21:04]line РНМ: 0000000000186857 [17:21:04]line Версия ККМ: v1.0 [17:21:04]line ФМ: 0000000002094219 [17:21:04]line ФД: 30983 [17:21:04]line ФПД: 44536454939607 [17:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172104&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30983&fm=44536454939607&tin=02508201610067®Number=0000000000186857&sum=180000 [17:21:04]written 0, free lines is 4095 [17:21:04]OFD Sender: Processing packet 30983 [packets to send 11, broken 10] [17:21:04]ProducePacketName [17:21:04]name=ofd_packets/00030983 [17:21:04]OFD Sender: To server: pG, [17:21:04]CommunicateWithHost lk.salyk.kg:30040 [17:21:04]ConnectInit lk.salyk.kg [17:21:04]Connected sock=10 [17:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 B1 07 01 84 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 00 DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 79 00 00 35 04 06 00 28 81 73 93 83 D7 86 A1 C6 C2 6E 5B A1 98 [17:21:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 27 9A 47 00 C7 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 32 30 39 34 32 31 39 10 04 04 00 07 79 00 00 F4 03 04 00 7D 89 17 67 B6 04 01 00 00 89 51 3E A5 F3 A3 97 26 [17:21:04]CommunicateWithHost err = 0 [17:21:04]CheckOFDResponse [17:21:04]1017 (14) - 77093643461234 [17:21:04]1041 (16) - 0000000002094219 [17:21:04]1040 (4) - 30983 [17:21:04]1012 (4) - 22.10.2024 11:16 [17:21:04]1206 (1) - 0 [17:21:04]OFD Sender: Remove packet 30983 [17:21:04]ProducePacketName [17:21:04]name=ofd_packets/00030983 [17:21:04]NVStorageDeleteData [17:21:04]Write to MH i2c: 01 00 00 2F 17 46 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 07 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: 01 07 00 2F 17 00 00 00 00 00 FD 0C 56 [17:21:04]RasterBufferAndPrint [17:21:04]line [17:21:04]line [17:21:04]line [17:21:04]line [17:21:04]line [17:21:04]written 0, free lines is 3334 [17:21:04]MH_Cut [17:21:04]Write to MH i2c: D1 01 00 36 17 01 1F [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: D1 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: D1 01 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: D1 01 00 36 17 00 1E [17:21:04]Write to MH i2c: 01 00 00 37 17 4E [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:05]OFD Sender: No OFD packet to send [17:21:05]*** Cut start [17:21:05]*** Partial cut [17:21:05]*** CUTSNS_PIN = 1 [17:21:05]*** CUTSNS_PIN = 0 [17:21:05]*** Brake cut motor [17:21:06]Read from MH i2c: 01 [17:21:06]MH_I2C_Read... [17:21:06]*** Stop cut motor [17:21:06]*** Cut end [17:21:06]Read from MH i2c: 01 07 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: 01 07 00 37 17 00 00 00 00 00 FF 0F 63 [17:21:06]process_action close_receipt done [17:21:06]requested_data is exist [17:21:06]produce_requested_data [17:21:06]requested_item fm.sn is exist - process it [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 11 00 00 [17:21:06]Write to MH i2c: E2 08 00 38 17 80 11 00 00 00 00 00 00 C9 [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 17 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 17 00 38 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 17 [17:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:21:06]wFMCommunicate OK [17:21:06]requested_item fd.num is exist - process it [17:21:06]SAM_PROTO_GetFieldsCounters [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 13 00 00 [17:21:06]Write to MH i2c: E2 08 00 39 17 80 13 00 00 00 00 00 00 CC [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 62 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 62 00 39 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:06]wFMCommunicate OK [17:21:06]SAM_PROTO_GetFieldsCounters done [17:21:06]requested_item shift.num is exist - process it [17:21:06]requested_item shift.opened is exist - process it [17:21:06]req_shift_opened [17:21:06]FM_GetShiftState [17:21:06]SAM_PROTO_GetShiftState [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 13 01 00 [17:21:06]Write to MH i2c: E2 08 00 3A 17 80 13 01 00 00 00 00 00 CE [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 0E 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 0E 00 3A 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A8 [17:21:06]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:21:06]wFMCommunicate OK [17:21:06]SAM_PROTO_GetShiftState done [17:21:06]FM_GetShiftState done [17:21:06]req_shift_opened done [17:21:06]requested_item shift.open_date is exist - process it [17:21:06]req_shift_open_date [17:21:06]req_shift_open_date done [17:21:06]produce_requested_data done [17:21:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30983,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:21:06]process_action_free close_receipt [17:21:06]json_value_free [17:21:06]json_value_free done [17:21:06]process_json_proto returns [17:21:06]Send response to host [17:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30983,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:21:06]free response buf [17:21:06]execute_script done [17:21:06]execute_script returns [17:21:06]free content buf [17:21:06]Sock 9.Close socket [17:21:06]Sock 9.Thread stoped [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:13]accept exits with 7 [17:24:13]New connection [17:24:13]New thread 3066899812 created [17:24:13]Thread 3067043172 joined [17:24:13]Waiting for new connection... [17:24:13] Sock 7.Parse request [17:24:13]Sock 7.Check first char [17:24:13]Sock 7.First char is OK [17:24:13]request: POST /json_proto HTTP/1.0 [17:24:13]Method: POST [17:24:13]URL: /json_proto [17:24:13]Method is POST - this is cgi request [17:24:13]url: /json_proto [17:24:13]query_string will be loaded in cgi processing [17:24:13]execute_cgi json_proto POST (null) [17:24:13]execute_cgi path=json_proto method=POST [17:24:13]POST find Content-Length [17:24:13]Host: 172.17.51.3:8080 [17:24:13]Content-Length: 688 [17:24:13]Content-Type: application/json [17:24:13] [17:24:13]POST finish read [17:24:13]Found Content-Length = 688 [17:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:13]execute_script... [17:24: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)343410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:13]POST & json_proto [17:24:13]process_json_proto [17:24:13]json parsed OK: [17:24:13]protocol is kg_v1.0 [17:24:13]action value=close_receipt [17:24:13]process_action close_receipt [17:24:13]cmd_close_receipt [17:24:13]MH_GetDate [17:24:13]Write to MH i2c: F0 00 00 3B 17 41 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 09 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 09 00 3B 17 00 BF DF 17 67 04 C1 95 66 26 [17:24:13]GetLastDocTimeStamp 1729617664 [17:24:13]current date 1729617855 [17:24:13]FM_GetShiftState [17:24:13]SAM_PROTO_GetShiftState [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 01 00 [17:24:13]Write to MH i2c: E2 08 00 3C 17 80 13 01 00 00 00 00 00 D0 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 3C 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AA [17:24:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetShiftState done [17:24:13]FM_GetShiftState done [17:24:13]opened in 1729557342 [17:24:13]opened+sec_in_day 1729643742 [17:24:13]quantity*price = 150076 [17:24:13]sum+1 = 150078 [17:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 217 22.10.2024 17:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30984 ФПД: 48740370027230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172415&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30984&fm=48740370027230&tin=02508201610067®Number=0000000000186857&sum=150000 [17:24:14]StoreToDocumentArchive [17:24:14]shift 116 fd 30984 [17:24:14]save to /storage/0116/doc_00030984 [17:24:14]save last doc name /storage/0116/doc_00030984 to /storage/kkm_last_doc_name [17:24:14]save OK [17:24:14]Clear old archive folders... [17:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:24:14]tlvbuf is 00D30E90 [17:24:14]SAM_PROTO_ClearQueue [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 09 00 00 [17:24:14]Write to MH i2c: E2 08 00 49 17 80 09 00 00 00 00 00 00 D2 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_ClearQueue done [17:24:14]KKMCreateOFDPacket [17:24:14]OFDProtocolAddRootSTLVToBuf [17:24:14]FM_MakeSignedData [17:24:14]FM_MakeSignedData [17:24:14]SAM_PROTO_SignData [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 01 02 [17:24:14]Write to MH i2c: E2 08 00 4A 17 80 0D 01 02 00 00 00 00 DA [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=255 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 D9 00 00 00 F4 03 04 00 BF DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 79 00 [17:24:14]Write to MH i2c: E2 02 01 4B 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 D9 00 00 00 F4 03 04 00 BF DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 79 00 00 00 70 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 03 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [17:24:15]RAPDU: 90 00 [17:24:15]wFMCommunicate OK [17:24:15]wFMCommunicate request_size=16 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2C 54 40 71 12 DE [17:24:15]Write to MH i2c: E2 13 00 4C 17 80 0D 02 02 0B 00 00 35 04 06 00 2C 54 40 71 12 DE 00 00 53 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 03 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [17:24:15]RAPDU: 90 00 [17:24:15]wFMCommunicate OK [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 0D 03 02 [17:24:15]Write to MH i2c: E2 08 00 4D 17 80 0D 03 02 00 00 00 00 DF [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0B 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0B 00 4D 17 00 8F E0 83 FB AB ED 34 92 90 00 2B [17:24:15]RAPDU: 8F E0 83 FB AB ED 34 92 90 00 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_SignData done [17:24:15]FM_MakeSignedData done [17:24:15]CreateOFDProtocolMessage [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 11 00 00 [17:24:15]Write to MH i2c: E2 08 00 4E 17 80 11 00 00 00 00 00 00 DF [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 4E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [17:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:24:15]wFMCommunicate OK [17:24:15]CreateOFDProtocolMessage done [17:24:15]OFDSenderStorePacket 30984 [17:24:15]StoreOFDPacket docnum=30984 [17:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 F5 5E 0D 01 21 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 D9 00 00 00 F4 03 04 00 BF DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 79 00 00 35 04 06 00 2C 54 40 71 12 DE 8F E0 83 FB AB ED 34 92 [17:24:15]CheckFolder [17:24:15]dirname=/storage/ofd_packets [17:24:15]CheckFolder done [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00030984 [17:24:15]NVStorageSaveData ofd_packets/00030984 [17:24:15]File name is /storage/ofd_packets/00030984 [17:24:15]Write 307 bytes [17:24:15]NVStorageSaveData done [17:24:15]OFDSenderStorePacket done [17:24:15]KKMCreateOFDPacket done [17:24:15]NVStorageSaveData kkm_last_timestamp [17:24:15]File name is /storage/kkm_last_timestamp [17:24:15]Write 4 bytes [17:24:15]NVStorageSaveData done [17:24:15]ExternCall_PrintAddStr [17:24:15]wPrintStart [17:24:15]Write to MH i2c: 01 00 00 4F 17 66 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 4F 17 00 00 00 00 00 FF 0F 7B [17:24:15]RasterBufferAndPrint [17:24:15]line Счет N : (1)343410 [17:24:15]line ИНН: 02508201610067 [17:24:15]line Контрольно-Кассовый Чек [17:24:15]line ПРОДАЖА [17:24:15]line ТРК (МРК, ГНК) : 61 [17:24:15]line Товар: 2710194210 [17:24:15]line D-ENERGY Дт-К-2 [17:24:15]line 19.440 * 77.20 [17:24:15]line = 1500.77 [17:24:15]line НДС 12% НСП 1% [17:24:15]line > о реализуемом товаре [17:24:15]line ОКРУГЛЕНИЕ: -0.77 [17:24:15]line ИТОГО: 1500.00 [17:24:15]line Внесено: 1500.00 [17:24:15]line СДАЧА: 0.00 [17:24:15]line НСП 1% : 13.28 [17:24:15]line НДС 12% : 159.37 [17:24:15]line Наличными: 1500.00 [17:24:15]line Безнал.: 0.00 [17:24:15]line Место: АЗС № 78 "Партнер Нефть" [17:24:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:24:15]line СНО: Общий режим [17:24:15]line Чек 217 22.10.2024 17:24 [17:24:15]line Смена: 116 ФФД: 1.0 [17:24:15]line ЗНМ: 0300000137 [17:24:15]line РНМ: 0000000000186857 [17:24:15]line Версия ККМ: v1.0 [17:24:15]line ФМ: 0000000002094219 [17:24:15]line ФД: 30984 [17:24:15]line ФПД: 48740370027230 [17:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172415&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30984&fm=48740370027230&tin=02508201610067®Number=0000000000186857&sum=150000 [17:24:15]written 0, free lines is 4095 [17:24:15]OFD Sender: Processing packet 30984 [packets to send 11, broken 10] [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00030984 [17:24:15]OFD Sender: To server: pG, [17:24:15]CommunicateWithHost lk.salyk.kg:30040 [17:24:15]ConnectInit lk.salyk.kg [17:24:15]Connected sock=11 [17:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 F5 5E 0D 01 21 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 D9 00 00 00 F4 03 04 00 BF DF 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 79 00 00 35 04 06 00 2C 54 40 71 12 DE 8F E0 83 FB AB ED 34 92 [17:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E4 3C 47 00 BB 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 32 30 39 34 32 31 39 10 04 04 00 08 79 00 00 F4 03 04 00 3B 8A 17 67 B6 04 01 00 00 86 5E D3 6B B9 E1 12 63 [17:24:15]CommunicateWithHost err = 0 [17:24:15]CheckOFDResponse [17:24:15]1017 (14) - 77093643461234 [17:24:15]1041 (16) - 0000000002094219 [17:24:15]1040 (4) - 30984 [17:24:15]1012 (4) - 22.10.2024 11:19 [17:24:15]1206 (1) - 0 [17:24:15]OFD Sender: Remove packet 30984 [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00030984 [17:24:15]NVStorageDeleteData [17:24:15]Write to MH i2c: 01 00 00 7A 17 91 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 7A 17 00 00 00 00 00 F1 0C 95 [17:24:15]RasterBufferAndPrint [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]written 0, free lines is 3319 [17:24:15]MH_Cut [17:24:15]Write to MH i2c: D1 01 00 81 17 01 6A [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 81 17 00 69 [17:24:15]Write to MH i2c: 01 00 00 82 17 99 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:16]OFD Sender: No OFD packet to send [17:24:16]*** Cut start [17:24:16]*** Partial cut [17:24:16]*** CUTSNS_PIN = 1 [17:24:16]*** CUTSNS_PIN = 0 [17:24:16]*** Brake cut motor [17:24:16]Read from MH i2c: 01 [17:24:16]MH_I2C_Read... [17:24:16]*** Stop cut motor [17:24:16]*** Cut end [17:24:16]Read from MH i2c: 01 07 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: 01 07 00 82 17 00 00 00 00 00 FF 0F AE [17:24:16]process_action close_receipt done [17:24:16]requested_data is exist [17:24:16]produce_requested_data [17:24:16]requested_item fm.sn is exist - process it [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 11 00 00 [17:24:16]Write to MH i2c: E2 08 00 83 17 80 11 00 00 00 00 00 00 14 [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 83 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [17:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:24:17]wFMCommunicate OK [17:24:17]requested_item fd.num is exist - process it [17:24:17]SAM_PROTO_GetFieldsCounters [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 00 00 [17:24:17]Write to MH i2c: E2 08 00 84 17 80 13 00 00 00 00 00 00 17 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 84 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetFieldsCounters done [17:24:17]requested_item shift.num is exist - process it [17:24:17]requested_item shift.opened is exist - process it [17:24:17]req_shift_opened [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 85 17 80 13 01 00 00 00 00 00 19 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 85 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F3 [17:24:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]req_shift_opened done [17:24:17]requested_item shift.open_date is exist - process it [17:24:17]req_shift_open_date [17:24:17]req_shift_open_date done [17:24:17]produce_requested_data done [17:24:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30984,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:24:17]process_action_free close_receipt [17:24:17]json_value_free [17:24:17]json_value_free done [17:24:17]process_json_proto returns [17:24:17]Send response to host [17:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30984,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:24:17]free response buf [17:24:17]execute_script done [17:24:17]execute_script returns [17:24:17]free content buf [17:24:17]Sock 7.Close socket [17:24:17]Sock 7.Thread stoped [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:01]accept exits with 9 [17:26:01]New connection [17:26:01]New thread 3067043172 created [17:26:01]Thread 3066899812 joined [17:26:01]Waiting for new connection... [17:26:01] Sock 9.Parse request [17:26:01]Sock 9.Check first char [17:26:01]Sock 9.First char is OK [17:26:01]request: POST /json_proto HTTP/1.0 [17:26:01]Method: POST [17:26:01]URL: /json_proto [17:26:01]Method is POST - this is cgi request [17:26:01]url: /json_proto [17:26:01]query_string will be loaded in cgi processing [17:26:01]execute_cgi json_proto POST (null) [17:26:01]execute_cgi path=json_proto method=POST [17:26:01]POST find Content-Length [17:26:01]Host: 172.17.51.3:8080 [17:26:01]Content-Length: 688 [17:26:01]Content-Type: application/json [17:26:01] [17:26:01]POST finish read [17:26:01]Found Content-Length = 688 [17:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:01]execute_script... [17:26: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)343411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:01]POST & json_proto [17:26:01]process_json_proto [17:26:01]json parsed OK: [17:26:01]protocol is kg_v1.0 [17:26:01]action value=close_receipt [17:26:01]process_action close_receipt [17:26:01]cmd_close_receipt [17:26:01]MH_GetDate [17:26:01]Write to MH i2c: F0 00 00 86 17 8C [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: F0 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: F0 09 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: F0 09 00 86 17 00 2A E0 17 67 04 C1 95 66 DD [17:26:01]GetLastDocTimeStamp 1729617855 [17:26:01]current date 1729617962 [17:26:01]FM_GetShiftState [17:26:01]SAM_PROTO_GetShiftState [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 13 01 00 [17:26:01]Write to MH i2c: E2 08 00 87 17 80 13 01 00 00 00 00 00 1B [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 87 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F5 [17:26:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_GetShiftState done [17:26:01]FM_GetShiftState done [17:26:01]opened in 1729557342 [17:26:01]opened+sec_in_day 1729643742 [17:26:01]quantity*price = 100051 [17:26:01]sum+1 = 100052 [17:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 218 22.10.2024 17:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30985 ФПД: 27115223989109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30985&fm=27115223989109&tin=02508201610067®Number=0000000000186857&sum=100000 [17:26:02]StoreToDocumentArchive [17:26:02]shift 116 fd 30985 [17:26:02]save to /storage/0116/doc_00030985 [17:26:02]save last doc name /storage/0116/doc_00030985 to /storage/kkm_last_doc_name [17:26:02]save OK [17:26:02]Clear old archive folders... [17:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:26:02]tlvbuf is 00D67D20 [17:26:02]SAM_PROTO_ClearQueue [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 09 00 00 [17:26:02]Write to MH i2c: E2 08 00 94 17 80 09 00 00 00 00 00 00 1D [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [17:26:02]RAPDU: 90 00 [17:26:02]wFMCommunicate OK [17:26:02]SAM_PROTO_ClearQueue done [17:26:02]KKMCreateOFDPacket [17:26:02]OFDProtocolAddRootSTLVToBuf [17:26:02]FM_MakeSignedData [17:26:02]FM_MakeSignedData [17:26:02]SAM_PROTO_SignData [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 0D 01 02 [17:26:02]Write to MH i2c: E2 08 00 95 17 80 0D 01 02 00 00 00 00 25 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [17:26:02]RAPDU: 90 00 [17:26:02]wFMCommunicate OK [17:26:02]wFMCommunicate request_size=255 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2A E0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 79 00 [17:26:02]Write to MH i2c: E2 02 01 96 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2A E0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 79 00 00 00 D7 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [17:26:02]RAPDU: 90 00 [17:26:02]wFMCommunicate OK [17:26:02]wFMCommunicate request_size=16 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 A9 41 4B 3B 75 [17:26:02]Write to MH i2c: E2 13 00 97 17 80 0D 02 02 0B 00 00 35 04 06 00 18 A9 41 4B 3B 75 00 00 7A [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [17:26:02]RAPDU: 90 00 [17:26:02]wFMCommunicate OK [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 0D 03 02 [17:26:02]Write to MH i2c: E2 08 00 98 17 80 0D 03 02 00 00 00 00 2A [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 0B 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 0B 00 98 17 00 7C E9 0D 0E 3A 8C 98 D2 90 00 DB [17:26:02]RAPDU: 7C E9 0D 0E 3A 8C 98 D2 90 00 [17:26:02]wFMCommunicate OK [17:26:02]SAM_PROTO_SignData done [17:26:02]FM_MakeSignedData done [17:26:02]CreateOFDProtocolMessage [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 11 00 00 [17:26:02]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 17 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [17:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:02]wFMCommunicate OK [17:26:02]CreateOFDProtocolMessage done [17:26:02]OFDSenderStorePacket 30985 [17:26:02]StoreOFDPacket docnum=30985 [17:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 05 13 0D 01 C9 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2A E0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 79 00 00 35 04 06 00 18 A9 41 4B 3B 75 7C E9 0D 0E 3A 8C 98 D2 [17:26:02]CheckFolder [17:26:02]dirname=/storage/ofd_packets [17:26:02]CheckFolder done [17:26:02]ProducePacketName [17:26:02]name=ofd_packets/00030985 [17:26:02]NVStorageSaveData ofd_packets/00030985 [17:26:02]File name is /storage/ofd_packets/00030985 [17:26:02]Write 307 bytes [17:26:02]NVStorageSaveData done [17:26:02]OFDSenderStorePacket done [17:26:02]KKMCreateOFDPacket done [17:26:02]NVStorageSaveData kkm_last_timestamp [17:26:02]File name is /storage/kkm_last_timestamp [17:26:02]Write 4 bytes [17:26:02]NVStorageSaveData done [17:26:02]ExternCall_PrintAddStr [17:26:02]wPrintStart [17:26:02]Write to MH i2c: 01 00 00 9A 17 B1 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 FF 0F C6 [17:26:02]RasterBufferAndPrint [17:26:02]line Счет N : (1)343411 [17:26:02]line ИНН: 02508201610067 [17:26:02]line Контрольно-Кассовый Чек [17:26:02]line ПРОДАЖА [17:26:02]line ТРК (МРК, ГНК) : 51 [17:26:02]line Товар: 2710194210 [17:26:02]line D-ENERGY Дт-К-2 [17:26:02]line 12.960 * 77.20 [17:26:02]line = 1000.51 [17:26:02]line НДС 12% НСП 1% [17:26:02]line > о реализуемом товаре [17:26:02]line ОКРУГЛЕНИЕ: -0.51 [17:26:02]line ИТОГО: 1000.00 [17:26:02]line Внесено: 1000.00 [17:26:02]line СДАЧА: 0.00 [17:26:02]line НСП 1% : 8.85 [17:26:02]line НДС 12% : 106.25 [17:26:02]line Наличными: 1000.00 [17:26:02]line Безнал.: 0.00 [17:26:02]line Место: АЗС № 78 "Партнер Нефть" [17:26:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:26:02]line СНО: Общий режим [17:26:02]line Чек 218 22.10.2024 17:26 [17:26:02]line Смена: 116 ФФД: 1.0 [17:26:02]line ЗНМ: 0300000137 [17:26:02]line РНМ: 0000000000186857 [17:26:02]line Версия ККМ: v1.0 [17:26:02]line ФМ: 0000000002094219 [17:26:02]line ФД: 30985 [17:26:02]line ФПД: 27115223989109 [17:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30985&fm=27115223989109&tin=02508201610067®Number=0000000000186857&sum=100000 [17:26:03]OFD Sender: Processing packet 30985 [packets to send 11, broken 10] [17:26:03]ProducePacketName [17:26:03]name=ofd_packets/00030985 [17:26:03]OFD Sender: To server: pG, [17:26:03]CommunicateWithHost lk.salyk.kg:30040 [17:26:03]ConnectInit lk.salyk.kg [17:26:03]written 0, free lines is 4095 [17:26:03]Connected sock=10 [17:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 05 13 0D 01 C9 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2A E0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 79 00 00 35 04 06 00 18 A9 41 4B 3B 75 7C E9 0D 0E 3A 8C 98 D2 [17:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B7 F5 47 00 4B 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 32 30 39 34 32 31 39 10 04 04 00 09 79 00 00 F4 03 04 00 A7 8A 17 67 B6 04 01 00 00 F2 09 19 B0 98 71 17 D6 [17:26:03]CommunicateWithHost err = 0 [17:26:03]CheckOFDResponse [17:26:03]1017 (14) - 77093643461234 [17:26:03]1041 (16) - 0000000002094219 [17:26:03]1040 (4) - 30985 [17:26:03]1012 (4) - 22.10.2024 11:21 [17:26:03]1206 (1) - 0 [17:26:03]OFD Sender: Remove packet 30985 [17:26:03]ProducePacketName [17:26:03]name=ofd_packets/00030985 [17:26:03]NVStorageDeleteData [17:26:03]Write to MH i2c: 01 00 00 C5 17 DC [17:26:03]Write i2c OK [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: 01 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: 01 07 00 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: 01 07 00 C5 17 00 00 00 00 00 F5 0C E4 [17:26:03]RasterBufferAndPrint [17:26:03]line [17:26:03]line [17:26:03]line [17:26:03]line [17:26:03]line [17:26:03]written 0, free lines is 3328 [17:26:03]MH_Cut [17:26:03]Write to MH i2c: D1 01 00 CC 17 01 B5 [17:26:03]Write i2c OK [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: D1 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: D1 01 00 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: D1 01 00 CC 17 00 B4 [17:26:03]Write to MH i2c: 01 00 00 CD 17 E4 [17:26:03]Write i2c OK [17:26:03]MH_I2C_Read... [17:26:04]OFD Sender: No OFD packet to send [17:26:04]*** Cut start [17:26:04]*** Partial cut [17:26:04]*** CUTSNS_PIN = 1 [17:26:04]*** CUTSNS_PIN = 0 [17:26:04]*** Brake cut motor [17:26:04]Read from MH i2c: 01 [17:26:05]MH_I2C_Read... [17:26:05]*** Stop cut motor [17:26:05]Read from MH i2c: 01 07 00 [17:26:05]MH_I2C_Read... [17:26:05]*** Cut end [17:26:05]Read from MH i2c: 01 07 00 CD 17 00 00 00 00 00 FF 0F F9 [17:26:05]process_action close_receipt done [17:26:05]requested_data is exist [17:26:05]produce_requested_data [17:26:05]requested_item fm.sn is exist - process it [17:26:05]wFMCommunicate request_size=4 [17:26:05]MH_SAM_APDU [17:26:05]CAPDU: 80 11 00 00 [17:26:05]Write to MH i2c: E2 08 00 CE 17 80 11 00 00 00 00 00 00 5F [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:05]Read from MH i2c: E2 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 17 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 17 00 CE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [17:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:05]wFMCommunicate OK [17:26:05]requested_item fd.num is exist - process it [17:26:05]SAM_PROTO_GetFieldsCounters [17:26:05]wFMCommunicate request_size=4 [17:26:05]MH_SAM_APDU [17:26:05]CAPDU: 80 13 00 00 [17:26:05]Write to MH i2c: E2 08 00 CF 17 80 13 00 00 00 00 00 00 62 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:05]Read from MH i2c: E2 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 62 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 62 00 CF 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:05]wFMCommunicate OK [17:26:05]SAM_PROTO_GetFieldsCounters done [17:26:05]requested_item shift.num is exist - process it [17:26:05]requested_item shift.opened is exist - process it [17:26:05]req_shift_opened [17:26:05]FM_GetShiftState [17:26:05]SAM_PROTO_GetShiftState [17:26:05]wFMCommunicate request_size=4 [17:26:05]MH_SAM_APDU [17:26:05]CAPDU: 80 13 01 00 [17:26:05]Write to MH i2c: E2 08 00 D0 17 80 13 01 00 00 00 00 00 64 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:05]Read from MH i2c: E2 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 0E 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 0E 00 D0 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3E [17:26:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:26:05]wFMCommunicate OK [17:26:05]SAM_PROTO_GetShiftState done [17:26:05]FM_GetShiftState done [17:26:05]req_shift_opened done [17:26:05]requested_item shift.open_date is exist - process it [17:26:05]req_shift_open_date [17:26:05]req_shift_open_date done [17:26:05]produce_requested_data done [17:26:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30985,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:26:05]process_action_free close_receipt [17:26:05]json_value_free [17:26:05]json_value_free done [17:26:05]process_json_proto returns [17:26:05]Send response to host [17:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30985,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:26:05]free response buf [17:26:05]execute_script done [17:26:05]execute_script returns [17:26:05]free content buf [17:26:05]Sock 9.Close socket [17:26:05]Sock 9.Thread stoped [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:36]accept exits with 7 [17:31:36]New connection [17:31:36]New thread 3066899812 created [17:31:36]Thread 3067043172 joined [17:31:36]Waiting for new connection... [17:31:36] Sock 7.Parse request [17:31:36]Sock 7.Check first char [17:31:36]Sock 7.First char is OK [17:31:36]request: POST /json_proto HTTP/1.0 [17:31:36]Method: POST [17:31:36]URL: /json_proto [17:31:36]Method is POST - this is cgi request [17:31:36]url: /json_proto [17:31:36]query_string will be loaded in cgi processing [17:31:36]execute_cgi json_proto POST (null) [17:31:36]execute_cgi path=json_proto method=POST [17:31:36]POST find Content-Length [17:31:36]Host: 172.17.51.3:8080 [17:31:36]Content-Length: 682 [17:31:36]Content-Type: application/json [17:31:36] [17:31:36]POST finish read [17:31:36]Found Content-Length = 682 [17:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:36]execute_script... [17:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:36]POST & json_proto [17:31:36]process_json_proto [17:31:36]json parsed OK: [17:31:36]protocol is kg_v1.0 [17:31:36]action value=close_receipt [17:31:36]process_action close_receipt [17:31:36]cmd_close_receipt [17:31:36]MH_GetDate [17:31:36]Write to MH i2c: F0 00 00 D1 17 D7 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 09 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 09 00 D1 17 00 7A E1 17 67 04 C1 95 66 79 [17:31:36]GetLastDocTimeStamp 1729617962 [17:31:36]current date 1729618298 [17:31:36]FM_GetShiftState [17:31:36]SAM_PROTO_GetShiftState [17:31:36]wFMCommunicate request_size=4 [17:31:36]MH_SAM_APDU [17:31:36]CAPDU: 80 13 01 00 [17:31:36]Write to MH i2c: E2 08 00 D2 17 80 13 01 00 00 00 00 00 66 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:36]Read from MH i2c: E2 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 0E 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 0E 00 D2 17 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 40 [17:31:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:31:36]wFMCommunicate OK [17:31:36]SAM_PROTO_GetShiftState done [17:31:36]FM_GetShiftState done [17:31:36]opened in 1729557342 [17:31:36]opened+sec_in_day 1729643742 [17:31:36]quantity*price = 100015 [17:31:36]sum+1 = 100017 [17:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 219 22.10.2024 17:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30986 ФПД: 147848568977869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30986&fm=147848568977869&tin=02508201610067®Number=0000000000186857&sum=100000 [17:31:37]StoreToDocumentArchive [17:31:37]shift 116 fd 30986 [17:31:37]save to /storage/0116/doc_00030986 [17:31:37]save last doc name /storage/0116/doc_00030986 to /storage/kkm_last_doc_name [17:31:37]save OK [17:31:37]Clear old archive folders... [17:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:37]tlvbuf is B6F6E660 [17:31:37]SAM_PROTO_ClearQueue [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 09 00 00 [17:31:37]Write to MH i2c: E2 08 00 DF 17 80 09 00 00 00 00 00 00 68 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]SAM_PROTO_ClearQueue done [17:31:37]KKMCreateOFDPacket [17:31:37]OFDProtocolAddRootSTLVToBuf [17:31:37]FM_MakeSignedData [17:31:37]FM_MakeSignedData [17:31:37]SAM_PROTO_SignData [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 01 02 [17:31:37]Write to MH i2c: E2 08 00 E0 17 80 0D 01 02 00 00 00 00 70 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]wFMCommunicate request_size=255 [17:31:37]MH_SAM_APDU [17:31: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 7A E1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 79 00 00 35 04 06 00 86 [17:31:37]Write to MH i2c: E2 02 01 E1 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 7A E1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 79 00 00 35 04 06 00 86 00 00 2C [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]wFMCommunicate request_size=10 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 02 02 05 77 AD 6F 39 CD [17:31:37]Write to MH i2c: E2 0D 00 E2 17 80 0D 02 02 05 00 77 AD 6F 39 CD 00 00 16 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 03 02 [17:31:38]Write to MH i2c: E2 08 00 E3 17 80 0D 03 02 00 00 00 00 75 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 0B 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 0B 00 E3 17 00 08 2F 12 76 85 23 99 E9 90 00 5F [17:31:38]RAPDU: 08 2F 12 76 85 23 99 E9 90 00 [17:31:38]wFMCommunicate OK [17:31:38]SAM_PROTO_SignData done [17:31:38]FM_MakeSignedData done [17:31:38]CreateOFDProtocolMessage [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 11 00 00 [17:31:38]Write to MH i2c: E2 08 00 E4 17 80 11 00 00 00 00 00 00 75 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 E4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [17:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:31:38]wFMCommunicate OK [17:31:38]CreateOFDProtocolMessage done [17:31:38]OFDSenderStorePacket 30986 [17:31:38]StoreOFDPacket docnum=30986 [17:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 6F 07 01 21 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 7A E1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 79 00 00 35 04 06 00 86 77 AD 6F 39 CD 08 2F 12 76 85 23 99 E9 [17:31:38]CheckFolder [17:31:38]dirname=/storage/ofd_packets [17:31:38]CheckFolder done [17:31:38]ProducePacketName [17:31:38]name=ofd_packets/00030986 [17:31:38]NVStorageSaveData ofd_packets/00030986 [17:31:38]File name is /storage/ofd_packets/00030986 [17:31:38]Write 301 bytes [17:31:38]NVStorageSaveData done [17:31:38]OFDSenderStorePacket done [17:31:38]KKMCreateOFDPacket done [17:31:38]NVStorageSaveData kkm_last_timestamp [17:31:38]File name is /storage/kkm_last_timestamp [17:31:38]Write 4 bytes [17:31:38]NVStorageSaveData done [17:31:38]ExternCall_PrintAddStr [17:31:38]wPrintStart [17:31:38]Write to MH i2c: 01 00 00 E5 17 FC [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 E5 17 00 00 00 00 00 FF 0F 11 [17:31:38]RasterBufferAndPrint [17:31:38]line Счет N : (1)343412 [17:31:38]line ИНН: 02508201610067 [17:31:38]line Контрольно-Кассовый Чек [17:31:38]line ПРОДАЖА [17:31:38]line ТРК (МРК, ГНК) : 53 [17:31:38]line Товар: 2710124130 [17:31:38]line Аи-92-К-2 [17:31:38]line 14.950 * 66.90 [17:31:38]line = 1000.16 [17:31:38]line НДС 12% НСП 1% [17:31:38]line > о реализуемом товаре [17:31:38]line ОКРУГЛЕНИЕ: -0.16 [17:31:38]line ИТОГО: 1000.00 [17:31:38]line Внесено: 1000.00 [17:31:38]line СДАЧА: 0.00 [17:31:38]line НСП 1% : 8.85 [17:31:38]line НДС 12% : 106.21 [17:31:38]line Наличными: 1000.00 [17:31:38]line Безнал.: 0.00 [17:31:38]line Место: АЗС № 78 "Партнер Нефть" [17:31:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:31:38]line СНО: Общий режим [17:31:38]line Чек 219 22.10.2024 17:31 [17:31:38]line Смена: 116 ФФД: 1.0 [17:31:38]line ЗНМ: 0300000137 [17:31:38]line РНМ: 0000000000186857 [17:31:38]line Версия ККМ: v1.0 [17:31:38]line ФМ: 0000000002094219 [17:31:38]line ФД: 30986 [17:31:38]line ФПД: 147848568977869 [17:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30986&fm=147848568977869&tin=02508201610067®Number=0000000000186857&sum=100000 [17:31:38]OFD Sender: Processing packet 30986 [packets to send 11, broken 10] [17:31:38]ProducePacketName [17:31:38]name=ofd_packets/00030986 [17:31:38]OFD Sender: To server: pG, [17:31:38]CommunicateWithHost lk.salyk.kg:30040 [17:31:38]ConnectInit lk.salyk.kg [17:31:38]written 0, free lines is 4095 [17:31:38]Connected sock=10 [17:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 6F 07 01 21 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 7A E1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 79 00 00 35 04 06 00 86 77 AD 6F 39 CD 08 2F 12 76 85 23 99 E9 [17:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 33 21 47 00 70 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 79 00 00 F4 03 04 00 F6 8B 17 67 B6 04 01 00 00 CD C3 6C 7C 0D AF 06 F6 [17:31:38]CommunicateWithHost err = 0 [17:31:38]CheckOFDResponse [17:31:38]1017 (14) - 77093643461234 [17:31:38]1041 (16) - 0000000002094219 [17:31:38]1040 (4) - 30986 [17:31:38]1012 (4) - 22.10.2024 11:26 [17:31:38]1206 (1) - 0 [17:31:38]OFD Sender: Remove packet 30986 [17:31:38]ProducePacketName [17:31:38]name=ofd_packets/00030986 [17:31:38]NVStorageDeleteData [17:31:38]Write to MH i2c: 01 00 00 10 18 28 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 F7 0C 32 [17:31:38]RasterBufferAndPrint [17:31:38]line [17:31:38]line [17:31:38]line [17:31:38]line [17:31:38]line [17:31:38]written 0, free lines is 3326 [17:31:38]MH_Cut [17:31:38]Write to MH i2c: D1 01 00 17 18 01 01 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: D1 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: D1 01 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: D1 01 00 17 18 00 00 [17:31:38]Write to MH i2c: 01 00 00 18 18 30 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:39]OFD Sender: No OFD packet to send [17:31:39]*** Cut start [17:31:39]*** Partial cut [17:31:39]*** CUTSNS_PIN = 1 [17:31:39]*** CUTSNS_PIN = 0 [17:31:39]*** Brake cut motor [17:31:40]Read from MH i2c: 01 [17:31:40]MH_I2C_Read... [17:31:40]*** Stop cut motor [17:31:40]*** Cut end [17:31:40]Read from MH i2c: 01 07 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: 01 07 00 18 18 00 00 00 00 00 FF 0F 45 [17:31:40]process_action close_receipt done [17:31:40]requested_data is exist [17:31:40]produce_requested_data [17:31:40]requested_item fm.sn is exist - process it [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 11 00 00 [17:31:40]Write to MH i2c: E2 08 00 19 18 80 11 00 00 00 00 00 00 AB [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 17 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 17 00 19 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [17:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:31:40]wFMCommunicate OK [17:31:40]requested_item fd.num is exist - process it [17:31:40]SAM_PROTO_GetFieldsCounters [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 13 00 00 [17:31:40]Write to MH i2c: E2 08 00 1A 18 80 13 00 00 00 00 00 00 AE [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 1A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [17:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetFieldsCounters done [17:31:40]requested_item shift.num is exist - process it [17:31:40]requested_item shift.opened is exist - process it [17:31:40]req_shift_opened [17:31:40]FM_GetShiftState [17:31:40]SAM_PROTO_GetShiftState [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 13 01 00 [17:31:40]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8A [17:31:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetShiftState done [17:31:40]FM_GetShiftState done [17:31:40]req_shift_opened done [17:31:40]requested_item shift.open_date is exist - process it [17:31:40]req_shift_open_date [17:31:40]req_shift_open_date done [17:31:40]produce_requested_data done [17:31:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30986,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:31:40]process_action_free close_receipt [17:31:40]json_value_free [17:31:40]json_value_free done [17:31:40]process_json_proto returns [17:31:40]Send response to host [17:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30986,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:31:40]free response buf [17:31:40]execute_script done [17:31:40]execute_script returns [17:31:40]free content buf [17:31:40]Sock 7.Close socket [17:31:40]Sock 7.Thread stoped [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:31]accept exits with 9 [17:42:31]New connection [17:42:31]New thread 3067043172 created [17:42:31]Thread 3066899812 joined [17:42:31]Waiting for new connection... [17:42:31] Sock 9.Parse request [17:42:31]Sock 9.Check first char [17:42:31]Sock 9.First char is OK [17:42:31]request: POST /json_proto HTTP/1.0 [17:42:31]Method: POST [17:42:31]URL: /json_proto [17:42:31]Method is POST - this is cgi request [17:42:31]url: /json_proto [17:42:31]query_string will be loaded in cgi processing [17:42:31]execute_cgi json_proto POST (null) [17:42:31]execute_cgi path=json_proto method=POST [17:42:31]POST find Content-Length [17:42:31]Host: 172.17.51.3:8080 [17:42:31]Content-Length: 800 [17:42:31]Content-Type: application/json [17:42:31] [17:42:31]POST finish read [17:42:31]Found Content-Length = 800 [17:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:31]execute_script... [17:42: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)343413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:31]POST & json_proto [17:42:31]process_json_proto [17:42:31]json parsed OK: [17:42:31]protocol is kg_v1.0 [17:42:31]action value=close_receipt [17:42:31]process_action close_receipt [17:42:31]cmd_close_receipt [17:42:31]MH_GetDate [17:42:31]Write to MH i2c: F0 00 00 1C 18 23 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: F0 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: F0 09 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: F0 09 00 1C 18 00 09 E4 17 67 04 C1 95 66 57 [17:42:31]GetLastDocTimeStamp 1729618298 [17:42:31]current date 1729618953 [17:42:31]FM_GetShiftState [17:42:31]SAM_PROTO_GetShiftState [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 13 01 00 [17:42:31]Write to MH i2c: E2 08 00 1D 18 80 13 01 00 00 00 00 00 B2 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 1D 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8C [17:42:31]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:42:31]wFMCommunicate OK [17:42:31]SAM_PROTO_GetShiftState done [17:42:31]FM_GetShiftState done [17:42:31]opened in 1729557342 [17:42:31]opened+sec_in_day 1729643742 [17:42:31]quantity*price = 0 [17:42:31]sum+1 = 1 [17:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 220 22.10.2024 17:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949824 ФМ: 0000000002094219 ФД: 30987 ФПД: 244523452038265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174233&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30987&fm=244523452038265&tin=02508201610067®Number=0000000000186857&sum=0 [17:42:32]StoreToDocumentArchive [17:42:32]shift 116 fd 30987 [17:42:32]save to /storage/0116/doc_00030987 [17:42:32]save last doc name /storage/0116/doc_00030987 to /storage/kkm_last_doc_name [17:42:32]save OK [17:42:32]Clear old archive folders... [17:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:32]tlvbuf is 00CCD5E0 [17:42:32]SAM_PROTO_ClearQueue [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 09 00 00 [17:42:32]Write to MH i2c: E2 08 00 2A 18 80 09 00 00 00 00 00 00 B4 [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:32]Read from MH i2c: E2 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 03 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [17:42:32]RAPDU: 90 00 [17:42:32]wFMCommunicate OK [17:42:32]SAM_PROTO_ClearQueue done [17:42:32]KKMCreateOFDPacket [17:42:32]OFDProtocolAddRootSTLVToBuf [17:42:32]FM_MakeSignedData [17:42:32]FM_MakeSignedData [17:42:32]SAM_PROTO_SignData [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 0D 01 02 [17:42:32]Write to MH i2c: E2 08 00 2B 18 80 0D 01 02 00 00 00 00 BC [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [17:42:33]RAPDU: 90 00 [17:42:33]wFMCommunicate OK [17:42:33]wFMCommunicate request_size=255 [17:42:33]MH_SAM_APDU [17:42: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 09 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 79 00 00 35 04 06 00 DE [17:42:33]Write to MH i2c: E2 02 01 2C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 09 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 79 00 00 35 04 06 00 DE 00 00 53 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [17:42:33]RAPDU: 90 00 [17:42:33]wFMCommunicate OK [17:42:33]wFMCommunicate request_size=10 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 0D 02 02 05 64 8D 7F 7C 79 [17:42:33]Write to MH i2c: E2 0D 00 2D 18 80 0D 02 02 05 00 64 8D 7F 7C 79 00 00 2E [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [17:42:33]RAPDU: 90 00 [17:42:33]wFMCommunicate OK [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 0D 03 02 [17:42:33]Write to MH i2c: E2 08 00 2E 18 80 0D 03 02 00 00 00 00 C1 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0B 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0B 00 2E 18 00 73 3D 32 73 45 BD 25 8C 90 00 CA [17:42:33]RAPDU: 73 3D 32 73 45 BD 25 8C 90 00 [17:42:33]wFMCommunicate OK [17:42:33]SAM_PROTO_SignData done [17:42:33]FM_MakeSignedData done [17:42:33]CreateOFDProtocolMessage [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 11 00 00 [17:42:33]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 17 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [17:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:42:33]wFMCommunicate OK [17:42:33]CreateOFDProtocolMessage done [17:42:33]OFDSenderStorePacket 30987 [17:42:33]StoreOFDPacket docnum=30987 [17:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D B8 07 01 C9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 09 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 79 00 00 35 04 06 00 DE 64 8D 7F 7C 79 73 3D 32 73 45 BD 25 8C [17:42:33]CheckFolder [17:42:33]dirname=/storage/ofd_packets [17:42:33]CheckFolder done [17:42:33]ProducePacketName [17:42:33]name=ofd_packets/00030987 [17:42:33]NVStorageSaveData ofd_packets/00030987 [17:42:33]File name is /storage/ofd_packets/00030987 [17:42:33]Write 301 bytes [17:42:33]NVStorageSaveData done [17:42:33]OFDSenderStorePacket done [17:42:33]KKMCreateOFDPacket done [17:42:33]NVStorageSaveData kkm_last_timestamp [17:42:33]File name is /storage/kkm_last_timestamp [17:42:33]Write 4 bytes [17:42:33]NVStorageSaveData done [17:42:33]ExternCall_PrintAddStr [17:42:33]wPrintStart [17:42:33]Write to MH i2c: 01 00 00 30 18 48 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: 01 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: 01 07 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 FF 0F 5D [17:42:33]RasterBufferAndPrint [17:42:33]line Счет N : (1)343413 [17:42:33]line ИНН: 02508201610067 [17:42:33]line Контрольно-Кассовый Чек [17:42:33]line ПРОДАЖА [17:42:33]line ТРК (МРК, ГНК) : 53 [17:42:33]line Товар: 2710124130 [17:42:33]line Аи-92-К-2 [17:42:33]line 20.000 * 0.00 [17:42:33]line = 0.00 [17:42:33]line НДС 12% НСП 1% [17:42:33]line > о реализуемом товаре [17:42:33]line ИТОГО: 0.00 [17:42:33]line НСП 1% : 0.00 [17:42:33]line НДС 12% : 0.00 [17:42:33]line Наличными: 0.00 [17:42:33]line Безнал.: 0.00 [17:42:33]line Место: АЗС № 78 "Партнер Нефть" [17:42:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:42:33]line СНО: Общий режим [17:42:33]line Чек 220 22.10.2024 17:42 [17:42:33]line Смена: 116 ФФД: 1.0 [17:42:33]line ЗНМ: 0300000137 [17:42:33]line РНМ: 0000000000186857 [17:42:33]line Версия ККМ: v1.0 [17:42:33]line Талоны: Топливные Талоны [17:42:33]line 3949824 [17:42:33]line ФМ: 0000000002094219 [17:42:33]line ФД: 30987 [17:42:33]line ФПД: 244523452038265 [17:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174233&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30987&fm=244523452038265&tin=02508201610067®Number=0000000000186857&sum=0 [17:42:33]OFD Sender: Processing packet 30987 [packets to send 11, broken 10] [17:42:33]ProducePacketName [17:42:33]name=ofd_packets/00030987 [17:42:33]OFD Sender: To server: pG, [17:42:33]CommunicateWithHost lk.salyk.kg:30040 [17:42:33]ConnectInit lk.salyk.kg [17:42:33]written 0, free lines is 4095 [17:42:33]Connected sock=10 [17:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D B8 07 01 C9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 09 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 79 00 00 35 04 06 00 DE 64 8D 7F 7C 79 73 3D 32 73 45 BD 25 8C [17:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B E5 47 00 34 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 32 30 39 34 32 31 39 10 04 04 00 0B 79 00 00 F4 03 04 00 86 8E 17 67 B6 04 01 00 00 B9 0E FC 63 A8 6A 09 C7 [17:42:34]CommunicateWithHost err = 0 [17:42:34]CheckOFDResponse [17:42:34]1017 (14) - 77093643461234 [17:42:34]1041 (16) - 0000000002094219 [17:42:34]1040 (4) - 30987 [17:42:34]1012 (4) - 22.10.2024 11:37 [17:42:34]1206 (1) - 0 [17:42:34]OFD Sender: Remove packet 30987 [17:42:34]ProducePacketName [17:42:34]name=ofd_packets/00030987 [17:42:34]NVStorageDeleteData [17:42:34]Write to MH i2c: 01 00 00 5A 18 72 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 07 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 07 00 5A 18 00 00 00 00 00 F8 0C 7D [17:42:34]RasterBufferAndPrint [17:42:34]line [17:42:34]line [17:42:34]line [17:42:34]line [17:42:34]line [17:42:34]written 0, free lines is 3326 [17:42:34]MH_Cut [17:42:34]Write to MH i2c: D1 01 00 61 18 01 4B [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: D1 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: D1 01 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: D1 01 00 61 18 00 4A [17:42:34]Write to MH i2c: 01 00 00 62 18 7A [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]OFD Sender: No OFD packet to send [17:42:34]*** Cut start [17:42:34]*** Partial cut [17:42:34]*** CUTSNS_PIN = 1 [17:42:34]*** CUTSNS_PIN = 0 [17:42:35]*** Brake cut motor [17:42:35]Read from MH i2c: 01 [17:42:35]MH_I2C_Read... [17:42:35]*** Stop cut motor [17:42:35]*** Cut end [17:42:35]Read from MH i2c: 01 07 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 62 18 00 00 00 00 00 FF 0F 8F [17:42:35]process_action close_receipt done [17:42:35]requested_data is exist [17:42:35]produce_requested_data [17:42:35]requested_item fm.sn is exist - process it [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 11 00 00 [17:42:35]Write to MH i2c: E2 08 00 63 18 80 11 00 00 00 00 00 00 F5 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 63 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [17:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:42:35]wFMCommunicate OK [17:42:35]requested_item fd.num is exist - process it [17:42:35]SAM_PROTO_GetFieldsCounters [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 13 00 00 [17:42:35]Write to MH i2c: E2 08 00 64 18 80 13 00 00 00 00 00 00 F8 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 62 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 62 00 64 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_GetFieldsCounters done [17:42:35]requested_item shift.num is exist - process it [17:42:35]requested_item shift.opened is exist - process it [17:42:35]req_shift_opened [17:42:35]FM_GetShiftState [17:42:35]SAM_PROTO_GetShiftState [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 13 01 00 [17:42:35]Write to MH i2c: E2 08 00 65 18 80 13 01 00 00 00 00 00 FA [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 65 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D4 [17:42:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_GetShiftState done [17:42:35]FM_GetShiftState done [17:42:35]req_shift_opened done [17:42:35]requested_item shift.open_date is exist - process it [17:42:35]req_shift_open_date [17:42:35]req_shift_open_date done [17:42:35]produce_requested_data done [17:42:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30987,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:42:35]process_action_free close_receipt [17:42:35]json_value_free [17:42:35]json_value_free done [17:42:35]process_json_proto returns [17:42:35]Send response to host [17:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30987,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:42:35]free response buf [17:42:35]execute_script done [17:42:35]execute_script returns [17:42:35]free content buf [17:42:35]Sock 9.Close socket [17:42:35]Sock 9.Thread stoped [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:50]accept exits with 7 [17:43:50]New connection [17:43:50]New thread 3066899812 created [17:43:50]Thread 3067043172 joined [17:43:50]Waiting for new connection... [17:43:50] Sock 7.Parse request [17:43:50]Sock 7.Check first char [17:43:50]Sock 7.First char is OK [17:43:50]request: POST /json_proto HTTP/1.0 [17:43:50]Method: POST [17:43:50]URL: /json_proto [17:43:50]Method is POST - this is cgi request [17:43:50]url: /json_proto [17:43:50]query_string will be loaded in cgi processing [17:43:50]execute_cgi json_proto POST (null) [17:43:50]execute_cgi path=json_proto method=POST [17:43:50]POST find Content-Length [17:43:50]Host: 172.17.51.3:8080 [17:43:50]Content-Length: 677 [17:43:50]Content-Type: application/json [17:43:50] [17:43:50]POST finish read [17:43:50]Found Content-Length = 677 [17:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:50]execute_script... [17:43: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)343414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:50]POST & json_proto [17:43:50]process_json_proto [17:43:50]json parsed OK: [17:43:50]protocol is kg_v1.0 [17:43:50]action value=close_receipt [17:43:50]process_action close_receipt [17:43:50]cmd_close_receipt [17:43:50]MH_GetDate [17:43:50]Write to MH i2c: F0 00 00 66 18 6D [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: F0 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: F0 09 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: F0 09 00 66 18 00 58 E4 17 67 04 C1 95 66 F0 [17:43:50]GetLastDocTimeStamp 1729618953 [17:43:50]current date 1729619032 [17:43:50]FM_GetShiftState [17:43:50]SAM_PROTO_GetShiftState [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 13 01 00 [17:43:50]Write to MH i2c: E2 08 00 67 18 80 13 01 00 00 00 00 00 FC [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0E 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0E 00 67 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D6 [17:43:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:43:50]wFMCommunicate OK [17:43:50]SAM_PROTO_GetShiftState done [17:43:50]FM_GetShiftState done [17:43:50]opened in 1729557342 [17:43:50]opened+sec_in_day 1729643742 [17:43:50]quantity*price = 50041 [17:43:50]sum+1 = 50042 [17:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 221 22.10.2024 17:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30988 ФПД: 115560252906640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30988&fm=115560252906640&tin=02508201610067®Number=0000000000186857&sum=50000 [17:43:51]StoreToDocumentArchive [17:43:51]shift 116 fd 30988 [17:43:51]save to /storage/0116/doc_00030988 [17:43:51]save last doc name /storage/0116/doc_00030988 to /storage/kkm_last_doc_name [17:43:51]save OK [17:43:51]Clear old archive folders... [17:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:51]tlvbuf is B6F6B9D0 [17:43:51]SAM_PROTO_ClearQueue [17:43:51]wFMCommunicate request_size=4 [17:43:51]MH_SAM_APDU [17:43:51]CAPDU: 80 09 00 00 [17:43:51]Write to MH i2c: E2 08 00 74 18 80 09 00 00 00 00 00 00 FE [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 03 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [17:43:51]RAPDU: 90 00 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_ClearQueue done [17:43:51]KKMCreateOFDPacket [17:43:51]OFDProtocolAddRootSTLVToBuf [17:43:51]FM_MakeSignedData [17:43:51]FM_MakeSignedData [17:43:51]SAM_PROTO_SignData [17:43:51]wFMCommunicate request_size=4 [17:43:51]MH_SAM_APDU [17:43:51]CAPDU: 80 0D 01 02 [17:43:51]Write to MH i2c: E2 08 00 75 18 80 0D 01 02 00 00 00 00 06 [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 03 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [17:43:51]RAPDU: 90 00 [17:43:51]wFMCommunicate OK [17:43:51]wFMCommunicate request_size=255 [17:43:51]MH_SAM_APDU [17:43: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 79 00 00 35 04 06 00 69 [17:43:51]Write to MH i2c: E2 02 01 76 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 79 00 00 35 04 06 00 69 00 00 90 [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 03 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [17:43:52]RAPDU: 90 00 [17:43:52]wFMCommunicate OK [17:43:52]wFMCommunicate request_size=10 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 0D 02 02 05 19 F7 D3 1C 90 [17:43:52]Write to MH i2c: E2 0D 00 77 18 80 0D 02 02 05 00 19 F7 D3 1C 90 00 00 A2 [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 03 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [17:43:52]RAPDU: 90 00 [17:43:52]wFMCommunicate OK [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 0D 03 02 [17:43:52]Write to MH i2c: E2 08 00 78 18 80 0D 03 02 00 00 00 00 0B [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0B 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0B 00 78 18 00 B6 0C 64 E7 5E 6C A1 A9 90 00 2D [17:43:52]RAPDU: B6 0C 64 E7 5E 6C A1 A9 90 00 [17:43:52]wFMCommunicate OK [17:43:52]SAM_PROTO_SignData done [17:43:52]FM_MakeSignedData done [17:43:52]CreateOFDProtocolMessage [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 11 00 00 [17:43:52]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 17 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [17:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:43:52]wFMCommunicate OK [17:43:52]CreateOFDProtocolMessage done [17:43:52]OFDSenderStorePacket 30988 [17:43:52]StoreOFDPacket docnum=30988 [17:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 44 90 07 01 C7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 79 00 00 35 04 06 00 69 19 F7 D3 1C 90 B6 0C 64 E7 5E 6C A1 A9 [17:43:52]CheckFolder [17:43:52]dirname=/storage/ofd_packets [17:43:52]CheckFolder done [17:43:52]ProducePacketName [17:43:52]name=ofd_packets/00030988 [17:43:52]NVStorageSaveData ofd_packets/00030988 [17:43:52]File name is /storage/ofd_packets/00030988 [17:43:52]Write 301 bytes [17:43:52]NVStorageSaveData done [17:43:52]OFDSenderStorePacket done [17:43:52]KKMCreateOFDPacket done [17:43:52]NVStorageSaveData kkm_last_timestamp [17:43:52]File name is /storage/kkm_last_timestamp [17:43:52]Write 4 bytes [17:43:52]NVStorageSaveData done [17:43:52]ExternCall_PrintAddStr [17:43:52]wPrintStart [17:43:52]Write to MH i2c: 01 00 00 7A 18 92 [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: 01 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: 01 07 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 FF 0F A7 [17:43:52]RasterBufferAndPrint [17:43:52]line Счет N : (1)343414 [17:43:52]line ИНН: 02508201610067 [17:43:52]line Контрольно-Кассовый Чек [17:43:52]line ПРОДАЖА [17:43:52]line ТРК (МРК, ГНК) : 63 [17:43:52]line Товар: 2710124130 [17:43:52]line Аи-92-К-2 [17:43:52]line 7.480 * 66.90 [17:43:52]line = 500.41 [17:43:52]line НДС 12% НСП 1% [17:43:52]line > о реализуемом товаре [17:43:52]line ОКРУГЛЕНИЕ: -0.41 [17:43:52]line ИТОГО: 500.00 [17:43:52]line Внесено: 500.00 [17:43:52]line СДАЧА: 0.00 [17:43:52]line НСП 1% : 4.43 [17:43:52]line НДС 12% : 53.14 [17:43:52]line Наличными: 500.00 [17:43:52]line Безнал.: 0.00 [17:43:52]line Место: АЗС № 78 "Партнер Нефть" [17:43:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:43:52]line СНО: Общий режим [17:43:52]line Чек 221 22.10.2024 17:43 [17:43:52]line Смена: 116 ФФД: 1.0 [17:43:52]line ЗНМ: 0300000137 [17:43:52]line РНМ: 0000000000186857 [17:43:52]line Версия ККМ: v1.0 [17:43:52]line ФМ: 0000000002094219 [17:43:52]line ФД: 30988 [17:43:52]line ФПД: 115560252906640 [17:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30988&fm=115560252906640&tin=02508201610067®Number=0000000000186857&sum=50000 [17:43:52]OFD Sender: Processing packet 30988 [packets to send 11, broken 10] [17:43:52]ProducePacketName [17:43:52]name=ofd_packets/00030988 [17:43:52]OFD Sender: To server: pG, [17:43:52]CommunicateWithHost lk.salyk.kg:30040 [17:43:52]ConnectInit lk.salyk.kg [17:43:52]written 0, free lines is 4095 [17:43:52]Connected sock=11 [17:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 44 90 07 01 C7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 E4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 79 00 00 35 04 06 00 69 19 F7 D3 1C 90 B6 0C 64 E7 5E 6C A1 A9 [17:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F0 E7 47 00 92 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 79 00 00 F4 03 04 00 D5 8E 17 67 B6 04 01 00 00 AB FA 5F 70 85 72 5B D5 [17:43:52]CommunicateWithHost err = 0 [17:43:52]CheckOFDResponse [17:43:52]1017 (14) - 77093643461234 [17:43:52]1041 (16) - 0000000002094219 [17:43:52]1040 (4) - 30988 [17:43:52]1012 (4) - 22.10.2024 11:39 [17:43:52]1206 (1) - 0 [17:43:52]OFD Sender: Remove packet 30988 [17:43:52]ProducePacketName [17:43:52]name=ofd_packets/00030988 [17:43:52]NVStorageDeleteData [17:43:53]Write to MH i2c: 01 00 00 A5 18 BD [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 A5 18 00 00 00 00 00 EF 0C BF [17:43:53]RasterBufferAndPrint [17:43:53]line [17:43:53]line [17:43:53]line [17:43:53]line [17:43:53]line [17:43:53]written 0, free lines is 3317 [17:43:53]MH_Cut [17:43:53]Write to MH i2c: D1 01 00 AC 18 01 96 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: D1 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: D1 01 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: D1 01 00 AC 18 00 95 [17:43:53]Write to MH i2c: 01 00 00 AD 18 C5 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]OFD Sender: No OFD packet to send [17:43:53]*** Cut start [17:43:53]*** Partial cut [17:43:53]*** CUTSNS_PIN = 1 [17:43:53]*** CUTSNS_PIN = 0 [17:43:53]*** Brake cut motor [17:43:54]Read from MH i2c: 01 [17:43:54]MH_I2C_Read... [17:43:54]*** Stop cut motor [17:43:54]*** Cut end [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 AD 18 00 00 00 00 00 FF 0F DA [17:43:54]process_action close_receipt done [17:43:54]requested_data is exist [17:43:54]produce_requested_data [17:43:54]requested_item fm.sn is exist - process it [17:43:54]wFMCommunicate request_size=4 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 11 00 00 [17:43:54]Write to MH i2c: E2 08 00 AE 18 80 11 00 00 00 00 00 00 40 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:54]Read from MH i2c: E2 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 17 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 17 00 AE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [17:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:43:54]wFMCommunicate OK [17:43:54]requested_item fd.num is exist - process it [17:43:54]SAM_PROTO_GetFieldsCounters [17:43:54]wFMCommunicate request_size=4 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 13 00 00 [17:43:54]Write to MH i2c: E2 08 00 AF 18 80 13 00 00 00 00 00 00 43 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:54]Read from MH i2c: E2 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 62 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 62 00 AF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [17:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:54]wFMCommunicate OK [17:43:54]SAM_PROTO_GetFieldsCounters done [17:43:54]requested_item shift.num is exist - process it [17:43:54]requested_item shift.opened is exist - process it [17:43:54]req_shift_opened [17:43:54]FM_GetShiftState [17:43:54]SAM_PROTO_GetShiftState [17:43:54]wFMCommunicate request_size=4 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 13 01 00 [17:43:54]Write to MH i2c: E2 08 00 B0 18 80 13 01 00 00 00 00 00 45 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:54]Read from MH i2c: E2 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 0E 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 0E 00 B0 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1F [17:43:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:43:54]wFMCommunicate OK [17:43:54]SAM_PROTO_GetShiftState done [17:43:54]FM_GetShiftState done [17:43:54]req_shift_opened done [17:43:54]requested_item shift.open_date is exist - process it [17:43:54]req_shift_open_date [17:43:54]req_shift_open_date done [17:43:54]produce_requested_data done [17:43:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30988,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:43:54]process_action_free close_receipt [17:43:54]json_value_free [17:43:54]json_value_free done [17:43:54]process_json_proto returns [17:43:54]Send response to host [17:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30988,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:43:54]free response buf [17:43:54]execute_script done [17:43:54]execute_script returns [17:43:54]free content buf [17:43:54]Sock 7.Close socket [17:43:54]Sock 7.Thread stoped [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:53]accept exits with 9 [17:50:53]New connection [17:50:53]New thread 3067043172 created [17:50:53]Thread 3066899812 joined [17:50:53]Waiting for new connection... [17:50:53] Sock 9.Parse request [17:50:53]Sock 9.Check first char [17:50:53]Sock 9.First char is OK [17:50:53]request: POST /json_proto HTTP/1.0 [17:50:53]Method: POST [17:50:53]URL: /json_proto [17:50:53]Method is POST - this is cgi request [17:50:53]url: /json_proto [17:50:53]query_string will be loaded in cgi processing [17:50:53]execute_cgi json_proto POST (null) [17:50:53]execute_cgi path=json_proto method=POST [17:50:53]POST find Content-Length [17:50:53]Host: 172.17.51.3:8080 [17:50:53]Content-Length: 677 [17:50:53]Content-Type: application/json [17:50:53] [17:50:53]POST finish read [17:50:53]Found Content-Length = 677 [17:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [17:50:53]execute_script... [17:50: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)343415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [17:50:53]POST & json_proto [17:50:53]process_json_proto [17:50:53]json parsed OK: [17:50:53]protocol is kg_v1.0 [17:50:53]action value=close_receipt [17:50:53]process_action close_receipt [17:50:53]cmd_close_receipt [17:50:53]MH_GetDate [17:50:53]Write to MH i2c: F0 00 00 B1 18 B8 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: F0 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: F0 09 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: F0 09 00 B1 18 00 FF E5 17 67 04 C1 95 66 E3 [17:50:53]GetLastDocTimeStamp 1729619032 [17:50:53]current date 1729619455 [17:50:53]FM_GetShiftState [17:50:53]SAM_PROTO_GetShiftState [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 13 01 00 [17:50:53]Write to MH i2c: E2 08 00 B2 18 80 13 01 00 00 00 00 00 47 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 B2 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 21 [17:50:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_GetShiftState done [17:50:53]FM_GetShiftState done [17:50:53]opened in 1729557342 [17:50:53]opened+sec_in_day 1729643742 [17:50:53]quantity*price = 25020 [17:50:53]sum+1 = 25022 [17:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 222 22.10.2024 17:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30989 ФПД: 266419538718470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175055&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30989&fm=266419538718470&tin=02508201610067®Number=0000000000186857&sum=25000 [17:50:55]StoreToDocumentArchive [17:50:55]shift 116 fd 30989 [17:50:55]save to /storage/0116/doc_00030989 [17:50:55]save last doc name /storage/0116/doc_00030989 to /storage/kkm_last_doc_name [17:50:55]save OK [17:50:55]Clear old archive folders... [17:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:55]tlvbuf is B6EF0CD0 [17:50:55]SAM_PROTO_ClearQueue [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 09 00 00 [17:50:55]Write to MH i2c: E2 08 00 BF 18 80 09 00 00 00 00 00 00 49 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [17:50:55]RAPDU: 90 00 [17:50:55]wFMCommunicate OK [17:50:55]SAM_PROTO_ClearQueue done [17:50:55]KKMCreateOFDPacket [17:50:55]OFDProtocolAddRootSTLVToBuf [17:50:55]FM_MakeSignedData [17:50:55]FM_MakeSignedData [17:50:55]SAM_PROTO_SignData [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 0D 01 02 [17:50:55]Write to MH i2c: E2 08 00 C0 18 80 0D 01 02 00 00 00 00 51 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [17:50:55]RAPDU: 90 00 [17:50:55]wFMCommunicate OK [17:50:55]wFMCommunicate request_size=255 [17:50:55]MH_SAM_APDU [17:50: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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 DE 00 00 00 F4 03 04 00 FF E5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 79 00 00 35 04 06 00 F2 [17:50:55]Write to MH i2c: E2 02 01 C1 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 DE 00 00 00 F4 03 04 00 FF E5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 79 00 00 35 04 06 00 F2 00 00 E7 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [17:50:55]RAPDU: 90 00 [17:50:55]wFMCommunicate OK [17:50:55]wFMCommunicate request_size=10 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 0D 02 02 05 4E A1 F7 6F 06 [17:50:55]Write to MH i2c: E2 0D 00 C2 18 80 0D 02 02 05 00 4E A1 F7 6F 06 00 00 B9 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [17:50:55]RAPDU: 90 00 [17:50:55]wFMCommunicate OK [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 0D 03 02 [17:50:55]Write to MH i2c: E2 08 00 C3 18 80 0D 03 02 00 00 00 00 56 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0B 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0B 00 C3 18 00 01 D2 7E AB 0D A7 96 05 90 00 A2 [17:50:55]RAPDU: 01 D2 7E AB 0D A7 96 05 90 00 [17:50:55]wFMCommunicate OK [17:50:55]SAM_PROTO_SignData done [17:50:55]FM_MakeSignedData done [17:50:55]CreateOFDProtocolMessage [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 11 00 00 [17:50:55]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 17 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [17:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:50:55]wFMCommunicate OK [17:50:55]CreateOFDProtocolMessage done [17:50:55]OFDSenderStorePacket 30989 [17:50:55]StoreOFDPacket docnum=30989 [17:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E D2 07 01 15 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 DE 00 00 00 F4 03 04 00 FF E5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 79 00 00 35 04 06 00 F2 4E A1 F7 6F 06 01 D2 7E AB 0D A7 96 05 [17:50:55]CheckFolder [17:50:55]dirname=/storage/ofd_packets [17:50:55]CheckFolder done [17:50:55]ProducePacketName [17:50:55]name=ofd_packets/00030989 [17:50:55]NVStorageSaveData ofd_packets/00030989 [17:50:55]File name is /storage/ofd_packets/00030989 [17:50:55]Write 301 bytes [17:50:55]NVStorageSaveData done [17:50:55]OFDSenderStorePacket done [17:50:55]KKMCreateOFDPacket done [17:50:55]NVStorageSaveData kkm_last_timestamp [17:50:55]File name is /storage/kkm_last_timestamp [17:50:55]Write 4 bytes [17:50:55]NVStorageSaveData done [17:50:55]ExternCall_PrintAddStr [17:50:55]wPrintStart [17:50:55]Write to MH i2c: 01 00 00 C5 18 DD [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: 01 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: 01 07 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: 01 07 00 C5 18 00 00 00 00 00 FF 0F F2 [17:50:55]RasterBufferAndPrint [17:50:55]line Счет N : (1)343415 [17:50:55]line ИНН: 02508201610067 [17:50:55]line Контрольно-Кассовый Чек [17:50:55]line ПРОДАЖА [17:50:55]line ТРК (МРК, ГНК) : 43 [17:50:55]line Товар: 2710124130 [17:50:55]line Аи-92-К-2 [17:50:55]line 3.740 * 66.90 [17:50:55]line = 250.21 [17:50:55]line НДС 12% НСП 1% [17:50:55]line > о реализуемом товаре [17:50:55]line ОКРУГЛЕНИЕ: -0.21 [17:50:55]line ИТОГО: 250.00 [17:50:55]line Внесено: 250.00 [17:50:55]line СДАЧА: 0.00 [17:50:55]line НСП 1% : 2.21 [17:50:55]line НДС 12% : 26.57 [17:50:55]line Наличными: 250.00 [17:50:55]line Безнал.: 0.00 [17:50:55]line Место: АЗС № 78 "Партнер Нефть" [17:50:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:50:55]line СНО: Общий режим [17:50:55]line Чек 222 22.10.2024 17:50 [17:50:55]line Смена: 116 ФФД: 1.0 [17:50:55]line ЗНМ: 0300000137 [17:50:55]line РНМ: 0000000000186857 [17:50:55]line Версия ККМ: v1.0 [17:50:55]line ФМ: 0000000002094219 [17:50:55]line ФД: 30989 [17:50:55]line ФПД: 266419538718470 [17:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175055&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30989&fm=266419538718470&tin=02508201610067®Number=0000000000186857&sum=25000 [17:50:55]OFD Sender: Processing packet 30989 [packets to send 11, broken 10] [17:50:55]ProducePacketName [17:50:55]name=ofd_packets/00030989 [17:50:55]OFD Sender: To server: pG, [17:50:55]CommunicateWithHost lk.salyk.kg:30040 [17:50:55]ConnectInit lk.salyk.kg [17:50:55]written 0, free lines is 4095 [17:50:55]Connected sock=10 [17:50:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E D2 07 01 15 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 DE 00 00 00 F4 03 04 00 FF E5 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 79 00 00 35 04 06 00 F2 4E A1 F7 6F 06 01 D2 7E AB 0D A7 96 05 [17:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1E F3 47 00 3B 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 32 30 39 34 32 31 39 10 04 04 00 0D 79 00 00 F4 03 04 00 7C 90 17 67 B6 04 01 00 00 82 AC 09 C8 B0 5C 17 BD [17:50:56]CommunicateWithHost err = 0 [17:50:56]CheckOFDResponse [17:50:56]1017 (14) - 77093643461234 [17:50:56]1041 (16) - 0000000002094219 [17:50:56]1040 (4) - 30989 [17:50:56]1012 (4) - 22.10.2024 11:46 [17:50:56]1206 (1) - 0 [17:50:56]OFD Sender: Remove packet 30989 [17:50:56]ProducePacketName [17:50:56]name=ofd_packets/00030989 [17:50:56]NVStorageDeleteData [17:50:56]Write to MH i2c: 01 00 00 F0 18 08 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: 01 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: 01 07 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 00 0D 1C [17:50:56]RasterBufferAndPrint [17:50:56]line [17:50:56]line [17:50:56]line [17:50:56]line [17:50:56]line [17:50:56]written 0, free lines is 3334 [17:50:56]MH_Cut [17:50:56]Write to MH i2c: D1 01 00 F7 18 01 E1 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: D1 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: D1 01 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: D1 01 00 F7 18 00 E0 [17:50:56]Write to MH i2c: 01 00 00 F8 18 10 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]OFD Sender: No OFD packet to send [17:50:57]*** Cut start [17:50:57]*** Partial cut [17:50:57]*** CUTSNS_PIN = 1 [17:50:57]*** CUTSNS_PIN = 0 [17:50:57]*** Brake cut motor [17:50:57]Read from MH i2c: 01 [17:50:57]MH_I2C_Read... [17:50:57]*** Stop cut motor [17:50:57]*** Cut end [17:50:57]Read from MH i2c: 01 07 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: 01 07 00 F8 18 00 00 00 00 00 FF 0F 25 [17:50:57]process_action close_receipt done [17:50:57]requested_data is exist [17:50:57]produce_requested_data [17:50:57]requested_item fm.sn is exist - process it [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 11 00 00 [17:50:57]Write to MH i2c: E2 08 00 F9 18 80 11 00 00 00 00 00 00 8B [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 17 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 17 00 F9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [17:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:50:57]wFMCommunicate OK [17:50:57]requested_item fd.num is exist - process it [17:50:57]SAM_PROTO_GetFieldsCounters [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 13 00 00 [17:50:57]Write to MH i2c: E2 08 00 FA 18 80 13 00 00 00 00 00 00 8E [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 62 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 62 00 FA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:50:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:57]wFMCommunicate OK [17:50:57]SAM_PROTO_GetFieldsCounters done [17:50:57]requested_item shift.num is exist - process it [17:50:57]requested_item shift.opened is exist - process it [17:50:57]req_shift_opened [17:50:57]FM_GetShiftState [17:50:57]SAM_PROTO_GetShiftState [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 13 01 00 [17:50:57]Write to MH i2c: E2 08 00 FB 18 80 13 01 00 00 00 00 00 90 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 0E 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 0E 00 FB 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6A [17:50:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:50:57]wFMCommunicate OK [17:50:57]SAM_PROTO_GetShiftState done [17:50:57]FM_GetShiftState done [17:50:57]req_shift_opened done [17:50:57]requested_item shift.open_date is exist - process it [17:50:57]req_shift_open_date [17:50:57]req_shift_open_date done [17:50:57]produce_requested_data done [17:50:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30989,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:50:57]process_action_free close_receipt [17:50:57]json_value_free [17:50:57]json_value_free done [17:50:57]process_json_proto returns [17:50:57]Send response to host [17:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30989,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:50:57]free response buf [17:50:57]execute_script done [17:50:57]execute_script returns [17:50:57]free content buf [17:50:57]Sock 9.Close socket [17:50:57]Sock 9.Thread stoped [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:29]accept exits with 7 [17:52:29]New connection [17:52:29]New thread 3066899812 created [17:52:29]Thread 3067043172 joined [17:52:29]Waiting for new connection... [17:52:29] Sock 7.Parse request [17:52:29]Sock 7.Check first char [17:52:29]Sock 7.First char is OK [17:52:29]request: POST /json_proto HTTP/1.0 [17:52:29]Method: POST [17:52:29]URL: /json_proto [17:52:29]Method is POST - this is cgi request [17:52:29]url: /json_proto [17:52:29]query_string will be loaded in cgi processing [17:52:29]execute_cgi json_proto POST (null) [17:52:29]execute_cgi path=json_proto method=POST [17:52:29]POST find Content-Length [17:52:29]Host: 172.17.51.3:8080 [17:52:29]Content-Length: 677 [17:52:29]Content-Type: application/json [17:52:29] [17:52:29]POST finish read [17:52:29]Found Content-Length = 677 [17:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:29]execute_script... [17:52: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)343416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:29]POST & json_proto [17:52:29]process_json_proto [17:52:29]json parsed OK: [17:52:29]protocol is kg_v1.0 [17:52:29]action value=close_receipt [17:52:29]process_action close_receipt [17:52:29]cmd_close_receipt [17:52:29]MH_GetDate [17:52:29]Write to MH i2c: F0 00 00 FC 18 03 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 09 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 09 00 FC 18 00 5F E6 17 67 04 C1 95 66 8F [17:52:29]GetLastDocTimeStamp 1729619455 [17:52:29]current date 1729619551 [17:52:29]FM_GetShiftState [17:52:29]SAM_PROTO_GetShiftState [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 13 01 00 [17:52:29]Write to MH i2c: E2 08 00 FD 18 80 13 01 00 00 00 00 00 92 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 FD 18 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6C [17:52:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_GetShiftState done [17:52:29]FM_GetShiftState done [17:52:29]opened in 1729557342 [17:52:29]opened+sec_in_day 1729643742 [17:52:29]quantity*price = 50041 [17:52:29]sum+1 = 50042 [17:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 223 22.10.2024 17:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30990 ФПД: 84115931286969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30990&fm=84115931286969&tin=02508201610067®Number=0000000000186857&sum=50000 [17:52:30]StoreToDocumentArchive [17:52:30]shift 116 fd 30990 [17:52:30]save to /storage/0116/doc_00030990 [17:52:30]save last doc name /storage/0116/doc_00030990 to /storage/kkm_last_doc_name [17:52:30]save OK [17:52:30]Clear old archive folders... [17:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:30]tlvbuf is 00CCFAB0 [17:52:30]SAM_PROTO_ClearQueue [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 09 00 00 [17:52:30]Write to MH i2c: E2 08 00 0A 19 80 09 00 00 00 00 00 00 95 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]SAM_PROTO_ClearQueue done [17:52:30]KKMCreateOFDPacket [17:52:30]OFDProtocolAddRootSTLVToBuf [17:52:30]FM_MakeSignedData [17:52:30]FM_MakeSignedData [17:52:30]SAM_PROTO_SignData [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 01 02 [17:52:30]Write to MH i2c: E2 08 00 0B 19 80 0D 01 02 00 00 00 00 9D [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=255 [17:52:30]MH_SAM_APDU [17:52: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5F E6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 79 00 00 35 04 06 00 4C [17:52:30]Write to MH i2c: E2 02 01 0C 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5F E6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 79 00 00 35 04 06 00 4C 00 00 17 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]wFMCommunicate request_size=10 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 02 02 05 80 C4 34 4D B9 [17:52:31]Write to MH i2c: E2 0D 00 0D 19 80 0D 02 02 05 00 80 C4 34 4D B9 00 00 28 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 0D 19 00 90 00 9A [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 03 02 [17:52:31]Write to MH i2c: E2 08 00 0E 19 80 0D 03 02 00 00 00 00 A2 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0B 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0B 00 0E 19 00 5E 32 1C FE 63 C0 EC 01 90 00 5D [17:52:31]RAPDU: 5E 32 1C FE 63 C0 EC 01 90 00 [17:52:31]wFMCommunicate OK [17:52:31]SAM_PROTO_SignData done [17:52:31]FM_MakeSignedData done [17:52:31]CreateOFDProtocolMessage [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 11 00 00 [17:52:31]Write to MH i2c: E2 08 00 0F 19 80 11 00 00 00 00 00 00 A2 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 0F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [17:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:52:31]wFMCommunicate OK [17:52:31]CreateOFDProtocolMessage done [17:52:31]OFDSenderStorePacket 30990 [17:52:31]StoreOFDPacket docnum=30990 [17:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 54 07 01 3E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5F E6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 79 00 00 35 04 06 00 4C 80 C4 34 4D B9 5E 32 1C FE 63 C0 EC 01 [17:52:31]CheckFolder [17:52:31]dirname=/storage/ofd_packets [17:52:31]CheckFolder done [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00030990 [17:52:31]NVStorageSaveData ofd_packets/00030990 [17:52:31]File name is /storage/ofd_packets/00030990 [17:52:31]Write 301 bytes [17:52:31]NVStorageSaveData done [17:52:31]OFDSenderStorePacket done [17:52:31]KKMCreateOFDPacket done [17:52:31]NVStorageSaveData kkm_last_timestamp [17:52:31]File name is /storage/kkm_last_timestamp [17:52:31]Write 4 bytes [17:52:31]NVStorageSaveData done [17:52:31]ExternCall_PrintAddStr [17:52:31]wPrintStart [17:52:31]Write to MH i2c: 01 00 00 10 19 29 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 FF 0F 3E [17:52:31]RasterBufferAndPrint [17:52:31]line Счет N : (1)343416 [17:52:31]line ИНН: 02508201610067 [17:52:31]line Контрольно-Кассовый Чек [17:52:31]line ПРОДАЖА [17:52:31]line ТРК (МРК, ГНК) : 43 [17:52:31]line Товар: 2710124130 [17:52:31]line Аи-92-К-2 [17:52:31]line 7.480 * 66.90 [17:52:31]line = 500.41 [17:52:31]line НДС 12% НСП 1% [17:52:31]line > о реализуемом товаре [17:52:31]line ОКРУГЛЕНИЕ: -0.41 [17:52:31]line ИТОГО: 500.00 [17:52:31]line Внесено: 500.00 [17:52:31]line СДАЧА: 0.00 [17:52:31]line НСП 1% : 4.43 [17:52:31]line НДС 12% : 53.14 [17:52:31]line Наличными: 500.00 [17:52:31]line Безнал.: 0.00 [17:52:31]line Место: АЗС № 78 "Партнер Нефть" [17:52:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:52:31]line СНО: Общий режим [17:52:31]line Чек 223 22.10.2024 17:52 [17:52:31]line Смена: 116 ФФД: 1.0 [17:52:31]line ЗНМ: 0300000137 [17:52:31]line РНМ: 0000000000186857 [17:52:31]line Версия ККМ: v1.0 [17:52:31]line ФМ: 0000000002094219 [17:52:31]line ФД: 30990 [17:52:31]line ФПД: 84115931286969 [17:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30990&fm=84115931286969&tin=02508201610067®Number=0000000000186857&sum=50000 [17:52:31]OFD Sender: Processing packet 30990 [packets to send 11, broken 10] [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00030990 [17:52:31]OFD Sender: To server: pG, [17:52:31]CommunicateWithHost lk.salyk.kg:30040 [17:52:31]ConnectInit lk.salyk.kg [17:52:31]written 0, free lines is 4095 [17:52:31]Connected sock=10 [17:52:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 54 07 01 3E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5F E6 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 79 00 00 35 04 06 00 4C 80 C4 34 4D B9 5E 32 1C FE 63 C0 EC 01 [17:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 F9 47 00 86 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 79 00 00 F4 03 04 00 DC 90 17 67 B6 04 01 00 00 03 22 54 0C 8D F7 5D 13 [17:52:31]CommunicateWithHost err = 0 [17:52:31]CheckOFDResponse [17:52:31]1017 (14) - 77093643461234 [17:52:31]1041 (16) - 0000000002094219 [17:52:31]1040 (4) - 30990 [17:52:31]1012 (4) - 22.10.2024 11:47 [17:52:31]1206 (1) - 0 [17:52:31]OFD Sender: Remove packet 30990 [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00030990 [17:52:31]NVStorageDeleteData [17:52:32]Write to MH i2c: 01 00 00 3B 19 54 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 E9 0C 50 [17:52:32]RasterBufferAndPrint [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]written 0, free lines is 3311 [17:52:32]MH_Cut [17:52:32]Write to MH i2c: D1 01 00 42 19 01 2D [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 01 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 01 00 42 19 00 2C [17:52:32]Write to MH i2c: 01 00 00 43 19 5C [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]OFD Sender: No OFD packet to send [17:52:32]*** Cut start [17:52:32]*** Partial cut [17:52:32]*** CUTSNS_PIN = 1 [17:52:32]*** CUTSNS_PIN = 0 [17:52:32]*** Brake cut motor [17:52:33]Read from MH i2c: 01 [17:52:33]MH_I2C_Read... [17:52:33]*** Stop cut motor [17:52:33]*** Cut end [17:52:33]Read from MH i2c: 01 07 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: 01 07 00 43 19 00 00 00 00 00 FF 0F 71 [17:52:33]process_action close_receipt done [17:52:33]requested_data is exist [17:52:33]produce_requested_data [17:52:33]requested_item fm.sn is exist - process it [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 11 00 00 [17:52:33]Write to MH i2c: E2 08 00 44 19 80 11 00 00 00 00 00 00 D7 [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 17 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 17 00 44 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [17:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:52:33]wFMCommunicate OK [17:52:33]requested_item fd.num is exist - process it [17:52:33]SAM_PROTO_GetFieldsCounters [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 13 00 00 [17:52:33]Write to MH i2c: E2 08 00 45 19 80 13 00 00 00 00 00 00 DA [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 62 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 62 00 45 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:33]wFMCommunicate OK [17:52:33]SAM_PROTO_GetFieldsCounters done [17:52:33]requested_item shift.num is exist - process it [17:52:33]requested_item shift.opened is exist - process it [17:52:33]req_shift_opened [17:52:33]FM_GetShiftState [17:52:33]SAM_PROTO_GetShiftState [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 13 01 00 [17:52:33]Write to MH i2c: E2 08 00 46 19 80 13 01 00 00 00 00 00 DC [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 0E 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 0E 00 46 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B6 [17:52:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:52:33]wFMCommunicate OK [17:52:33]SAM_PROTO_GetShiftState done [17:52:33]FM_GetShiftState done [17:52:33]req_shift_opened done [17:52:33]requested_item shift.open_date is exist - process it [17:52:33]req_shift_open_date [17:52:33]req_shift_open_date done [17:52:33]produce_requested_data done [17:52:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30990,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:52:33]process_action_free close_receipt [17:52:33]json_value_free [17:52:33]json_value_free done [17:52:33]process_json_proto returns [17:52:33]Send response to host [17:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30990,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:52:33]free response buf [17:52:33]execute_script done [17:52:33]execute_script returns [17:52:33]free content buf [17:52:33]Sock 7.Close socket [17:52:33]Sock 7.Thread stoped [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:20]accept exits with 9 [17:55:20]New connection [17:55:20]New thread 3067043172 created [17:55:20]Thread 3066899812 joined [17:55:20]Waiting for new connection... [17:55:20] Sock 9.Parse request [17:55:20]Sock 9.Check first char [17:55:20]Sock 9.First char is OK [17:55:20]request: POST /json_proto HTTP/1.0 [17:55:20]Method: POST [17:55:20]URL: /json_proto [17:55:20]Method is POST - this is cgi request [17:55:20]url: /json_proto [17:55:20]query_string will be loaded in cgi processing [17:55:20]execute_cgi json_proto POST (null) [17:55:20]execute_cgi path=json_proto method=POST [17:55:20]POST find Content-Length [17:55:20]Host: 172.17.51.3:8080 [17:55:20]Content-Length: 750 [17:55:20]Content-Type: application/json [17:55:20] [17:55:20]POST finish read [17:55:20]Found Content-Length = 750 [17:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 3.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:20]execute_script... [17:55: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)343417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 3.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:20]POST & json_proto [17:55:20]process_json_proto [17:55:20]json parsed OK: [17:55:20]protocol is kg_v1.0 [17:55:20]action value=close_receipt [17:55:20]process_action close_receipt [17:55:20]cmd_close_receipt [17:55:20]MH_GetDate [17:55:20]Write to MH i2c: F0 00 00 47 19 4F [17:55:20]Write i2c OK [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: F0 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: F0 09 00 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: F0 09 00 47 19 00 0A E7 17 67 04 C1 95 66 87 [17:55:20]GetLastDocTimeStamp 1729619551 [17:55:20]current date 1729619722 [17:55:20]FM_GetShiftState [17:55:20]SAM_PROTO_GetShiftState [17:55:20]wFMCommunicate request_size=4 [17:55:20]MH_SAM_APDU [17:55:20]CAPDU: 80 13 01 00 [17:55:20]Write to MH i2c: E2 08 00 48 19 80 13 01 00 00 00 00 00 DE [17:55:20]Write i2c OK [17:55:20]MH_I2C_Read... [17:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:20]Read from MH i2c: E2 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: E2 0E 00 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: E2 0E 00 48 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B8 [17:55:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:55:20]wFMCommunicate OK [17:55:20]SAM_PROTO_GetShiftState done [17:55:20]FM_GetShiftState done [17:55:20]opened in 1729557342 [17:55:20]opened+sec_in_day 1729643742 [17:55:20]quantity*price = 0 [17:55:20]sum+1 = 1 [17:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 224 22.10.2024 17:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30991 ФПД: 86682490810282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30991&fm=86682490810282&tin=02508201610067®Number=0000000000186857&sum=0 [17:55:21]StoreToDocumentArchive [17:55:21]shift 116 fd 30991 [17:55:21]save to /storage/0116/doc_00030991 [17:55:21]save last doc name /storage/0116/doc_00030991 to /storage/kkm_last_doc_name [17:55:21]save OK [17:55:21]Clear old archive folders... [17:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:55:21]tlvbuf is B6DBE8C0 [17:55:21]SAM_PROTO_ClearQueue [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 09 00 00 [17:55:21]Write to MH i2c: E2 08 00 55 19 80 09 00 00 00 00 00 00 E0 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 03 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 03 00 55 19 00 90 00 E2 [17:55:21]RAPDU: 90 00 [17:55:21]wFMCommunicate OK [17:55:21]SAM_PROTO_ClearQueue done [17:55:21]KKMCreateOFDPacket [17:55:21]OFDProtocolAddRootSTLVToBuf [17:55:21]FM_MakeSignedData [17:55:21]FM_MakeSignedData [17:55:21]SAM_PROTO_SignData [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 0D 01 02 [17:55:21]Write to MH i2c: E2 08 00 56 19 80 0D 01 02 00 00 00 00 E8 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [17:55:22]RAPDU: 90 00 [17:55:22]wFMCommunicate OK [17:55:22]wFMCommunicate request_size=255 [17:55:22]MH_SAM_APDU [17:55:22]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 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 0A E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 79 00 00 35 04 06 00 4E D6 57 12 [17:55:22]Write to MH i2c: E2 02 01 57 19 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 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 0A E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 79 00 00 35 04 06 00 4E D6 57 12 00 00 A6 [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [17:55:22]RAPDU: 90 00 [17:55:22]wFMCommunicate OK [17:55:22]wFMCommunicate request_size=7 [17:55:22]MH_SAM_APDU [17:55:22]CAPDU: 80 0D 02 02 02 AF AA [17:55:22]Write to MH i2c: E2 0A 00 58 19 80 0D 02 02 02 00 AF AA 00 00 48 [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [17:55:22]RAPDU: 90 00 [17:55:22]wFMCommunicate OK [17:55:22]wFMCommunicate request_size=4 [17:55:22]MH_SAM_APDU [17:55:22]CAPDU: 80 0D 03 02 [17:55:22]Write to MH i2c: E2 08 00 59 19 80 0D 03 02 00 00 00 00 ED [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0B 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0B 00 59 19 00 69 D0 BF 8F 5A FA 10 99 90 00 72 [17:55:22]RAPDU: 69 D0 BF 8F 5A FA 10 99 90 00 [17:55:22]wFMCommunicate OK [17:55:22]SAM_PROTO_SignData done [17:55:22]FM_MakeSignedData done [17:55:22]CreateOFDProtocolMessage [17:55:22]wFMCommunicate request_size=4 [17:55:22]MH_SAM_APDU [17:55:22]CAPDU: 80 11 00 00 [17:55:22]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 17 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [17:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:55:22]wFMCommunicate OK [17:55:22]CreateOFDProtocolMessage done [17:55:22]OFDSenderStorePacket 30991 [17:55:22]StoreOFDPacket docnum=30991 [17:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E1 FC 04 01 58 EC 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 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 0A E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 79 00 00 35 04 06 00 4E D6 57 12 AF AA 69 D0 BF 8F 5A FA 10 99 [17:55:22]CheckFolder [17:55:22]dirname=/storage/ofd_packets [17:55:22]CheckFolder done [17:55:22]ProducePacketName [17:55:22]name=ofd_packets/00030991 [17:55:22]NVStorageSaveData ofd_packets/00030991 [17:55:22]File name is /storage/ofd_packets/00030991 [17:55:22]Write 298 bytes [17:55:22]NVStorageSaveData done [17:55:22]OFDSenderStorePacket done [17:55:22]KKMCreateOFDPacket done [17:55:22]NVStorageSaveData kkm_last_timestamp [17:55:22]File name is /storage/kkm_last_timestamp [17:55:22]Write 4 bytes [17:55:22]NVStorageSaveData done [17:55:22]ExternCall_PrintAddStr [17:55:22]wPrintStart [17:55:22]Write to MH i2c: 01 00 00 5B 19 74 [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: 01 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: 01 07 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 FF 0F 89 [17:55:22]RasterBufferAndPrint [17:55:22]line Счет N : (1)343417 [17:55:22]line ИНН: 02508201610067 [17:55:22]line Контрольно-Кассовый Чек [17:55:22]line ПРОДАЖА [17:55:22]line ТРК (МРК, ГНК) : 54 [17:55:22]line Товар: 2710194210 [17:55:22]line ДТ-К-2 [17:55:22]line 3.960 * 0.00 [17:55:22]line = 0.00 [17:55:22]line НДС 12% НСП 1% [17:55:22]line > о реализуемом товаре [17:55:22]line ИТОГО: 0.00 [17:55:22]line НСП 1% : 0.00 [17:55:22]line НДС 12% : 0.00 [17:55:22]line Наличными: 0.00 [17:55:22]line Безнал.: 0.00 [17:55:22]line Место: АЗС № 78 "Партнер Нефть" [17:55:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:55:22]line СНО: Общий режим [17:55:22]line Чек 224 22.10.2024 17:55 [17:55:22]line Смена: 116 ФФД: 1.0 [17:55:22]line ЗНМ: 0300000137 [17:55:22]line РНМ: 0000000000186857 [17:55:22]line Версия ККМ: v1.0 [17:55:22]line Талоны: ТК ГПНА Online [17:55:22]line 30132031 [17:55:22]line ФМ: 0000000002094219 [17:55:22]line ФД: 30991 [17:55:22]line ФПД: 86682490810282 [17:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30991&fm=86682490810282&tin=02508201610067®Number=0000000000186857&sum=0 [17:55:22]OFD Sender: Processing packet 30991 [packets to send 11, broken 10] [17:55:22]ProducePacketName [17:55:22]name=ofd_packets/00030991 [17:55:22]OFD Sender: To server: pG, [17:55:22]CommunicateWithHost lk.salyk.kg:30040 [17:55:22]ConnectInit lk.salyk.kg [17:55:22]written 0, free lines is 4095 [17:55:22]Connected sock=10 [17:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E1 FC 04 01 58 EC 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 32 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 0A E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 79 00 00 35 04 06 00 4E D6 57 12 AF AA 69 D0 BF 8F 5A FA 10 99 [17:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C0 A6 47 00 2C 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 32 30 39 34 32 31 39 10 04 04 00 0F 79 00 00 F4 03 04 00 87 91 17 67 B6 04 01 00 00 21 DB A1 2B D8 2B BA FD [17:55:23]CommunicateWithHost err = 0 [17:55:23]CheckOFDResponse [17:55:23]1017 (14) - 77093643461234 [17:55:23]1041 (16) - 0000000002094219 [17:55:23]1040 (4) - 30991 [17:55:23]1012 (4) - 22.10.2024 11:50 [17:55:23]1206 (1) - 0 [17:55:23]OFD Sender: Remove packet 30991 [17:55:23]ProducePacketName [17:55:23]name=ofd_packets/00030991 [17:55:23]NVStorageDeleteData [17:55:23]Write to MH i2c: 01 00 00 85 19 9E [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 07 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 FB 0C AC [17:55:23]RasterBufferAndPrint [17:55:23]line [17:55:23]line [17:55:23]line [17:55:23]line [17:55:23]line [17:55:23]written 0, free lines is 3332 [17:55:23]MH_Cut [17:55:23]Write to MH i2c: D1 01 00 8C 19 01 77 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: D1 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: D1 01 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: D1 01 00 8C 19 00 76 [17:55:23]Write to MH i2c: 01 00 00 8D 19 A6 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]OFD Sender: No OFD packet to send [17:55:23]*** Cut start [17:55:23]*** Partial cut [17:55:23]*** CUTSNS_PIN = 1 [17:55:23]*** CUTSNS_PIN = 0 [17:55:24]*** Brake cut motor [17:55:24]Read from MH i2c: 01 [17:55:24]MH_I2C_Read... [17:55:24]*** Stop cut motor [17:55:24]*** Cut end [17:55:24]Read from MH i2c: 01 07 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 FF 0F BB [17:55:24]process_action close_receipt done [17:55:24]requested_data is exist [17:55:24]produce_requested_data [17:55:24]requested_item fm.sn is exist - process it [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 11 00 00 [17:55:24]Write to MH i2c: E2 08 00 8E 19 80 11 00 00 00 00 00 00 21 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 17 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 17 00 8E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [17:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:55:24]wFMCommunicate OK [17:55:24]requested_item fd.num is exist - process it [17:55:24]SAM_PROTO_GetFieldsCounters [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 13 00 00 [17:55:24]Write to MH i2c: E2 08 00 8F 19 80 13 00 00 00 00 00 00 24 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 62 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 62 00 8F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:24]wFMCommunicate OK [17:55:24]SAM_PROTO_GetFieldsCounters done [17:55:24]requested_item shift.num is exist - process it [17:55:24]requested_item shift.opened is exist - process it [17:55:24]req_shift_opened [17:55:24]FM_GetShiftState [17:55:24]SAM_PROTO_GetShiftState [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 13 01 00 [17:55:24]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 0E 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 0E 00 90 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 00 [17:55:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:55:24]wFMCommunicate OK [17:55:24]SAM_PROTO_GetShiftState done [17:55:24]FM_GetShiftState done [17:55:24]req_shift_opened done [17:55:24]requested_item shift.open_date is exist - process it [17:55:24]req_shift_open_date [17:55:24]req_shift_open_date done [17:55:24]produce_requested_data done [17:55:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30991,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:55:24]process_action_free close_receipt [17:55:24]json_value_free [17:55:24]json_value_free done [17:55:24]process_json_proto returns [17:55:24]Send response to host [17:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30991,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:55:24]free response buf [17:55:24]execute_script done [17:55:24]execute_script returns [17:55:24]free content buf [17:55:24]Sock 9.Close socket [17:55:24]Sock 9.Thread stoped [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:00]accept exits with 7 [17:56:00]New connection [17:56:00]New thread 3066899812 created [17:56:00]Thread 3067043172 joined [17:56:00]Waiting for new connection... [17:56:00] Sock 7.Parse request [17:56:00]Sock 7.Check first char [17:56:00]Sock 7.First char is OK [17:56:00]request: POST /json_proto HTTP/1.0 [17:56:00]Method: POST [17:56:00]URL: /json_proto [17:56:00]Method is POST - this is cgi request [17:56:00]url: /json_proto [17:56:00]query_string will be loaded in cgi processing [17:56:00]execute_cgi json_proto POST (null) [17:56:00]execute_cgi path=json_proto method=POST [17:56:00]POST find Content-Length [17:56:00]Host: 172.17.51.3:8080 [17:56:00]Content-Length: 675 [17:56:00]Content-Type: application/json [17:56:00] [17:56:00]POST finish read [17:56:00]Found Content-Length = 675 [17:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:00]execute_script... [17:56: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)343418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:00]POST & json_proto [17:56:00]process_json_proto [17:56:00]json parsed OK: [17:56:00]protocol is kg_v1.0 [17:56:00]action value=close_receipt [17:56:00]process_action close_receipt [17:56:00]cmd_close_receipt [17:56:00]MH_GetDate [17:56:00]Write to MH i2c: F0 00 00 91 19 99 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: F0 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: F0 09 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: F0 09 00 91 19 00 31 E7 17 67 04 C1 95 66 F8 [17:56:00]GetLastDocTimeStamp 1729619722 [17:56:00]current date 1729619761 [17:56:00]FM_GetShiftState [17:56:00]SAM_PROTO_GetShiftState [17:56:00]wFMCommunicate request_size=4 [17:56:00]MH_SAM_APDU [17:56:00]CAPDU: 80 13 01 00 [17:56:00]Write to MH i2c: E2 08 00 92 19 80 13 01 00 00 00 00 00 28 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:00]Read from MH i2c: E2 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 0E 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 0E 00 92 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 02 [17:56:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:56:00]wFMCommunicate OK [17:56:00]SAM_PROTO_GetShiftState done [17:56:00]FM_GetShiftState done [17:56:00]opened in 1729557342 [17:56:00]opened+sec_in_day 1729643742 [17:56:00]quantity*price = 90068 [17:56:00]sum+1 = 90069 [17:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 225 22.10.2024 17:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30992 ФПД: 191809693645757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30992&fm=191809693645757&tin=02508201610067®Number=0000000000186857&sum=90000 [17:56:01]StoreToDocumentArchive [17:56:01]shift 116 fd 30992 [17:56:01]save to /storage/0116/doc_00030992 [17:56:01]save last doc name /storage/0116/doc_00030992 to /storage/kkm_last_doc_name [17:56:01]save OK [17:56:01]Clear old archive folders... [17:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:56:01]tlvbuf is 00D4CD60 [17:56:01]SAM_PROTO_ClearQueue [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 09 00 00 [17:56:01]Write to MH i2c: E2 08 00 9F 19 80 09 00 00 00 00 00 00 2A [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]SAM_PROTO_ClearQueue done [17:56:01]KKMCreateOFDPacket [17:56:01]OFDProtocolAddRootSTLVToBuf [17:56:01]FM_MakeSignedData [17:56:01]FM_MakeSignedData [17:56:01]SAM_PROTO_SignData [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 0D 01 02 [17:56:01]Write to MH i2c: E2 08 00 A0 19 80 0D 01 02 00 00 00 00 32 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]wFMCommunicate request_size=255 [17:56:01]MH_SAM_APDU [17:56:01]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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 31 E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 79 00 00 35 04 06 00 AE 73 2C A7 [17:56:01]Write to MH i2c: E2 02 01 A1 19 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 31 E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 79 00 00 35 04 06 00 AE 73 2C A7 00 00 EA [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]wFMCommunicate request_size=7 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 0D 02 02 02 7B BD [17:56:01]Write to MH i2c: E2 0A 00 A2 19 80 0D 02 02 02 00 7B BD 00 00 71 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 0D 03 02 [17:56:01]Write to MH i2c: E2 08 00 A3 19 80 0D 03 02 00 00 00 00 37 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0B 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0B 00 A3 19 00 43 8D B5 BB 79 F0 31 FE 90 00 10 [17:56:01]RAPDU: 43 8D B5 BB 79 F0 31 FE 90 00 [17:56:01]wFMCommunicate OK [17:56:01]SAM_PROTO_SignData done [17:56:01]FM_MakeSignedData done [17:56:01]CreateOFDProtocolMessage [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 11 00 00 [17:56:01]Write to MH i2c: E2 08 00 A4 19 80 11 00 00 00 00 00 00 37 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 A4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [17:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:56:01]wFMCommunicate OK [17:56:01]CreateOFDProtocolMessage done [17:56:01]OFDSenderStorePacket 30992 [17:56:01]StoreOFDPacket docnum=30992 [17:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2D BE 04 01 8C 9C 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 31 E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 79 00 00 35 04 06 00 AE 73 2C A7 7B BD 43 8D B5 BB 79 F0 31 FE [17:56:01]CheckFolder [17:56:01]dirname=/storage/ofd_packets [17:56:01]CheckFolder done [17:56:01]ProducePacketName [17:56:01]name=ofd_packets/00030992 [17:56:01]NVStorageSaveData ofd_packets/00030992 [17:56:01]File name is /storage/ofd_packets/00030992 [17:56:01]Write 298 bytes [17:56:01]NVStorageSaveData done [17:56:01]OFDSenderStorePacket done [17:56:01]KKMCreateOFDPacket done [17:56:01]NVStorageSaveData kkm_last_timestamp [17:56:01]File name is /storage/kkm_last_timestamp [17:56:01]Write 4 bytes [17:56:01]NVStorageSaveData done [17:56:01]ExternCall_PrintAddStr [17:56:01]wPrintStart [17:56:01]Write to MH i2c: 01 00 00 A5 19 BE [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 A5 19 00 00 00 00 00 FF 0F D3 [17:56:01]RasterBufferAndPrint [17:56:01]line Счет N : (1)343418 [17:56:01]line ИНН: 02508201610067 [17:56:01]line Контрольно-Кассовый Чек [17:56:01]line ПРОДАЖА [17:56:01]line ТРК (МРК, ГНК) : 54 [17:56:01]line Товар: 2710194210 [17:56:01]line ДТ-К-2 [17:56:01]line 11.820 * 76.20 [17:56:01]line = 900.68 [17:56:01]line НДС 12% НСП 1% [17:56:01]line > о реализуемом товаре [17:56:01]line ОКРУГЛЕНИЕ: -0.68 [17:56:01]line ИТОГО: 900.00 [17:56:01]line Внесено: 900.00 [17:56:01]line СДАЧА: 0.00 [17:56:01]line НСП 1% : 7.97 [17:56:01]line НДС 12% : 95.65 [17:56:01]line Наличными: 900.00 [17:56:01]line Безнал.: 0.00 [17:56:01]line Место: АЗС № 78 "Партнер Нефть" [17:56:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:56:01]line СНО: Общий режим [17:56:01]line Чек 225 22.10.2024 17:56 [17:56:01]line Смена: 116 ФФД: 1.0 [17:56:01]line ЗНМ: 0300000137 [17:56:01]line РНМ: 0000000000186857 [17:56:01]line Версия ККМ: v1.0 [17:56:01]line ФМ: 0000000002094219 [17:56:01]line ФД: 30992 [17:56:01]line ФПД: 191809693645757 [17:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30992&fm=191809693645757&tin=02508201610067®Number=0000000000186857&sum=90000 [17:56:02]OFD Sender: Processing packet 30992 [packets to send 11, broken 10] [17:56:02]ProducePacketName [17:56:02]name=ofd_packets/00030992 [17:56:02]OFD Sender: To server: pG, [17:56:02]CommunicateWithHost lk.salyk.kg:30040 [17:56:02]ConnectInit lk.salyk.kg [17:56:02]written 0, free lines is 4095 [17:56:02]Connected sock=11 [17:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2D BE 04 01 8C 9C 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 31 E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 79 00 00 35 04 06 00 AE 73 2C A7 7B BD 43 8D B5 BB 79 F0 31 FE [17:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D2 2B 47 00 57 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 79 00 00 F4 03 04 00 AE 91 17 67 B6 04 01 00 00 FE 19 CF BB 20 8C AF 17 [17:56:02]CommunicateWithHost err = 0 [17:56:02]CheckOFDResponse [17:56:02]1017 (14) - 77093643461234 [17:56:02]1041 (16) - 0000000002094219 [17:56:02]1040 (4) - 30992 [17:56:02]1012 (4) - 22.10.2024 11:51 [17:56:02]1206 (1) - 0 [17:56:02]OFD Sender: Remove packet 30992 [17:56:02]ProducePacketName [17:56:02]name=ofd_packets/00030992 [17:56:02]NVStorageDeleteData [17:56:02]Write to MH i2c: 01 00 00 D0 19 E9 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 07 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 07 00 D0 19 00 00 00 00 00 F3 0C EF [17:56:02]RasterBufferAndPrint [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]written 0, free lines is 3321 [17:56:02]MH_Cut [17:56:02]Write to MH i2c: D1 01 00 D7 19 01 C2 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 01 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 01 00 D7 19 00 C1 [17:56:02]Write to MH i2c: 01 00 00 D8 19 F1 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]OFD Sender: No OFD packet to send [17:56:03]*** Cut start [17:56:03]*** Partial cut [17:56:03]*** CUTSNS_PIN = 1 [17:56:03]*** CUTSNS_PIN = 0 [17:56:03]*** Brake cut motor [17:56:03]Read from MH i2c: 01 [17:56:03]MH_I2C_Read... [17:56:03]*** Stop cut motor [17:56:03]*** Cut end [17:56:03]Read from MH i2c: 01 07 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 FF 0F 06 [17:56:03]process_action close_receipt done [17:56:03]requested_data is exist [17:56:03]produce_requested_data [17:56:03]requested_item fm.sn is exist - process it [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 11 00 00 [17:56:03]Write to MH i2c: E2 08 00 D9 19 80 11 00 00 00 00 00 00 6C [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:03]Read from MH i2c: E2 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 17 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 17 00 D9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [17:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:56:03]wFMCommunicate OK [17:56:03]requested_item fd.num is exist - process it [17:56:03]SAM_PROTO_GetFieldsCounters [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 13 00 00 [17:56:03]Write to MH i2c: E2 08 00 DA 19 80 13 00 00 00 00 00 00 6F [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:03]Read from MH i2c: E2 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 62 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 62 00 DA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:03]wFMCommunicate OK [17:56:03]SAM_PROTO_GetFieldsCounters done [17:56:03]requested_item shift.num is exist - process it [17:56:03]requested_item shift.opened is exist - process it [17:56:03]req_shift_opened [17:56:03]FM_GetShiftState [17:56:03]SAM_PROTO_GetShiftState [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 13 01 00 [17:56:03]Write to MH i2c: E2 08 00 DB 19 80 13 01 00 00 00 00 00 71 [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:04]Read from MH i2c: E2 [17:56:04]MH_I2C_Read... [17:56:04]Read from MH i2c: E2 0E 00 [17:56:04]MH_I2C_Read... [17:56:04]Read from MH i2c: E2 0E 00 DB 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4B [17:56:04]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:56:04]wFMCommunicate OK [17:56:04]SAM_PROTO_GetShiftState done [17:56:04]FM_GetShiftState done [17:56:04]req_shift_opened done [17:56:04]requested_item shift.open_date is exist - process it [17:56:04]req_shift_open_date [17:56:04]req_shift_open_date done [17:56:04]produce_requested_data done [17:56:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30992,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:56:04]process_action_free close_receipt [17:56:04]json_value_free [17:56:04]json_value_free done [17:56:04]process_json_proto returns [17:56:04]Send response to host [17:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30992,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:56:04]free response buf [17:56:04]execute_script done [17:56:04]execute_script returns [17:56:04]free content buf [17:56:04]Sock 7.Close socket [17:56:04]Sock 7.Thread stoped [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:46]accept exits with 9 [17:57:46]New connection [17:57:46]New thread 3067043172 created [17:57:46]Thread 3066899812 joined [17:57:46]Waiting for new connection... [17:57:46] Sock 9.Parse request [17:57:46]Sock 9.Check first char [17:57:46]Sock 9.First char is OK [17:57:46]request: POST /json_proto HTTP/1.0 [17:57:46]Method: POST [17:57:46]URL: /json_proto [17:57:46]Method is POST - this is cgi request [17:57:46]url: /json_proto [17:57:46]query_string will be loaded in cgi processing [17:57:46]execute_cgi json_proto POST (null) [17:57:46]execute_cgi path=json_proto method=POST [17:57:46]POST find Content-Length [17:57:46]Host: 172.17.51.3:8080 [17:57:46]Content-Length: 688 [17:57:46]Content-Type: application/json [17:57:46] [17:57:46]POST finish read [17:57:46]Found Content-Length = 688 [17:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:46]execute_script... [17:57: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)343419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:46]POST & json_proto [17:57:46]process_json_proto [17:57:46]json parsed OK: [17:57:46]protocol is kg_v1.0 [17:57:46]action value=close_receipt [17:57:46]process_action close_receipt [17:57:46]cmd_close_receipt [17:57:46]MH_GetDate [17:57:46]Write to MH i2c: F0 00 00 DC 19 E4 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: F0 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: F0 09 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: F0 09 00 DC 19 00 9C E7 17 67 04 C1 95 66 AE [17:57:46]GetLastDocTimeStamp 1729619761 [17:57:46]current date 1729619868 [17:57:46]FM_GetShiftState [17:57:46]SAM_PROTO_GetShiftState [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 13 01 00 [17:57:46]Write to MH i2c: E2 08 00 DD 19 80 13 01 00 00 00 00 00 73 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0E 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0E 00 DD 19 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4D [17:57:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:57:46]wFMCommunicate OK [17:57:46]SAM_PROTO_GetShiftState done [17:57:46]FM_GetShiftState done [17:57:46]opened in 1729557342 [17:57:46]opened+sec_in_day 1729643742 [17:57:46]quantity*price = 100051 [17:57:46]sum+1 = 100052 [17:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 226 22.10.2024 17:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30993 ФПД: 213313941470045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30993&fm=213313941470045&tin=02508201610067®Number=0000000000186857&sum=100000 [17:57:47]StoreToDocumentArchive [17:57:47]shift 116 fd 30993 [17:57:47]save to /storage/0116/doc_00030993 [17:57:47]save last doc name /storage/0116/doc_00030993 to /storage/kkm_last_doc_name [17:57:47]save OK [17:57:47]Clear old archive folders... [17:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:57:47]tlvbuf is 00D31410 [17:57:47]SAM_PROTO_ClearQueue [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 09 00 00 [17:57:47]Write to MH i2c: E2 08 00 EA 19 80 09 00 00 00 00 00 00 75 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [17:57:47]RAPDU: 90 00 [17:57:47]wFMCommunicate OK [17:57:47]SAM_PROTO_ClearQueue done [17:57:47]KKMCreateOFDPacket [17:57:47]OFDProtocolAddRootSTLVToBuf [17:57:47]FM_MakeSignedData [17:57:47]FM_MakeSignedData [17:57:47]SAM_PROTO_SignData [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 0D 01 02 [17:57:47]Write to MH i2c: E2 08 00 EB 19 80 0D 01 02 00 00 00 00 7D [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]OFD Sender: No OFD packet to send [17:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 EB 19 00 90 00 78 [17:57:47]RAPDU: 90 00 [17:57:47]wFMCommunicate OK [17:57:47]wFMCommunicate request_size=255 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 79 00 [17:57:47]Write to MH i2c: E2 02 01 EC 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 79 00 00 00 B8 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]wFMCommunicate request_size=16 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 02 05 B4 FB 5D [17:57:48]Write to MH i2c: E2 13 00 ED 19 80 0D 02 02 0B 00 00 35 04 06 00 C2 02 05 B4 FB 5D 00 00 AA [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 03 02 [17:57:48]Write to MH i2c: E2 08 00 EE 19 80 0D 03 02 00 00 00 00 82 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 0B 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 0B 00 EE 19 00 99 25 6E 44 6C E9 74 FB 90 00 B7 [17:57:48]RAPDU: 99 25 6E 44 6C E9 74 FB 90 00 [17:57:48]wFMCommunicate OK [17:57:48]SAM_PROTO_SignData done [17:57:48]FM_MakeSignedData done [17:57:48]CreateOFDProtocolMessage [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 11 00 00 [17:57:48]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 17 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [17:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:57:48]wFMCommunicate OK [17:57:48]CreateOFDProtocolMessage done [17:57:48]OFDSenderStorePacket 30993 [17:57:48]StoreOFDPacket docnum=30993 [17:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 5B 8B 0D 01 9E FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 79 00 00 35 04 06 00 C2 02 05 B4 FB 5D 99 25 6E 44 6C E9 74 FB [17:57:48]CheckFolder [17:57:48]dirname=/storage/ofd_packets [17:57:48]CheckFolder done [17:57:48]ProducePacketName [17:57:48]name=ofd_packets/00030993 [17:57:48]NVStorageSaveData ofd_packets/00030993 [17:57:48]File name is /storage/ofd_packets/00030993 [17:57:48]Write 307 bytes [17:57:48]NVStorageSaveData done [17:57:48]OFDSenderStorePacket done [17:57:48]KKMCreateOFDPacket done [17:57:48]NVStorageSaveData kkm_last_timestamp [17:57:48]File name is /storage/kkm_last_timestamp [17:57:48]Write 4 bytes [17:57:48]NVStorageSaveData done [17:57:48]ExternCall_PrintAddStr [17:57:48]wPrintStart [17:57:48]Write to MH i2c: 01 00 00 F0 19 09 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 07 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 07 00 F0 19 00 00 00 00 00 FF 0F 1E [17:57:48]RasterBufferAndPrint [17:57:48]line Счет N : (1)343419 [17:57:48]line ИНН: 02508201610067 [17:57:48]line Контрольно-Кассовый Чек [17:57:48]line ПРОДАЖА [17:57:48]line ТРК (МРК, ГНК) : 61 [17:57:48]line Товар: 2710194210 [17:57:48]line D-ENERGY Дт-К-2 [17:57:48]line 12.960 * 77.20 [17:57:48]line = 1000.51 [17:57:48]line НДС 12% НСП 1% [17:57:48]line > о реализуемом товаре [17:57:48]line ОКРУГЛЕНИЕ: -0.51 [17:57:48]line ИТОГО: 1000.00 [17:57:48]line Внесено: 1000.00 [17:57:48]line СДАЧА: 0.00 [17:57:48]line НСП 1% : 8.85 [17:57:48]line НДС 12% : 106.25 [17:57:48]line Наличными: 1000.00 [17:57:48]line Безнал.: 0.00 [17:57:48]line Место: АЗС № 78 "Партнер Нефть" [17:57:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:57:48]line СНО: Общий режим [17:57:48]line Чек 226 22.10.2024 17:57 [17:57:48]line Смена: 116 ФФД: 1.0 [17:57:48]line ЗНМ: 0300000137 [17:57:48]line РНМ: 0000000000186857 [17:57:48]line Версия ККМ: v1.0 [17:57:48]line ФМ: 0000000002094219 [17:57:48]line ФД: 30993 [17:57:48]line ФПД: 213313941470045 [17:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30993&fm=213313941470045&tin=02508201610067®Number=0000000000186857&sum=100000 [17:57:48]OFD Sender: Processing packet 30993 [packets to send 11, broken 10] [17:57:48]ProducePacketName [17:57:48]name=ofd_packets/00030993 [17:57:48]OFD Sender: To server: pG, [17:57:48]CommunicateWithHost lk.salyk.kg:30040 [17:57:48]ConnectInit lk.salyk.kg [17:57:48]written 0, free lines is 4095 [17:57:48]Connected sock=10 [17:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 5B 8B 0D 01 9E FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C E7 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 79 00 00 35 04 06 00 C2 02 05 B4 FB 5D 99 25 6E 44 6C E9 74 FB [17:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9A 0F 47 00 1C 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 32 30 39 34 32 31 39 10 04 04 00 11 79 00 00 F4 03 04 00 19 92 17 67 B6 04 01 00 00 56 ED A3 38 C9 A7 C4 C3 [17:57:49]CommunicateWithHost err = 0 [17:57:49]CheckOFDResponse [17:57:49]1017 (14) - 77093643461234 [17:57:49]1041 (16) - 0000000002094219 [17:57:49]1040 (4) - 30993 [17:57:49]1012 (4) - 22.10.2024 11:52 [17:57:49]1206 (1) - 0 [17:57:49]OFD Sender: Remove packet 30993 [17:57:49]ProducePacketName [17:57:49]name=ofd_packets/00030993 [17:57:49]NVStorageDeleteData [17:57:49]Write to MH i2c: 01 00 00 1B 1A 35 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 07 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 07 00 1B 1A 00 00 00 00 00 F4 0C 3C [17:57:49]RasterBufferAndPrint [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]written 0, free lines is 3322 [17:57:49]MH_Cut [17:57:49]Write to MH i2c: D1 01 00 22 1A 01 0E [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 01 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 01 00 22 1A 00 0D [17:57:49]Write to MH i2c: 01 00 00 23 1A 3D [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]OFD Sender: No OFD packet to send [17:57:49]*** Cut start [17:57:49]*** Partial cut [17:57:49]*** CUTSNS_PIN = 1 [17:57:49]*** CUTSNS_PIN = 0 [17:57:50]*** Brake cut motor [17:57:50]Read from MH i2c: 01 [17:57:50]MH_I2C_Read... [17:57:50]*** Stop cut motor [17:57:50]*** Cut end [17:57:50]Read from MH i2c: 01 07 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 FF 0F 52 [17:57:50]process_action close_receipt done [17:57:50]requested_data is exist [17:57:50]produce_requested_data [17:57:50]requested_item fm.sn is exist - process it [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 11 00 00 [17:57:50]Write to MH i2c: E2 08 00 24 1A 80 11 00 00 00 00 00 00 B8 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 17 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 17 00 24 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [17:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:57:50]wFMCommunicate OK [17:57:50]requested_item fd.num is exist - process it [17:57:50]SAM_PROTO_GetFieldsCounters [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 13 00 00 [17:57:50]Write to MH i2c: E2 08 00 25 1A 80 13 00 00 00 00 00 00 BB [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 62 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 62 00 25 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:50]wFMCommunicate OK [17:57:50]SAM_PROTO_GetFieldsCounters done [17:57:50]requested_item shift.num is exist - process it [17:57:50]requested_item shift.opened is exist - process it [17:57:50]req_shift_opened [17:57:50]FM_GetShiftState [17:57:50]SAM_PROTO_GetShiftState [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 13 01 00 [17:57:50]Write to MH i2c: E2 08 00 26 1A 80 13 01 00 00 00 00 00 BD [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 26 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 97 [17:57:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [17:57:50]wFMCommunicate OK [17:57:50]SAM_PROTO_GetShiftState done [17:57:50]FM_GetShiftState done [17:57:50]req_shift_opened done [17:57:50]requested_item shift.open_date is exist - process it [17:57:50]req_shift_open_date [17:57:50]req_shift_open_date done [17:57:50]produce_requested_data done [17:57:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30993,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [17:57:50]process_action_free close_receipt [17:57:50]json_value_free [17:57:50]json_value_free done [17:57:50]process_json_proto returns [17:57:50]Send response to host [17:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30993,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [17:57:50]free response buf [17:57:50]execute_script done [17:57:50]execute_script returns [17:57:50]free content buf [17:57:50]Sock 9.Close socket [17:57:50]Sock 9.Thread stoped [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:56]accept exits with 7 [18:01:56]New connection [18:01:56]New thread 3066899812 created [18:01:56]Thread 3067043172 joined [18:01:56]Waiting for new connection... [18:01:56] Sock 7.Parse request [18:01:56]Sock 7.Check first char [18:01:56]Sock 7.First char is OK [18:01:56]request: POST /json_proto HTTP/1.0 [18:01:56]Method: POST [18:01:56]URL: /json_proto [18:01:56]Method is POST - this is cgi request [18:01:56]url: /json_proto [18:01:56]query_string will be loaded in cgi processing [18:01:56]execute_cgi json_proto POST (null) [18:01:56]execute_cgi path=json_proto method=POST [18:01:56]POST find Content-Length [18:01:56]Host: 172.17.51.3:8080 [18:01:56]Content-Length: 679 [18:01:56]Content-Type: application/json [18:01:56] [18:01:56]POST finish read [18:01:56]Found Content-Length = 679 [18:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:56]execute_script... [18:01:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:56]POST & json_proto [18:01:56]process_json_proto [18:01:56]json parsed OK: [18:01:56]protocol is kg_v1.0 [18:01:56]action value=close_receipt [18:01:56]process_action close_receipt [18:01:56]cmd_close_receipt [18:01:56]MH_GetDate [18:01:56]Write to MH i2c: F0 00 00 27 1A 30 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: F0 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: F0 09 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: F0 09 00 27 1A 00 96 E8 17 67 04 C1 95 66 F5 [18:01:56]GetLastDocTimeStamp 1729619868 [18:01:56]current date 1729620118 [18:01:56]FM_GetShiftState [18:01:56]SAM_PROTO_GetShiftState [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 01 00 [18:01:56]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 99 [18:01:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetShiftState done [18:01:56]FM_GetShiftState done [18:01:56]opened in 1729557342 [18:01:56]opened+sec_in_day 1729643742 [18:01:56]quantity*price = 300075 [18:01:56]sum+1 = 300077 [18:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 227 22.10.2024 18:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30994 ФПД: 151683330794058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30994&fm=151683330794058&tin=02508201610067®Number=0000000000186857&sum=300000 [18:01:57]StoreToDocumentArchive [18:01:57]shift 116 fd 30994 [18:01:57]save to /storage/0116/doc_00030994 [18:01:57]save last doc name /storage/0116/doc_00030994 to /storage/kkm_last_doc_name [18:01:57]save OK [18:01:57]Clear old archive folders... [18:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:01:57]tlvbuf is 00D659A0 [18:01:57]SAM_PROTO_ClearQueue [18:01:57]wFMCommunicate request_size=4 [18:01:57]MH_SAM_APDU [18:01:57]CAPDU: 80 09 00 00 [18:01:57]Write to MH i2c: E2 08 00 35 1A 80 09 00 00 00 00 00 00 C1 [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [18:01:57]RAPDU: 90 00 [18:01:57]wFMCommunicate OK [18:01:57]SAM_PROTO_ClearQueue done [18:01:57]KKMCreateOFDPacket [18:01:57]OFDProtocolAddRootSTLVToBuf [18:01:57]FM_MakeSignedData [18:01:57]FM_MakeSignedData [18:01:57]SAM_PROTO_SignData [18:01:57]wFMCommunicate request_size=4 [18:01:57]MH_SAM_APDU [18:01:57]CAPDU: 80 0D 01 02 [18:01:57]Write to MH i2c: E2 08 00 36 1A 80 0D 01 02 00 00 00 00 C9 [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [18:01:57]RAPDU: 90 00 [18:01:57]wFMCommunicate OK [18:01:57]wFMCommunicate request_size=255 [18:01:57]MH_SAM_APDU [18:01:57]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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 96 E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 79 00 00 35 04 06 00 89 F4 87 0C [18:01:57]Write to MH i2c: E2 02 01 37 1A 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 96 E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 79 00 00 35 04 06 00 89 F4 87 0C 00 00 75 [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [18:01:57]RAPDU: 90 00 [18:01:57]wFMCommunicate OK [18:01:57]wFMCommunicate request_size=7 [18:01:57]MH_SAM_APDU [18:01:57]CAPDU: 80 0D 02 02 02 E2 4A [18:01:57]Write to MH i2c: E2 0A 00 38 1A 80 0D 02 02 02 00 E2 4A 00 00 FC [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [18:01:57]RAPDU: 90 00 [18:01:57]wFMCommunicate OK [18:01:57]wFMCommunicate request_size=4 [18:01:57]MH_SAM_APDU [18:01:57]CAPDU: 80 0D 03 02 [18:01:57]Write to MH i2c: E2 08 00 39 1A 80 0D 03 02 00 00 00 00 CE [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:58]Read from MH i2c: E2 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: E2 0B 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: E2 0B 00 39 1A 00 7D 9A B8 32 2D CD EE 1D 90 00 D5 [18:01:58]RAPDU: 7D 9A B8 32 2D CD EE 1D 90 00 [18:01:58]wFMCommunicate OK [18:01:58]SAM_PROTO_SignData done [18:01:58]FM_MakeSignedData done [18:01:58]CreateOFDProtocolMessage [18:01:58]wFMCommunicate request_size=4 [18:01:58]MH_SAM_APDU [18:01:58]CAPDU: 80 11 00 00 [18:01:58]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:58]Read from MH i2c: E2 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: E2 17 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [18:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:01:58]wFMCommunicate OK [18:01:58]CreateOFDProtocolMessage done [18:01:58]OFDSenderStorePacket 30994 [18:01:58]StoreOFDPacket docnum=30994 [18:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FF 22 04 01 FF 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 96 E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 79 00 00 35 04 06 00 89 F4 87 0C E2 4A 7D 9A B8 32 2D CD EE 1D [18:01:58]CheckFolder [18:01:58]dirname=/storage/ofd_packets [18:01:58]CheckFolder done [18:01:58]ProducePacketName [18:01:58]name=ofd_packets/00030994 [18:01:58]NVStorageSaveData ofd_packets/00030994 [18:01:58]File name is /storage/ofd_packets/00030994 [18:01:58]Write 298 bytes [18:01:58]NVStorageSaveData done [18:01:58]OFDSenderStorePacket done [18:01:58]KKMCreateOFDPacket done [18:01:58]NVStorageSaveData kkm_last_timestamp [18:01:58]File name is /storage/kkm_last_timestamp [18:01:58]Write 4 bytes [18:01:58]NVStorageSaveData done [18:01:58]ExternCall_PrintAddStr [18:01:58]wPrintStart [18:01:58]Write to MH i2c: 01 00 00 3B 1A 55 [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 07 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [18:01:58]RasterBufferAndPrint [18:01:58]line Счет N : (1)343420 [18:01:58]line ИНН: 02508201610067 [18:01:58]line Контрольно-Кассовый Чек [18:01:58]line ПРОДАЖА [18:01:58]line ТРК (МРК, ГНК) : 34 [18:01:58]line Товар: 2710194210 [18:01:58]line ДТ-К-2 [18:01:58]line 39.380 * 76.20 [18:01:58]line = 3000.76 [18:01:58]line НДС 12% НСП 1% [18:01:58]line > о реализуемом товаре [18:01:58]line ОКРУГЛЕНИЕ: -0.76 [18:01:58]line ИТОГО: 3000.00 [18:01:58]line Внесено: 3000.00 [18:01:58]line СДАЧА: 0.00 [18:01:58]line НСП 1% : 26.55 [18:01:58]line НДС 12% : 318.66 [18:01:58]line Наличными: 3000.00 [18:01:58]line Безнал.: 0.00 [18:01:58]line Место: АЗС № 78 "Партнер Нефть" [18:01:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:01:58]line СНО: Общий режим [18:01:58]line Чек 227 22.10.2024 18:01 [18:01:58]line Смена: 116 ФФД: 1.0 [18:01:58]line ЗНМ: 0300000137 [18:01:58]line РНМ: 0000000000186857 [18:01:58]line Версия ККМ: v1.0 [18:01:58]line ФМ: 0000000002094219 [18:01:58]line ФД: 30994 [18:01:58]line ФПД: 151683330794058 [18:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30994&fm=151683330794058&tin=02508201610067®Number=0000000000186857&sum=300000 [18:01:58]OFD Sender: Processing packet 30994 [packets to send 11, broken 10] [18:01:58]ProducePacketName [18:01:58]name=ofd_packets/00030994 [18:01:58]OFD Sender: To server: pG, [18:01:58]CommunicateWithHost lk.salyk.kg:30040 [18:01:58]ConnectInit lk.salyk.kg [18:01:58]written 0, free lines is 4095 [18:01:58]Connected sock=10 [18:01:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FF 22 04 01 FF 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 96 E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 79 00 00 35 04 06 00 89 F4 87 0C E2 4A 7D 9A B8 32 2D CD EE 1D [18:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6D 1A 47 00 6C 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 32 30 39 34 32 31 39 10 04 04 00 12 79 00 00 F4 03 04 00 13 93 17 67 B6 04 01 00 00 1E 75 1C EF F5 78 EF 0D [18:01:58]CommunicateWithHost err = 0 [18:01:58]CheckOFDResponse [18:01:58]1017 (14) - 77093643461234 [18:01:58]1041 (16) - 0000000002094219 [18:01:58]1040 (4) - 30994 [18:01:58]1012 (4) - 22.10.2024 11:57 [18:01:58]1206 (1) - 0 [18:01:58]OFD Sender: Remove packet 30994 [18:01:58]ProducePacketName [18:01:58]name=ofd_packets/00030994 [18:01:58]NVStorageDeleteData [18:01:58]Write to MH i2c: 01 00 00 66 1A 80 [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 07 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 07 00 66 1A 00 00 00 00 00 FA 0C 8D [18:01:58]RasterBufferAndPrint [18:01:58]line [18:01:58]line [18:01:58]line [18:01:58]line [18:01:58]line [18:01:58]written 0, free lines is 3332 [18:01:58]MH_Cut [18:01:58]Write to MH i2c: D1 01 00 6D 1A 01 59 [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: D1 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: D1 01 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: D1 01 00 6D 1A 00 58 [18:01:58]Write to MH i2c: 01 00 00 6E 1A 88 [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:59]OFD Sender: No OFD packet to send [18:01:59]*** Cut start [18:01:59]*** Partial cut [18:01:59]*** CUTSNS_PIN = 1 [18:01:59]*** CUTSNS_PIN = 0 [18:01:59]*** Brake cut motor [18:02:00]Read from MH i2c: 01 [18:02:00]MH_I2C_Read... [18:02:00]*** Stop cut motor [18:02:00]*** Cut end [18:02:00]Read from MH i2c: 01 07 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: 01 07 00 6E 1A 00 00 00 00 00 FF 0F 9D [18:02:00]process_action close_receipt done [18:02:00]requested_data is exist [18:02:00]produce_requested_data [18:02:00]requested_item fm.sn is exist - process it [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 11 00 00 [18:02:00]Write to MH i2c: E2 08 00 6F 1A 80 11 00 00 00 00 00 00 03 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 17 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 17 00 6F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [18:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:02:00]wFMCommunicate OK [18:02:00]requested_item fd.num is exist - process it [18:02:00]SAM_PROTO_GetFieldsCounters [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 13 00 00 [18:02:00]Write to MH i2c: E2 08 00 70 1A 80 13 00 00 00 00 00 00 06 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 62 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 62 00 70 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [18:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:00]wFMCommunicate OK [18:02:00]SAM_PROTO_GetFieldsCounters done [18:02:00]requested_item shift.num is exist - process it [18:02:00]requested_item shift.opened is exist - process it [18:02:00]req_shift_opened [18:02:00]FM_GetShiftState [18:02:00]SAM_PROTO_GetShiftState [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 13 01 00 [18:02:00]Write to MH i2c: E2 08 00 71 1A 80 13 01 00 00 00 00 00 08 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 0E 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 0E 00 71 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E2 [18:02:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:02:00]wFMCommunicate OK [18:02:00]SAM_PROTO_GetShiftState done [18:02:00]FM_GetShiftState done [18:02:00]req_shift_opened done [18:02:00]requested_item shift.open_date is exist - process it [18:02:00]req_shift_open_date [18:02:00]req_shift_open_date done [18:02:00]produce_requested_data done [18:02:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30994,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:02:00]process_action_free close_receipt [18:02:00]json_value_free [18:02:00]json_value_free done [18:02:00]process_json_proto returns [18:02:00]Send response to host [18:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30994,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:02:00]free response buf [18:02:00]execute_script done [18:02:00]execute_script returns [18:02:00]free content buf [18:02:00]Sock 7.Close socket [18:02:00]Sock 7.Thread stoped [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:22]accept exits with 9 [18:03:22]New connection [18:03:22]New thread 3067043172 created [18:03:22]Thread 3066899812 joined [18:03:22]Waiting for new connection... [18:03:22] Sock 9.Parse request [18:03:22]Sock 9.Check first char [18:03:22]Sock 9.First char is OK [18:03:22]request: POST /json_proto HTTP/1.0 [18:03:22]Method: POST [18:03:22]URL: /json_proto [18:03:22]Method is POST - this is cgi request [18:03:22]url: /json_proto [18:03:22]query_string will be loaded in cgi processing [18:03:22]execute_cgi json_proto POST (null) [18:03:22]execute_cgi path=json_proto method=POST [18:03:22]POST find Content-Length [18:03:22]Host: 172.17.51.3:8080 [18:03:22]Content-Length: 674 [18:03:22]Content-Type: application/json [18:03:22] [18:03:22]POST finish read [18:03:22]Found Content-Length = 674 [18:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:03:22]execute_script... [18:03: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)343421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:03:22]POST & json_proto [18:03:22]process_json_proto [18:03:22]json parsed OK: [18:03:22]protocol is kg_v1.0 [18:03:22]action value=close_receipt [18:03:22]process_action close_receipt [18:03:22]cmd_close_receipt [18:03:22]MH_GetDate [18:03:22]Write to MH i2c: F0 00 00 72 1A 7B [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: F0 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: F0 09 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: F0 09 00 72 1A 00 EC E8 17 67 04 C1 95 66 96 [18:03:22]GetLastDocTimeStamp 1729620118 [18:03:22]current date 1729620204 [18:03:22]FM_GetShiftState [18:03:22]SAM_PROTO_GetShiftState [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 13 01 00 [18:03:22]Write to MH i2c: E2 08 00 73 1A 80 13 01 00 00 00 00 00 0A [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 73 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E4 [18:03:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_GetShiftState done [18:03:22]FM_GetShiftState done [18:03:22]opened in 1729557342 [18:03:22]opened+sec_in_day 1729643742 [18:03:22]quantity*price = 30022 [18:03:22]sum+1 = 30024 [18:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 228 22.10.2024 18:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30995 ФПД: 255368511831148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30995&fm=255368511831148&tin=02508201610067®Number=0000000000186857&sum=30000 [18:03:23]StoreToDocumentArchive [18:03:23]shift 116 fd 30995 [18:03:23]save to /storage/0116/doc_00030995 [18:03:23]save last doc name /storage/0116/doc_00030995 to /storage/kkm_last_doc_name [18:03:23]save OK [18:03:23]Clear old archive folders... [18:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:23]tlvbuf is 00CEB1F0 [18:03:23]SAM_PROTO_ClearQueue [18:03:23]wFMCommunicate request_size=4 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 09 00 00 [18:03:23]Write to MH i2c: E2 08 00 80 1A 80 09 00 00 00 00 00 00 0C [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 80 1A 00 90 00 0E [18:03:23]RAPDU: 90 00 [18:03:23]wFMCommunicate OK [18:03:23]SAM_PROTO_ClearQueue done [18:03:23]KKMCreateOFDPacket [18:03:23]OFDProtocolAddRootSTLVToBuf [18:03:23]FM_MakeSignedData [18:03:23]FM_MakeSignedData [18:03:23]SAM_PROTO_SignData [18:03:23]wFMCommunicate request_size=4 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 0D 01 02 [18:03:23]Write to MH i2c: E2 08 00 81 1A 80 0D 01 02 00 00 00 00 14 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [18:03:23]RAPDU: 90 00 [18:03:23]wFMCommunicate OK [18:03:23]wFMCommunicate request_size=255 [18:03:23]MH_SAM_APDU [18:03:23]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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E4 00 00 00 F4 03 04 00 EC E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 79 00 00 35 04 06 00 E8 41 9D 6F [18:03:23]Write to MH i2c: E2 02 01 82 1A 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E4 00 00 00 F4 03 04 00 EC E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 79 00 00 35 04 06 00 E8 41 9D 6F 00 00 C3 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 82 1A 00 90 00 10 [18:03:24]RAPDU: 90 00 [18:03:24]wFMCommunicate OK [18:03:24]wFMCommunicate request_size=7 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 0D 02 02 02 3C 6C [18:03:24]Write to MH i2c: E2 0A 00 83 1A 80 0D 02 02 02 00 3C 6C 00 00 C3 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 83 1A 00 90 00 11 [18:03:24]RAPDU: 90 00 [18:03:24]wFMCommunicate OK [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 0D 03 02 [18:03:24]Write to MH i2c: E2 08 00 84 1A 80 0D 03 02 00 00 00 00 19 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 0B 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 0B 00 84 1A 00 8F 55 8B 50 62 E2 7C 4A 90 00 E3 [18:03:24]RAPDU: 8F 55 8B 50 62 E2 7C 4A 90 00 [18:03:24]wFMCommunicate OK [18:03:24]SAM_PROTO_SignData done [18:03:24]FM_MakeSignedData done [18:03:24]CreateOFDProtocolMessage [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 11 00 00 [18:03:24]Write to MH i2c: E2 08 00 85 1A 80 11 00 00 00 00 00 00 19 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 17 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 17 00 85 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [18:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:24]wFMCommunicate OK [18:03:24]CreateOFDProtocolMessage done [18:03:24]OFDSenderStorePacket 30995 [18:03:24]StoreOFDPacket docnum=30995 [18:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 77 44 04 01 73 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E4 00 00 00 F4 03 04 00 EC E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 79 00 00 35 04 06 00 E8 41 9D 6F 3C 6C 8F 55 8B 50 62 E2 7C 4A [18:03:24]CheckFolder [18:03:24]dirname=/storage/ofd_packets [18:03:24]CheckFolder done [18:03:24]ProducePacketName [18:03:24]name=ofd_packets/00030995 [18:03:24]NVStorageSaveData ofd_packets/00030995 [18:03:24]File name is /storage/ofd_packets/00030995 [18:03:24]Write 298 bytes [18:03:24]NVStorageSaveData done [18:03:24]OFDSenderStorePacket done [18:03:24]KKMCreateOFDPacket done [18:03:24]NVStorageSaveData kkm_last_timestamp [18:03:24]File name is /storage/kkm_last_timestamp [18:03:24]Write 4 bytes [18:03:24]NVStorageSaveData done [18:03:24]ExternCall_PrintAddStr [18:03:24]wPrintStart [18:03:24]Write to MH i2c: 01 00 00 86 1A A0 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 07 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 07 00 86 1A 00 00 00 00 00 FF 0F B5 [18:03:24]RasterBufferAndPrint [18:03:24]line Счет N : (1)343421 [18:03:24]line ИНН: 02508201610067 [18:03:24]line Контрольно-Кассовый Чек [18:03:24]line ПРОДАЖА [18:03:24]line ТРК (МРК, ГНК) : 44 [18:03:24]line Товар: 2710194210 [18:03:24]line ДТ-К-2 [18:03:24]line 3.940 * 76.20 [18:03:24]line = 300.23 [18:03:24]line НДС 12% НСП 1% [18:03:24]line > о реализуемом товаре [18:03:24]line ОКРУГЛЕНИЕ: -0.23 [18:03:24]line ИТОГО: 300.00 [18:03:24]line Внесено: 300.00 [18:03:24]line СДАЧА: 0.00 [18:03:24]line НСП 1% : 2.66 [18:03:24]line НДС 12% : 31.88 [18:03:24]line Наличными: 300.00 [18:03:24]line Безнал.: 0.00 [18:03:24]line Место: АЗС № 78 "Партнер Нефть" [18:03:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:03:24]line СНО: Общий режим [18:03:24]line Чек 228 22.10.2024 18:03 [18:03:24]line Смена: 116 ФФД: 1.0 [18:03:24]line ЗНМ: 0300000137 [18:03:24]line РНМ: 0000000000186857 [18:03:24]line Версия ККМ: v1.0 [18:03:24]line ФМ: 0000000002094219 [18:03:24]line ФД: 30995 [18:03:24]line ФПД: 255368511831148 [18:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30995&fm=255368511831148&tin=02508201610067®Number=0000000000186857&sum=30000 [18:03:24]OFD Sender: Processing packet 30995 [packets to send 11, broken 10] [18:03:24]ProducePacketName [18:03:24]name=ofd_packets/00030995 [18:03:24]OFD Sender: To server: pG, [18:03:24]CommunicateWithHost lk.salyk.kg:30040 [18:03:24]ConnectInit lk.salyk.kg [18:03:24]written 0, free lines is 4095 [18:03:24]Connected sock=10 [18:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 77 44 04 01 73 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E4 00 00 00 F4 03 04 00 EC E8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 79 00 00 35 04 06 00 E8 41 9D 6F 3C 6C 8F 55 8B 50 62 E2 7C 4A [18:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 51 C4 47 00 EE 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 32 30 39 34 32 31 39 10 04 04 00 13 79 00 00 F4 03 04 00 69 93 17 67 B6 04 01 00 00 0F CC 4F 53 6A 99 69 B3 [18:03:24]CommunicateWithHost err = 0 [18:03:24]CheckOFDResponse [18:03:24]1017 (14) - 77093643461234 [18:03:24]1041 (16) - 0000000002094219 [18:03:24]1040 (4) - 30995 [18:03:24]1012 (4) - 22.10.2024 11:58 [18:03:24]1206 (1) - 0 [18:03:24]OFD Sender: Remove packet 30995 [18:03:24]ProducePacketName [18:03:24]name=ofd_packets/00030995 [18:03:24]NVStorageDeleteData [18:03:24]Write to MH i2c: 01 00 00 B1 1A CB [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 07 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 07 00 B1 1A 00 00 00 00 00 FF 0C DD [18:03:24]RasterBufferAndPrint [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]written 0, free lines is 3336 [18:03:25]MH_Cut [18:03:25]Write to MH i2c: D1 01 00 B8 1A 01 A4 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: D1 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: D1 01 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: D1 01 00 B8 1A 00 A3 [18:03:25]Write to MH i2c: 01 00 00 B9 1A D3 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]OFD Sender: No OFD packet to send [18:03:25]*** Cut start [18:03:25]*** Partial cut [18:03:25]*** CUTSNS_PIN = 1 [18:03:25]*** CUTSNS_PIN = 0 [18:03:25]*** Brake cut motor [18:03:26]Read from MH i2c: 01 [18:03:26]MH_I2C_Read... [18:03:26]*** Stop cut motor [18:03:26]*** Cut end [18:03:26]Read from MH i2c: 01 07 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 B9 1A 00 00 00 00 00 FF 0F E8 [18:03:26]process_action close_receipt done [18:03:26]requested_data is exist [18:03:26]produce_requested_data [18:03:26]requested_item fm.sn is exist - process it [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 11 00 00 [18:03:26]Write to MH i2c: E2 08 00 BA 1A 80 11 00 00 00 00 00 00 4E [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 BA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [18:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:26]wFMCommunicate OK [18:03:26]requested_item fd.num is exist - process it [18:03:26]SAM_PROTO_GetFieldsCounters [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 13 00 00 [18:03:26]Write to MH i2c: E2 08 00 BB 1A 80 13 00 00 00 00 00 00 51 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 62 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 62 00 BB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [18:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_GetFieldsCounters done [18:03:26]requested_item shift.num is exist - process it [18:03:26]requested_item shift.opened is exist - process it [18:03:26]req_shift_opened [18:03:26]FM_GetShiftState [18:03:26]SAM_PROTO_GetShiftState [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 13 01 00 [18:03:26]Write to MH i2c: E2 08 00 BC 1A 80 13 01 00 00 00 00 00 53 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 BC 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2D [18:03:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_GetShiftState done [18:03:26]FM_GetShiftState done [18:03:26]req_shift_opened done [18:03:26]requested_item shift.open_date is exist - process it [18:03:26]req_shift_open_date [18:03:26]req_shift_open_date done [18:03:26]produce_requested_data done [18:03:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30995,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:03:26]process_action_free close_receipt [18:03:26]json_value_free [18:03:26]json_value_free done [18:03:26]process_json_proto returns [18:03:26]Send response to host [18:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30995,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:03:26]free response buf [18:03:26]execute_script done [18:03:26]execute_script returns [18:03:26]free content buf [18:03:26]Sock 9.Close socket [18:03:26]Sock 9.Thread stoped [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:48]accept exits with 7 [18:03:48]New connection [18:03:48]New thread 3066899812 created [18:03:48]Thread 3067043172 joined [18:03:48]Waiting for new connection... [18:03:48] Sock 7.Parse request [18:03:48]Sock 7.Check first char [18:03:48]Sock 7.First char is OK [18:03:48]request: POST /json_proto HTTP/1.0 [18:03:48]Method: POST [18:03:48]URL: /json_proto [18:03:48]Method is POST - this is cgi request [18:03:48]url: /json_proto [18:03:48]query_string will be loaded in cgi processing [18:03:48]execute_cgi json_proto POST (null) [18:03:48]execute_cgi path=json_proto method=POST [18:03:48]POST find Content-Length [18:03:48]Host: 172.17.51.3:8080 [18:03:48]Content-Length: 677 [18:03:48]Content-Type: application/json [18:03:48] [18:03:48]POST finish read [18:03:48]Found Content-Length = 677 [18:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:48]execute_script... [18:03: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)343422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:48]POST & json_proto [18:03:48]process_json_proto [18:03:48]json parsed OK: [18:03:48]protocol is kg_v1.0 [18:03:48]action value=close_receipt [18:03:48]process_action close_receipt [18:03:48]cmd_close_receipt [18:03:48]MH_GetDate [18:03:48]Write to MH i2c: F0 00 00 BD 1A C6 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 09 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 09 00 BD 1A 00 06 E9 17 67 04 C1 95 66 FC [18:03:48]GetLastDocTimeStamp 1729620204 [18:03:48]current date 1729620230 [18:03:48]FM_GetShiftState [18:03:48]SAM_PROTO_GetShiftState [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 13 01 00 [18:03:48]Write to MH i2c: E2 08 00 BE 1A 80 13 01 00 00 00 00 00 55 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 BE 1A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2F [18:03:48]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_GetShiftState done [18:03:48]FM_GetShiftState done [18:03:48]opened in 1729557342 [18:03:48]opened+sec_in_day 1729643742 [18:03:48]quantity*price = 50041 [18:03:48]sum+1 = 50042 [18:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 229 22.10.2024 18:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30996 ФПД: 209505764207906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30996&fm=209505764207906&tin=02508201610067®Number=0000000000186857&sum=50000 [18:03:50]StoreToDocumentArchive [18:03:50]shift 116 fd 30996 [18:03:50]save to /storage/0116/doc_00030996 [18:03:50]save last doc name /storage/0116/doc_00030996 to /storage/kkm_last_doc_name [18:03:50]save OK [18:03:50]Clear old archive folders... [18:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:50]tlvbuf is 00D67DB0 [18:03:50]SAM_PROTO_ClearQueue [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 09 00 00 [18:03:50]Write to MH i2c: E2 08 00 CB 1A 80 09 00 00 00 00 00 00 57 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 CB 1A 00 90 00 59 [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_ClearQueue done [18:03:50]KKMCreateOFDPacket [18:03:50]OFDProtocolAddRootSTLVToBuf [18:03:50]FM_MakeSignedData [18:03:50]FM_MakeSignedData [18:03:50]SAM_PROTO_SignData [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 01 02 [18:03:50]Write to MH i2c: E2 08 00 CC 1A 80 0D 01 02 00 00 00 00 5F [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 CC 1A 00 90 00 5A [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=255 [18:03:50]MH_SAM_APDU [18:03: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 06 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 79 00 00 35 04 06 00 BE [18:03:50]Write to MH i2c: E2 02 01 CD 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 06 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 79 00 00 35 04 06 00 BE 00 00 01 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]OFD Sender: No OFD packet to send [18:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 CD 1A 00 90 00 5B [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=10 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 02 02 05 8B 5C A7 6D 22 [18:03:50]Write to MH i2c: E2 0D 00 CE 1A 80 0D 02 02 05 00 8B 5C A7 6D 22 00 00 89 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 CE 1A 00 90 00 5C [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 03 02 [18:03:50]Write to MH i2c: E2 08 00 CF 1A 80 0D 03 02 00 00 00 00 64 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0B 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0B 00 CF 1A 00 0D AB F7 91 89 0A C3 B9 90 00 B4 [18:03:50]RAPDU: 0D AB F7 91 89 0A C3 B9 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_SignData done [18:03:50]FM_MakeSignedData done [18:03:50]CreateOFDProtocolMessage [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 11 00 00 [18:03:50]Write to MH i2c: E2 08 00 D0 1A 80 11 00 00 00 00 00 00 64 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 D0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [18:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:50]wFMCommunicate OK [18:03:50]CreateOFDProtocolMessage done [18:03:50]OFDSenderStorePacket 30996 [18:03:50]StoreOFDPacket docnum=30996 [18:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 31 07 01 AB 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 06 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 79 00 00 35 04 06 00 BE 8B 5C A7 6D 22 0D AB F7 91 89 0A C3 B9 [18:03:50]CheckFolder [18:03:50]dirname=/storage/ofd_packets [18:03:50]CheckFolder done [18:03:50]ProducePacketName [18:03:50]name=ofd_packets/00030996 [18:03:50]NVStorageSaveData ofd_packets/00030996 [18:03:50]File name is /storage/ofd_packets/00030996 [18:03:50]Write 301 bytes [18:03:50]NVStorageSaveData done [18:03:50]OFDSenderStorePacket done [18:03:50]KKMCreateOFDPacket done [18:03:50]NVStorageSaveData kkm_last_timestamp [18:03:50]File name is /storage/kkm_last_timestamp [18:03:50]Write 4 bytes [18:03:50]NVStorageSaveData done [18:03:50]ExternCall_PrintAddStr [18:03:50]wPrintStart [18:03:50]Write to MH i2c: 01 00 00 D1 1A EB [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 D1 1A 00 00 00 00 00 FF 0F 00 [18:03:50]RasterBufferAndPrint [18:03:50]line Счет N : (1)343422 [18:03:50]line ИНН: 02508201610067 [18:03:50]line Контрольно-Кассовый Чек [18:03:50]line ПРОДАЖА [18:03:50]line ТРК (МРК, ГНК) : 63 [18:03:50]line Товар: 2710124130 [18:03:50]line Аи-92-К-2 [18:03:50]line 7.480 * 66.90 [18:03:50]line = 500.41 [18:03:50]line НДС 12% НСП 1% [18:03:50]line > о реализуемом товаре [18:03:50]line ОКРУГЛЕНИЕ: -0.41 [18:03:50]line ИТОГО: 500.00 [18:03:50]line Внесено: 500.00 [18:03:50]line СДАЧА: 0.00 [18:03:50]line НСП 1% : 4.43 [18:03:50]line НДС 12% : 53.14 [18:03:50]line Наличными: 500.00 [18:03:50]line Безнал.: 0.00 [18:03:50]line Место: АЗС № 78 "Партнер Нефть" [18:03:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:03:50]line СНО: Общий режим [18:03:50]line Чек 229 22.10.2024 18:03 [18:03:50]line Смена: 116 ФФД: 1.0 [18:03:50]line ЗНМ: 0300000137 [18:03:50]line РНМ: 0000000000186857 [18:03:50]line Версия ККМ: v1.0 [18:03:50]line ФМ: 0000000002094219 [18:03:50]line ФД: 30996 [18:03:50]line ФПД: 209505764207906 [18:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30996&fm=209505764207906&tin=02508201610067®Number=0000000000186857&sum=50000 [18:03:50]OFD Sender: Processing packet 30996 [packets to send 11, broken 10] [18:03:50]ProducePacketName [18:03:50]name=ofd_packets/00030996 [18:03:50]OFD Sender: To server: pG, [18:03:50]CommunicateWithHost lk.salyk.kg:30040 [18:03:50]ConnectInit lk.salyk.kg [18:03:50]written 0, free lines is 4095 [18:03:51]Connected sock=10 [18:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 31 07 01 AB 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 06 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 79 00 00 35 04 06 00 BE 8B 5C A7 6D 22 0D AB F7 91 89 0A C3 B9 [18:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6A EB 47 00 C8 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 32 30 39 34 32 31 39 10 04 04 00 14 79 00 00 F4 03 04 00 83 93 17 67 B6 04 01 00 00 99 D5 8D 2C C9 11 E5 E5 [18:03:51]CommunicateWithHost err = 0 [18:03:51]CheckOFDResponse [18:03:51]1017 (14) - 77093643461234 [18:03:51]1041 (16) - 0000000002094219 [18:03:51]1040 (4) - 30996 [18:03:51]1012 (4) - 22.10.2024 11:58 [18:03:51]1206 (1) - 0 [18:03:51]OFD Sender: Remove packet 30996 [18:03:51]ProducePacketName [18:03:51]name=ofd_packets/00030996 [18:03:51]NVStorageDeleteData [18:03:51]Write to MH i2c: 01 00 00 FC 1A 16 [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 07 00 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 07 00 FC 1A 00 00 00 00 00 F2 0C 1B [18:03:51]RasterBufferAndPrint [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]written 0, free lines is 3324 [18:03:51]MH_Cut [18:03:51]Write to MH i2c: D1 01 00 03 1B 01 F0 [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 01 00 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 01 00 03 1B 00 EF [18:03:51]Write to MH i2c: 01 00 00 04 1B 1F [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]OFD Sender: No OFD packet to send [18:03:52]*** Cut start [18:03:52]*** Partial cut [18:03:52]*** CUTSNS_PIN = 1 [18:03:52]*** CUTSNS_PIN = 0 [18:03:52]*** Brake cut motor [18:03:52]Read from MH i2c: 01 [18:03:52]MH_I2C_Read... [18:03:52]*** Stop cut motor [18:03:52]*** Cut end [18:03:52]Read from MH i2c: 01 07 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 FF 0F 34 [18:03:52]process_action close_receipt done [18:03:52]requested_data is exist [18:03:52]produce_requested_data [18:03:52]requested_item fm.sn is exist - process it [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 11 00 00 [18:03:52]Write to MH i2c: E2 08 00 05 1B 80 11 00 00 00 00 00 00 9A [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 17 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 17 00 05 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [18:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:52]wFMCommunicate OK [18:03:52]requested_item fd.num is exist - process it [18:03:52]SAM_PROTO_GetFieldsCounters [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 13 00 00 [18:03:52]Write to MH i2c: E2 08 00 06 1B 80 13 00 00 00 00 00 00 9D [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 62 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 62 00 06 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [18:03:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:52]wFMCommunicate OK [18:03:52]SAM_PROTO_GetFieldsCounters done [18:03:52]requested_item shift.num is exist - process it [18:03:52]requested_item shift.opened is exist - process it [18:03:52]req_shift_opened [18:03:52]FM_GetShiftState [18:03:52]SAM_PROTO_GetShiftState [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 13 01 00 [18:03:52]Write to MH i2c: E2 08 00 07 1B 80 13 01 00 00 00 00 00 9F [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 0E 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 0E 00 07 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 79 [18:03:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:03:52]wFMCommunicate OK [18:03:52]SAM_PROTO_GetShiftState done [18:03:52]FM_GetShiftState done [18:03:52]req_shift_opened done [18:03:52]requested_item shift.open_date is exist - process it [18:03:52]req_shift_open_date [18:03:52]req_shift_open_date done [18:03:52]produce_requested_data done [18:03:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30996,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:03:52]process_action_free close_receipt [18:03:52]json_value_free [18:03:52]json_value_free done [18:03:52]process_json_proto returns [18:03:52]Send response to host [18:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30996,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:03:52]free response buf [18:03:52]execute_script done [18:03:52]execute_script returns [18:03:52]free content buf [18:03:52]Sock 7.Close socket [18:03:52]Sock 7.Thread stoped [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:17]accept exits with 9 [18:06:17]New connection [18:06:17]New thread 3067043172 created [18:06:17]Thread 3066899812 joined [18:06:17]Waiting for new connection... [18:06:17] Sock 9.Parse request [18:06:17]Sock 9.Check first char [18:06:17]Sock 9.First char is OK [18:06:17]request: POST /json_proto HTTP/1.0 [18:06:17]Method: POST [18:06:17]URL: /json_proto [18:06:17]Method is POST - this is cgi request [18:06:17]url: /json_proto [18:06:17]query_string will be loaded in cgi processing [18:06:17]execute_cgi json_proto POST (null) [18:06:17]execute_cgi path=json_proto method=POST [18:06:17]POST find Content-Length [18:06:17]Host: 172.17.51.3:8080 [18:06:17]Content-Length: 678 [18:06:17]Content-Type: application/json [18:06:17] [18:06:17]POST finish read [18:06:17]Found Content-Length = 678 [18:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:17]execute_script... [18:06: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)343423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:17]POST & json_proto [18:06:17]process_json_proto [18:06:17]json parsed OK: [18:06:17]protocol is kg_v1.0 [18:06:17]action value=close_receipt [18:06:17]process_action close_receipt [18:06:17]cmd_close_receipt [18:06:17]MH_GetDate [18:06:17]Write to MH i2c: F0 00 00 08 1B 12 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: F0 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: F0 09 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: F0 09 00 08 1B 00 9A E9 17 67 04 C1 95 66 DC [18:06:17]GetLastDocTimeStamp 1729620230 [18:06:17]current date 1729620378 [18:06:17]FM_GetShiftState [18:06:17]SAM_PROTO_GetShiftState [18:06:17]wFMCommunicate request_size=4 [18:06:17]MH_SAM_APDU [18:06:17]CAPDU: 80 13 01 00 [18:06:17]Write to MH i2c: E2 08 00 09 1B 80 13 01 00 00 00 00 00 A1 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:17]Read from MH i2c: E2 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 0E 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 0E 00 09 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7B [18:06:17]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:06:17]wFMCommunicate OK [18:06:17]SAM_PROTO_GetShiftState done [18:06:17]FM_GetShiftState done [18:06:17]opened in 1729557342 [18:06:17]opened+sec_in_day 1729643742 [18:06:17]quantity*price = 70044 [18:06:17]sum+1 = 70045 [18:06:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 230 22.10.2024 18:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30997 ФПД: 44027806992019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30997&fm=44027806992019&tin=02508201610067®Number=0000000000186857&sum=70000 [18:06:18]StoreToDocumentArchive [18:06:18]shift 116 fd 30997 [18:06:18]save to /storage/0116/doc_00030997 [18:06:18]save last doc name /storage/0116/doc_00030997 to /storage/kkm_last_doc_name [18:06:18]save OK [18:06:18]Clear old archive folders... [18:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:18]tlvbuf is 00CDACC0 [18:06:18]SAM_PROTO_ClearQueue [18:06:18]wFMCommunicate request_size=4 [18:06:18]MH_SAM_APDU [18:06:18]CAPDU: 80 09 00 00 [18:06:18]Write to MH i2c: E2 08 00 16 1B 80 09 00 00 00 00 00 00 A3 [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 16 1B 00 90 00 A5 [18:06:18]RAPDU: 90 00 [18:06:18]wFMCommunicate OK [18:06:18]SAM_PROTO_ClearQueue done [18:06:18]KKMCreateOFDPacket [18:06:18]OFDProtocolAddRootSTLVToBuf [18:06:18]FM_MakeSignedData [18:06:18]FM_MakeSignedData [18:06:18]SAM_PROTO_SignData [18:06:18]wFMCommunicate request_size=4 [18:06:18]MH_SAM_APDU [18:06:18]CAPDU: 80 0D 01 02 [18:06:18]Write to MH i2c: E2 08 00 17 1B 80 0D 01 02 00 00 00 00 AB [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 17 1B 00 90 00 A6 [18:06:18]RAPDU: 90 00 [18:06:18]wFMCommunicate OK [18:06:18]wFMCommunicate request_size=255 [18:06:18]MH_SAM_APDU [18:06: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9B E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 79 00 00 35 04 06 00 28 [18:06:18]Write to MH i2c: E2 02 01 18 1B 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9B E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 79 00 00 35 04 06 00 28 00 00 5E [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 18 1B 00 90 00 A7 [18:06:18]RAPDU: 90 00 [18:06:18]wFMCommunicate OK [18:06:18]wFMCommunicate request_size=10 [18:06:18]MH_SAM_APDU [18:06:18]CAPDU: 80 0D 02 02 05 0B 05 CB C6 93 [18:06:18]Write to MH i2c: E2 0D 00 19 1B 80 0D 02 02 05 00 0B 05 CB C6 93 00 00 EC [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 03 00 19 1B 00 90 00 A8 [18:06:18]RAPDU: 90 00 [18:06:18]wFMCommunicate OK [18:06:18]wFMCommunicate request_size=4 [18:06:18]MH_SAM_APDU [18:06:18]CAPDU: 80 0D 03 02 [18:06:18]Write to MH i2c: E2 08 00 1A 1B 80 0D 03 02 00 00 00 00 B0 [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 0B 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 0B 00 1A 1B 00 52 6A 28 27 E5 43 A9 C2 90 00 4F [18:06:18]RAPDU: 52 6A 28 27 E5 43 A9 C2 90 00 [18:06:18]wFMCommunicate OK [18:06:18]SAM_PROTO_SignData done [18:06:18]FM_MakeSignedData done [18:06:18]CreateOFDProtocolMessage [18:06:18]wFMCommunicate request_size=4 [18:06:18]MH_SAM_APDU [18:06:18]CAPDU: 80 11 00 00 [18:06:18]Write to MH i2c: E2 08 00 1B 1B 80 11 00 00 00 00 00 00 B0 [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:18]Read from MH i2c: E2 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 17 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: E2 17 00 1B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [18:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:06:18]wFMCommunicate OK [18:06:18]CreateOFDProtocolMessage done [18:06:18]OFDSenderStorePacket 30997 [18:06:18]StoreOFDPacket docnum=30997 [18:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 3F 07 01 2B F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9B E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 79 00 00 35 04 06 00 28 0B 05 CB C6 93 52 6A 28 27 E5 43 A9 C2 [18:06:18]CheckFolder [18:06:18]dirname=/storage/ofd_packets [18:06:18]CheckFolder done [18:06:18]ProducePacketName [18:06:18]name=ofd_packets/00030997 [18:06:18]NVStorageSaveData ofd_packets/00030997 [18:06:18]File name is /storage/ofd_packets/00030997 [18:06:18]Write 301 bytes [18:06:18]NVStorageSaveData done [18:06:18]OFDSenderStorePacket done [18:06:18]KKMCreateOFDPacket done [18:06:18]NVStorageSaveData kkm_last_timestamp [18:06:18]File name is /storage/kkm_last_timestamp [18:06:18]Write 4 bytes [18:06:18]NVStorageSaveData done [18:06:18]ExternCall_PrintAddStr [18:06:18]wPrintStart [18:06:18]Write to MH i2c: 01 00 00 1C 1B 37 [18:06:18]Write i2c OK [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: 01 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: 01 07 00 [18:06:18]MH_I2C_Read... [18:06:18]Read from MH i2c: 01 07 00 1C 1B 00 00 00 00 00 FF 0F 4C [18:06:18]RasterBufferAndPrint [18:06:18]line Счет N : (1)343423 [18:06:18]line ИНН: 02508201610067 [18:06:18]line Контрольно-Кассовый Чек [18:06:18]line ПРОДАЖА [18:06:18]line ТРК (МРК, ГНК) : 53 [18:06:18]line Товар: 2710124130 [18:06:18]line Аи-92-К-2 [18:06:18]line 10.470 * 66.90 [18:06:18]line = 700.44 [18:06:18]line НДС 12% НСП 1% [18:06:18]line > о реализуемом товаре [18:06:18]line ОКРУГЛЕНИЕ: -0.44 [18:06:18]line ИТОГО: 700.00 [18:06:18]line Внесено: 700.00 [18:06:18]line СДАЧА: 0.00 [18:06:18]line НСП 1% : 6.20 [18:06:18]line НДС 12% : 74.38 [18:06:18]line Наличными: 700.00 [18:06:18]line Безнал.: 0.00 [18:06:18]line Место: АЗС № 78 "Партнер Нефть" [18:06:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:06:18]line СНО: Общий режим [18:06:18]line Чек 230 22.10.2024 18:06 [18:06:18]line Смена: 116 ФФД: 1.0 [18:06:18]line ЗНМ: 0300000137 [18:06:18]line РНМ: 0000000000186857 [18:06:18]line Версия ККМ: v1.0 [18:06:18]line ФМ: 0000000002094219 [18:06:18]line ФД: 30997 [18:06:18]line ФПД: 44027806992019 [18:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30997&fm=44027806992019&tin=02508201610067®Number=0000000000186857&sum=70000 [18:06:19]OFD Sender: Processing packet 30997 [packets to send 11, broken 10] [18:06:19]ProducePacketName [18:06:19]name=ofd_packets/00030997 [18:06:19]OFD Sender: To server: pG, [18:06:19]CommunicateWithHost lk.salyk.kg:30040 [18:06:19]ConnectInit lk.salyk.kg [18:06:19]written 0, free lines is 4095 [18:06:19]Connected sock=10 [18:06:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 3F 07 01 2B F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9B E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 79 00 00 35 04 06 00 28 0B 05 CB C6 93 52 6A 28 27 E5 43 A9 C2 [18:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 92 47 00 3B 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 79 00 00 F4 03 04 00 17 94 17 67 B6 04 01 00 00 DC AA 46 DB F0 62 3C F2 [18:06:19]CommunicateWithHost err = 0 [18:06:19]CheckOFDResponse [18:06:19]1017 (14) - 77093643461234 [18:06:19]1041 (16) - 0000000002094219 [18:06:19]1040 (4) - 30997 [18:06:19]1012 (4) - 22.10.2024 12:01 [18:06:19]1206 (1) - 0 [18:06:19]OFD Sender: Remove packet 30997 [18:06:19]ProducePacketName [18:06:19]name=ofd_packets/00030997 [18:06:19]NVStorageDeleteData [18:06:19]Write to MH i2c: 01 00 00 47 1B 62 [18:06:19]Write i2c OK [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: 01 [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: 01 07 00 [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: 01 07 00 47 1B 00 00 00 00 00 F5 0C 6A [18:06:19]RasterBufferAndPrint [18:06:19]line [18:06:19]line [18:06:19]line [18:06:19]line [18:06:19]line [18:06:19]written 0, free lines is 3327 [18:06:19]MH_Cut [18:06:19]Write to MH i2c: D1 01 00 4E 1B 01 3B [18:06:19]Write i2c OK [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: D1 [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: D1 01 00 [18:06:19]MH_I2C_Read... [18:06:19]Read from MH i2c: D1 01 00 4E 1B 00 3A [18:06:19]Write to MH i2c: 01 00 00 4F 1B 6A [18:06:19]Write i2c OK [18:06:19]MH_I2C_Read... [18:06:20]OFD Sender: No OFD packet to send [18:06:20]*** Cut start [18:06:20]*** Partial cut [18:06:20]*** CUTSNS_PIN = 1 [18:06:20]*** CUTSNS_PIN = 0 [18:06:20]*** Brake cut motor [18:06:20]Read from MH i2c: 01 [18:06:20]MH_I2C_Read... [18:06:20]*** Stop cut motor [18:06:20]*** Cut end [18:06:20]Read from MH i2c: 01 07 00 [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [18:06:20]process_action close_receipt done [18:06:20]requested_data is exist [18:06:20]produce_requested_data [18:06:20]requested_item fm.sn is exist - process it [18:06:20]wFMCommunicate request_size=4 [18:06:20]MH_SAM_APDU [18:06:20]CAPDU: 80 11 00 00 [18:06:20]Write to MH i2c: E2 08 00 50 1B 80 11 00 00 00 00 00 00 E5 [18:06:20]Write i2c OK [18:06:20]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 17 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 17 00 50 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [18:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:06:21]wFMCommunicate OK [18:06:21]requested_item fd.num is exist - process it [18:06:21]SAM_PROTO_GetFieldsCounters [18:06:21]wFMCommunicate request_size=4 [18:06:21]MH_SAM_APDU [18:06:21]CAPDU: 80 13 00 00 [18:06:21]Write to MH i2c: E2 08 00 51 1B 80 13 00 00 00 00 00 00 E8 [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 62 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 62 00 51 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:06:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:21]wFMCommunicate OK [18:06:21]SAM_PROTO_GetFieldsCounters done [18:06:21]requested_item shift.num is exist - process it [18:06:21]requested_item shift.opened is exist - process it [18:06:21]req_shift_opened [18:06:21]FM_GetShiftState [18:06:21]SAM_PROTO_GetShiftState [18:06:21]wFMCommunicate request_size=4 [18:06:21]MH_SAM_APDU [18:06:21]CAPDU: 80 13 01 00 [18:06:21]Write to MH i2c: E2 08 00 52 1B 80 13 01 00 00 00 00 00 EA [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 0E 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 0E 00 52 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C4 [18:06:21]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:06:21]wFMCommunicate OK [18:06:21]SAM_PROTO_GetShiftState done [18:06:21]FM_GetShiftState done [18:06:21]req_shift_opened done [18:06:21]requested_item shift.open_date is exist - process it [18:06:21]req_shift_open_date [18:06:21]req_shift_open_date done [18:06:21]produce_requested_data done [18:06:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30997,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:06:21]process_action_free close_receipt [18:06:21]json_value_free [18:06:21]json_value_free done [18:06:21]process_json_proto returns [18:06:21]Send response to host [18:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30997,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:06:21]free response buf [18:06:21]execute_script done [18:06:21]execute_script returns [18:06:21]free content buf [18:06:21]Sock 9.Close socket [18:06:21]Sock 9.Thread stoped [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:12]accept exits with 7 [18:07:12]New connection [18:07:12]New thread 3066899812 created [18:07:12]Thread 3067043172 joined [18:07:12]Waiting for new connection... [18:07:12] Sock 7.Parse request [18:07:12]Sock 7.Check first char [18:07:12]Sock 7.First char is OK [18:07:12]request: POST /json_proto HTTP/1.0 [18:07:12]Method: POST [18:07:12]URL: /json_proto [18:07:12]Method is POST - this is cgi request [18:07:12]url: /json_proto [18:07:12]query_string will be loaded in cgi processing [18:07:12]execute_cgi json_proto POST (null) [18:07:12]execute_cgi path=json_proto method=POST [18:07:12]POST find Content-Length [18:07:12]Host: 172.17.51.3:8080 [18:07:12]Content-Length: 677 [18:07:12]Content-Type: application/json [18:07:12] [18:07:12]POST finish read [18:07:12]Found Content-Length = 677 [18:07:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:12]execute_script... [18:07: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)343425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:12]POST & json_proto [18:07:12]process_json_proto [18:07:12]json parsed OK: [18:07:12]protocol is kg_v1.0 [18:07:12]action value=close_receipt [18:07:12]process_action close_receipt [18:07:12]cmd_close_receipt [18:07:12]MH_GetDate [18:07:12]Write to MH i2c: F0 00 00 53 1B 5D [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: F0 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: F0 09 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: F0 09 00 53 1B 00 D2 E9 17 67 04 C1 95 66 5F [18:07:12]GetLastDocTimeStamp 1729620379 [18:07:12]current date 1729620434 [18:07:12]FM_GetShiftState [18:07:12]SAM_PROTO_GetShiftState [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 13 01 00 [18:07:12]Write to MH i2c: E2 08 00 54 1B 80 13 01 00 00 00 00 00 EC [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0E 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0E 00 54 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C6 [18:07:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:07:12]wFMCommunicate OK [18:07:12]SAM_PROTO_GetShiftState done [18:07:12]FM_GetShiftState done [18:07:12]opened in 1729557342 [18:07:12]opened+sec_in_day 1729643742 [18:07:12]quantity*price = 50010 [18:07:12]sum+1 = 50012 [18:07:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 231 22.10.2024 18:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30998 ФПД: 239786739381026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30998&fm=239786739381026&tin=02508201610067®Number=0000000000186857&sum=50000 [18:07:14]StoreToDocumentArchive [18:07:14]shift 116 fd 30998 [18:07:14]save to /storage/0116/doc_00030998 [18:07:14]save last doc name /storage/0116/doc_00030998 to /storage/kkm_last_doc_name [18:07:14]save OK [18:07:14]Clear old archive folders... [18:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:14]tlvbuf is B6F6B9E0 [18:07:14]SAM_PROTO_ClearQueue [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 09 00 00 [18:07:14]Write to MH i2c: E2 08 00 61 1B 80 09 00 00 00 00 00 00 EE [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 61 1B 00 90 00 F0 [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_ClearQueue done [18:07:14]KKMCreateOFDPacket [18:07:14]OFDProtocolAddRootSTLVToBuf [18:07:14]FM_MakeSignedData [18:07:14]FM_MakeSignedData [18:07:14]SAM_PROTO_SignData [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 01 02 [18:07:14]Write to MH i2c: E2 08 00 62 1B 80 0D 01 02 00 00 00 00 F6 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 62 1B 00 90 00 F1 [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]wFMCommunicate request_size=255 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D2 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 79 00 00 35 04 06 00 DA [18:07:14]Write to MH i2c: E2 02 01 63 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D2 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 79 00 00 35 04 06 00 DA 00 00 5D [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 63 1B 00 90 00 F2 [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]wFMCommunicate request_size=10 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 02 02 05 15 B3 6C 33 22 [18:07:14]Write to MH i2c: E2 0D 00 64 1B 80 0D 02 02 05 00 15 B3 6C 33 22 00 00 8C [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 64 1B 00 90 00 F3 [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 03 02 [18:07:14]Write to MH i2c: E2 08 00 65 1B 80 0D 03 02 00 00 00 00 FB [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0B 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0B 00 65 1B 00 F3 8B 5A D8 F9 EE 6A 2C 90 00 29 [18:07:14]RAPDU: F3 8B 5A D8 F9 EE 6A 2C 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_SignData done [18:07:14]FM_MakeSignedData done [18:07:14]CreateOFDProtocolMessage [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 11 00 00 [18:07:14]Write to MH i2c: E2 08 00 66 1B 80 11 00 00 00 00 00 00 FB [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 66 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [18:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:07:14]wFMCommunicate OK [18:07:14]CreateOFDProtocolMessage done [18:07:14]OFDSenderStorePacket 30998 [18:07:14]StoreOFDPacket docnum=30998 [18:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 96 18 07 01 46 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D2 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 79 00 00 35 04 06 00 DA 15 B3 6C 33 22 F3 8B 5A D8 F9 EE 6A 2C [18:07:14]CheckFolder [18:07:14]dirname=/storage/ofd_packets [18:07:14]CheckFolder done [18:07:14]ProducePacketName [18:07:14]name=ofd_packets/00030998 [18:07:14]NVStorageSaveData ofd_packets/00030998 [18:07:14]File name is /storage/ofd_packets/00030998 [18:07:14]Write 301 bytes [18:07:14]NVStorageSaveData done [18:07:14]OFDSenderStorePacket done [18:07:14]KKMCreateOFDPacket done [18:07:14]NVStorageSaveData kkm_last_timestamp [18:07:14]File name is /storage/kkm_last_timestamp [18:07:14]Write 4 bytes [18:07:14]NVStorageSaveData done [18:07:14]ExternCall_PrintAddStr [18:07:14]wPrintStart [18:07:14]Write to MH i2c: 01 00 00 67 1B 82 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: 01 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: 01 07 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [18:07:14]RasterBufferAndPrint [18:07:14]line Счет N : (1)343425 [18:07:14]line ИНН: 02508201610067 [18:07:14]line Контрольно-Кассовый Чек [18:07:14]line ПРОДАЖА [18:07:14]line ТРК (МРК, ГНК) : 42 [18:07:14]line Товар: 2710124500 [18:07:14]line Аи-95-К-3 [18:07:14]line 6.740 * 74.20 [18:07:14]line = 500.11 [18:07:14]line НДС 12% НСП 1% [18:07:14]line > о реализуемом товаре [18:07:14]line ОКРУГЛЕНИЕ: -0.11 [18:07:14]line ИТОГО: 500.00 [18:07:14]line Внесено: 500.00 [18:07:14]line СДАЧА: 0.00 [18:07:14]line НСП 1% : 4.43 [18:07:14]line НДС 12% : 53.11 [18:07:14]line Наличными: 500.00 [18:07:14]line Безнал.: 0.00 [18:07:14]line Место: АЗС № 78 "Партнер Нефть" [18:07:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:07:14]line СНО: Общий режим [18:07:14]line Чек 231 22.10.2024 18:07 [18:07:14]line Смена: 116 ФФД: 1.0 [18:07:14]line ЗНМ: 0300000137 [18:07:14]line РНМ: 0000000000186857 [18:07:14]line Версия ККМ: v1.0 [18:07:14]line ФМ: 0000000002094219 [18:07:14]line ФД: 30998 [18:07:14]line ФПД: 239786739381026 [18:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30998&fm=239786739381026&tin=02508201610067®Number=0000000000186857&sum=50000 [18:07:14]OFD Sender: Processing packet 30998 [packets to send 11, broken 10] [18:07:14]ProducePacketName [18:07:14]name=ofd_packets/00030998 [18:07:14]OFD Sender: To server: pG, [18:07:14]CommunicateWithHost lk.salyk.kg:30040 [18:07:14]ConnectInit lk.salyk.kg [18:07:14]written 0, free lines is 4095 [18:07:14]Connected sock=10 [18:07:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 96 18 07 01 46 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D2 E9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 79 00 00 35 04 06 00 DA 15 B3 6C 33 22 F3 8B 5A D8 F9 EE 6A 2C [18:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 A5 47 00 69 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 79 00 00 F4 03 04 00 4F 94 17 67 B6 04 01 00 00 63 42 42 F9 1A C7 C5 50 [18:07:15]CommunicateWithHost err = 0 [18:07:15]CheckOFDResponse [18:07:15]1017 (14) - 77093643461234 [18:07:15]1041 (16) - 0000000002094219 [18:07:15]1040 (4) - 30998 [18:07:15]1012 (4) - 22.10.2024 12:02 [18:07:15]1206 (1) - 0 [18:07:15]OFD Sender: Remove packet 30998 [18:07:15]ProducePacketName [18:07:15]name=ofd_packets/00030998 [18:07:15]NVStorageDeleteData [18:07:15]Write to MH i2c: 01 00 00 92 1B AD [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 07 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 F1 0C B1 [18:07:15]RasterBufferAndPrint [18:07:15]line [18:07:15]line [18:07:15]line [18:07:15]line [18:07:15]line [18:07:15]written 0, free lines is 3319 [18:07:15]MH_Cut [18:07:15]Write to MH i2c: D1 01 00 99 1B 01 86 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: D1 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: D1 01 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: D1 01 00 99 1B 00 85 [18:07:15]Write to MH i2c: 01 00 00 9A 1B B5 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]OFD Sender: No OFD packet to send [18:07:16]*** Cut start [18:07:16]*** Partial cut [18:07:16]*** CUTSNS_PIN = 1 [18:07:16]*** CUTSNS_PIN = 0 [18:07:16]*** Brake cut motor [18:07:16]Read from MH i2c: 01 [18:07:16]MH_I2C_Read... [18:07:16]*** Stop cut motor [18:07:16]*** Cut end [18:07:16]Read from MH i2c: 01 07 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 9A 1B 00 00 00 00 00 FF 0F CA [18:07:16]process_action close_receipt done [18:07:16]requested_data is exist [18:07:16]produce_requested_data [18:07:16]requested_item fm.sn is exist - process it [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 11 00 00 [18:07:16]Write to MH i2c: E2 08 00 9B 1B 80 11 00 00 00 00 00 00 30 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 9B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [18:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:07:16]wFMCommunicate OK [18:07:16]requested_item fd.num is exist - process it [18:07:16]SAM_PROTO_GetFieldsCounters [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 13 00 00 [18:07:16]Write to MH i2c: E2 08 00 9C 1B 80 13 00 00 00 00 00 00 33 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 62 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 62 00 9C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:07:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_GetFieldsCounters done [18:07:16]requested_item shift.num is exist - process it [18:07:16]requested_item shift.opened is exist - process it [18:07:16]req_shift_opened [18:07:16]FM_GetShiftState [18:07:16]SAM_PROTO_GetShiftState [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 13 01 00 [18:07:16]Write to MH i2c: E2 08 00 9D 1B 80 13 01 00 00 00 00 00 35 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 9D 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0F [18:07:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_GetShiftState done [18:07:16]FM_GetShiftState done [18:07:16]req_shift_opened done [18:07:16]requested_item shift.open_date is exist - process it [18:07:16]req_shift_open_date [18:07:16]req_shift_open_date done [18:07:16]produce_requested_data done [18:07:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30998,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:07:16]process_action_free close_receipt [18:07:16]json_value_free [18:07:16]json_value_free done [18:07:16]process_json_proto returns [18:07:16]Send response to host [18:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30998,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:07:16]free response buf [18:07:16]execute_script done [18:07:16]execute_script returns [18:07:16]free content buf [18:07:16]Sock 7.Close socket [18:07:16]Sock 7.Thread stoped [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:36]accept exits with 9 [18:08:36]New connection [18:08:36]New thread 3067043172 created [18:08:36]Thread 3066899812 joined [18:08:36]Waiting for new connection... [18:08:36] Sock 9.Parse request [18:08:36]Sock 9.Check first char [18:08:36]Sock 9.First char is OK [18:08:36]request: POST /json_proto HTTP/1.0 [18:08:36]Method: POST [18:08:36]URL: /json_proto [18:08:36]Method is POST - this is cgi request [18:08:36]url: /json_proto [18:08:36]query_string will be loaded in cgi processing [18:08:36]execute_cgi json_proto POST (null) [18:08:36]execute_cgi path=json_proto method=POST [18:08:36]POST find Content-Length [18:08:36]Host: 172.17.51.3:8080 [18:08:36]Content-Length: 677 [18:08:36]Content-Type: application/json [18:08:36] [18:08:36]POST finish read [18:08:36]Found Content-Length = 677 [18:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:36]execute_script... [18: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)343424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:36]POST & json_proto [18:08:36]process_json_proto [18:08:36]json parsed OK: [18:08:36]protocol is kg_v1.0 [18:08:36]action value=close_receipt [18:08:36]process_action close_receipt [18:08:36]cmd_close_receipt [18:08:36]MH_GetDate [18:08:36]Write to MH i2c: F0 00 00 9E 1B A8 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: F0 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: F0 09 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: F0 09 00 9E 1B 00 26 EA 17 67 04 C1 95 66 FF [18:08:36]GetLastDocTimeStamp 1729620434 [18:08:36]current date 1729620518 [18:08:36]FM_GetShiftState [18:08:36]SAM_PROTO_GetShiftState [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 13 01 00 [18:08:36]Write to MH i2c: E2 08 00 9F 1B 80 13 01 00 00 00 00 00 37 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 0E 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 0E 00 9F 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 11 [18:08:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:08:36]wFMCommunicate OK [18:08:36]SAM_PROTO_GetShiftState done [18:08:36]FM_GetShiftState done [18:08:36]opened in 1729557342 [18:08:36]opened+sec_in_day 1729643742 [18:08:36]quantity*price = 50041 [18:08:36]sum+1 = 50042 [18:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 232 22.10.2024 18:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30999 ФПД: 276758838942758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30999&fm=276758838942758&tin=02508201610067®Number=0000000000186857&sum=50000 [18:08:38]StoreToDocumentArchive [18:08:38]shift 116 fd 30999 [18:08:38]save to /storage/0116/doc_00030999 [18:08:38]save last doc name /storage/0116/doc_00030999 to /storage/kkm_last_doc_name [18:08:38]save OK [18:08:38]Clear old archive folders... [18:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:38]tlvbuf is 00D50B20 [18:08:38]SAM_PROTO_ClearQueue [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 09 00 00 [18:08:38]Write to MH i2c: E2 08 00 AC 1B 80 09 00 00 00 00 00 00 39 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 AC 1B 00 90 00 3B [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_ClearQueue done [18:08:38]KKMCreateOFDPacket [18:08:38]OFDProtocolAddRootSTLVToBuf [18:08:38]FM_MakeSignedData [18:08:38]FM_MakeSignedData [18:08:38]SAM_PROTO_SignData [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 01 02 [18:08:38]Write to MH i2c: E2 08 00 AD 1B 80 0D 01 02 00 00 00 00 41 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 AD 1B 00 90 00 3C [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=255 [18:08:38]MH_SAM_APDU [18: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 26 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 79 00 00 35 04 06 00 FB [18:08:38]Write to MH i2c: E2 02 01 AE 1B 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 26 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 79 00 00 35 04 06 00 FB 00 00 47 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 AE 1B 00 90 00 3D [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=10 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 02 02 05 B5 F0 48 9C 26 [18:08:38]Write to MH i2c: E2 0D 00 AF 1B 80 0D 02 02 05 00 B5 F0 48 9C 26 00 00 FD [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 AF 1B 00 90 00 3E [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 03 02 [18:08:38]Write to MH i2c: E2 08 00 B0 1B 80 0D 03 02 00 00 00 00 46 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0B 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0B 00 B0 1B 00 F0 D0 5D 5A 04 11 01 8D 90 00 61 [18:08:38]RAPDU: F0 D0 5D 5A 04 11 01 8D 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_SignData done [18:08:38]FM_MakeSignedData done [18:08:38]CreateOFDProtocolMessage [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 11 00 00 [18:08:38]Write to MH i2c: E2 08 00 B1 1B 80 11 00 00 00 00 00 00 46 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 B1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [18:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:08:38]wFMCommunicate OK [18:08:38]CreateOFDProtocolMessage done [18:08:38]OFDSenderStorePacket 30999 [18:08:38]StoreOFDPacket docnum=30999 [18:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 23 07 01 C6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 26 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 79 00 00 35 04 06 00 FB B5 F0 48 9C 26 F0 D0 5D 5A 04 11 01 8D [18:08:38]CheckFolder [18:08:38]dirname=/storage/ofd_packets [18:08:38]CheckFolder done [18:08:38]ProducePacketName [18:08:38]name=ofd_packets/00030999 [18:08:38]NVStorageSaveData ofd_packets/00030999 [18:08:38]File name is /storage/ofd_packets/00030999 [18:08:38]Write 301 bytes [18:08:38]NVStorageSaveData done [18:08:38]OFDSenderStorePacket done [18:08:38]KKMCreateOFDPacket done [18:08:38]NVStorageSaveData kkm_last_timestamp [18:08:38]File name is /storage/kkm_last_timestamp [18:08:38]Write 4 bytes [18:08:38]NVStorageSaveData done [18:08:38]ExternCall_PrintAddStr [18:08:38]wPrintStart [18:08:38]Write to MH i2c: 01 00 00 B2 1B CD [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 07 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 FF 0F E2 [18:08:38]RasterBufferAndPrint [18:08:38]line Счет N : (1)343424 [18:08:38]line ИНН: 02508201610067 [18:08:38]line Контрольно-Кассовый Чек [18:08:38]line ПРОДАЖА [18:08:38]line ТРК (МРК, ГНК) : 63 [18:08:38]line Товар: 2710124130 [18:08:38]line Аи-92-К-2 [18:08:38]line 7.480 * 66.90 [18:08:38]line = 500.41 [18:08:38]line НДС 12% НСП 1% [18:08:38]line > о реализуемом товаре [18:08:38]line ОКРУГЛЕНИЕ: -0.41 [18:08:38]line ИТОГО: 500.00 [18:08:38]line Внесено: 500.00 [18:08:38]line СДАЧА: 0.00 [18:08:38]line НСП 1% : 4.43 [18:08:38]line НДС 12% : 53.14 [18:08:38]line Наличными: 500.00 [18:08:38]line Безнал.: 0.00 [18:08:38]line Место: АЗС № 78 "Партнер Нефть" [18:08:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:08:38]line СНО: Общий режим [18:08:38]line Чек 232 22.10.2024 18:08 [18:08:38]line Смена: 116 ФФД: 1.0 [18:08:38]line ЗНМ: 0300000137 [18:08:38]line РНМ: 0000000000186857 [18:08:38]line Версия ККМ: v1.0 [18:08:38]line ФМ: 0000000002094219 [18:08:38]line ФД: 30999 [18:08:38]line ФПД: 276758838942758 [18:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30999&fm=276758838942758&tin=02508201610067®Number=0000000000186857&sum=50000 [18:08:38]OFD Sender: Processing packet 30999 [packets to send 11, broken 10] [18:08:38]ProducePacketName [18:08:38]name=ofd_packets/00030999 [18:08:38]OFD Sender: To server: pG, [18:08:38]CommunicateWithHost lk.salyk.kg:30040 [18:08:38]ConnectInit lk.salyk.kg [18:08:38]written 0, free lines is 4095 [18:08:38]Connected sock=10 [18:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 23 07 01 C6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 26 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 79 00 00 35 04 06 00 FB B5 F0 48 9C 26 F0 D0 5D 5A 04 11 01 8D [18:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7E 3C 47 00 BC 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 79 00 00 F4 03 04 00 A3 94 17 67 B6 04 01 00 00 9D 7E A7 F1 2E BC 57 8C [18:08:39]CommunicateWithHost err = 0 [18:08:39]CheckOFDResponse [18:08:39]1017 (14) - 77093643461234 [18:08:39]1041 (16) - 0000000002094219 [18:08:39]1040 (4) - 30999 [18:08:39]1012 (4) - 22.10.2024 12:03 [18:08:39]1206 (1) - 0 [18:08:39]OFD Sender: Remove packet 30999 [18:08:39]ProducePacketName [18:08:39]name=ofd_packets/00030999 [18:08:39]NVStorageDeleteData [18:08:39]Write to MH i2c: 01 00 00 DD 1B F8 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 DD 1B 00 00 00 00 00 F5 0C 00 [18:08:39]RasterBufferAndPrint [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]written 0, free lines is 3323 [18:08:39]MH_Cut [18:08:39]Write to MH i2c: D1 01 00 E4 1B 01 D1 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 01 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 01 00 E4 1B 00 D0 [18:08:39]Write to MH i2c: 01 00 00 E5 1B 00 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]OFD Sender: No OFD packet to send [18:08:40]*** Cut start [18:08:40]*** Partial cut [18:08:40]*** CUTSNS_PIN = 1 [18:08:40]*** CUTSNS_PIN = 0 [18:08:40]*** Brake cut motor [18:08:40]Read from MH i2c: 01 [18:08:40]MH_I2C_Read... [18:08:40]*** Stop cut motor [18:08:40]*** Cut end [18:08:40]Read from MH i2c: 01 07 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: 01 07 00 E5 1B 00 00 00 00 00 FF 0F 15 [18:08:40]process_action close_receipt done [18:08:40]requested_data is exist [18:08:40]produce_requested_data [18:08:40]requested_item fm.sn is exist - process it [18:08:40]wFMCommunicate request_size=4 [18:08:40]MH_SAM_APDU [18:08:40]CAPDU: 80 11 00 00 [18:08:40]Write to MH i2c: E2 08 00 E6 1B 80 11 00 00 00 00 00 00 7B [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:40]Read from MH i2c: E2 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 17 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 17 00 E6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [18:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:08:40]wFMCommunicate OK [18:08:40]requested_item fd.num is exist - process it [18:08:40]SAM_PROTO_GetFieldsCounters [18:08:40]wFMCommunicate request_size=4 [18:08:40]MH_SAM_APDU [18:08:40]CAPDU: 80 13 00 00 [18:08:40]Write to MH i2c: E2 08 00 E7 1B 80 13 00 00 00 00 00 00 7E [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:40]Read from MH i2c: E2 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 62 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 62 00 E7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [18:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:40]wFMCommunicate OK [18:08:40]SAM_PROTO_GetFieldsCounters done [18:08:40]requested_item shift.num is exist - process it [18:08:40]requested_item shift.opened is exist - process it [18:08:40]req_shift_opened [18:08:40]FM_GetShiftState [18:08:40]SAM_PROTO_GetShiftState [18:08:40]wFMCommunicate request_size=4 [18:08:40]MH_SAM_APDU [18:08:40]CAPDU: 80 13 01 00 [18:08:40]Write to MH i2c: E2 08 00 E8 1B 80 13 01 00 00 00 00 00 80 [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:40]Read from MH i2c: E2 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 0E 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 0E 00 E8 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5A [18:08:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:08:40]wFMCommunicate OK [18:08:40]SAM_PROTO_GetShiftState done [18:08:40]FM_GetShiftState done [18:08:40]req_shift_opened done [18:08:40]requested_item shift.open_date is exist - process it [18:08:40]req_shift_open_date [18:08:40]req_shift_open_date done [18:08:40]produce_requested_data done [18:08:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30999,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:08:40]process_action_free close_receipt [18:08:40]json_value_free [18:08:40]json_value_free done [18:08:40]process_json_proto returns [18:08:40]Send response to host [18:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30999,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:08:40]free response buf [18:08:40]execute_script done [18:08:40]execute_script returns [18:08:40]free content buf [18:08:40]Sock 9.Close socket [18:08:40]Sock 9.Thread stoped [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:09]accept exits with 7 [18:09:09]New connection [18:09:09]New thread 3066899812 created [18:09:09]Thread 3067043172 joined [18:09:09]Waiting for new connection... [18:09:09] Sock 7.Parse request [18:09:09]Sock 7.Check first char [18:09:09]Sock 7.First char is OK [18:09:09]request: POST /json_proto HTTP/1.0 [18:09:09]Method: POST [18:09:09]URL: /json_proto [18:09:09]Method is POST - this is cgi request [18:09:09]url: /json_proto [18:09:09]query_string will be loaded in cgi processing [18:09:09]execute_cgi json_proto POST (null) [18:09:09]execute_cgi path=json_proto method=POST [18:09:09]POST find Content-Length [18:09:09]Host: 172.17.51.3:8080 [18:09:09]Content-Length: 677 [18:09:09]Content-Type: application/json [18:09:09] [18:09:09]POST finish read [18:09:09]Found Content-Length = 677 [18:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:09]execute_script... [18:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:09]POST & json_proto [18:09:09]process_json_proto [18:09:09]json parsed OK: [18:09:09]protocol is kg_v1.0 [18:09:09]action value=close_receipt [18:09:09]process_action close_receipt [18:09:09]cmd_close_receipt [18:09:09]MH_GetDate [18:09:09]Write to MH i2c: F0 00 00 E9 1B F3 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: F0 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: F0 09 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: F0 09 00 E9 1B 00 47 EA 17 67 04 C1 95 66 6B [18:09:09]GetLastDocTimeStamp 1729620518 [18:09:09]current date 1729620551 [18:09:09]FM_GetShiftState [18:09:09]SAM_PROTO_GetShiftState [18:09:09]wFMCommunicate request_size=4 [18:09:09]MH_SAM_APDU [18:09:09]CAPDU: 80 13 01 00 [18:09:09]Write to MH i2c: E2 08 00 EA 1B 80 13 01 00 00 00 00 00 82 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:09]Read from MH i2c: E2 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 0E 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 0E 00 EA 1B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5C [18:09:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:09:09]wFMCommunicate OK [18:09:09]SAM_PROTO_GetShiftState done [18:09:09]FM_GetShiftState done [18:09:09]opened in 1729557342 [18:09:09]opened+sec_in_day 1729643742 [18:09:09]quantity*price = 40006 [18:09:09]sum+1 = 40007 [18:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 233 22.10.2024 18:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31000 ФПД: 221144465739447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31000&fm=221144465739447&tin=02508201610067®Number=0000000000186857&sum=40000 [18:09:11]StoreToDocumentArchive [18:09:11]shift 116 fd 31000 [18:09:11]save to /storage/0116/doc_00031000 [18:09:11]save last doc name /storage/0116/doc_00031000 to /storage/kkm_last_doc_name [18:09:11]save OK [18:09:11]Clear old archive folders... [18:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:11]tlvbuf is 00CEAF80 [18:09:11]SAM_PROTO_ClearQueue [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 09 00 00 [18:09:11]Write to MH i2c: E2 08 00 F7 1B 80 09 00 00 00 00 00 00 84 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 F7 1B 00 90 00 86 [18:09:11]RAPDU: 90 00 [18:09:11]wFMCommunicate OK [18:09:11]SAM_PROTO_ClearQueue done [18:09:11]KKMCreateOFDPacket [18:09:11]OFDProtocolAddRootSTLVToBuf [18:09:11]FM_MakeSignedData [18:09:11]FM_MakeSignedData [18:09:11]SAM_PROTO_SignData [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 0D 01 02 [18:09:11]Write to MH i2c: E2 08 00 F8 1B 80 0D 01 02 00 00 00 00 8C [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 F8 1B 00 90 00 87 [18:09:11]RAPDU: 90 00 [18:09:11]wFMCommunicate OK [18:09:11]wFMCommunicate request_size=255 [18:09:11]MH_SAM_APDU [18:09: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 79 00 00 35 04 06 00 C9 [18:09:11]Write to MH i2c: E2 02 01 F9 1B 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 79 00 00 35 04 06 00 C9 00 00 52 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 F9 1B 00 90 00 88 [18:09:11]RAPDU: 90 00 [18:09:11]wFMCommunicate OK [18:09:11]wFMCommunicate request_size=10 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 0D 02 02 05 21 35 53 0E B7 [18:09:11]Write to MH i2c: E2 0D 00 FA 1B 80 0D 02 02 05 00 21 35 53 0E B7 00 00 07 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 03 00 FA 1B 00 90 00 89 [18:09:11]RAPDU: 90 00 [18:09:11]wFMCommunicate OK [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 0D 03 02 [18:09:11]Write to MH i2c: E2 08 00 FB 1B 80 0D 03 02 00 00 00 00 91 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 0B 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 0B 00 FB 1B 00 EA 27 A9 7E 4B D9 25 57 90 00 6A [18:09:11]RAPDU: EA 27 A9 7E 4B D9 25 57 90 00 [18:09:11]wFMCommunicate OK [18:09:11]SAM_PROTO_SignData done [18:09:11]FM_MakeSignedData done [18:09:11]CreateOFDProtocolMessage [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 11 00 00 [18:09:11]Write to MH i2c: E2 08 00 FC 1B 80 11 00 00 00 00 00 00 91 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 17 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 17 00 FC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [18:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:09:11]wFMCommunicate OK [18:09:11]CreateOFDProtocolMessage done [18:09:11]OFDSenderStorePacket 31000 [18:09:11]StoreOFDPacket docnum=31000 [18:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5B 61 07 01 37 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 79 00 00 35 04 06 00 C9 21 35 53 0E B7 EA 27 A9 7E 4B D9 25 57 [18:09:11]CheckFolder [18:09:11]dirname=/storage/ofd_packets [18:09:11]CheckFolder done [18:09:11]ProducePacketName [18:09:11]name=ofd_packets/00031000 [18:09:11]NVStorageSaveData ofd_packets/00031000 [18:09:11]File name is /storage/ofd_packets/00031000 [18:09:11]Write 301 bytes [18:09:11]NVStorageSaveData done [18:09:11]OFDSenderStorePacket done [18:09:11]KKMCreateOFDPacket done [18:09:11]NVStorageSaveData kkm_last_timestamp [18:09:11]File name is /storage/kkm_last_timestamp [18:09:11]Write 4 bytes [18:09:11]NVStorageSaveData done [18:09:11]ExternCall_PrintAddStr [18:09:11]wPrintStart [18:09:11]Write to MH i2c: 01 00 00 FD 1B 18 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: 01 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: 01 07 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: 01 07 00 FD 1B 00 00 00 00 00 FF 0F 2D [18:09:11]RasterBufferAndPrint [18:09:11]line Счет N : (1)343427 [18:09:11]line ИНН: 02508201610067 [18:09:11]line Контрольно-Кассовый Чек [18:09:11]line ПРОДАЖА [18:09:11]line ТРК (МРК, ГНК) : 33 [18:09:11]line Товар: 2710124130 [18:09:11]line Аи-92-К-2 [18:09:11]line 5.980 * 66.90 [18:09:11]line = 400.06 [18:09:11]line НДС 12% НСП 1% [18:09:11]line > о реализуемом товаре [18:09:11]line ОКРУГЛЕНИЕ: -0.06 [18:09:11]line ИТОГО: 400.00 [18:09:11]line Внесено: 400.00 [18:09:11]line СДАЧА: 0.00 [18:09:11]line НСП 1% : 3.54 [18:09:11]line НДС 12% : 42.48 [18:09:11]line Наличными: 400.00 [18:09:11]line Безнал.: 0.00 [18:09:11]line Место: АЗС № 78 "Партнер Нефть" [18:09:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:09:11]line СНО: Общий режим [18:09:11]line Чек 233 22.10.2024 18:09 [18:09:11]line Смена: 116 ФФД: 1.0 [18:09:11]line ЗНМ: 0300000137 [18:09:11]line РНМ: 0000000000186857 [18:09:11]line Версия ККМ: v1.0 [18:09:11]line ФМ: 0000000002094219 [18:09:11]line ФД: 31000 [18:09:11]line ФПД: 221144465739447 [18:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180911&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31000&fm=221144465739447&tin=02508201610067®Number=0000000000186857&sum=40000 [18:09:11]OFD Sender: Processing packet 31000 [packets to send 11, broken 10] [18:09:11]ProducePacketName [18:09:11]name=ofd_packets/00031000 [18:09:11]OFD Sender: To server: pG, [18:09:11]CommunicateWithHost lk.salyk.kg:30040 [18:09:11]ConnectInit lk.salyk.kg [18:09:11]written 0, free lines is 4095 [18:09:12]Connected sock=10 [18:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5B 61 07 01 37 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 EA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 79 00 00 35 04 06 00 C9 21 35 53 0E B7 EA 27 A9 7E 4B D9 25 57 [18:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F1 4F 47 00 CD 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 32 30 39 34 32 31 39 10 04 04 00 18 79 00 00 F4 03 04 00 C4 94 17 67 B6 04 01 00 00 86 56 AF 45 BD F3 E9 50 [18:09:12]CommunicateWithHost err = 0 [18:09:12]CheckOFDResponse [18:09:12]1017 (14) - 77093643461234 [18:09:12]1041 (16) - 0000000002094219 [18:09:12]1040 (4) - 31000 [18:09:12]1012 (4) - 22.10.2024 12:04 [18:09:12]1206 (1) - 0 [18:09:12]OFD Sender: Remove packet 31000 [18:09:12]ProducePacketName [18:09:12]name=ofd_packets/00031000 [18:09:12]NVStorageDeleteData [18:09:12]Write to MH i2c: 01 00 00 28 1C 44 [18:09:12]Write i2c OK [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: 01 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: 01 07 00 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: 01 07 00 28 1C 00 00 00 00 00 01 0D 59 [18:09:12]RasterBufferAndPrint [18:09:12]line [18:09:12]line [18:09:12]line [18:09:12]line [18:09:12]line [18:09:12]written 0, free lines is 3338 [18:09:12]MH_Cut [18:09:12]Write to MH i2c: D1 01 00 2F 1C 01 1D [18:09:12]Write i2c OK [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: D1 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: D1 01 00 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: D1 01 00 2F 1C 00 1C [18:09:12]Write to MH i2c: 01 00 00 30 1C 4C [18:09:12]Write i2c OK [18:09:12]MH_I2C_Read... [18:09:12]OFD Sender: No OFD packet to send [18:09:13]*** Cut start [18:09:13]*** Partial cut [18:09:13]*** CUTSNS_PIN = 1 [18:09:13]*** CUTSNS_PIN = 0 [18:09:13]*** Brake cut motor [18:09:13]Read from MH i2c: 01 [18:09:13]MH_I2C_Read... [18:09:13]*** Stop cut motor [18:09:13]*** Cut end [18:09:13]Read from MH i2c: 01 07 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: 01 07 00 30 1C 00 00 00 00 00 FF 0F 61 [18:09:13]process_action close_receipt done [18:09:13]requested_data is exist [18:09:13]produce_requested_data [18:09:13]requested_item fm.sn is exist - process it [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 11 00 00 [18:09:13]Write to MH i2c: E2 08 00 31 1C 80 11 00 00 00 00 00 00 C7 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 17 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 17 00 31 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [18:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:09:13]wFMCommunicate OK [18:09:13]requested_item fd.num is exist - process it [18:09:13]SAM_PROTO_GetFieldsCounters [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 13 00 00 [18:09:13]Write to MH i2c: E2 08 00 32 1C 80 13 00 00 00 00 00 00 CA [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 62 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 62 00 32 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [18:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:13]wFMCommunicate OK [18:09:13]SAM_PROTO_GetFieldsCounters done [18:09:13]requested_item shift.num is exist - process it [18:09:13]requested_item shift.opened is exist - process it [18:09:13]req_shift_opened [18:09:13]FM_GetShiftState [18:09:13]SAM_PROTO_GetShiftState [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 13 01 00 [18:09:13]Write to MH i2c: E2 08 00 33 1C 80 13 01 00 00 00 00 00 CC [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 0E 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 0E 00 33 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A6 [18:09:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:09:13]wFMCommunicate OK [18:09:13]SAM_PROTO_GetShiftState done [18:09:13]FM_GetShiftState done [18:09:13]req_shift_opened done [18:09:13]requested_item shift.open_date is exist - process it [18:09:13]req_shift_open_date [18:09:13]req_shift_open_date done [18:09:13]produce_requested_data done [18:09:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31000,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:09:13]process_action_free close_receipt [18:09:13]json_value_free [18:09:13]json_value_free done [18:09:13]process_json_proto returns [18:09:13]Send response to host [18:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31000,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:09:13]free response buf [18:09:13]execute_script done [18:09:13]execute_script returns [18:09:13]free content buf [18:09:13]Sock 7.Close socket [18:09:13]Sock 7.Thread stoped [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12: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:24]accept exits with 9 [18:14:24]New connection [18:14:24]New thread 3067043172 created [18:14:24]Thread 3066899812 joined [18:14:24]Waiting for new connection... [18:14:24] Sock 9.Parse request [18:14:24]Sock 9.Check first char [18:14:24]Sock 9.First char is OK [18:14:24]request: POST /json_proto HTTP/1.0 [18:14:24]Method: POST [18:14:24]URL: /json_proto [18:14:24]Method is POST - this is cgi request [18:14:24]url: /json_proto [18:14:24]query_string will be loaded in cgi processing [18:14:24]execute_cgi json_proto POST (null) [18:14:24]execute_cgi path=json_proto method=POST [18:14:24]POST find Content-Length [18:14:24]Host: 172.17.51.3:8080 [18:14:24]Content-Length: 677 [18:14:24]Content-Type: application/json [18:14:24] [18:14:24]POST finish read [18:14:24]Found Content-Length = 677 [18:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:24]execute_script... [18:14: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)343429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:24]POST & json_proto [18:14:24]process_json_proto [18:14:24]json parsed OK: [18:14:24]protocol is kg_v1.0 [18:14:24]action value=close_receipt [18:14:24]process_action close_receipt [18:14:24]cmd_close_receipt [18:14:24]MH_GetDate [18:14:24]Write to MH i2c: F0 00 00 34 1C 3F [18:14:24]Write i2c OK [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 09 00 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 09 00 34 1C 00 82 EB 17 67 04 C1 95 66 F3 [18:14:24]GetLastDocTimeStamp 1729620551 [18:14:24]current date 1729620866 [18:14:24]FM_GetShiftState [18:14:24]SAM_PROTO_GetShiftState [18:14:24]wFMCommunicate request_size=4 [18:14:24]MH_SAM_APDU [18:14:24]CAPDU: 80 13 01 00 [18:14:24]Write to MH i2c: E2 08 00 35 1C 80 13 01 00 00 00 00 00 CE [18:14:24]Write i2c OK [18:14:24]MH_I2C_Read... [18:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:24]Read from MH i2c: E2 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: E2 0E 00 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: E2 0E 00 35 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A8 [18:14:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:14:24]wFMCommunicate OK [18:14:24]SAM_PROTO_GetShiftState done [18:14:24]FM_GetShiftState done [18:14:24]opened in 1729557342 [18:14:24]opened+sec_in_day 1729643742 [18:14:24]quantity*price = 30038 [18:14:24]sum+1 = 30039 [18:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 234 22.10.2024 18:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31001 ФПД: 19228043201798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31001&fm=19228043201798&tin=02508201610067®Number=0000000000186857&sum=30000 [18:14:25]StoreToDocumentArchive [18:14:25]shift 116 fd 31001 [18:14:25]save to /storage/0116/doc_00031001 [18:14:25]save last doc name /storage/0116/doc_00031001 to /storage/kkm_last_doc_name [18:14:25]save OK [18:14:25]Clear old archive folders... [18:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:25]tlvbuf is 00D33AA0 [18:14:25]SAM_PROTO_ClearQueue [18:14:25]wFMCommunicate request_size=4 [18:14:25]MH_SAM_APDU [18:14:25]CAPDU: 80 09 00 00 [18:14:25]Write to MH i2c: E2 08 00 42 1C 80 09 00 00 00 00 00 00 D0 [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:25]Read from MH i2c: E2 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 42 1C 00 90 00 D2 [18:14:25]RAPDU: 90 00 [18:14:25]wFMCommunicate OK [18:14:25]SAM_PROTO_ClearQueue done [18:14:25]KKMCreateOFDPacket [18:14:25]OFDProtocolAddRootSTLVToBuf [18:14:25]FM_MakeSignedData [18:14:25]FM_MakeSignedData [18:14:25]SAM_PROTO_SignData [18:14:25]wFMCommunicate request_size=4 [18:14:25]MH_SAM_APDU [18:14:25]CAPDU: 80 0D 01 02 [18:14:25]Write to MH i2c: E2 08 00 43 1C 80 0D 01 02 00 00 00 00 D8 [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:25]Read from MH i2c: E2 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 43 1C 00 90 00 D3 [18:14:25]RAPDU: 90 00 [18:14:25]wFMCommunicate OK [18:14:25]wFMCommunicate request_size=255 [18:14:25]MH_SAM_APDU [18:14: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 82 EB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 79 00 00 35 04 06 00 11 [18:14:25]Write to MH i2c: E2 02 01 44 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 82 EB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 79 00 00 35 04 06 00 11 00 00 49 [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:25]Read from MH i2c: E2 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 03 00 44 1C 00 90 00 D4 [18:14:25]RAPDU: 90 00 [18:14:25]wFMCommunicate OK [18:14:25]wFMCommunicate request_size=10 [18:14:25]MH_SAM_APDU [18:14:25]CAPDU: 80 0D 02 02 05 7C E0 AF 4D 06 [18:14:25]Write to MH i2c: E2 0D 00 45 1C 80 0D 02 02 05 00 7C E0 AF 4D 06 00 00 43 [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 45 1C 00 90 00 D5 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 03 02 [18:14:26]Write to MH i2c: E2 08 00 46 1C 80 0D 03 02 00 00 00 00 DD [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 46 1C 00 ED 45 DE F7 02 1C 68 5C 90 00 C7 [18:14:26]RAPDU: ED 45 DE F7 02 1C 68 5C 90 00 [18:14:26]wFMCommunicate OK [18:14:26]SAM_PROTO_SignData done [18:14:26]FM_MakeSignedData done [18:14:26]CreateOFDProtocolMessage [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 11 00 00 [18:14:26]Write to MH i2c: E2 08 00 47 1C 80 11 00 00 00 00 00 00 DD [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 17 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 17 00 47 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [18:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:26]wFMCommunicate OK [18:14:26]CreateOFDProtocolMessage done [18:14:26]OFDSenderStorePacket 31001 [18:14:26]StoreOFDPacket docnum=31001 [18:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 74 AA 07 01 1B 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 82 EB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 79 00 00 35 04 06 00 11 7C E0 AF 4D 06 ED 45 DE F7 02 1C 68 5C [18:14:26]CheckFolder [18:14:26]dirname=/storage/ofd_packets [18:14:26]CheckFolder done [18:14:26]ProducePacketName [18:14:26]name=ofd_packets/00031001 [18:14:26]NVStorageSaveData ofd_packets/00031001 [18:14:26]File name is /storage/ofd_packets/00031001 [18:14:26]Write 301 bytes [18:14:26]NVStorageSaveData done [18:14:26]OFDSenderStorePacket done [18:14:26]KKMCreateOFDPacket done [18:14:26]NVStorageSaveData kkm_last_timestamp [18:14:26]File name is /storage/kkm_last_timestamp [18:14:26]Write 4 bytes [18:14:26]NVStorageSaveData done [18:14:26]ExternCall_PrintAddStr [18:14:26]wPrintStart [18:14:26]Write to MH i2c: 01 00 00 48 1C 64 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 FF 0F 79 [18:14:26]RasterBufferAndPrint [18:14:26]line Счет N : (1)343429 [18:14:26]line ИНН: 02508201610067 [18:14:26]line Контрольно-Кассовый Чек [18:14:26]line ПРОДАЖА [18:14:26]line ТРК (МРК, ГНК) : 63 [18:14:26]line Товар: 2710124130 [18:14:26]line Аи-92-К-2 [18:14:26]line 4.490 * 66.90 [18:14:26]line = 300.38 [18:14:26]line НДС 12% НСП 1% [18:14:26]line > о реализуемом товаре [18:14:26]line ОКРУГЛЕНИЕ: -0.38 [18:14:26]line ИТОГО: 300.00 [18:14:26]line Внесено: 300.00 [18:14:26]line СДАЧА: 0.00 [18:14:26]line НСП 1% : 2.66 [18:14:26]line НДС 12% : 31.90 [18:14:26]line Наличными: 300.00 [18:14:26]line Безнал.: 0.00 [18:14:26]line Место: АЗС № 78 "Партнер Нефть" [18:14:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:14:26]line СНО: Общий режим [18:14:26]line Чек 234 22.10.2024 18:14 [18:14:26]line Смена: 116 ФФД: 1.0 [18:14:26]line ЗНМ: 0300000137 [18:14:26]line РНМ: 0000000000186857 [18:14:26]line Версия ККМ: v1.0 [18:14:26]line ФМ: 0000000002094219 [18:14:26]line ФД: 31001 [18:14:26]line ФПД: 19228043201798 [18:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31001&fm=19228043201798&tin=02508201610067®Number=0000000000186857&sum=30000 [18:14:26]OFD Sender: Processing packet 31001 [packets to send 11, broken 10] [18:14:26]ProducePacketName [18:14:26]name=ofd_packets/00031001 [18:14:26]OFD Sender: To server: pG, [18:14:26]CommunicateWithHost lk.salyk.kg:30040 [18:14:26]ConnectInit lk.salyk.kg [18:14:26]written 0, free lines is 4095 [18:14:26]Write to MH i2c: 01 00 00 73 1C 8F [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 73 1C 00 00 00 00 00 ED 0C 8F [18:14:26]RasterBufferAndPrint [18:14:26]line [18:14:26]line [18:14:26]line [18:14:26]line [18:14:26]line [18:14:26]written 0, free lines is 3315 [18:14:26]MH_Cut [18:14:26]Write to MH i2c: D1 01 00 7A 1C 01 68 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: D1 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: D1 01 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: D1 01 00 7A 1C 00 67 [18:14:26]Write to MH i2c: 01 00 00 7B 1C 97 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:27]*** Cut start [18:14:27]*** Partial cut [18:14:27]*** CUTSNS_PIN = 1 [18:14:27]*** CUTSNS_PIN = 0 [18:14:27]*** Brake cut motor [18:14:28]Read from MH i2c: 01 [18:14:28]MH_I2C_Read... [18:14:28]*** Stop cut motor [18:14:28]*** Cut end [18:14:28]Read from MH i2c: 01 07 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 FF 0F AC [18:14:28]process_action close_receipt done [18:14:28]requested_data is exist [18:14:28]produce_requested_data [18:14:28]requested_item fm.sn is exist - process it [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 11 00 00 [18:14:28]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 17 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [18:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:28]wFMCommunicate OK [18:14:28]requested_item fd.num is exist - process it [18:14:28]SAM_PROTO_GetFieldsCounters [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 13 00 00 [18:14:28]Write to MH i2c: E2 08 00 7D 1C 80 13 00 00 00 00 00 00 15 [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 62 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 62 00 7D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:14:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:28]wFMCommunicate OK [18:14:28]SAM_PROTO_GetFieldsCounters done [18:14:28]requested_item shift.num is exist - process it [18:14:28]requested_item shift.opened is exist - process it [18:14:28]req_shift_opened [18:14:28]FM_GetShiftState [18:14:28]SAM_PROTO_GetShiftState [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 13 01 00 [18:14:28]Write to MH i2c: E2 08 00 7E 1C 80 13 01 00 00 00 00 00 17 [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 7E 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F1 [18:14:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:14:28]wFMCommunicate OK [18:14:28]SAM_PROTO_GetShiftState done [18:14:28]FM_GetShiftState done [18:14:28]req_shift_opened done [18:14:28]requested_item shift.open_date is exist - process it [18:14:28]req_shift_open_date [18:14:28]req_shift_open_date done [18:14:28]produce_requested_data done [18:14:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31001,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:14:28]process_action_free close_receipt [18:14:28]json_value_free [18:14:28]json_value_free done [18:14:28]process_json_proto returns [18:14:28]Send response to host [18:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31001,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:14:28]free response buf [18:14:28]execute_script done [18:14:28]execute_script returns [18:14:28]free content buf [18:14:28]Sock 9.Close socket [18:14:28]Sock 9.Thread stoped [18:16:37]ConnectInit Can't connect to host [18:16:37]CommunicateWithHost connect error [18:16:37]CommunicateWithHost err = -1 [18:16:37]OFD Sender: Server communicate error [18:16:42]OFD Sender: Processing packet 31001 [packets to send 11, broken 10] [18:16:42]ProducePacketName [18:16:42]name=ofd_packets/00031001 [18:16:42]OFD Sender: To server: pG, [18:16:42]CommunicateWithHost lk.salyk.kg:30040 [18:16:42]ConnectInit lk.salyk.kg [18:16:42]Connected sock=9 [18:16:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 74 AA 07 01 1B 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 82 EB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 79 00 00 35 04 06 00 11 7C E0 AF 4D 06 ED 45 DE F7 02 1C 68 5C [18:16:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AF B2 47 00 AA D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 79 00 00 F4 03 04 00 86 96 17 67 B6 04 01 00 00 82 A1 25 13 00 4A FF AD [18:16:42]CommunicateWithHost err = 0 [18:16:42]CheckOFDResponse [18:16:42]1017 (14) - 77093643461234 [18:16:42]1041 (16) - 0000000002094219 [18:16:42]1040 (4) - 31001 [18:16:42]1012 (4) - 22.10.2024 12:11 [18:16:42]1206 (1) - 0 [18:16:42]OFD Sender: Remove packet 31001 [18:16:42]ProducePacketName [18:16:42]name=ofd_packets/00031001 [18:16:42]NVStorageDeleteData [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:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:30]accept exits with 7 [18:24:30]New connection [18:24:30]New thread 3066899812 created [18:24:30]Thread 3067043172 joined [18:24:30]Waiting for new connection... [18:24:30] Sock 7.Parse request [18:24:30]Sock 7.Check first char [18:24:30]Sock 7.First char is OK [18:24:30]request: POST /json_proto HTTP/1.0 [18:24:30]Method: POST [18:24:30]URL: /json_proto [18:24:30]Method is POST - this is cgi request [18:24:30]url: /json_proto [18:24:30]query_string will be loaded in cgi processing [18:24:30]execute_cgi json_proto POST (null) [18:24:30]execute_cgi path=json_proto method=POST [18:24:30]POST find Content-Length [18:24:30]Host: 172.17.51.3:8080 [18:24:30]Content-Length: 677 [18:24:30]Content-Type: application/json [18:24:30] [18:24:30]POST finish read [18:24:30]Found Content-Length = 677 [18:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:30]execute_script... [18:24: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)343431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:30]POST & json_proto [18:24:30]process_json_proto [18:24:30]json parsed OK: [18:24:30]protocol is kg_v1.0 [18:24:30]action value=close_receipt [18:24:30]process_action close_receipt [18:24:30]cmd_close_receipt [18:24:30]MH_GetDate [18:24:30]Write to MH i2c: F0 00 00 7F 1C 8A [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: F0 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: F0 09 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: F0 09 00 7F 1C 00 E0 ED 17 67 04 C1 95 66 9E [18:24:30]GetLastDocTimeStamp 1729620866 [18:24:30]current date 1729621472 [18:24:30]FM_GetShiftState [18:24:30]SAM_PROTO_GetShiftState [18:24:30]wFMCommunicate request_size=4 [18:24:30]MH_SAM_APDU [18:24:30]CAPDU: 80 13 01 00 [18:24:30]Write to MH i2c: E2 08 00 80 1C 80 13 01 00 00 00 00 00 19 [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:30]Read from MH i2c: E2 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 0E 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 0E 00 80 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F3 [18:24:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:24:30]wFMCommunicate OK [18:24:30]SAM_PROTO_GetShiftState done [18:24:30]FM_GetShiftState done [18:24:30]opened in 1729557342 [18:24:30]opened+sec_in_day 1729643742 [18:24:30]quantity*price = 19066 [18:24:30]sum+1 = 19068 [18:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 235 22.10.2024 18:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31002 ФПД: 263389258639459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182432&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31002&fm=263389258639459&tin=02508201610067®Number=0000000000186857&sum=19000 [18:24:31]StoreToDocumentArchive [18:24:31]shift 116 fd 31002 [18:24:31]save to /storage/0116/doc_00031002 [18:24:31]save last doc name /storage/0116/doc_00031002 to /storage/kkm_last_doc_name [18:24:31]save OK [18:24:31]Clear old archive folders... [18:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:31]tlvbuf is 00D311A0 [18:24:31]SAM_PROTO_ClearQueue [18:24:31]wFMCommunicate request_size=4 [18:24:31]MH_SAM_APDU [18:24:31]CAPDU: 80 09 00 00 [18:24:31]Write to MH i2c: E2 08 00 8D 1C 80 09 00 00 00 00 00 00 1B [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 8D 1C 00 90 00 1D [18:24:31]RAPDU: 90 00 [18:24:31]wFMCommunicate OK [18:24:31]SAM_PROTO_ClearQueue done [18:24:31]KKMCreateOFDPacket [18:24:31]OFDProtocolAddRootSTLVToBuf [18:24:31]FM_MakeSignedData [18:24:31]FM_MakeSignedData [18:24:31]SAM_PROTO_SignData [18:24:31]wFMCommunicate request_size=4 [18:24:31]MH_SAM_APDU [18:24:31]CAPDU: 80 0D 01 02 [18:24:31]Write to MH i2c: E2 08 00 8E 1C 80 0D 01 02 00 00 00 00 23 [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 8E 1C 00 90 00 1E [18:24:31]RAPDU: 90 00 [18:24:31]wFMCommunicate OK [18:24:31]wFMCommunicate request_size=255 [18:24:31]MH_SAM_APDU [18:24: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 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 ED 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 79 00 00 35 04 06 00 EF [18:24:31]Write to MH i2c: E2 02 01 8F 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 ED 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 79 00 00 35 04 06 00 EF 00 00 26 [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [18:24:31]RAPDU: 90 00 [18:24:31]wFMCommunicate OK [18:24:31]wFMCommunicate request_size=10 [18:24:31]MH_SAM_APDU [18:24:31]CAPDU: 80 0D 02 02 05 8D 17 32 E8 63 [18:24:31]Write to MH i2c: E2 0D 00 90 1C 80 0D 02 02 05 00 8D 17 32 E8 63 00 00 51 [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [18:24:31]RAPDU: 90 00 [18:24:31]wFMCommunicate OK [18:24:31]wFMCommunicate request_size=4 [18:24:31]MH_SAM_APDU [18:24:31]CAPDU: 80 0D 03 02 [18:24:31]Write to MH i2c: E2 08 00 91 1C 80 0D 03 02 00 00 00 00 28 [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 0B 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 0B 00 91 1C 00 D1 4D 68 1D 8F A0 49 63 90 00 A7 [18:24:31]RAPDU: D1 4D 68 1D 8F A0 49 63 90 00 [18:24:31]wFMCommunicate OK [18:24:31]SAM_PROTO_SignData done [18:24:31]FM_MakeSignedData done [18:24:31]CreateOFDProtocolMessage [18:24:31]wFMCommunicate request_size=4 [18:24:31]MH_SAM_APDU [18:24:31]CAPDU: 80 11 00 00 [18:24:31]Write to MH i2c: E2 08 00 92 1C 80 11 00 00 00 00 00 00 28 [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:31]Read from MH i2c: E2 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 17 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: E2 17 00 92 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [18:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:24:31]wFMCommunicate OK [18:24:31]CreateOFDProtocolMessage done [18:24:31]OFDSenderStorePacket 31002 [18:24:31]StoreOFDPacket docnum=31002 [18:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D C2 07 01 AB 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 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 ED 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 79 00 00 35 04 06 00 EF 8D 17 32 E8 63 D1 4D 68 1D 8F A0 49 63 [18:24:31]CheckFolder [18:24:31]dirname=/storage/ofd_packets [18:24:31]CheckFolder done [18:24:31]ProducePacketName [18:24:31]name=ofd_packets/00031002 [18:24:31]NVStorageSaveData ofd_packets/00031002 [18:24:31]File name is /storage/ofd_packets/00031002 [18:24:31]Write 301 bytes [18:24:31]NVStorageSaveData done [18:24:31]OFDSenderStorePacket done [18:24:31]KKMCreateOFDPacket done [18:24:31]NVStorageSaveData kkm_last_timestamp [18:24:31]File name is /storage/kkm_last_timestamp [18:24:31]Write 4 bytes [18:24:31]NVStorageSaveData done [18:24:31]ExternCall_PrintAddStr [18:24:31]wPrintStart [18:24:31]Write to MH i2c: 01 00 00 93 1C AF [18:24:31]Write i2c OK [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: 01 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: 01 07 00 [18:24:31]MH_I2C_Read... [18:24:31]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 FF 0F C4 [18:24:31]RasterBufferAndPrint [18:24:31]line Счет N : (1)343431 [18:24:31]line ИНН: 02508201610067 [18:24:31]line Контрольно-Кассовый Чек [18:24:31]line ПРОДАЖА [18:24:31]line ТРК (МРК, ГНК) : 63 [18:24:31]line Товар: 2710124130 [18:24:31]line Аи-92-К-2 [18:24:31]line 2.850 * 66.90 [18:24:31]line = 190.67 [18:24:31]line НДС 12% НСП 1% [18:24:31]line > о реализуемом товаре [18:24:31]line ОКРУГЛЕНИЕ: -0.67 [18:24:31]line ИТОГО: 190.00 [18:24:31]line Внесено: 190.00 [18:24:31]line СДАЧА: 0.00 [18:24:31]line НСП 1% : 1.69 [18:24:31]line НДС 12% : 20.25 [18:24:31]line Наличными: 190.00 [18:24:31]line Безнал.: 0.00 [18:24:31]line Место: АЗС № 78 "Партнер Нефть" [18:24:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:24:31]line СНО: Общий режим [18:24:31]line Чек 235 22.10.2024 18:24 [18:24:31]line Смена: 116 ФФД: 1.0 [18:24:31]line ЗНМ: 0300000137 [18:24:31]line РНМ: 0000000000186857 [18:24:31]line Версия ККМ: v1.0 [18:24:31]line ФМ: 0000000002094219 [18:24:31]line ФД: 31002 [18:24:31]line ФПД: 263389258639459 [18:24:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182432&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31002&fm=263389258639459&tin=02508201610067®Number=0000000000186857&sum=19000 [18:24:32]OFD Sender: Processing packet 31002 [packets to send 11, broken 10] [18:24:32]ProducePacketName [18:24:32]name=ofd_packets/00031002 [18:24:32]OFD Sender: To server: pG, [18:24:32]CommunicateWithHost lk.salyk.kg:30040 [18:24:32]ConnectInit lk.salyk.kg [18:24:32]written 0, free lines is 4095 [18:24:32]Connected sock=10 [18:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D C2 07 01 AB 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 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 ED 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 79 00 00 35 04 06 00 EF 8D 17 32 E8 63 D1 4D 68 1D 8F A0 49 63 [18:24:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 B7 47 00 89 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 32 30 39 34 32 31 39 10 04 04 00 1A 79 00 00 F4 03 04 00 5C 98 17 67 B6 04 01 00 00 4F C3 35 98 EC BF 41 44 [18:24:32]CommunicateWithHost err = 0 [18:24:32]CheckOFDResponse [18:24:32]1017 (14) - 77093643461234 [18:24:32]1041 (16) - 0000000002094219 [18:24:32]1040 (4) - 31002 [18:24:32]1012 (4) - 22.10.2024 12:19 [18:24:32]1206 (1) - 0 [18:24:32]OFD Sender: Remove packet 31002 [18:24:32]ProducePacketName [18:24:32]name=ofd_packets/00031002 [18:24:32]NVStorageDeleteData [18:24:32]Write to MH i2c: 01 00 00 BE 1C DA [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: 01 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: 01 07 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FB 0C E8 [18:24:32]RasterBufferAndPrint [18:24:32]line [18:24:32]line [18:24:32]line [18:24:32]line [18:24:32]line [18:24:32]written 0, free lines is 3332 [18:24:32]MH_Cut [18:24:32]Write to MH i2c: D1 01 00 C5 1C 01 B3 [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: D1 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: D1 01 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: D1 01 00 C5 1C 00 B2 [18:24:32]Write to MH i2c: 01 00 00 C6 1C E2 [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:33]OFD Sender: No OFD packet to send [18:24:33]*** Cut start [18:24:33]*** Partial cut [18:24:33]*** CUTSNS_PIN = 1 [18:24:33]*** CUTSNS_PIN = 0 [18:24:33]*** Brake cut motor [18:24:33]Read from MH i2c: 01 [18:24:34]MH_I2C_Read... [18:24:34]*** Stop cut motor [18:24:34]*** Cut end [18:24:34]Read from MH i2c: 01 07 00 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: 01 07 00 C6 1C 00 00 00 00 00 FF 0F F7 [18:24:34]process_action close_receipt done [18:24:34]requested_data is exist [18:24:34]produce_requested_data [18:24:34]requested_item fm.sn is exist - process it [18:24:34]wFMCommunicate request_size=4 [18:24:34]MH_SAM_APDU [18:24:34]CAPDU: 80 11 00 00 [18:24:34]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [18:24:34]Write i2c OK [18:24:34]MH_I2C_Read... [18:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:34]Read from MH i2c: E2 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 17 00 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 17 00 C7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [18:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:24:34]wFMCommunicate OK [18:24:34]requested_item fd.num is exist - process it [18:24:34]SAM_PROTO_GetFieldsCounters [18:24:34]wFMCommunicate request_size=4 [18:24:34]MH_SAM_APDU [18:24:34]CAPDU: 80 13 00 00 [18:24:34]Write to MH i2c: E2 08 00 C8 1C 80 13 00 00 00 00 00 00 60 [18:24:34]Write i2c OK [18:24:34]MH_I2C_Read... [18:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:34]Read from MH i2c: E2 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 62 00 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 62 00 C8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:24:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:34]wFMCommunicate OK [18:24:34]SAM_PROTO_GetFieldsCounters done [18:24:34]requested_item shift.num is exist - process it [18:24:34]requested_item shift.opened is exist - process it [18:24:34]req_shift_opened [18:24:34]FM_GetShiftState [18:24:34]SAM_PROTO_GetShiftState [18:24:34]wFMCommunicate request_size=4 [18:24:34]MH_SAM_APDU [18:24:34]CAPDU: 80 13 01 00 [18:24:34]Write to MH i2c: E2 08 00 C9 1C 80 13 01 00 00 00 00 00 62 [18:24:34]Write i2c OK [18:24:34]MH_I2C_Read... [18:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:34]Read from MH i2c: E2 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 0E 00 [18:24:34]MH_I2C_Read... [18:24:34]Read from MH i2c: E2 0E 00 C9 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3C [18:24:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:24:34]wFMCommunicate OK [18:24:34]SAM_PROTO_GetShiftState done [18:24:34]FM_GetShiftState done [18:24:34]req_shift_opened done [18:24:34]requested_item shift.open_date is exist - process it [18:24:34]req_shift_open_date [18:24:34]req_shift_open_date done [18:24:34]produce_requested_data done [18:24:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31002,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:24:34]process_action_free close_receipt [18:24:34]json_value_free [18:24:34]json_value_free done [18:24:34]process_json_proto returns [18:24:34]Send response to host [18:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31002,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:24:34]free response buf [18:24:34]execute_script done [18:24:34]execute_script returns [18:24:34]free content buf [18:24:34]Sock 7.Close socket [18:24:34]Sock 7.Thread stoped [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]accept exits with 9 [18:27:23]New connection [18:27:23]New thread 3067043172 created [18:27:23]Thread 3066899812 joined [18:27:23]Waiting for new connection... [18:27:23] Sock 9.Parse request [18:27:23]Sock 9.Check first char [18:27:23]Sock 9.First char is OK [18:27:23]request: POST /json_proto HTTP/1.0 [18:27:23]Method: POST [18:27:23]URL: /json_proto [18:27:23]Method is POST - this is cgi request [18:27:23]url: /json_proto [18:27:23]query_string will be loaded in cgi processing [18:27:23]execute_cgi json_proto POST (null) [18:27:23]execute_cgi path=json_proto method=POST [18:27:23]POST find Content-Length [18:27:23]Host: 172.17.51.3:8080 [18:27:23]Content-Length: 677 [18:27:23]Content-Type: application/json [18:27:23] [18:27:23]POST finish read [18:27:23]Found Content-Length = 677 [18:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:23]execute_script... [18:27: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)343432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:23]POST & json_proto [18:27:23]process_json_proto [18:27:23]json parsed OK: [18:27:23]protocol is kg_v1.0 [18:27:23]action value=close_receipt [18:27:23]process_action close_receipt [18:27:23]cmd_close_receipt [18:27:23]MH_GetDate [18:27:23]Write to MH i2c: F0 00 00 CA 1C D5 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 CA 1C 00 8C EE 17 67 04 C1 95 66 96 [18:27:23]GetLastDocTimeStamp 1729621472 [18:27:23]current date 1729621644 [18:27:23]FM_GetShiftState [18:27:23]SAM_PROTO_GetShiftState [18:27:23]wFMCommunicate request_size=4 [18:27:23]MH_SAM_APDU [18:27:23]CAPDU: 80 13 01 00 [18:27:23]Write to MH i2c: E2 08 00 CB 1C 80 13 01 00 00 00 00 00 64 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:23]Read from MH i2c: E2 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 CB 1C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3E [18:27:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:27:23]wFMCommunicate OK [18:27:23]SAM_PROTO_GetShiftState done [18:27:23]FM_GetShiftState done [18:27:23]opened in 1729557342 [18:27:23]opened+sec_in_day 1729643742 [18:27:23]quantity*price = 50041 [18:27:23]sum+1 = 50042 [18:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 236 22.10.2024 18:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31003 ФПД: 148855409643577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31003&fm=148855409643577&tin=02508201610067®Number=0000000000186857&sum=50000 [18:27:24]StoreToDocumentArchive [18:27:24]shift 116 fd 31003 [18:27:24]save to /storage/0116/doc_00031003 [18:27:24]save last doc name /storage/0116/doc_00031003 to /storage/kkm_last_doc_name [18:27:24]save OK [18:27:24]Clear old archive folders... [18:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:24]tlvbuf is 00D4CE10 [18:27:24]SAM_PROTO_ClearQueue [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 09 00 00 [18:27:24]Write to MH i2c: E2 08 00 D8 1C 80 09 00 00 00 00 00 00 66 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 D8 1C 00 90 00 68 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_ClearQueue done [18:27:24]KKMCreateOFDPacket [18:27:24]OFDProtocolAddRootSTLVToBuf [18:27:24]FM_MakeSignedData [18:27:24]FM_MakeSignedData [18:27:24]SAM_PROTO_SignData [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 01 02 [18:27:24]Write to MH i2c: E2 08 00 D9 1C 80 0D 01 02 00 00 00 00 6E [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 D9 1C 00 90 00 69 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=255 [18:27:24]MH_SAM_APDU [18:27: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8C EE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 79 00 00 35 04 06 00 87 [18:27:24]Write to MH i2c: E2 02 01 DA 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8C EE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 79 00 00 35 04 06 00 87 00 00 72 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 DA 1C 00 90 00 6A [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=10 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 02 02 05 62 19 D0 90 39 [18:27:24]Write to MH i2c: E2 0D 00 DB 1C 80 0D 02 02 05 00 62 19 D0 90 39 00 00 8F [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 DB 1C 00 90 00 6B [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 03 02 [18:27:24]Write to MH i2c: E2 08 00 DC 1C 80 0D 03 02 00 00 00 00 73 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0B 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0B 00 DC 1C 00 F2 39 4C C4 67 22 ED 8F 90 00 B4 [18:27:24]RAPDU: F2 39 4C C4 67 22 ED 8F 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_SignData done [18:27:24]FM_MakeSignedData done [18:27:24]CreateOFDProtocolMessage [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 11 00 00 [18:27:24]Write to MH i2c: E2 08 00 DD 1C 80 11 00 00 00 00 00 00 73 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 DD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [18:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:27:24]wFMCommunicate OK [18:27:24]CreateOFDProtocolMessage done [18:27:24]OFDSenderStorePacket 31003 [18:27:24]StoreOFDPacket docnum=31003 [18:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 07 07 01 1C 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8C EE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 79 00 00 35 04 06 00 87 62 19 D0 90 39 F2 39 4C C4 67 22 ED 8F [18:27:24]CheckFolder [18:27:24]dirname=/storage/ofd_packets [18:27:24]CheckFolder done [18:27:24]ProducePacketName [18:27:24]name=ofd_packets/00031003 [18:27:24]NVStorageSaveData ofd_packets/00031003 [18:27:24]File name is /storage/ofd_packets/00031003 [18:27:24]Write 301 bytes [18:27:24]NVStorageSaveData done [18:27:24]OFDSenderStorePacket done [18:27:24]KKMCreateOFDPacket done [18:27:24]NVStorageSaveData kkm_last_timestamp [18:27:24]File name is /storage/kkm_last_timestamp [18:27:24]Write 4 bytes [18:27:24]NVStorageSaveData done [18:27:24]ExternCall_PrintAddStr [18:27:24]wPrintStart [18:27:24]Write to MH i2c: 01 00 00 DE 1C FA [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 FF 0F 0F [18:27:24]RasterBufferAndPrint [18:27:24]line Счет N : (1)343432 [18:27:24]line ИНН: 02508201610067 [18:27:24]line Контрольно-Кассовый Чек [18:27:24]line ПРОДАЖА [18:27:24]line ТРК (МРК, ГНК) : 53 [18:27:24]line Товар: 2710124130 [18:27:24]line Аи-92-К-2 [18:27:24]line 7.480 * 66.90 [18:27:24]line = 500.41 [18:27:24]line НДС 12% НСП 1% [18:27:24]line > о реализуемом товаре [18:27:24]line ОКРУГЛЕНИЕ: -0.41 [18:27:24]line ИТОГО: 500.00 [18:27:24]line Внесено: 500.00 [18:27:24]line СДАЧА: 0.00 [18:27:24]line НСП 1% : 4.43 [18:27:24]line НДС 12% : 53.14 [18:27:24]line Наличными: 500.00 [18:27:24]line Безнал.: 0.00 [18:27:24]line Место: АЗС № 78 "Партнер Нефть" [18:27:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:27:24]line СНО: Общий режим [18:27:24]line Чек 236 22.10.2024 18:27 [18:27:24]line Смена: 116 ФФД: 1.0 [18:27:24]line ЗНМ: 0300000137 [18:27:24]line РНМ: 0000000000186857 [18:27:24]line Версия ККМ: v1.0 [18:27:24]line ФМ: 0000000002094219 [18:27:24]line ФД: 31003 [18:27:24]line ФПД: 148855409643577 [18:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182724&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31003&fm=148855409643577&tin=02508201610067®Number=0000000000186857&sum=50000 [18:27:25]OFD Sender: Processing packet 31003 [packets to send 11, broken 10] [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00031003 [18:27:25]OFD Sender: To server: pG, [18:27:25]CommunicateWithHost lk.salyk.kg:30040 [18:27:25]ConnectInit lk.salyk.kg [18:27:25]written 0, free lines is 4095 [18:27:25]Connected sock=10 [18:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 07 07 01 1C 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8C EE 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 79 00 00 35 04 06 00 87 62 19 D0 90 39 F2 39 4C C4 67 22 ED 8F [18:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3B 37 47 00 A2 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 32 30 39 34 32 31 39 10 04 04 00 1B 79 00 00 F4 03 04 00 09 99 17 67 B6 04 01 00 00 2E 92 BA E2 13 F9 B1 C1 [18:27:25]CommunicateWithHost err = 0 [18:27:25]CheckOFDResponse [18:27:25]1017 (14) - 77093643461234 [18:27:25]1041 (16) - 0000000002094219 [18:27:25]1040 (4) - 31003 [18:27:25]1012 (4) - 22.10.2024 12:22 [18:27:25]1206 (1) - 0 [18:27:25]OFD Sender: Remove packet 31003 [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00031003 [18:27:25]NVStorageDeleteData [18:27:25]Write to MH i2c: 01 00 00 09 1D 26 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 F9 0C 32 [18:27:25]RasterBufferAndPrint [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]written 0, free lines is 3330 [18:27:25]MH_Cut [18:27:25]Write to MH i2c: D1 01 00 10 1D 01 FF [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 01 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 01 00 10 1D 00 FE [18:27:25]Write to MH i2c: 01 00 00 11 1D 2E [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]OFD Sender: No OFD packet to send [18:27:26]*** Cut start [18:27:26]*** Partial cut [18:27:26]*** CUTSNS_PIN = 1 [18:27:26]*** CUTSNS_PIN = 0 [18:27:26]*** Brake cut motor [18:27:26]Read from MH i2c: 01 [18:27:26]MH_I2C_Read... [18:27:26]*** Stop cut motor [18:27:26]*** Cut end [18:27:26]Read from MH i2c: 01 07 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [18:27:26]process_action close_receipt done [18:27:26]requested_data is exist [18:27:26]produce_requested_data [18:27:26]requested_item fm.sn is exist - process it [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 11 00 00 [18:27:26]Write to MH i2c: E2 08 00 12 1D 80 11 00 00 00 00 00 00 A9 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 12 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [18:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:27:26]wFMCommunicate OK [18:27:26]requested_item fd.num is exist - process it [18:27:26]SAM_PROTO_GetFieldsCounters [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 13 00 00 [18:27:26]Write to MH i2c: E2 08 00 13 1D 80 13 00 00 00 00 00 00 AC [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 62 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 62 00 13 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_GetFieldsCounters done [18:27:27]requested_item shift.num is exist - process it [18:27:27]requested_item shift.opened is exist - process it [18:27:27]req_shift_opened [18:27:27]FM_GetShiftState [18:27:27]SAM_PROTO_GetShiftState [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 13 01 00 [18:27:27]Write to MH i2c: E2 08 00 14 1D 80 13 01 00 00 00 00 00 AE [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 14 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 88 [18:27:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_GetShiftState done [18:27:27]FM_GetShiftState done [18:27:27]req_shift_opened done [18:27:27]requested_item shift.open_date is exist - process it [18:27:27]req_shift_open_date [18:27:27]req_shift_open_date done [18:27:27]produce_requested_data done [18:27:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31003,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:27:27]process_action_free close_receipt [18:27:27]json_value_free [18:27:27]json_value_free done [18:27:27]process_json_proto returns [18:27:27]Send response to host [18:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31003,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:27:27]free response buf [18:27:27]execute_script done [18:27:27]execute_script returns [18:27:27]free content buf [18:27:27]Sock 9.Close socket [18:27:27]Sock 9.Thread stoped [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:53]accept exits with 7 [18:33:53]New connection [18:33:53]New thread 3066899812 created [18:33:53]Thread 3067043172 joined [18:33:53]Waiting for new connection... [18:33:53] Sock 7.Parse request [18:33:53]Sock 7.Check first char [18:33:53]Sock 7.First char is OK [18:33:53]request: POST /json_proto HTTP/1.0 [18:33:53]Method: POST [18:33:53]URL: /json_proto [18:33:53]Method is POST - this is cgi request [18:33:53]url: /json_proto [18:33:53]query_string will be loaded in cgi processing [18:33:53]execute_cgi json_proto POST (null) [18:33:53]execute_cgi path=json_proto method=POST [18:33:53]POST find Content-Length [18:33:53]Host: 172.17.51.3:8080 [18:33:53]Content-Length: 677 [18:33:53]Content-Type: application/json [18:33:53] [18:33:53]POST finish read [18:33:53]Found Content-Length = 677 [18:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:53]execute_script... [18:33: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)343434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:53]POST & json_proto [18:33:53]process_json_proto [18:33:53]json parsed OK: [18:33:53]protocol is kg_v1.0 [18:33:53]action value=close_receipt [18:33:53]process_action close_receipt [18:33:53]cmd_close_receipt [18:33:53]MH_GetDate [18:33:53]Write to MH i2c: F0 00 00 15 1D 21 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: F0 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: F0 09 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: F0 09 00 15 1D 00 12 F0 17 67 04 C1 95 66 6A [18:33:53]GetLastDocTimeStamp 1729621644 [18:33:53]current date 1729622034 [18:33:53]FM_GetShiftState [18:33:53]SAM_PROTO_GetShiftState [18:33:53]wFMCommunicate request_size=4 [18:33:53]MH_SAM_APDU [18:33:53]CAPDU: 80 13 01 00 [18:33:53]Write to MH i2c: E2 08 00 16 1D 80 13 01 00 00 00 00 00 B0 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:53]Read from MH i2c: E2 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 0E 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 0E 00 16 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8A [18:33:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:33:53]wFMCommunicate OK [18:33:53]SAM_PROTO_GetShiftState done [18:33:53]FM_GetShiftState done [18:33:53]opened in 1729557342 [18:33:53]opened+sec_in_day 1729643742 [18:33:53]quantity*price = 50041 [18:33:53]sum+1 = 50042 [18:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 237 22.10.2024 18:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31004 ФПД: 149453591741717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183354&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31004&fm=149453591741717&tin=02508201610067®Number=0000000000186857&sum=50000 [18:33:54]StoreToDocumentArchive [18:33:54]shift 116 fd 31004 [18:33:54]save to /storage/0116/doc_00031004 [18:33:54]save last doc name /storage/0116/doc_00031004 to /storage/kkm_last_doc_name [18:33:54]save OK [18:33:54]Clear old archive folders... [18:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:54]tlvbuf is 00D54F10 [18:33:54]SAM_PROTO_ClearQueue [18:33:54]wFMCommunicate request_size=4 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 09 00 00 [18:33:54]Write to MH i2c: E2 08 00 23 1D 80 09 00 00 00 00 00 00 B2 [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 23 1D 00 90 00 B4 [18:33:54]RAPDU: 90 00 [18:33:54]wFMCommunicate OK [18:33:54]SAM_PROTO_ClearQueue done [18:33:54]KKMCreateOFDPacket [18:33:54]OFDProtocolAddRootSTLVToBuf [18:33:54]FM_MakeSignedData [18:33:54]FM_MakeSignedData [18:33:54]SAM_PROTO_SignData [18:33:54]wFMCommunicate request_size=4 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 0D 01 02 [18:33:54]Write to MH i2c: E2 08 00 24 1D 80 0D 01 02 00 00 00 00 BA [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 24 1D 00 90 00 B5 [18:33:54]RAPDU: 90 00 [18:33:54]wFMCommunicate OK [18:33:54]wFMCommunicate request_size=255 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 79 00 00 35 04 06 00 87 [18:33:54]Write to MH i2c: E2 02 01 25 1D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 79 00 00 35 04 06 00 87 00 00 48 [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 25 1D 00 90 00 B6 [18:33:54]RAPDU: 90 00 [18:33:54]wFMCommunicate OK [18:33:54]wFMCommunicate request_size=10 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 0D 02 02 05 ED 60 3F 05 15 [18:33:54]Write to MH i2c: E2 0D 00 26 1D 80 0D 02 02 05 00 ED 60 3F 05 15 00 00 6D [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 03 00 26 1D 00 90 00 B7 [18:33:54]RAPDU: 90 00 [18:33:54]wFMCommunicate OK [18:33:54]wFMCommunicate request_size=4 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 0D 03 02 [18:33:54]Write to MH i2c: E2 08 00 27 1D 80 0D 03 02 00 00 00 00 BF [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 0B 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 0B 00 27 1D 00 5A 4D 2F 4E 4E CC 31 5B 90 00 8A [18:33:54]RAPDU: 5A 4D 2F 4E 4E CC 31 5B 90 00 [18:33:54]wFMCommunicate OK [18:33:54]SAM_PROTO_SignData done [18:33:54]FM_MakeSignedData done [18:33:54]CreateOFDProtocolMessage [18:33:54]wFMCommunicate request_size=4 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 11 00 00 [18:33:54]Write to MH i2c: E2 08 00 28 1D 80 11 00 00 00 00 00 00 BF [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 17 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 17 00 28 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [18:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:33:54]wFMCommunicate OK [18:33:54]CreateOFDProtocolMessage done [18:33:54]OFDSenderStorePacket 31004 [18:33:54]StoreOFDPacket docnum=31004 [18:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6D 9D 07 01 9D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 79 00 00 35 04 06 00 87 ED 60 3F 05 15 5A 4D 2F 4E 4E CC 31 5B [18:33:54]CheckFolder [18:33:54]dirname=/storage/ofd_packets [18:33:54]CheckFolder done [18:33:54]ProducePacketName [18:33:54]name=ofd_packets/00031004 [18:33:54]NVStorageSaveData ofd_packets/00031004 [18:33:54]File name is /storage/ofd_packets/00031004 [18:33:54]Write 301 bytes [18:33:54]NVStorageSaveData done [18:33:54]OFDSenderStorePacket done [18:33:54]KKMCreateOFDPacket done [18:33:54]NVStorageSaveData kkm_last_timestamp [18:33:54]File name is /storage/kkm_last_timestamp [18:33:54]Write 4 bytes [18:33:54]NVStorageSaveData done [18:33:54]ExternCall_PrintAddStr [18:33:54]wPrintStart [18:33:54]Write to MH i2c: 01 00 00 29 1D 46 [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: 01 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: 01 07 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: 01 07 00 29 1D 00 00 00 00 00 FF 0F 5B [18:33:54]RasterBufferAndPrint [18:33:54]line Счет N : (1)343434 [18:33:54]line ИНН: 02508201610067 [18:33:54]line Контрольно-Кассовый Чек [18:33:54]line ПРОДАЖА [18:33:54]line ТРК (МРК, ГНК) : 53 [18:33:54]line Товар: 2710124130 [18:33:54]line Аи-92-К-2 [18:33:54]line 7.480 * 66.90 [18:33:54]line = 500.41 [18:33:54]line НДС 12% НСП 1% [18:33:54]line > о реализуемом товаре [18:33:54]line ОКРУГЛЕНИЕ: -0.41 [18:33:54]line ИТОГО: 500.00 [18:33:54]line Внесено: 500.00 [18:33:54]line СДАЧА: 0.00 [18:33:54]line НСП 1% : 4.43 [18:33:54]line НДС 12% : 53.14 [18:33:54]line Наличными: 500.00 [18:33:54]line Безнал.: 0.00 [18:33:54]line Место: АЗС № 78 "Партнер Нефть" [18:33:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:33:54]line СНО: Общий режим [18:33:54]line Чек 237 22.10.2024 18:33 [18:33:54]line Смена: 116 ФФД: 1.0 [18:33:54]line ЗНМ: 0300000137 [18:33:54]line РНМ: 0000000000186857 [18:33:54]line Версия ККМ: v1.0 [18:33:54]line ФМ: 0000000002094219 [18:33:54]line ФД: 31004 [18:33:54]line ФПД: 149453591741717 [18:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183354&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31004&fm=149453591741717&tin=02508201610067®Number=0000000000186857&sum=50000 [18:33:55]written 0, free lines is 4095 [18:33:55]OFD Sender: Processing packet 31004 [packets to send 11, broken 10] [18:33:55]ProducePacketName [18:33:55]name=ofd_packets/00031004 [18:33:55]OFD Sender: To server: pG, [18:33:55]CommunicateWithHost lk.salyk.kg:30040 [18:33:55]ConnectInit lk.salyk.kg [18:33:55]Connected sock=10 [18:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6D 9D 07 01 9D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 79 00 00 35 04 06 00 87 ED 60 3F 05 15 5A 4D 2F 4E 4E CC 31 5B [18:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F9 F3 47 00 A7 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 79 00 00 F4 03 04 00 8F 9A 17 67 B6 04 01 00 00 D6 B5 C2 6D 6D 56 28 4B [18:33:55]CommunicateWithHost err = 0 [18:33:55]CheckOFDResponse [18:33:55]1017 (14) - 77093643461234 [18:33:55]1041 (16) - 0000000002094219 [18:33:55]1040 (4) - 31004 [18:33:55]1012 (4) - 22.10.2024 12:29 [18:33:55]1206 (1) - 0 [18:33:55]OFD Sender: Remove packet 31004 [18:33:55]ProducePacketName [18:33:55]name=ofd_packets/00031004 [18:33:55]NVStorageDeleteData [18:33:55]Write to MH i2c: 01 00 00 54 1D 71 [18:33:55]Write i2c OK [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: 01 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: 01 07 00 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 EB 0C 6F [18:33:55]RasterBufferAndPrint [18:33:55]line [18:33:55]line [18:33:55]line [18:33:55]line [18:33:55]line [18:33:55]written 0, free lines is 3314 [18:33:55]MH_Cut [18:33:55]Write to MH i2c: D1 01 00 5B 1D 01 4A [18:33:55]Write i2c OK [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: D1 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: D1 01 00 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: D1 01 00 5B 1D 00 49 [18:33:55]Write to MH i2c: 01 00 00 5C 1D 79 [18:33:55]Write i2c OK [18:33:55]MH_I2C_Read... [18:33:55]OFD Sender: No OFD packet to send [18:33:56]*** Cut start [18:33:56]*** Partial cut [18:33:56]*** CUTSNS_PIN = 1 [18:33:56]*** CUTSNS_PIN = 0 [18:33:56]*** Brake cut motor [18:33:56]Read from MH i2c: 01 [18:33:56]MH_I2C_Read... [18:33:56]*** Stop cut motor [18:33:56]*** Cut end [18:33:56]Read from MH i2c: 01 07 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 FF 0F 8E [18:33:56]process_action close_receipt done [18:33:56]requested_data is exist [18:33:56]produce_requested_data [18:33:56]requested_item fm.sn is exist - process it [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 11 00 00 [18:33:56]Write to MH i2c: E2 08 00 5D 1D 80 11 00 00 00 00 00 00 F4 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 5D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [18:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:33:56]wFMCommunicate OK [18:33:56]requested_item fd.num is exist - process it [18:33:56]SAM_PROTO_GetFieldsCounters [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 00 00 [18:33:56]Write to MH i2c: E2 08 00 5E 1D 80 13 00 00 00 00 00 00 F7 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 62 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 62 00 5E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_GetFieldsCounters done [18:33:56]requested_item shift.num is exist - process it [18:33:56]requested_item shift.opened is exist - process it [18:33:56]req_shift_opened [18:33:56]FM_GetShiftState [18:33:56]SAM_PROTO_GetShiftState [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 01 00 [18:33:56]Write to MH i2c: E2 08 00 5F 1D 80 13 01 00 00 00 00 00 F9 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:57]Read from MH i2c: E2 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 0E 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 0E 00 5F 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D3 [18:33:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:33:57]wFMCommunicate OK [18:33:57]SAM_PROTO_GetShiftState done [18:33:57]FM_GetShiftState done [18:33:57]req_shift_opened done [18:33:57]requested_item shift.open_date is exist - process it [18:33:57]req_shift_open_date [18:33:57]req_shift_open_date done [18:33:57]produce_requested_data done [18:33:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31004,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:33:57]process_action_free close_receipt [18:33:57]json_value_free [18:33:57]json_value_free done [18:33:57]process_json_proto returns [18:33:57]Send response to host [18:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31004,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:33:57]free response buf [18:33:57]execute_script done [18:33:57]execute_script returns [18:33:57]free content buf [18:33:57]Sock 7.Close socket [18:33:57]Sock 7.Thread stoped [18:33:57]accept exits with 9 [18:33:57]New connection [18:33:57]New thread 3067043172 created [18:33:57]Thread 3066899812 joined [18:33:57]Waiting for new connection... [18:33:57] Sock 9.Parse request [18:33:57]Sock 9.Check first char [18:33:57]Sock 9.First char is OK [18:33:57]request: POST /json_proto HTTP/1.0 [18:33:57]Method: POST [18:33:57]URL: /json_proto [18:33:57]Method is POST - this is cgi request [18:33:57]url: /json_proto [18:33:57]query_string will be loaded in cgi processing [18:33:57]execute_cgi json_proto POST (null) [18:33:57]execute_cgi path=json_proto method=POST [18:33:57]POST find Content-Length [18:33:57]Host: 172.17.51.3:8080 [18:33:57]Content-Length: 677 [18:33:57]Content-Type: application/json [18:33:57] [18:33:57]POST finish read [18:33:57]Found Content-Length = 677 [18:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]execute_script... [18:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]POST & json_proto [18:33:57]process_json_proto [18:33:57]json parsed OK: [18:33:57]protocol is kg_v1.0 [18:33:57]action value=close_receipt [18:33:57]process_action close_receipt [18:33:57]cmd_close_receipt [18:33:57]MH_GetDate [18:33:57]Write to MH i2c: F0 00 00 60 1D 6C [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 09 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 09 00 60 1D 00 17 F0 17 67 04 C1 95 66 BA [18:33:57]GetLastDocTimeStamp 1729622034 [18:33:57]current date 1729622039 [18:33:57]FM_GetShiftState [18:33:57]SAM_PROTO_GetShiftState [18:33:57]wFMCommunicate request_size=4 [18:33:57]MH_SAM_APDU [18:33:57]CAPDU: 80 13 01 00 [18:33:57]Write to MH i2c: E2 08 00 61 1D 80 13 01 00 00 00 00 00 FB [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:57]Read from MH i2c: E2 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 0E 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 0E 00 61 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D5 [18:33:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:33:57]wFMCommunicate OK [18:33:57]SAM_PROTO_GetShiftState done [18:33:57]FM_GetShiftState done [18:33:57]opened in 1729557342 [18:33:57]opened+sec_in_day 1729643742 [18:33:57]quantity*price = 50041 [18:33:57]sum+1 = 50042 [18:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 238 22.10.2024 18:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31005 ФПД: 11667058846315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31005&fm=11667058846315&tin=02508201610067®Number=0000000000186857&sum=50000 [18:33:58]StoreToDocumentArchive [18:33:58]shift 116 fd 31005 [18:33:58]save to /storage/0116/doc_00031005 [18:33:58]save last doc name /storage/0116/doc_00031005 to /storage/kkm_last_doc_name [18:33:58]save OK [18:33:58]Clear old archive folders... [18:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:58]tlvbuf is 00E9AC60 [18:33:58]SAM_PROTO_ClearQueue [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 09 00 00 [18:33:58]Write to MH i2c: E2 08 00 6E 1D 80 09 00 00 00 00 00 00 FD [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 6E 1D 00 90 00 FF [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]SAM_PROTO_ClearQueue done [18:33:58]KKMCreateOFDPacket [18:33:58]OFDProtocolAddRootSTLVToBuf [18:33:58]FM_MakeSignedData [18:33:58]FM_MakeSignedData [18:33:58]SAM_PROTO_SignData [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 0D 01 02 [18:33:58]Write to MH i2c: E2 08 00 6F 1D 80 0D 01 02 00 00 00 00 05 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 6F 1D 00 90 00 00 [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]wFMCommunicate request_size=255 [18:33:58]MH_SAM_APDU [18:33: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 17 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 79 00 00 35 04 06 00 0A [18:33:58]Write to MH i2c: E2 02 01 70 1D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 17 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 79 00 00 35 04 06 00 0A 00 00 1D [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 70 1D 00 90 00 01 [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]wFMCommunicate request_size=10 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 02 02 05 9C 72 E5 EA 6B [18:33:59]Write to MH i2c: E2 0D 00 71 1D 80 0D 02 02 05 00 9C 72 E5 EA 6B 00 00 5A [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 03 02 [18:33:59]Write to MH i2c: E2 08 00 72 1D 80 0D 03 02 00 00 00 00 0A [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0B 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0B 00 72 1D 00 EC 3C 64 55 E6 45 A0 D1 90 00 88 [18:33:59]RAPDU: EC 3C 64 55 E6 45 A0 D1 90 00 [18:33:59]wFMCommunicate OK [18:33:59]SAM_PROTO_SignData done [18:33:59]FM_MakeSignedData done [18:33:59]CreateOFDProtocolMessage [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 11 00 00 [18:33:59]Write to MH i2c: E2 08 00 73 1D 80 11 00 00 00 00 00 00 0A [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 73 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [18:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:33:59]wFMCommunicate OK [18:33:59]CreateOFDProtocolMessage done [18:33:59]OFDSenderStorePacket 31005 [18:33:59]StoreOFDPacket docnum=31005 [18:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A1 AD 07 01 43 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 17 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 79 00 00 35 04 06 00 0A 9C 72 E5 EA 6B EC 3C 64 55 E6 45 A0 D1 [18:33:59]CheckFolder [18:33:59]dirname=/storage/ofd_packets [18:33:59]CheckFolder done [18:33:59]ProducePacketName [18:33:59]name=ofd_packets/00031005 [18:33:59]NVStorageSaveData ofd_packets/00031005 [18:33:59]File name is /storage/ofd_packets/00031005 [18:33:59]Write 301 bytes [18:33:59]NVStorageSaveData done [18:33:59]OFDSenderStorePacket done [18:33:59]KKMCreateOFDPacket done [18:33:59]NVStorageSaveData kkm_last_timestamp [18:33:59]File name is /storage/kkm_last_timestamp [18:33:59]Write 4 bytes [18:33:59]NVStorageSaveData done [18:33:59]ExternCall_PrintAddStr [18:33:59]wPrintStart [18:33:59]Write to MH i2c: 01 00 00 74 1D 91 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 FF 0F A6 [18:33:59]RasterBufferAndPrint [18:33:59]line Счет N : (1)343433 [18:33:59]line ИНН: 02508201610067 [18:33:59]line Контрольно-Кассовый Чек [18:33:59]line ПРОДАЖА [18:33:59]line ТРК (МРК, ГНК) : 33 [18:33:59]line Товар: 2710124130 [18:33:59]line Аи-92-К-2 [18:33:59]line 7.480 * 66.90 [18:33:59]line = 500.41 [18:33:59]line НДС 12% НСП 1% [18:33:59]line > о реализуемом товаре [18:33:59]line ОКРУГЛЕНИЕ: -0.41 [18:33:59]line ИТОГО: 500.00 [18:33:59]line Внесено: 500.00 [18:33:59]line СДАЧА: 0.00 [18:33:59]line НСП 1% : 4.43 [18:33:59]line НДС 12% : 53.14 [18:33:59]line Наличными: 500.00 [18:33:59]line Безнал.: 0.00 [18:33:59]line Место: АЗС № 78 "Партнер Нефть" [18:33:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:33:59]line СНО: Общий режим [18:33:59]line Чек 238 22.10.2024 18:33 [18:33:59]line Смена: 116 ФФД: 1.0 [18:33:59]line ЗНМ: 0300000137 [18:33:59]line РНМ: 0000000000186857 [18:33:59]line Версия ККМ: v1.0 [18:33:59]line ФМ: 0000000002094219 [18:33:59]line ФД: 31005 [18:33:59]line ФПД: 11667058846315 [18:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31005&fm=11667058846315&tin=02508201610067®Number=0000000000186857&sum=50000 [18:33:59]OFD Sender: Processing packet 31005 [packets to send 11, broken 10] [18:33:59]ProducePacketName [18:33:59]name=ofd_packets/00031005 [18:33:59]OFD Sender: To server: pG, [18:33:59]CommunicateWithHost lk.salyk.kg:30040 [18:33:59]ConnectInit lk.salyk.kg [18:33:59]written 0, free lines is 4095 [18:33:59]Connected sock=10 [18:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A1 AD 07 01 43 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 17 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 79 00 00 35 04 06 00 0A 9C 72 E5 EA 6B EC 3C 64 55 E6 45 A0 D1 [18:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4B 0C 47 00 07 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 32 30 39 34 32 31 39 10 04 04 00 1D 79 00 00 F4 03 04 00 94 9A 17 67 B6 04 01 00 00 3B DA 63 CB 2A CC D4 68 [18:34:00]CommunicateWithHost err = 0 [18:34:00]CheckOFDResponse [18:34:00]1017 (14) - 77093643461234 [18:34:00]1041 (16) - 0000000002094219 [18:34:00]1040 (4) - 31005 [18:34:00]1012 (4) - 22.10.2024 12:29 [18:34:00]1206 (1) - 0 [18:34:00]OFD Sender: Remove packet 31005 [18:34:00]ProducePacketName [18:34:00]name=ofd_packets/00031005 [18:34:00]NVStorageDeleteData [18:34:00]Write to MH i2c: 01 00 00 9F 1D BC [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 9F 1D 00 00 00 00 00 EF 0C BE [18:34:00]RasterBufferAndPrint [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]written 0, free lines is 3323 [18:34:00]MH_Cut [18:34:00]Write to MH i2c: D1 01 00 A6 1D 01 95 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 01 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 01 00 A6 1D 00 94 [18:34:00]Write to MH i2c: 01 00 00 A7 1D C4 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]OFD Sender: No OFD packet to send [18:34:00]*** Cut start [18:34:00]*** Partial cut [18:34:00]*** CUTSNS_PIN = 1 [18:34:00]*** CUTSNS_PIN = 0 [18:34:01]*** Brake cut motor [18:34:01]Read from MH i2c: 01 [18:34:01]MH_I2C_Read... [18:34:01]*** Stop cut motor [18:34:01]*** Cut end [18:34:01]Read from MH i2c: 01 07 00 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: 01 07 00 A7 1D 00 00 00 00 00 FF 0F D9 [18:34:01]process_action close_receipt done [18:34:01]requested_data is exist [18:34:01]produce_requested_data [18:34:01]requested_item fm.sn is exist - process it [18:34:01]wFMCommunicate request_size=4 [18:34:01]MH_SAM_APDU [18:34:01]CAPDU: 80 11 00 00 [18:34:01]Write to MH i2c: E2 08 00 A8 1D 80 11 00 00 00 00 00 00 3F [18:34:01]Write i2c OK [18:34:01]MH_I2C_Read... [18:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:01]Read from MH i2c: E2 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 17 00 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 17 00 A8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [18:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:34:01]wFMCommunicate OK [18:34:01]requested_item fd.num is exist - process it [18:34:01]SAM_PROTO_GetFieldsCounters [18:34:01]wFMCommunicate request_size=4 [18:34:01]MH_SAM_APDU [18:34:01]CAPDU: 80 13 00 00 [18:34:01]Write to MH i2c: E2 08 00 A9 1D 80 13 00 00 00 00 00 00 42 [18:34:01]Write i2c OK [18:34:01]MH_I2C_Read... [18:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:01]Read from MH i2c: E2 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 62 00 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 62 00 A9 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [18:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:01]wFMCommunicate OK [18:34:01]SAM_PROTO_GetFieldsCounters done [18:34:01]requested_item shift.num is exist - process it [18:34:01]requested_item shift.opened is exist - process it [18:34:01]req_shift_opened [18:34:01]FM_GetShiftState [18:34:01]SAM_PROTO_GetShiftState [18:34:01]wFMCommunicate request_size=4 [18:34:01]MH_SAM_APDU [18:34:01]CAPDU: 80 13 01 00 [18:34:01]Write to MH i2c: E2 08 00 AA 1D 80 13 01 00 00 00 00 00 44 [18:34:01]Write i2c OK [18:34:01]MH_I2C_Read... [18:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:01]Read from MH i2c: E2 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 0E 00 [18:34:01]MH_I2C_Read... [18:34:01]Read from MH i2c: E2 0E 00 AA 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1E [18:34:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:34:01]wFMCommunicate OK [18:34:01]SAM_PROTO_GetShiftState done [18:34:01]FM_GetShiftState done [18:34:01]req_shift_opened done [18:34:01]requested_item shift.open_date is exist - process it [18:34:01]req_shift_open_date [18:34:01]req_shift_open_date done [18:34:01]produce_requested_data done [18:34:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31005,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:34:01]process_action_free close_receipt [18:34:01]json_value_free [18:34:01]json_value_free done [18:34:01]process_json_proto returns [18:34:01]Send response to host [18:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31005,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:34:01]free response buf [18:34:01]execute_script done [18:34:01]execute_script returns [18:34:01]free content buf [18:34:01]Sock 9.Close socket [18:34:01]Sock 9.Thread stoped [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:22]accept exits with 7 [18:36:22]New connection [18:36:22]New thread 3066899812 created [18:36:22]Thread 3067043172 joined [18:36:22]Waiting for new connection... [18:36:22] Sock 7.Parse request [18:36:22]Sock 7.Check first char [18:36:22]Sock 7.First char is OK [18:36:22]request: POST /json_proto HTTP/1.0 [18:36:22]Method: POST [18:36:22]URL: /json_proto [18:36:22]Method is POST - this is cgi request [18:36:22]url: /json_proto [18:36:22]query_string will be loaded in cgi processing [18:36:22]execute_cgi json_proto POST (null) [18:36:22]execute_cgi path=json_proto method=POST [18:36:22]POST find Content-Length [18:36:22]Host: 172.17.51.3:8080 [18:36:22]Content-Length: 677 [18:36:22]Content-Type: application/json [18:36:22] [18:36:22]POST finish read [18:36:22]Found Content-Length = 677 [18:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:22]execute_script... [18:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:22]POST & json_proto [18:36:22]process_json_proto [18:36:22]json parsed OK: [18:36:22]protocol is kg_v1.0 [18:36:22]action value=close_receipt [18:36:22]process_action close_receipt [18:36:22]cmd_close_receipt [18:36:22]MH_GetDate [18:36:22]Write to MH i2c: F0 00 00 AB 1D B7 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: F0 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: F0 09 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: F0 09 00 AB 1D 00 A8 F0 17 67 04 C1 95 66 96 [18:36:22]GetLastDocTimeStamp 1729622039 [18:36:22]current date 1729622184 [18:36:22]FM_GetShiftState [18:36:22]SAM_PROTO_GetShiftState [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 13 01 00 [18:36:22]Write to MH i2c: E2 08 00 AC 1D 80 13 01 00 00 00 00 00 46 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0E 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0E 00 AC 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 20 [18:36:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:36:22]wFMCommunicate OK [18:36:22]SAM_PROTO_GetShiftState done [18:36:22]FM_GetShiftState done [18:36:22]opened in 1729557342 [18:36:22]opened+sec_in_day 1729643742 [18:36:22]quantity*price = 40006 [18:36:22]sum+1 = 40007 [18:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 239 22.10.2024 18:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31006 ФПД: 25633778535802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183624&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31006&fm=25633778535802&tin=02508201610067®Number=0000000000186857&sum=40000 [18:36:23]StoreToDocumentArchive [18:36:23]shift 116 fd 31006 [18:36:23]save to /storage/0116/doc_00031006 [18:36:23]save last doc name /storage/0116/doc_00031006 to /storage/kkm_last_doc_name [18:36:23]save OK [18:36:23]Clear old archive folders... [18:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:23]tlvbuf is 00CDA730 [18:36:23]SAM_PROTO_ClearQueue [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 09 00 00 [18:36:23]Write to MH i2c: E2 08 00 B9 1D 80 09 00 00 00 00 00 00 48 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:23]Read from MH i2c: E2 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 03 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 03 00 B9 1D 00 90 00 4A [18:36:23]RAPDU: 90 00 [18:36:23]wFMCommunicate OK [18:36:23]SAM_PROTO_ClearQueue done [18:36:23]KKMCreateOFDPacket [18:36:23]OFDProtocolAddRootSTLVToBuf [18:36:23]FM_MakeSignedData [18:36:23]FM_MakeSignedData [18:36:23]SAM_PROTO_SignData [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 0D 01 02 [18:36:23]Write to MH i2c: E2 08 00 BA 1D 80 0D 01 02 00 00 00 00 50 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 BA 1D 00 90 00 4B [18:36:24]RAPDU: 90 00 [18:36:24]wFMCommunicate OK [18:36:24]wFMCommunicate request_size=255 [18:36:24]MH_SAM_APDU [18:36: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 A8 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 79 00 00 35 04 06 00 17 [18:36:24]Write to MH i2c: E2 02 01 BB 1D 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 A8 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 79 00 00 35 04 06 00 17 00 00 D7 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 BB 1D 00 90 00 4C [18:36:24]RAPDU: 90 00 [18:36:24]wFMCommunicate OK [18:36:24]wFMCommunicate request_size=10 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 0D 02 02 05 50 54 43 8D 7A [18:36:24]Write to MH i2c: E2 0D 00 BC 1D 80 0D 02 02 05 00 50 54 43 8D 7A 00 00 4B [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 03 00 BC 1D 00 90 00 4D [18:36:24]RAPDU: 90 00 [18:36:24]wFMCommunicate OK [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 0D 03 02 [18:36:24]Write to MH i2c: E2 08 00 BD 1D 80 0D 03 02 00 00 00 00 55 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0B 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0B 00 BD 1D 00 AA 54 25 3F 5F 1B FF 72 90 00 A3 [18:36:24]RAPDU: AA 54 25 3F 5F 1B FF 72 90 00 [18:36:24]wFMCommunicate OK [18:36:24]SAM_PROTO_SignData done [18:36:24]FM_MakeSignedData done [18:36:24]CreateOFDProtocolMessage [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 11 00 00 [18:36:24]Write to MH i2c: E2 08 00 BE 1D 80 11 00 00 00 00 00 00 55 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 17 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 17 00 BE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [18:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:36:24]wFMCommunicate OK [18:36:24]CreateOFDProtocolMessage done [18:36:24]OFDSenderStorePacket 31006 [18:36:24]StoreOFDPacket docnum=31006 [18:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 57 07 01 58 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 A8 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 79 00 00 35 04 06 00 17 50 54 43 8D 7A AA 54 25 3F 5F 1B FF 72 [18:36:24]CheckFolder [18:36:24]dirname=/storage/ofd_packets [18:36:24]CheckFolder done [18:36:24]ProducePacketName [18:36:24]name=ofd_packets/00031006 [18:36:24]NVStorageSaveData ofd_packets/00031006 [18:36:24]File name is /storage/ofd_packets/00031006 [18:36:24]Write 301 bytes [18:36:24]NVStorageSaveData done [18:36:24]OFDSenderStorePacket done [18:36:24]KKMCreateOFDPacket done [18:36:24]NVStorageSaveData kkm_last_timestamp [18:36:24]File name is /storage/kkm_last_timestamp [18:36:24]Write 4 bytes [18:36:24]NVStorageSaveData done [18:36:24]ExternCall_PrintAddStr [18:36:24]wPrintStart [18:36:24]Write to MH i2c: 01 00 00 BF 1D DC [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: 01 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: 01 07 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [18:36:24]RasterBufferAndPrint [18:36:24]line Счет N : (1)343435 [18:36:24]line ИНН: 02508201610067 [18:36:24]line Контрольно-Кассовый Чек [18:36:24]line ПРОДАЖА [18:36:24]line ТРК (МРК, ГНК) : 63 [18:36:24]line Товар: 2710124130 [18:36:24]line Аи-92-К-2 [18:36:24]line 5.980 * 66.90 [18:36:24]line = 400.06 [18:36:24]line НДС 12% НСП 1% [18:36:24]line > о реализуемом товаре [18:36:24]line ОКРУГЛЕНИЕ: -0.06 [18:36:24]line ИТОГО: 400.00 [18:36:24]line Внесено: 400.00 [18:36:24]line СДАЧА: 0.00 [18:36:24]line НСП 1% : 3.54 [18:36:24]line НДС 12% : 42.48 [18:36:24]line Наличными: 400.00 [18:36:24]line Безнал.: 0.00 [18:36:24]line Место: АЗС № 78 "Партнер Нефть" [18:36:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:36:24]line СНО: Общий режим [18:36:24]line Чек 239 22.10.2024 18:36 [18:36:24]line Смена: 116 ФФД: 1.0 [18:36:24]line ЗНМ: 0300000137 [18:36:24]line РНМ: 0000000000186857 [18:36:24]line Версия ККМ: v1.0 [18:36:24]line ФМ: 0000000002094219 [18:36:24]line ФД: 31006 [18:36:24]line ФПД: 25633778535802 [18:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183624&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31006&fm=25633778535802&tin=02508201610067®Number=0000000000186857&sum=40000 [18:36:24]OFD Sender: Processing packet 31006 [packets to send 11, broken 10] [18:36:24]ProducePacketName [18:36:24]name=ofd_packets/00031006 [18:36:24]OFD Sender: To server: pG, [18:36:24]CommunicateWithHost lk.salyk.kg:30040 [18:36:24]ConnectInit lk.salyk.kg [18:36:24]written 0, free lines is 4095 [18:36:24]Connected sock=10 [18:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 57 07 01 58 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 A8 F0 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 79 00 00 35 04 06 00 17 50 54 43 8D 7A AA 54 25 3F 5F 1B FF 72 [18:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 07 23 47 00 25 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 32 30 39 34 32 31 39 10 04 04 00 1E 79 00 00 F4 03 04 00 25 9B 17 67 B6 04 01 00 00 1B 2A B2 4A 6E 1E A0 7B [18:36:25]CommunicateWithHost err = 0 [18:36:25]CheckOFDResponse [18:36:25]1017 (14) - 77093643461234 [18:36:25]1041 (16) - 0000000002094219 [18:36:25]1040 (4) - 31006 [18:36:25]1012 (4) - 22.10.2024 12:31 [18:36:25]1206 (1) - 0 [18:36:25]OFD Sender: Remove packet 31006 [18:36:25]ProducePacketName [18:36:25]name=ofd_packets/00031006 [18:36:25]NVStorageDeleteData [18:36:25]Write to MH i2c: 01 00 00 EA 1D 07 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 00 0D 1B [18:36:25]RasterBufferAndPrint [18:36:25]line [18:36:25]line [18:36:25]line [18:36:25]line [18:36:25]line [18:36:25]written 0, free lines is 3337 [18:36:25]MH_Cut [18:36:25]Write to MH i2c: D1 01 00 F1 1D 01 E0 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: D1 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: D1 01 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: D1 01 00 F1 1D 00 DF [18:36:25]Write to MH i2c: 01 00 00 F2 1D 0F [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]OFD Sender: No OFD packet to send [18:36:25]*** Cut start [18:36:25]*** Partial cut [18:36:25]*** CUTSNS_PIN = 1 [18:36:25]*** CUTSNS_PIN = 0 [18:36:26]*** Brake cut motor [18:36:26]Read from MH i2c: 01 [18:36:26]MH_I2C_Read... [18:36:26]*** Stop cut motor [18:36:26]*** Cut end [18:36:26]Read from MH i2c: 01 07 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 FF 0F 24 [18:36:26]process_action close_receipt done [18:36:26]requested_data is exist [18:36:26]produce_requested_data [18:36:26]requested_item fm.sn is exist - process it [18:36:26]wFMCommunicate request_size=4 [18:36:26]MH_SAM_APDU [18:36:26]CAPDU: 80 11 00 00 [18:36:26]Write to MH i2c: E2 08 00 F3 1D 80 11 00 00 00 00 00 00 8A [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:26]Read from MH i2c: E2 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 17 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 17 00 F3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D8 [18:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:36:26]wFMCommunicate OK [18:36:26]requested_item fd.num is exist - process it [18:36:26]SAM_PROTO_GetFieldsCounters [18:36:26]wFMCommunicate request_size=4 [18:36:26]MH_SAM_APDU [18:36:26]CAPDU: 80 13 00 00 [18:36:26]Write to MH i2c: E2 08 00 F4 1D 80 13 00 00 00 00 00 00 8D [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:26]Read from MH i2c: E2 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 62 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 62 00 F4 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [18:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:26]wFMCommunicate OK [18:36:26]SAM_PROTO_GetFieldsCounters done [18:36:26]requested_item shift.num is exist - process it [18:36:26]requested_item shift.opened is exist - process it [18:36:26]req_shift_opened [18:36:26]FM_GetShiftState [18:36:26]SAM_PROTO_GetShiftState [18:36:26]wFMCommunicate request_size=4 [18:36:26]MH_SAM_APDU [18:36:26]CAPDU: 80 13 01 00 [18:36:26]Write to MH i2c: E2 08 00 F5 1D 80 13 01 00 00 00 00 00 8F [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:26]Read from MH i2c: E2 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 0E 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 0E 00 F5 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 69 [18:36:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:36:26]wFMCommunicate OK [18:36:26]SAM_PROTO_GetShiftState done [18:36:26]FM_GetShiftState done [18:36:26]req_shift_opened done [18:36:26]requested_item shift.open_date is exist - process it [18:36:26]req_shift_open_date [18:36:26]req_shift_open_date done [18:36:26]produce_requested_data done [18:36:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31006,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:36:26]process_action_free close_receipt [18:36:26]json_value_free [18:36:26]json_value_free done [18:36:26]process_json_proto returns [18:36:26]Send response to host [18:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31006,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:36:26]free response buf [18:36:26]execute_script done [18:36:26]execute_script returns [18:36:26]free content buf [18:36:26]Sock 7.Close socket [18:36:26]Sock 7.Thread stoped [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:05]accept exits with 9 [18:38:05]New connection [18:38:05]New thread 3067043172 created [18:38:05]Thread 3066899812 joined [18:38:05]Waiting for new connection... [18:38:05] Sock 9.Parse request [18:38:05]Sock 9.Check first char [18:38:05]Sock 9.First char is OK [18:38:05]request: POST /json_proto HTTP/1.0 [18:38:05]Method: POST [18:38:05]URL: /json_proto [18:38:05]Method is POST - this is cgi request [18:38:05]url: /json_proto [18:38:05]query_string will be loaded in cgi processing [18:38:05]execute_cgi json_proto POST (null) [18:38:05]execute_cgi path=json_proto method=POST [18:38:05]POST find Content-Length [18:38:05]Host: 172.17.51.3:8080 [18:38:05]Content-Length: 677 [18:38:05]Content-Type: application/json [18:38:05] [18:38:05]POST finish read [18:38:05]Found Content-Length = 677 [18:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]execute_script... [18:38: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)343437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]POST & json_proto [18:38:05]process_json_proto [18:38:05]json parsed OK: [18:38:05]protocol is kg_v1.0 [18:38:05]action value=close_receipt [18:38:05]process_action close_receipt [18:38:05]cmd_close_receipt [18:38:05]MH_GetDate [18:38:05]Write to MH i2c: F0 00 00 F6 1D 02 [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 F6 1D 00 0F F1 17 67 04 C1 95 66 49 [18:38:05]GetLastDocTimeStamp 1729622184 [18:38:05]current date 1729622287 [18:38:05]FM_GetShiftState [18:38:05]SAM_PROTO_GetShiftState [18:38:05]wFMCommunicate request_size=4 [18:38:05]MH_SAM_APDU [18:38:05]CAPDU: 80 13 01 00 [18:38:05]Write to MH i2c: E2 08 00 F7 1D 80 13 01 00 00 00 00 00 91 [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:05]Read from MH i2c: E2 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 F7 1D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6B [18:38:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:38:05]wFMCommunicate OK [18:38:05]SAM_PROTO_GetShiftState done [18:38:05]FM_GetShiftState done [18:38:05]opened in 1729557342 [18:38:05]opened+sec_in_day 1729643742 [18:38:05]quantity*price = 50041 [18:38:05]sum+1 = 50042 [18:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 240 22.10.2024 18:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31007 ФПД: 261921877767206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183807&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31007&fm=261921877767206&tin=02508201610067®Number=0000000000186857&sum=50000 [18:38:07]StoreToDocumentArchive [18:38:07]shift 116 fd 31007 [18:38:07]save to /storage/0116/doc_00031007 [18:38:07]save last doc name /storage/0116/doc_00031007 to /storage/kkm_last_doc_name [18:38:07]save OK [18:38:07]Clear old archive folders... [18:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:07]tlvbuf is 00D54E20 [18:38:07]SAM_PROTO_ClearQueue [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 09 00 00 [18:38:07]Write to MH i2c: E2 08 00 04 1E 80 09 00 00 00 00 00 00 94 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 04 1E 00 90 00 96 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]SAM_PROTO_ClearQueue done [18:38:07]KKMCreateOFDPacket [18:38:07]OFDProtocolAddRootSTLVToBuf [18:38:07]FM_MakeSignedData [18:38:07]FM_MakeSignedData [18:38:07]SAM_PROTO_SignData [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 01 02 [18:38:07]Write to MH i2c: E2 08 00 05 1E 80 0D 01 02 00 00 00 00 9C [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 05 1E 00 90 00 97 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=255 [18:38:07]MH_SAM_APDU [18:38: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 0F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 79 00 00 35 04 06 00 EE [18:38:07]Write to MH i2c: E2 02 01 06 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 0F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 79 00 00 35 04 06 00 EE 00 00 95 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 06 1E 00 90 00 98 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=10 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 02 02 05 37 70 7B B4 26 [18:38:07]Write to MH i2c: E2 0D 00 07 1E 80 0D 02 02 05 00 37 70 7B B4 26 00 00 A5 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 03 02 [18:38:07]Write to MH i2c: E2 08 00 08 1E 80 0D 03 02 00 00 00 00 A1 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 0B 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 0B 00 08 1E 00 18 1A 2C 4F E4 F6 FB 22 90 00 46 [18:38:07]RAPDU: 18 1A 2C 4F E4 F6 FB 22 90 00 [18:38:07]wFMCommunicate OK [18:38:07]SAM_PROTO_SignData done [18:38:07]FM_MakeSignedData done [18:38:07]CreateOFDProtocolMessage [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 11 00 00 [18:38:07]Write to MH i2c: E2 08 00 09 1E 80 11 00 00 00 00 00 00 A1 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 17 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 17 00 09 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [18:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:07]wFMCommunicate OK [18:38:07]CreateOFDProtocolMessage done [18:38:07]OFDSenderStorePacket 31007 [18:38:07]StoreOFDPacket docnum=31007 [18:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA 7D 07 01 3A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 0F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 79 00 00 35 04 06 00 EE 37 70 7B B4 26 18 1A 2C 4F E4 F6 FB 22 [18:38:07]CheckFolder [18:38:07]dirname=/storage/ofd_packets [18:38:07]CheckFolder done [18:38:07]ProducePacketName [18:38:07]name=ofd_packets/00031007 [18:38:07]NVStorageSaveData ofd_packets/00031007 [18:38:07]File name is /storage/ofd_packets/00031007 [18:38:07]Write 301 bytes [18:38:07]NVStorageSaveData done [18:38:07]OFDSenderStorePacket done [18:38:07]KKMCreateOFDPacket done [18:38:07]NVStorageSaveData kkm_last_timestamp [18:38:07]File name is /storage/kkm_last_timestamp [18:38:07]Write 4 bytes [18:38:07]NVStorageSaveData done [18:38:07]ExternCall_PrintAddStr [18:38:07]wPrintStart [18:38:07]Write to MH i2c: 01 00 00 0A 1E 28 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 07 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [18:38:07]RasterBufferAndPrint [18:38:07]line Счет N : (1)343437 [18:38:07]line ИНН: 02508201610067 [18:38:07]line Контрольно-Кассовый Чек [18:38:07]line ПРОДАЖА [18:38:07]line ТРК (МРК, ГНК) : 63 [18:38:07]line Товар: 2710124130 [18:38:07]line Аи-92-К-2 [18:38:07]line 7.480 * 66.90 [18:38:07]line = 500.41 [18:38:07]line НДС 12% НСП 1% [18:38:07]line > о реализуемом товаре [18:38:07]line ОКРУГЛЕНИЕ: -0.41 [18:38:07]line ИТОГО: 500.00 [18:38:07]line Внесено: 500.00 [18:38:07]line СДАЧА: 0.00 [18:38:07]line НСП 1% : 4.43 [18:38:07]line НДС 12% : 53.14 [18:38:07]line Наличными: 500.00 [18:38:07]line Безнал.: 0.00 [18:38:07]line Место: АЗС № 78 "Партнер Нефть" [18:38:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:38:07]line СНО: Общий режим [18:38:07]line Чек 240 22.10.2024 18:38 [18:38:07]line Смена: 116 ФФД: 1.0 [18:38:07]line ЗНМ: 0300000137 [18:38:07]line РНМ: 0000000000186857 [18:38:07]line Версия ККМ: v1.0 [18:38:07]line ФМ: 0000000002094219 [18:38:07]line ФД: 31007 [18:38:07]line ФПД: 261921877767206 [18:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183807&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31007&fm=261921877767206&tin=02508201610067®Number=0000000000186857&sum=50000 [18:38:07]OFD Sender: Processing packet 31007 [packets to send 11, broken 10] [18:38:07]ProducePacketName [18:38:07]name=ofd_packets/00031007 [18:38:07]OFD Sender: To server: pG, [18:38:07]CommunicateWithHost lk.salyk.kg:30040 [18:38:07]ConnectInit lk.salyk.kg [18:38:07]written 0, free lines is 4095 [18:38:07]Connected sock=10 [18:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CA 7D 07 01 3A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 0F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 79 00 00 35 04 06 00 EE 37 70 7B B4 26 18 1A 2C 4F E4 F6 FB 22 [18:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A2 73 47 00 BB 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 32 30 39 34 32 31 39 10 04 04 00 1F 79 00 00 F4 03 04 00 8C 9B 17 67 B6 04 01 00 00 4C 4D CF 2F A2 CA 4F DB [18:38:08]CommunicateWithHost err = 0 [18:38:08]CheckOFDResponse [18:38:08]1017 (14) - 77093643461234 [18:38:08]1041 (16) - 0000000002094219 [18:38:08]1040 (4) - 31007 [18:38:08]1012 (4) - 22.10.2024 12:33 [18:38:08]1206 (1) - 0 [18:38:08]OFD Sender: Remove packet 31007 [18:38:08]ProducePacketName [18:38:08]name=ofd_packets/00031007 [18:38:08]NVStorageDeleteData [18:38:08]Write to MH i2c: 01 00 00 35 1E 53 [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 07 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 F3 0C 59 [18:38:08]RasterBufferAndPrint [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]written 0, free lines is 3322 [18:38:08]MH_Cut [18:38:08]Write to MH i2c: D1 01 00 3C 1E 01 2C [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 01 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 01 00 3C 1E 00 2B [18:38:08]Write to MH i2c: 01 00 00 3D 1E 5B [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]OFD Sender: No OFD packet to send [18:38:09]*** Cut start [18:38:09]*** Partial cut [18:38:09]*** CUTSNS_PIN = 1 [18:38:09]*** CUTSNS_PIN = 0 [18:38:09]*** Brake cut motor [18:38:09]Read from MH i2c: 01 [18:38:09]MH_I2C_Read... [18:38:09]*** Stop cut motor [18:38:09]*** Cut end [18:38:09]Read from MH i2c: 01 07 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: 01 07 00 3D 1E 00 00 00 00 00 FF 0F 70 [18:38:09]process_action close_receipt done [18:38:09]requested_data is exist [18:38:09]produce_requested_data [18:38:09]requested_item fm.sn is exist - process it [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 11 00 00 [18:38:09]Write to MH i2c: E2 08 00 3E 1E 80 11 00 00 00 00 00 00 D6 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 3E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 24 [18:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:09]wFMCommunicate OK [18:38:09]requested_item fd.num is exist - process it [18:38:09]SAM_PROTO_GetFieldsCounters [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 13 00 00 [18:38:09]Write to MH i2c: E2 08 00 3F 1E 80 13 00 00 00 00 00 00 D9 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 62 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 62 00 3F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [18:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_GetFieldsCounters done [18:38:09]requested_item shift.num is exist - process it [18:38:09]requested_item shift.opened is exist - process it [18:38:09]req_shift_opened [18:38:09]FM_GetShiftState [18:38:09]SAM_PROTO_GetShiftState [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 13 01 00 [18:38:09]Write to MH i2c: E2 08 00 40 1E 80 13 01 00 00 00 00 00 DB [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0E 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0E 00 40 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B5 [18:38:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_GetShiftState done [18:38:09]FM_GetShiftState done [18:38:09]req_shift_opened done [18:38:09]requested_item shift.open_date is exist - process it [18:38:09]req_shift_open_date [18:38:09]req_shift_open_date done [18:38:09]produce_requested_data done [18:38:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31007,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:38:09]process_action_free close_receipt [18:38:09]json_value_free [18:38:09]json_value_free done [18:38:09]process_json_proto returns [18:38:09]Send response to host [18:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31007,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:38:09]free response buf [18:38:09]execute_script done [18:38:09]execute_script returns [18:38:09]free content buf [18:38:09]Sock 9.Close socket [18:38:09]Sock 9.Thread stoped [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]accept exits with 7 [18:38:53]New connection [18:38:53]New thread 3066899812 created [18:38:53]Thread 3067043172 joined [18:38:53]Waiting for new connection... [18:38:53] Sock 7.Parse request [18:38:53]Sock 7.Check first char [18:38:53]Sock 7.First char is OK [18:38:53]request: POST /json_proto HTTP/1.0 [18:38:53]Method: POST [18:38:53]URL: /json_proto [18:38:53]Method is POST - this is cgi request [18:38:53]url: /json_proto [18:38:53]query_string will be loaded in cgi processing [18:38:53]execute_cgi json_proto POST (null) [18:38:53]execute_cgi path=json_proto method=POST [18:38:53]POST find Content-Length [18:38:53]Host: 172.17.51.3:8080 [18:38:53]Content-Length: 751 [18:38:53]Content-Type: application/json [18:38:53] [18:38:53]POST finish read [18:38:53]Found Content-Length = 751 [18:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:53]execute_script... [18:38: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)343436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:53]POST & json_proto [18:38:53]process_json_proto [18:38:53]json parsed OK: [18:38:53]protocol is kg_v1.0 [18:38:53]action value=close_receipt [18:38:53]process_action close_receipt [18:38:53]cmd_close_receipt [18:38:53]MH_GetDate [18:38:53]Write to MH i2c: F0 00 00 41 1E 4E [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 09 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 09 00 41 1E 00 3F F1 17 67 04 C1 95 66 C5 [18:38:53]GetLastDocTimeStamp 1729622287 [18:38:53]current date 1729622335 [18:38:53]FM_GetShiftState [18:38:53]SAM_PROTO_GetShiftState [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 13 01 00 [18:38:53]Write to MH i2c: E2 08 00 42 1E 80 13 01 00 00 00 00 00 DD [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0E 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0E 00 42 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B7 [18:38:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:38:53]wFMCommunicate OK [18:38:53]SAM_PROTO_GetShiftState done [18:38:53]FM_GetShiftState done [18:38:53]opened in 1729557342 [18:38:53]opened+sec_in_day 1729643742 [18:38:53]quantity*price = 0 [18:38:53]sum+1 = 1 [18:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 241 22.10.2024 18:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30145330 ФМ: 0000000002094219 ФД: 31008 ФПД: 6646965445328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183855&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31008&fm=6646965445328&tin=02508201610067®Number=0000000000186857&sum=0 [18:38:54]StoreToDocumentArchive [18:38:54]shift 116 fd 31008 [18:38:54]save to /storage/0116/doc_00031008 [18:38:54]save last doc name /storage/0116/doc_00031008 to /storage/kkm_last_doc_name [18:38:54]save OK [18:38:54]Clear old archive folders... [18:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:38:54]tlvbuf is 00CDACB0 [18:38:54]SAM_PROTO_ClearQueue [18:38:54]wFMCommunicate request_size=4 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 09 00 00 [18:38:54]Write to MH i2c: E2 08 00 4F 1E 80 09 00 00 00 00 00 00 DF [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 4F 1E 00 90 00 E1 [18:38:54]RAPDU: 90 00 [18:38:54]wFMCommunicate OK [18:38:54]SAM_PROTO_ClearQueue done [18:38:54]KKMCreateOFDPacket [18:38:54]OFDProtocolAddRootSTLVToBuf [18:38:54]FM_MakeSignedData [18:38:54]FM_MakeSignedData [18:38:54]SAM_PROTO_SignData [18:38:54]wFMCommunicate request_size=4 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 0D 01 02 [18:38:54]Write to MH i2c: E2 08 00 50 1E 80 0D 01 02 00 00 00 00 E7 [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 50 1E 00 90 00 E2 [18:38:54]RAPDU: 90 00 [18:38:54]wFMCommunicate OK [18:38:54]wFMCommunicate request_size=255 [18:38:54]MH_SAM_APDU [18:38: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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 3F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 79 00 00 35 04 06 00 06 0B 9E 03 [18:38:54]Write to MH i2c: E2 02 01 51 1E 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 3F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 79 00 00 35 04 06 00 06 0B 9E 03 00 00 B7 [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 51 1E 00 90 00 E3 [18:38:54]RAPDU: 90 00 [18:38:54]wFMCommunicate OK [18:38:54]wFMCommunicate request_size=7 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 0D 02 02 02 A2 D0 [18:38:54]Write to MH i2c: E2 0A 00 52 1E 80 0D 02 02 02 00 A2 D0 00 00 60 [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [18:38:54]RAPDU: 90 00 [18:38:54]wFMCommunicate OK [18:38:54]wFMCommunicate request_size=4 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 0D 03 02 [18:38:54]Write to MH i2c: E2 08 00 53 1E 80 0D 03 02 00 00 00 00 EC [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 0B 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 0B 00 53 1E 00 62 93 15 D3 52 B5 B8 70 90 00 F9 [18:38:54]RAPDU: 62 93 15 D3 52 B5 B8 70 90 00 [18:38:54]wFMCommunicate OK [18:38:54]SAM_PROTO_SignData done [18:38:54]FM_MakeSignedData done [18:38:54]CreateOFDProtocolMessage [18:38:54]wFMCommunicate request_size=4 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 11 00 00 [18:38:54]Write to MH i2c: E2 08 00 54 1E 80 11 00 00 00 00 00 00 EC [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 17 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 17 00 54 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [18:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:54]wFMCommunicate OK [18:38:54]CreateOFDProtocolMessage done [18:38:54]OFDSenderStorePacket 31008 [18:38:54]StoreOFDPacket docnum=31008 [18:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EC 91 04 01 7C 16 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 3F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 79 00 00 35 04 06 00 06 0B 9E 03 A2 D0 62 93 15 D3 52 B5 B8 70 [18:38:54]CheckFolder [18:38:54]dirname=/storage/ofd_packets [18:38:54]CheckFolder done [18:38:54]ProducePacketName [18:38:54]name=ofd_packets/00031008 [18:38:54]NVStorageSaveData ofd_packets/00031008 [18:38:54]File name is /storage/ofd_packets/00031008 [18:38:54]Write 298 bytes [18:38:54]NVStorageSaveData done [18:38:54]OFDSenderStorePacket done [18:38:54]KKMCreateOFDPacket done [18:38:54]NVStorageSaveData kkm_last_timestamp [18:38:54]File name is /storage/kkm_last_timestamp [18:38:54]Write 4 bytes [18:38:54]NVStorageSaveData done [18:38:54]ExternCall_PrintAddStr [18:38:54]wPrintStart [18:38:54]Write to MH i2c: 01 00 00 55 1E 73 [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 07 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [18:38:54]RasterBufferAndPrint [18:38:54]line Счет N : (1)343436 [18:38:54]line ИНН: 02508201610067 [18:38:54]line Контрольно-Кассовый Чек [18:38:54]line ПРОДАЖА [18:38:54]line ТРК (МРК, ГНК) : 34 [18:38:54]line Товар: 2710194210 [18:38:54]line ДТ-К-2 [18:38:54]line 50.000 * 0.00 [18:38:54]line = 0.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line ИТОГО: 0.00 [18:38:54]line НСП 1% : 0.00 [18:38:54]line НДС 12% : 0.00 [18:38:54]line Наличными: 0.00 [18:38:54]line Безнал.: 0.00 [18:38:54]line Место: АЗС № 78 "Партнер Нефть" [18:38:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:38:54]line СНО: Общий режим [18:38:54]line Чек 241 22.10.2024 18:38 [18:38:54]line Смена: 116 ФФД: 1.0 [18:38:54]line ЗНМ: 0300000137 [18:38:54]line РНМ: 0000000000186857 [18:38:54]line Версия ККМ: v1.0 [18:38:54]line Талоны: ТК ГПНА Online [18:38:54]line 30145330 [18:38:54]line ФМ: 0000000002094219 [18:38:54]line ФД: 31008 [18:38:54]line ФПД: 6646965445328 [18:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183855&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31008&fm=6646965445328&tin=02508201610067®Number=0000000000186857&sum=0 [18:38:55]OFD Sender: Processing packet 31008 [packets to send 11, broken 10] [18:38:55]ProducePacketName [18:38:55]name=ofd_packets/00031008 [18:38:55]OFD Sender: To server: pG, [18:38:55]CommunicateWithHost lk.salyk.kg:30040 [18:38:55]ConnectInit lk.salyk.kg [18:38:55]written 0, free lines is 4095 [18:38:55]Connected sock=10 [18:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EC 91 04 01 7C 16 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 3F F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 79 00 00 35 04 06 00 06 0B 9E 03 A2 D0 62 93 15 D3 52 B5 B8 70 [18:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 17 8B 47 00 EE 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 79 00 00 F4 03 04 00 BB 9B 17 67 B6 04 01 00 00 B1 86 8D 18 D8 F0 13 3F [18:38:55]CommunicateWithHost err = 0 [18:38:55]CheckOFDResponse [18:38:55]1017 (14) - 77093643461234 [18:38:55]1041 (16) - 0000000002094219 [18:38:55]1040 (4) - 31008 [18:38:55]1012 (4) - 22.10.2024 12:34 [18:38:55]1206 (1) - 0 [18:38:55]OFD Sender: Remove packet 31008 [18:38:55]ProducePacketName [18:38:55]name=ofd_packets/00031008 [18:38:55]NVStorageDeleteData [18:38:55]Write to MH i2c: 01 00 00 7F 1E 9D [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 7F 1E 00 00 00 00 00 F4 0C A4 [18:38:55]RasterBufferAndPrint [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]written 0, free lines is 3322 [18:38:55]MH_Cut [18:38:55]Write to MH i2c: D1 01 00 86 1E 01 76 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 01 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 01 00 86 1E 00 75 [18:38:55]Write to MH i2c: 01 00 00 87 1E A5 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:56]OFD Sender: No OFD packet to send [18:38:56]*** Cut start [18:38:56]*** Partial cut [18:38:56]*** CUTSNS_PIN = 1 [18:38:56]*** CUTSNS_PIN = 0 [18:38:56]*** Brake cut motor [18:38:56]Read from MH i2c: 01 [18:38:57]MH_I2C_Read... [18:38:57]*** Stop cut motor [18:38:57]*** Cut end [18:38:57]Read from MH i2c: 01 07 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 87 1E 00 00 00 00 00 FF 0F BA [18:38:57]process_action close_receipt done [18:38:57]requested_data is exist [18:38:57]produce_requested_data [18:38:57]requested_item fm.sn is exist - process it [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 11 00 00 [18:38:57]Write to MH i2c: E2 08 00 88 1E 80 11 00 00 00 00 00 00 20 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 17 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 17 00 88 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [18:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:57]wFMCommunicate OK [18:38:57]requested_item fd.num is exist - process it [18:38:57]SAM_PROTO_GetFieldsCounters [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 13 00 00 [18:38:57]Write to MH i2c: E2 08 00 89 1E 80 13 00 00 00 00 00 00 23 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 62 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 62 00 89 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [18:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:57]wFMCommunicate OK [18:38:57]SAM_PROTO_GetFieldsCounters done [18:38:57]requested_item shift.num is exist - process it [18:38:57]requested_item shift.opened is exist - process it [18:38:57]req_shift_opened [18:38:57]FM_GetShiftState [18:38:57]SAM_PROTO_GetShiftState [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 13 01 00 [18:38:57]Write to MH i2c: E2 08 00 8A 1E 80 13 01 00 00 00 00 00 25 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 8A 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FF [18:38:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:38:57]wFMCommunicate OK [18:38:57]SAM_PROTO_GetShiftState done [18:38:57]FM_GetShiftState done [18:38:57]req_shift_opened done [18:38:57]requested_item shift.open_date is exist - process it [18:38:57]req_shift_open_date [18:38:57]req_shift_open_date done [18:38:57]produce_requested_data done [18:38:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31008,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:38:57]process_action_free close_receipt [18:38:57]json_value_free [18:38:57]json_value_free done [18:38:57]process_json_proto returns [18:38:57]Send response to host [18:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31008,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:38:57]free response buf [18:38:57]execute_script done [18:38:57]execute_script returns [18:38:57]free content buf [18:38:57]Sock 7.Close socket [18:38:57]Sock 7.Thread stoped [18:38:57]accept exits with 9 [18:38:57]New connection [18:38:57]New thread 3067043172 created [18:38:57]Thread 3066899812 joined [18:38:57]Waiting for new connection... [18:38:57] Sock 9.Parse request [18:38:57]Sock 9.Check first char [18:38:57]Sock 9.First char is OK [18:38:57]request: POST /json_proto HTTP/1.0 [18:38:57]Method: POST [18:38:57]URL: /json_proto [18:38:57]Method is POST - this is cgi request [18:38:57]url: /json_proto [18:38:57]query_string will be loaded in cgi processing [18:38:57]execute_cgi json_proto POST (null) [18:38:57]execute_cgi path=json_proto method=POST [18:38:57]POST find Content-Length [18:38:57]Host: 172.17.51.3:8080 [18:38:57]Content-Length: 800 [18:38:57]Content-Type: application/json [18:38:57] [18:38:57]POST finish read [18:38:57]Found Content-Length = 800 [18:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949825", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:57]execute_script... [18:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949825", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:57]POST & json_proto [18:38:57]process_json_proto [18:38:57]json parsed OK: [18:38:57]protocol is kg_v1.0 [18:38:57]action value=close_receipt [18:38:57]process_action close_receipt [18:38:57]cmd_close_receipt [18:38:57]MH_GetDate [18:38:57]Write to MH i2c: F0 00 00 8B 1E 98 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: F0 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: F0 09 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: F0 09 00 8B 1E 00 43 F1 17 67 04 C1 95 66 13 [18:38:57]GetLastDocTimeStamp 1729622335 [18:38:57]current date 1729622339 [18:38:57]FM_GetShiftState [18:38:57]SAM_PROTO_GetShiftState [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 13 01 00 [18:38:57]Write to MH i2c: E2 08 00 8C 1E 80 13 01 00 00 00 00 00 27 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 8C 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 01 [18:38:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:38:57]wFMCommunicate OK [18:38:57]SAM_PROTO_GetShiftState done [18:38:57]FM_GetShiftState done [18:38:57]opened in 1729557342 [18:38:57]opened+sec_in_day 1729643742 [18:38:57]quantity*price = 0 [18:38:57]sum+1 = 1 [18:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 242 22.10.2024 18:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949825 ФМ: 0000000002094219 ФД: 31009 ФПД: 142136136739275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31009&fm=142136136739275&tin=02508201610067®Number=0000000000186857&sum=0 [18:38:58]StoreToDocumentArchive [18:38:58]shift 116 fd 31009 [18:38:58]save to /storage/0116/doc_00031009 [18:38:58]save last doc name /storage/0116/doc_00031009 to /storage/kkm_last_doc_name [18:38:58]save OK [18:38:58]Clear old archive folders... [18:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:58]tlvbuf is 00D31170 [18:38:58]SAM_PROTO_ClearQueue [18:38:58]wFMCommunicate request_size=4 [18:38:58]MH_SAM_APDU [18:38:58]CAPDU: 80 09 00 00 [18:38:58]Write to MH i2c: E2 08 00 99 1E 80 09 00 00 00 00 00 00 29 [18:38:58]Write i2c OK [18:38:58]MH_I2C_Read... [18:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:58]Read from MH i2c: E2 [18:38:58]MH_I2C_Read... [18:38:58]Read from MH i2c: E2 03 00 [18:38:58]MH_I2C_Read... [18:38:58]Read from MH i2c: E2 03 00 99 1E 00 90 00 2B [18:38:58]RAPDU: 90 00 [18:38:58]wFMCommunicate OK [18:38:58]SAM_PROTO_ClearQueue done [18:38:58]KKMCreateOFDPacket [18:38:58]OFDProtocolAddRootSTLVToBuf [18:38:58]FM_MakeSignedData [18:38:58]FM_MakeSignedData [18:38:58]SAM_PROTO_SignData [18:38:58]wFMCommunicate request_size=4 [18:38:58]MH_SAM_APDU [18:38:58]CAPDU: 80 0D 01 02 [18:38:58]Write to MH i2c: E2 08 00 9A 1E 80 0D 01 02 00 00 00 00 31 [18:38:58]Write i2c OK [18:38:58]MH_I2C_Read... [18:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:58]Read from MH i2c: E2 [18:38:58]MH_I2C_Read... [18:38:58]Read from MH i2c: E2 03 00 [18:38:58]MH_I2C_Read... [18:38:58]Read from MH i2c: E2 03 00 9A 1E 00 90 00 2C [18:38:58]RAPDU: 90 00 [18:38:58]wFMCommunicate OK [18:38:58]wFMCommunicate request_size=255 [18:38:58]MH_SAM_APDU [18:38: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 43 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 79 00 00 35 04 06 00 81 [18:38:58]Write to MH i2c: E2 02 01 9B 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 43 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 79 00 00 35 04 06 00 81 00 00 DE [18:38:58]Write i2c OK [18:38:58]MH_I2C_Read... [18:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:59]Read from MH i2c: E2 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 03 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 03 00 9B 1E 00 90 00 2D [18:38:59]RAPDU: 90 00 [18:38:59]wFMCommunicate OK [18:38:59]wFMCommunicate request_size=10 [18:38:59]MH_SAM_APDU [18:38:59]CAPDU: 80 0D 02 02 05 45 A5 F0 A9 CB [18:38:59]Write to MH i2c: E2 0D 00 9C 1E 80 0D 02 02 05 00 45 A5 F0 A9 CB 00 00 8C [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:59]Read from MH i2c: E2 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 03 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [18:38:59]RAPDU: 90 00 [18:38:59]wFMCommunicate OK [18:38:59]wFMCommunicate request_size=4 [18:38:59]MH_SAM_APDU [18:38:59]CAPDU: 80 0D 03 02 [18:38:59]Write to MH i2c: E2 08 00 9D 1E 80 0D 03 02 00 00 00 00 36 [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:59]Read from MH i2c: E2 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 0B 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 0B 00 9D 1E 00 B0 0F D8 08 97 C7 25 57 90 00 B0 [18:38:59]RAPDU: B0 0F D8 08 97 C7 25 57 90 00 [18:38:59]wFMCommunicate OK [18:38:59]SAM_PROTO_SignData done [18:38:59]FM_MakeSignedData done [18:38:59]CreateOFDProtocolMessage [18:38:59]wFMCommunicate request_size=4 [18:38:59]MH_SAM_APDU [18:38:59]CAPDU: 80 11 00 00 [18:38:59]Write to MH i2c: E2 08 00 9E 1E 80 11 00 00 00 00 00 00 36 [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:59]Read from MH i2c: E2 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 17 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 17 00 9E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [18:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:59]wFMCommunicate OK [18:38:59]CreateOFDProtocolMessage done [18:38:59]OFDSenderStorePacket 31009 [18:38:59]StoreOFDPacket docnum=31009 [18:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 FB 07 01 7B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 43 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 79 00 00 35 04 06 00 81 45 A5 F0 A9 CB B0 0F D8 08 97 C7 25 57 [18:38:59]CheckFolder [18:38:59]dirname=/storage/ofd_packets [18:38:59]CheckFolder done [18:38:59]ProducePacketName [18:38:59]name=ofd_packets/00031009 [18:38:59]NVStorageSaveData ofd_packets/00031009 [18:38:59]File name is /storage/ofd_packets/00031009 [18:38:59]Write 301 bytes [18:38:59]NVStorageSaveData done [18:38:59]OFDSenderStorePacket done [18:38:59]KKMCreateOFDPacket done [18:38:59]NVStorageSaveData kkm_last_timestamp [18:38:59]File name is /storage/kkm_last_timestamp [18:38:59]Write 4 bytes [18:38:59]NVStorageSaveData done [18:38:59]ExternCall_PrintAddStr [18:38:59]wPrintStart [18:38:59]Write to MH i2c: 01 00 00 9F 1E BD [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: 01 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: 01 07 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 FF 0F D2 [18:38:59]RasterBufferAndPrint [18:38:59]line Счет N : (1)343438 [18:38:59]line ИНН: 02508201610067 [18:38:59]line Контрольно-Кассовый Чек [18:38:59]line ПРОДАЖА [18:38:59]line ТРК (МРК, ГНК) : 43 [18:38:59]line Товар: 2710124130 [18:38:59]line Аи-92-К-2 [18:38:59]line 20.000 * 0.00 [18:38:59]line = 0.00 [18:38:59]line НДС 12% НСП 1% [18:38:59]line > о реализуемом товаре [18:38:59]line ИТОГО: 0.00 [18:38:59]line НСП 1% : 0.00 [18:38:59]line НДС 12% : 0.00 [18:38:59]line Наличными: 0.00 [18:38:59]line Безнал.: 0.00 [18:38:59]line Место: АЗС № 78 "Партнер Нефть" [18:38:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:38:59]line СНО: Общий режим [18:38:59]line Чек 242 22.10.2024 18:38 [18:38:59]line Смена: 116 ФФД: 1.0 [18:38:59]line ЗНМ: 0300000137 [18:38:59]line РНМ: 0000000000186857 [18:38:59]line Версия ККМ: v1.0 [18:38:59]line Талоны: Топливные Талоны [18:38:59]line 3949825 [18:38:59]line ФМ: 0000000002094219 [18:38:59]line ФД: 31009 [18:38:59]line ФПД: 142136136739275 [18:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31009&fm=142136136739275&tin=02508201610067®Number=0000000000186857&sum=0 [18:39:00]OFD Sender: Processing packet 31009 [packets to send 11, broken 10] [18:39:00]ProducePacketName [18:39:00]name=ofd_packets/00031009 [18:39:00]OFD Sender: To server: pG, [18:39:00]CommunicateWithHost lk.salyk.kg:30040 [18:39:00]ConnectInit lk.salyk.kg [18:39:00]written 0, free lines is 4095 [18:39:00]Connected sock=11 [18:39:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 FB 07 01 7B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 43 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 79 00 00 35 04 06 00 81 45 A5 F0 A9 CB B0 0F D8 08 97 C7 25 57 [18:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E3 07 47 00 5C ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 79 00 00 F4 03 04 00 C0 9B 17 67 B6 04 01 00 00 15 1D 4A 37 06 63 75 64 [18:39:00]CommunicateWithHost err = 0 [18:39:00]CheckOFDResponse [18:39:00]1017 (14) - 77093643461234 [18:39:00]1041 (16) - 0000000002094219 [18:39:00]1040 (4) - 31009 [18:39:00]1012 (4) - 22.10.2024 12:34 [18:39:00]1206 (1) - 0 [18:39:00]OFD Sender: Remove packet 31009 [18:39:00]ProducePacketName [18:39:00]name=ofd_packets/00031009 [18:39:00]NVStorageDeleteData [18:39:00]Write to MH i2c: 01 00 00 C9 1E E7 [18:39:00]Write i2c OK [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: 01 [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: 01 07 00 [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: 01 07 00 C9 1E 00 00 00 00 00 10 0D 0B [18:39:00]RasterBufferAndPrint [18:39:00]line [18:39:00]line [18:39:00]line [18:39:00]line [18:39:00]line [18:39:00]written 0, free lines is 3356 [18:39:00]MH_Cut [18:39:00]Write to MH i2c: D1 01 00 D0 1E 01 C0 [18:39:00]Write i2c OK [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: D1 [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: D1 01 00 [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: D1 01 00 D0 1E 00 BF [18:39:00]Write to MH i2c: 01 00 00 D1 1E EF [18:39:00]Write i2c OK [18:39:00]MH_I2C_Read... [18:39:00]OFD Sender: No OFD packet to send [18:39:01]*** Cut start [18:39:01]*** Partial cut [18:39:01]*** CUTSNS_PIN = 1 [18:39:01]*** CUTSNS_PIN = 0 [18:39:01]*** Brake cut motor [18:39:01]Read from MH i2c: 01 [18:39:01]MH_I2C_Read... [18:39:01]*** Stop cut motor [18:39:01]*** Cut end [18:39:01]Read from MH i2c: 01 07 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: 01 07 00 D1 1E 00 00 00 00 00 FF 0F 04 [18:39:01]process_action close_receipt done [18:39:01]requested_data is exist [18:39:01]produce_requested_data [18:39:01]requested_item fm.sn is exist - process it [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 11 00 00 [18:39:01]Write to MH i2c: E2 08 00 D2 1E 80 11 00 00 00 00 00 00 6A [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 D2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [18:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:39:01]wFMCommunicate OK [18:39:01]requested_item fd.num is exist - process it [18:39:01]SAM_PROTO_GetFieldsCounters [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 13 00 00 [18:39:01]Write to MH i2c: E2 08 00 D3 1E 80 13 00 00 00 00 00 00 6D [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 62 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 62 00 D3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [18:39:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_GetFieldsCounters done [18:39:01]requested_item shift.num is exist - process it [18:39:01]requested_item shift.opened is exist - process it [18:39:01]req_shift_opened [18:39:01]FM_GetShiftState [18:39:01]SAM_PROTO_GetShiftState [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 13 01 00 [18:39:01]Write to MH i2c: E2 08 00 D4 1E 80 13 01 00 00 00 00 00 6F [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:02]Read from MH i2c: E2 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 0E 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 0E 00 D4 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 49 [18:39:02]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:39:02]wFMCommunicate OK [18:39:02]SAM_PROTO_GetShiftState done [18:39:02]FM_GetShiftState done [18:39:02]req_shift_opened done [18:39:02]requested_item shift.open_date is exist - process it [18:39:02]req_shift_open_date [18:39:02]req_shift_open_date done [18:39:02]produce_requested_data done [18:39:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31009,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:39:02]process_action_free close_receipt [18:39:02]json_value_free [18:39:02]json_value_free done [18:39:02]process_json_proto returns [18:39:02]Send response to host [18:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31009,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:39:02]free response buf [18:39:02]execute_script done [18:39:02]execute_script returns [18:39:02]free content buf [18:39:02]Sock 9.Close socket [18:39:02]Sock 9.Thread stoped [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:52]accept exits with 7 [18:39:52]New connection [18:39:52]New thread 3066899812 created [18:39:52]Thread 3067043172 joined [18:39:52]Waiting for new connection... [18:39:52] Sock 7.Parse request [18:39:52]Sock 7.Check first char [18:39:52]Sock 7.First char is OK [18:39:52]request: POST /json_proto HTTP/1.0 [18:39:52]Method: POST [18:39:52]URL: /json_proto [18:39:52]Method is POST - this is cgi request [18:39:52]url: /json_proto [18:39:52]query_string will be loaded in cgi processing [18:39:52]execute_cgi json_proto POST (null) [18:39:52]execute_cgi path=json_proto method=POST [18:39:52]POST find Content-Length [18:39:52]Host: 172.17.51.3:8080 [18:39:52]Content-Length: 677 [18:39:52]Content-Type: application/json [18:39:52] [18:39:52]POST finish read [18:39:52]Found Content-Length = 677 [18:39:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:52]execute_script... [18:39: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)343439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:52]POST & json_proto [18:39:52]process_json_proto [18:39:52]json parsed OK: [18:39:52]protocol is kg_v1.0 [18:39:52]action value=close_receipt [18:39:52]process_action close_receipt [18:39:52]cmd_close_receipt [18:39:52]MH_GetDate [18:39:52]Write to MH i2c: F0 00 00 D5 1E E2 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 09 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 09 00 D5 1E 00 7A F1 17 67 04 C1 95 66 94 [18:39:52]GetLastDocTimeStamp 1729622339 [18:39:52]current date 1729622394 [18:39:52]FM_GetShiftState [18:39:52]SAM_PROTO_GetShiftState [18:39:52]wFMCommunicate request_size=4 [18:39:52]MH_SAM_APDU [18:39:52]CAPDU: 80 13 01 00 [18:39:52]Write to MH i2c: E2 08 00 D6 1E 80 13 01 00 00 00 00 00 71 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:52]Read from MH i2c: E2 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 D6 1E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4B [18:39:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:39:52]wFMCommunicate OK [18:39:52]SAM_PROTO_GetShiftState done [18:39:52]FM_GetShiftState done [18:39:52]opened in 1729557342 [18:39:52]opened+sec_in_day 1729643742 [18:39:52]quantity*price = 50041 [18:39:52]sum+1 = 50042 [18:39:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 243 22.10.2024 18:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31010 ФПД: 257470317271066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31010&fm=257470317271066&tin=02508201610067®Number=0000000000186857&sum=50000 [18:39:53]StoreToDocumentArchive [18:39:53]shift 116 fd 31010 [18:39:53]save to /storage/0116/doc_00031010 [18:39:53]save last doc name /storage/0116/doc_00031010 to /storage/kkm_last_doc_name [18:39:53]save OK [18:39:53]Clear old archive folders... [18:39:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:53]tlvbuf is B6EF05C0 [18:39:53]SAM_PROTO_ClearQueue [18:39:53]wFMCommunicate request_size=4 [18:39:53]MH_SAM_APDU [18:39:53]CAPDU: 80 09 00 00 [18:39:53]Write to MH i2c: E2 08 00 E3 1E 80 09 00 00 00 00 00 00 73 [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:53]Read from MH i2c: E2 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [18:39:53]RAPDU: 90 00 [18:39:53]wFMCommunicate OK [18:39:53]SAM_PROTO_ClearQueue done [18:39:53]KKMCreateOFDPacket [18:39:53]OFDProtocolAddRootSTLVToBuf [18:39:53]FM_MakeSignedData [18:39:53]FM_MakeSignedData [18:39:53]SAM_PROTO_SignData [18:39:53]wFMCommunicate request_size=4 [18:39:53]MH_SAM_APDU [18:39:53]CAPDU: 80 0D 01 02 [18:39:53]Write to MH i2c: E2 08 00 E4 1E 80 0D 01 02 00 00 00 00 7B [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:53]Read from MH i2c: E2 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [18:39:53]RAPDU: 90 00 [18:39:53]wFMCommunicate OK [18:39:53]wFMCommunicate request_size=255 [18:39:53]MH_SAM_APDU [18:39: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 7A F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 79 00 00 35 04 06 00 EA [18:39:53]Write to MH i2c: E2 02 01 E5 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 7A F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 79 00 00 35 04 06 00 EA 00 00 E1 [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 E5 1E 00 90 00 77 [18:39:54]RAPDU: 90 00 [18:39:54]wFMCommunicate OK [18:39:54]wFMCommunicate request_size=10 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 0D 02 02 05 2A FA CD 18 1A [18:39:54]Write to MH i2c: E2 0D 00 E6 1E 80 0D 02 02 05 00 2A FA CD 18 1A 00 00 AB [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [18:39:54]RAPDU: 90 00 [18:39:54]wFMCommunicate OK [18:39:54]wFMCommunicate request_size=4 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 0D 03 02 [18:39:54]Write to MH i2c: E2 08 00 E7 1E 80 0D 03 02 00 00 00 00 80 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 0B 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 0B 00 E7 1E 00 91 3B 99 43 4A 7B C1 B1 90 00 60 [18:39:54]RAPDU: 91 3B 99 43 4A 7B C1 B1 90 00 [18:39:54]wFMCommunicate OK [18:39:54]SAM_PROTO_SignData done [18:39:54]FM_MakeSignedData done [18:39:54]CreateOFDProtocolMessage [18:39:54]wFMCommunicate request_size=4 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 11 00 00 [18:39:54]Write to MH i2c: E2 08 00 E8 1E 80 11 00 00 00 00 00 00 80 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 17 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 17 00 E8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [18:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:39:54]wFMCommunicate OK [18:39:54]CreateOFDProtocolMessage done [18:39:54]OFDSenderStorePacket 31010 [18:39:54]StoreOFDPacket docnum=31010 [18:39:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B C6 07 01 05 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 7A F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 79 00 00 35 04 06 00 EA 2A FA CD 18 1A 91 3B 99 43 4A 7B C1 B1 [18:39:54]CheckFolder [18:39:54]dirname=/storage/ofd_packets [18:39:54]CheckFolder done [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00031010 [18:39:54]NVStorageSaveData ofd_packets/00031010 [18:39:54]File name is /storage/ofd_packets/00031010 [18:39:54]Write 301 bytes [18:39:54]NVStorageSaveData done [18:39:54]OFDSenderStorePacket done [18:39:54]KKMCreateOFDPacket done [18:39:54]NVStorageSaveData kkm_last_timestamp [18:39:54]File name is /storage/kkm_last_timestamp [18:39:54]Write 4 bytes [18:39:54]NVStorageSaveData done [18:39:54]ExternCall_PrintAddStr [18:39:54]wPrintStart [18:39:54]Write to MH i2c: 01 00 00 E9 1E 07 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 E9 1E 00 00 00 00 00 FF 0F 1C [18:39:54]RasterBufferAndPrint [18:39:54]line Счет N : (1)343439 [18:39:54]line ИНН: 02508201610067 [18:39:54]line Контрольно-Кассовый Чек [18:39:54]line ПРОДАЖА [18:39:54]line ТРК (МРК, ГНК) : 63 [18:39:54]line Товар: 2710124130 [18:39:54]line Аи-92-К-2 [18:39:54]line 7.480 * 66.90 [18:39:54]line = 500.41 [18:39:54]line НДС 12% НСП 1% [18:39:54]line > о реализуемом товаре [18:39:54]line ОКРУГЛЕНИЕ: -0.41 [18:39:54]line ИТОГО: 500.00 [18:39:54]line Внесено: 500.00 [18:39:54]line СДАЧА: 0.00 [18:39:54]line НСП 1% : 4.43 [18:39:54]line НДС 12% : 53.14 [18:39:54]line Наличными: 500.00 [18:39:54]line Безнал.: 0.00 [18:39:54]line Место: АЗС № 78 "Партнер Нефть" [18:39:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:39:54]line СНО: Общий режим [18:39:54]line Чек 243 22.10.2024 18:39 [18:39:54]line Смена: 116 ФФД: 1.0 [18:39:54]line ЗНМ: 0300000137 [18:39:54]line РНМ: 0000000000186857 [18:39:54]line Версия ККМ: v1.0 [18:39:54]line ФМ: 0000000002094219 [18:39:54]line ФД: 31010 [18:39:54]line ФПД: 257470317271066 [18:39:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31010&fm=257470317271066&tin=02508201610067®Number=0000000000186857&sum=50000 [18:39:54]OFD Sender: Processing packet 31010 [packets to send 11, broken 10] [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00031010 [18:39:54]OFD Sender: To server: pG, [18:39:54]CommunicateWithHost lk.salyk.kg:30040 [18:39:54]ConnectInit lk.salyk.kg [18:39:54]written 0, free lines is 4095 [18:39:54]Connected sock=10 [18:39:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B C6 07 01 05 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 7A F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 79 00 00 35 04 06 00 EA 2A FA CD 18 1A 91 3B 99 43 4A 7B C1 B1 [18:39:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 90 82 47 00 8E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 79 00 00 F4 03 04 00 F7 9B 17 67 B6 04 01 00 00 3F 0D 83 F0 E7 60 31 9F [18:39:54]CommunicateWithHost err = 0 [18:39:54]CheckOFDResponse [18:39:54]1017 (14) - 77093643461234 [18:39:54]1041 (16) - 0000000002094219 [18:39:54]1040 (4) - 31010 [18:39:54]1012 (4) - 22.10.2024 12:35 [18:39:54]1206 (1) - 0 [18:39:54]OFD Sender: Remove packet 31010 [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00031010 [18:39:54]NVStorageDeleteData [18:39:55]Write to MH i2c: 01 00 00 14 1F 33 [18:39:55]Write i2c OK [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: 01 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: 01 07 00 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: 01 07 00 14 1F 00 00 00 00 00 F4 0C 3A [18:39:55]RasterBufferAndPrint [18:39:55]line [18:39:55]line [18:39:55]line [18:39:55]line [18:39:55]line [18:39:55]written 0, free lines is 3322 [18:39:55]MH_Cut [18:39:55]Write to MH i2c: D1 01 00 1B 1F 01 0C [18:39:55]Write i2c OK [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: D1 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: D1 01 00 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: D1 01 00 1B 1F 00 0B [18:39:55]Write to MH i2c: 01 00 00 1C 1F 3B [18:39:55]Write i2c OK [18:39:55]MH_I2C_Read... [18:39:55]OFD Sender: No OFD packet to send [18:39:55]*** Cut start [18:39:55]*** Partial cut [18:39:55]*** CUTSNS_PIN = 1 [18:39:55]*** CUTSNS_PIN = 0 [18:39:55]*** Brake cut motor [18:39:56]Read from MH i2c: 01 [18:39:56]MH_I2C_Read... [18:39:56]*** Stop cut motor [18:39:56]*** Cut end [18:39:56]Read from MH i2c: 01 07 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: 01 07 00 1C 1F 00 00 00 00 00 FF 0F 50 [18:39:56]process_action close_receipt done [18:39:56]requested_data is exist [18:39:56]produce_requested_data [18:39:56]requested_item fm.sn is exist - process it [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 11 00 00 [18:39:56]Write to MH i2c: E2 08 00 1D 1F 80 11 00 00 00 00 00 00 B6 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 17 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 17 00 1D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 04 [18:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:39:56]wFMCommunicate OK [18:39:56]requested_item fd.num is exist - process it [18:39:56]SAM_PROTO_GetFieldsCounters [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 13 00 00 [18:39:56]Write to MH i2c: E2 08 00 1E 1F 80 13 00 00 00 00 00 00 B9 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 62 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 62 00 1E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [18:39:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_GetFieldsCounters done [18:39:56]requested_item shift.num is exist - process it [18:39:56]requested_item shift.opened is exist - process it [18:39:56]req_shift_opened [18:39:56]FM_GetShiftState [18:39:56]SAM_PROTO_GetShiftState [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 13 01 00 [18:39:56]Write to MH i2c: E2 08 00 1F 1F 80 13 01 00 00 00 00 00 BB [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0E 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0E 00 1F 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 95 [18:39:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_GetShiftState done [18:39:56]FM_GetShiftState done [18:39:56]req_shift_opened done [18:39:56]requested_item shift.open_date is exist - process it [18:39:56]req_shift_open_date [18:39:56]req_shift_open_date done [18:39:56]produce_requested_data done [18:39:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31010,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:39:56]process_action_free close_receipt [18:39:56]json_value_free [18:39:56]json_value_free done [18:39:56]process_json_proto returns [18:39:56]Send response to host [18:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31010,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:39:56]free response buf [18:39:56]execute_script done [18:39:56]execute_script returns [18:39:56]free content buf [18:39:56]Sock 7.Close socket [18:39:56]Sock 7.Thread stoped [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:30]accept exits with 9 [18:40:30]New connection [18:40:30]New thread 3067043172 created [18:40:30]Thread 3066899812 joined [18:40:30]Waiting for new connection... [18:40:30] Sock 9.Parse request [18:40:30]Sock 9.Check first char [18:40:30]Sock 9.First char is OK [18:40:30]request: POST /json_proto HTTP/1.0 [18:40:30]Method: POST [18:40:30]URL: /json_proto [18:40:30]Method is POST - this is cgi request [18:40:30]url: /json_proto [18:40:30]query_string will be loaded in cgi processing [18:40:30]execute_cgi json_proto POST (null) [18:40:30]execute_cgi path=json_proto method=POST [18:40:30]POST find Content-Length [18:40:30]Host: 172.17.51.3:8080 [18:40:30]Content-Length: 677 [18:40:30]Content-Type: application/json [18:40:30] [18:40:30]POST finish read [18:40:30]Found Content-Length = 677 [18:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:30]execute_script... [18:40:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:30]POST & json_proto [18:40:30]process_json_proto [18:40:30]json parsed OK: [18:40:30]protocol is kg_v1.0 [18:40:30]action value=close_receipt [18:40:30]process_action close_receipt [18:40:30]cmd_close_receipt [18:40:30]MH_GetDate [18:40:30]Write to MH i2c: F0 00 00 20 1F 2E [18:40:30]Write i2c OK [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 09 00 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 09 00 20 1F 00 A0 F1 17 67 04 C1 95 66 06 [18:40:30]GetLastDocTimeStamp 1729622394 [18:40:30]current date 1729622432 [18:40:30]FM_GetShiftState [18:40:30]SAM_PROTO_GetShiftState [18:40:30]wFMCommunicate request_size=4 [18:40:30]MH_SAM_APDU [18:40:30]CAPDU: 80 13 01 00 [18:40:30]Write to MH i2c: E2 08 00 21 1F 80 13 01 00 00 00 00 00 BD [18:40:30]Write i2c OK [18:40:30]MH_I2C_Read... [18:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:30]Read from MH i2c: E2 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: E2 0E 00 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: E2 0E 00 21 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 97 [18:40:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:40:30]wFMCommunicate OK [18:40:30]SAM_PROTO_GetShiftState done [18:40:30]FM_GetShiftState done [18:40:30]opened in 1729557342 [18:40:30]opened+sec_in_day 1729643742 [18:40:30]quantity*price = 20003 [18:40:30]sum+1 = 20004 [18:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 244 22.10.2024 18:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31011 ФПД: 106919121461849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31011&fm=106919121461849&tin=02508201610067®Number=0000000000186857&sum=20000 [18:40:31]StoreToDocumentArchive [18:40:31]shift 116 fd 31011 [18:40:31]save to /storage/0116/doc_00031011 [18:40:31]save last doc name /storage/0116/doc_00031011 to /storage/kkm_last_doc_name [18:40:31]save OK [18:40:31]Clear old archive folders... [18:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:31]tlvbuf is 00CD44E0 [18:40:31]SAM_PROTO_ClearQueue [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 09 00 00 [18:40:31]Write to MH i2c: E2 08 00 2E 1F 80 09 00 00 00 00 00 00 BF [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:31]Read from MH i2c: E2 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 03 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [18:40:31]RAPDU: 90 00 [18:40:31]wFMCommunicate OK [18:40:31]SAM_PROTO_ClearQueue done [18:40:31]KKMCreateOFDPacket [18:40:31]OFDProtocolAddRootSTLVToBuf [18:40:31]FM_MakeSignedData [18:40:31]FM_MakeSignedData [18:40:31]SAM_PROTO_SignData [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 0D 01 02 [18:40:31]Write to MH i2c: E2 08 00 2F 1F 80 0D 01 02 00 00 00 00 C7 [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]wFMCommunicate request_size=255 [18:40:32]MH_SAM_APDU [18:40: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A0 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 79 00 00 35 04 06 00 61 [18:40:32]Write to MH i2c: E2 02 01 30 1F 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A0 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 79 00 00 35 04 06 00 61 00 00 8E [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]wFMCommunicate request_size=10 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 0D 02 02 05 3E 0C 41 22 59 [18:40:32]Write to MH i2c: E2 0D 00 31 1F 80 0D 02 02 05 00 3E 0C 41 22 59 00 00 DA [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 0D 03 02 [18:40:32]Write to MH i2c: E2 08 00 32 1F 80 0D 03 02 00 00 00 00 CC [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 0B 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 0B 00 32 1F 00 F0 B4 15 4D BE 62 FF FD 90 00 EF [18:40:32]RAPDU: F0 B4 15 4D BE 62 FF FD 90 00 [18:40:32]wFMCommunicate OK [18:40:32]SAM_PROTO_SignData done [18:40:32]FM_MakeSignedData done [18:40:32]CreateOFDProtocolMessage [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 11 00 00 [18:40:32]Write to MH i2c: E2 08 00 33 1F 80 11 00 00 00 00 00 00 CC [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 17 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 17 00 33 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [18:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:40:32]wFMCommunicate OK [18:40:32]CreateOFDProtocolMessage done [18:40:32]OFDSenderStorePacket 31011 [18:40:32]StoreOFDPacket docnum=31011 [18:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F5 B1 07 01 1F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A0 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 79 00 00 35 04 06 00 61 3E 0C 41 22 59 F0 B4 15 4D BE 62 FF FD [18:40:32]CheckFolder [18:40:32]dirname=/storage/ofd_packets [18:40:32]CheckFolder done [18:40:32]ProducePacketName [18:40:32]name=ofd_packets/00031011 [18:40:32]NVStorageSaveData ofd_packets/00031011 [18:40:32]File name is /storage/ofd_packets/00031011 [18:40:32]Write 301 bytes [18:40:32]NVStorageSaveData done [18:40:32]OFDSenderStorePacket done [18:40:32]KKMCreateOFDPacket done [18:40:32]NVStorageSaveData kkm_last_timestamp [18:40:32]File name is /storage/kkm_last_timestamp [18:40:32]Write 4 bytes [18:40:32]NVStorageSaveData done [18:40:32]ExternCall_PrintAddStr [18:40:32]wPrintStart [18:40:32]Write to MH i2c: 01 00 00 34 1F 53 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: 01 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: 01 07 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: 01 07 00 34 1F 00 00 00 00 00 FF 0F 68 [18:40:32]RasterBufferAndPrint [18:40:32]line Счет N : (1)343440 [18:40:32]line ИНН: 02508201610067 [18:40:32]line Контрольно-Кассовый Чек [18:40:32]line ПРОДАЖА [18:40:32]line ТРК (МРК, ГНК) : 53 [18:40:32]line Товар: 2710124130 [18:40:32]line Аи-92-К-2 [18:40:32]line 2.990 * 66.90 [18:40:32]line = 200.03 [18:40:32]line НДС 12% НСП 1% [18:40:32]line > о реализуемом товаре [18:40:32]line ОКРУГЛЕНИЕ: -0.03 [18:40:32]line ИТОГО: 200.00 [18:40:32]line Внесено: 200.00 [18:40:32]line СДАЧА: 0.00 [18:40:32]line НСП 1% : 1.77 [18:40:32]line НДС 12% : 21.24 [18:40:32]line Наличными: 200.00 [18:40:32]line Безнал.: 0.00 [18:40:32]line Место: АЗС № 78 "Партнер Нефть" [18:40:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:40:32]line СНО: Общий режим [18:40:32]line Чек 244 22.10.2024 18:40 [18:40:32]line Смена: 116 ФФД: 1.0 [18:40:32]line ЗНМ: 0300000137 [18:40:32]line РНМ: 0000000000186857 [18:40:32]line Версия ККМ: v1.0 [18:40:32]line ФМ: 0000000002094219 [18:40:32]line ФД: 31011 [18:40:32]line ФПД: 106919121461849 [18:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31011&fm=106919121461849&tin=02508201610067®Number=0000000000186857&sum=20000 [18:40:32]OFD Sender: Processing packet 31011 [packets to send 11, broken 10] [18:40:32]ProducePacketName [18:40:32]name=ofd_packets/00031011 [18:40:32]OFD Sender: To server: pG, [18:40:32]CommunicateWithHost lk.salyk.kg:30040 [18:40:32]ConnectInit lk.salyk.kg [18:40:32]written 0, free lines is 4095 [18:40:32]Connected sock=10 [18:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F5 B1 07 01 1F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A0 F1 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 79 00 00 35 04 06 00 61 3E 0C 41 22 59 F0 B4 15 4D BE 62 FF FD [18:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0C 4E 47 00 2C 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 32 30 39 34 32 31 39 10 04 04 00 23 79 00 00 F4 03 04 00 1D 9C 17 67 B6 04 01 00 00 A8 33 9D A7 10 A4 E0 0D [18:40:33]CommunicateWithHost err = 0 [18:40:33]CheckOFDResponse [18:40:33]1017 (14) - 77093643461234 [18:40:33]1041 (16) - 0000000002094219 [18:40:33]1040 (4) - 31011 [18:40:33]1012 (4) - 22.10.2024 12:35 [18:40:33]1206 (1) - 0 [18:40:33]OFD Sender: Remove packet 31011 [18:40:33]ProducePacketName [18:40:33]name=ofd_packets/00031011 [18:40:33]NVStorageDeleteData [18:40:33]Write to MH i2c: 01 00 00 5F 1F 7E [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 F6 0C 87 [18:40:33]RasterBufferAndPrint [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]written 0, free lines is 3328 [18:40:33]MH_Cut [18:40:33]Write to MH i2c: D1 01 00 66 1F 01 57 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: D1 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: D1 01 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: D1 01 00 66 1F 00 56 [18:40:33]Write to MH i2c: 01 00 00 67 1F 86 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]OFD Sender: No OFD packet to send [18:40:33]*** Cut start [18:40:33]*** Partial cut [18:40:33]*** CUTSNS_PIN = 1 [18:40:33]*** CUTSNS_PIN = 0 [18:40:34]*** Brake cut motor [18:40:34]Read from MH i2c: 01 [18:40:34]MH_I2C_Read... [18:40:34]*** Stop cut motor [18:40:34]*** Cut end [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 67 1F 00 00 00 00 00 FF 0F 9B [18:40:34]process_action close_receipt done [18:40:34]requested_data is exist [18:40:34]produce_requested_data [18:40:34]requested_item fm.sn is exist - process it [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 68 1F 80 11 00 00 00 00 00 00 01 [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 68 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [18:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:40:34]wFMCommunicate OK [18:40:34]requested_item fd.num is exist - process it [18:40:34]SAM_PROTO_GetFieldsCounters [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 13 00 00 [18:40:34]Write to MH i2c: E2 08 00 69 1F 80 13 00 00 00 00 00 00 04 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 62 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 62 00 69 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [18:40:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:34]wFMCommunicate OK [18:40:34]SAM_PROTO_GetFieldsCounters done [18:40:34]requested_item shift.num is exist - process it [18:40:34]requested_item shift.opened is exist - process it [18:40:34]req_shift_opened [18:40:34]FM_GetShiftState [18:40:34]SAM_PROTO_GetShiftState [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 13 01 00 [18:40:34]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0E 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E0 [18:40:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:40:34]wFMCommunicate OK [18:40:34]SAM_PROTO_GetShiftState done [18:40:34]FM_GetShiftState done [18:40:34]req_shift_opened done [18:40:34]requested_item shift.open_date is exist - process it [18:40:34]req_shift_open_date [18:40:34]req_shift_open_date done [18:40:34]produce_requested_data done [18:40:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31011,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:40:34]process_action_free close_receipt [18:40:34]json_value_free [18:40:34]json_value_free done [18:40:34]process_json_proto returns [18:40:34]Send response to host [18:40:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31011,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:40:34]free response buf [18:40:34]execute_script done [18:40:34]execute_script returns [18:40:34]free content buf [18:40:34]Sock 9.Close socket [18:40:34]Sock 9.Thread stoped [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]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:30]accept exits with 7 [18:43:30]New connection [18:43:30]New thread 3066899812 created [18:43:30]Thread 3067043172 joined [18:43:30]Waiting for new connection... [18:43:30] Sock 7.Parse request [18:43:30]Sock 7.Check first char [18:43:30]Sock 7.First char is OK [18:43:30]request: POST /json_proto HTTP/1.0 [18:43:30]Method: POST [18:43:30]URL: /json_proto [18:43:30]Method is POST - this is cgi request [18:43:30]url: /json_proto [18:43:30]query_string will be loaded in cgi processing [18:43:30]execute_cgi json_proto POST (null) [18:43:30]execute_cgi path=json_proto method=POST [18:43:30]POST find Content-Length [18:43:30]Host: 172.17.51.3:8080 [18:43:30]Content-Length: 678 [18:43:30]Content-Type: application/json [18:43:30] [18:43:30]POST finish read [18:43:30]Found Content-Length = 678 [18:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.100, "sum" : 675.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 675.00, "payments": [ { "type": 0, "sum" : 675.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:30]execute_script... [18:43: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)343441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.100, "sum" : 675.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 675.00, "payments": [ { "type": 0, "sum" : 675.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:30]POST & json_proto [18:43:30]process_json_proto [18:43:30]json parsed OK: [18:43:30]protocol is kg_v1.0 [18:43:30]action value=close_receipt [18:43:30]process_action close_receipt [18:43:30]cmd_close_receipt [18:43:30]MH_GetDate [18:43:30]Write to MH i2c: F0 00 00 6B 1F 79 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 09 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 09 00 6B 1F 00 54 F2 17 67 04 C1 95 66 06 [18:43:30]GetLastDocTimeStamp 1729622432 [18:43:30]current date 1729622612 [18:43:30]FM_GetShiftState [18:43:30]SAM_PROTO_GetShiftState [18:43:30]wFMCommunicate request_size=4 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 13 01 00 [18:43:30]Write to MH i2c: E2 08 00 6C 1F 80 13 01 00 00 00 00 00 08 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 0E 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 0E 00 6C 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E2 [18:43:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:43:30]wFMCommunicate OK [18:43:30]SAM_PROTO_GetShiftState done [18:43:30]FM_GetShiftState done [18:43:30]opened in 1729557342 [18:43:30]opened+sec_in_day 1729643742 [18:43:30]quantity*price = 67522 [18:43:30]sum+1 = 67523 [18:43:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 675.00 Внесено: 1000.00 СДАЧА: 325.00 НСП 1% : 5.97 НДС 12% : 71.70 Наличными: 675.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 245 22.10.2024 18:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31012 ФПД: 232226501600871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184332&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31012&fm=232226501600871&tin=02508201610067®Number=0000000000186857&sum=67500 [18:43:31]StoreToDocumentArchive [18:43:31]shift 116 fd 31012 [18:43:31]save to /storage/0116/doc_00031012 [18:43:31]save last doc name /storage/0116/doc_00031012 to /storage/kkm_last_doc_name [18:43:31]save OK [18:43:31]Clear old archive folders... [18:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:31]tlvbuf is 00D31290 [18:43:31]SAM_PROTO_ClearQueue [18:43:31]wFMCommunicate request_size=4 [18:43:31]MH_SAM_APDU [18:43:31]CAPDU: 80 09 00 00 [18:43:31]Write to MH i2c: E2 08 00 79 1F 80 09 00 00 00 00 00 00 0A [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:31]Read from MH i2c: E2 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 03 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 03 00 79 1F 00 90 00 0C [18:43:31]RAPDU: 90 00 [18:43:31]wFMCommunicate OK [18:43:31]SAM_PROTO_ClearQueue done [18:43:31]KKMCreateOFDPacket [18:43:31]OFDProtocolAddRootSTLVToBuf [18:43:31]FM_MakeSignedData [18:43:31]FM_MakeSignedData [18:43:31]SAM_PROTO_SignData [18:43:31]wFMCommunicate request_size=4 [18:43:31]MH_SAM_APDU [18:43:31]CAPDU: 80 0D 01 02 [18:43:31]Write to MH i2c: E2 08 00 7A 1F 80 0D 01 02 00 00 00 00 12 [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:31]Read from MH i2c: E2 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 03 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [18:43:31]RAPDU: 90 00 [18:43:31]wFMCommunicate OK [18:43:31]wFMCommunicate request_size=255 [18:43:31]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C2 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 F2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 79 00 00 35 04 06 00 D3 [18:43:31]Write to MH i2c: E2 02 01 7B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C2 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 F2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 79 00 00 35 04 06 00 D3 00 00 2E [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 03 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [18:43:32]RAPDU: 90 00 [18:43:32]wFMCommunicate OK [18:43:32]wFMCommunicate request_size=10 [18:43:32]MH_SAM_APDU [18:43:32]CAPDU: 80 0D 02 02 05 35 72 22 A6 67 [18:43:32]Write to MH i2c: E2 0D 00 7C 1F 80 0D 02 02 05 00 35 72 22 A6 67 00 00 F5 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 03 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [18:43:32]RAPDU: 90 00 [18:43:32]wFMCommunicate OK [18:43:32]wFMCommunicate request_size=4 [18:43:32]MH_SAM_APDU [18:43:32]CAPDU: 80 0D 03 02 [18:43:32]Write to MH i2c: E2 08 00 7D 1F 80 0D 03 02 00 00 00 00 17 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 0B 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 0B 00 7D 1F 00 80 0E CC 2B 4C 51 39 52 90 00 C5 [18:43:32]RAPDU: 80 0E CC 2B 4C 51 39 52 90 00 [18:43:32]wFMCommunicate OK [18:43:32]SAM_PROTO_SignData done [18:43:32]FM_MakeSignedData done [18:43:32]CreateOFDProtocolMessage [18:43:32]wFMCommunicate request_size=4 [18:43:32]MH_SAM_APDU [18:43:32]CAPDU: 80 11 00 00 [18:43:32]Write to MH i2c: E2 08 00 7E 1F 80 11 00 00 00 00 00 00 17 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 17 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 17 00 7E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [18:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:43:32]wFMCommunicate OK [18:43:32]CreateOFDProtocolMessage done [18:43:32]OFDSenderStorePacket 31012 [18:43:32]StoreOFDPacket docnum=31012 [18:43:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A7 15 07 01 69 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C2 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 F2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 79 00 00 35 04 06 00 D3 35 72 22 A6 67 80 0E CC 2B 4C 51 39 52 [18:43:32]CheckFolder [18:43:32]dirname=/storage/ofd_packets [18:43:32]CheckFolder done [18:43:32]ProducePacketName [18:43:32]name=ofd_packets/00031012 [18:43:32]NVStorageSaveData ofd_packets/00031012 [18:43:32]File name is /storage/ofd_packets/00031012 [18:43:32]Write 301 bytes [18:43:32]NVStorageSaveData done [18:43:32]OFDSenderStorePacket done [18:43:32]KKMCreateOFDPacket done [18:43:32]NVStorageSaveData kkm_last_timestamp [18:43:32]File name is /storage/kkm_last_timestamp [18:43:32]Write 4 bytes [18:43:32]NVStorageSaveData done [18:43:32]ExternCall_PrintAddStr [18:43:32]wPrintStart [18:43:32]Write to MH i2c: 01 00 00 7F 1F 9E [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 FF 0F B3 [18:43:32]RasterBufferAndPrint [18:43:32]line Счет N : (1)343441 [18:43:32]line ИНН: 02508201610067 [18:43:32]line Контрольно-Кассовый Чек [18:43:32]line ПРОДАЖА [18:43:32]line ТРК (МРК, ГНК) : 42 [18:43:32]line Товар: 2710124500 [18:43:32]line Аи-95-К-3 [18:43:32]line 9.100 * 74.20 [18:43:32]line = 675.22 [18:43:32]line НДС 12% НСП 1% [18:43:32]line > о реализуемом товаре [18:43:32]line ОКРУГЛЕНИЕ: -0.22 [18:43:32]line ИТОГО: 675.00 [18:43:32]line Внесено: 1000.00 [18:43:32]line СДАЧА: 325.00 [18:43:32]line НСП 1% : 5.97 [18:43:32]line НДС 12% : 71.70 [18:43:32]line Наличными: 675.00 [18:43:32]line Безнал.: 0.00 [18:43:32]line Место: АЗС № 78 "Партнер Нефть" [18:43:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:43:32]line СНО: Общий режим [18:43:32]line Чек 245 22.10.2024 18:43 [18:43:32]line Смена: 116 ФФД: 1.0 [18:43:32]line ЗНМ: 0300000137 [18:43:32]line РНМ: 0000000000186857 [18:43:32]line Версия ККМ: v1.0 [18:43:32]line ФМ: 0000000002094219 [18:43:32]line ФД: 31012 [18:43:32]line ФПД: 232226501600871 [18:43:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184332&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31012&fm=232226501600871&tin=02508201610067®Number=0000000000186857&sum=67500 [18:43:32]OFD Sender: Processing packet 31012 [packets to send 11, broken 10] [18:43:32]ProducePacketName [18:43:32]name=ofd_packets/00031012 [18:43:32]OFD Sender: To server: pG, [18:43:32]CommunicateWithHost lk.salyk.kg:30040 [18:43:32]ConnectInit lk.salyk.kg [18:43:32]written 0, free lines is 4095 [18:43:32]Connected sock=10 [18:43:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A7 15 07 01 69 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C2 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 F2 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 79 00 00 35 04 06 00 D3 35 72 22 A6 67 80 0E CC 2B 4C 51 39 52 [18:43:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4B DD 47 00 86 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 32 30 39 34 32 31 39 10 04 04 00 24 79 00 00 F4 03 04 00 D1 9C 17 67 B6 04 01 00 00 41 01 60 BE 5C C2 4F 95 [18:43:32]CommunicateWithHost err = 0 [18:43:32]CheckOFDResponse [18:43:32]1017 (14) - 77093643461234 [18:43:32]1041 (16) - 0000000002094219 [18:43:32]1040 (4) - 31012 [18:43:32]1012 (4) - 22.10.2024 12:38 [18:43:32]1206 (1) - 0 [18:43:32]OFD Sender: Remove packet 31012 [18:43:32]ProducePacketName [18:43:32]name=ofd_packets/00031012 [18:43:32]NVStorageDeleteData [18:43:32]Write to MH i2c: 01 00 00 AA 1F C9 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:33]Read from MH i2c: 01 [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: 01 07 00 [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: 01 07 00 AA 1F 00 00 00 00 00 F3 0C CF [18:43:33]RasterBufferAndPrint [18:43:33]line [18:43:33]line [18:43:33]line [18:43:33]line [18:43:33]line [18:43:33]written 0, free lines is 3324 [18:43:33]MH_Cut [18:43:33]Write to MH i2c: D1 01 00 B1 1F 01 A2 [18:43:33]Write i2c OK [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: D1 [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: D1 01 00 [18:43:33]MH_I2C_Read... [18:43:33]Read from MH i2c: D1 01 00 B1 1F 00 A1 [18:43:33]Write to MH i2c: 01 00 00 B2 1F D1 [18:43:33]Write i2c OK [18:43:33]MH_I2C_Read... [18:43:33]OFD Sender: No OFD packet to send [18:43:33]*** Cut start [18:43:33]*** Partial cut [18:43:33]*** CUTSNS_PIN = 1 [18:43:33]*** CUTSNS_PIN = 0 [18:43:33]*** Brake cut motor [18:43:34]Read from MH i2c: 01 [18:43:34]MH_I2C_Read... [18:43:34]*** Stop cut motor [18:43:34]*** Cut end [18:43:34]Read from MH i2c: 01 07 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 FF 0F E6 [18:43:34]process_action close_receipt done [18:43:34]requested_data is exist [18:43:34]produce_requested_data [18:43:34]requested_item fm.sn is exist - process it [18:43:34]wFMCommunicate request_size=4 [18:43:34]MH_SAM_APDU [18:43:34]CAPDU: 80 11 00 00 [18:43:34]Write to MH i2c: E2 08 00 B3 1F 80 11 00 00 00 00 00 00 4C [18:43:34]Write i2c OK [18:43:34]MH_I2C_Read... [18:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:34]Read from MH i2c: E2 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 17 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 17 00 B3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [18:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:43:34]wFMCommunicate OK [18:43:34]requested_item fd.num is exist - process it [18:43:34]SAM_PROTO_GetFieldsCounters [18:43:34]wFMCommunicate request_size=4 [18:43:34]MH_SAM_APDU [18:43:34]CAPDU: 80 13 00 00 [18:43:34]Write to MH i2c: E2 08 00 B4 1F 80 13 00 00 00 00 00 00 4F [18:43:34]Write i2c OK [18:43:34]MH_I2C_Read... [18:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:34]Read from MH i2c: E2 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 62 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 62 00 B4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [18:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:34]wFMCommunicate OK [18:43:34]SAM_PROTO_GetFieldsCounters done [18:43:34]requested_item shift.num is exist - process it [18:43:34]requested_item shift.opened is exist - process it [18:43:34]req_shift_opened [18:43:34]FM_GetShiftState [18:43:34]SAM_PROTO_GetShiftState [18:43:34]wFMCommunicate request_size=4 [18:43:34]MH_SAM_APDU [18:43:34]CAPDU: 80 13 01 00 [18:43:34]Write to MH i2c: E2 08 00 B5 1F 80 13 01 00 00 00 00 00 51 [18:43:34]Write i2c OK [18:43:34]MH_I2C_Read... [18:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:34]Read from MH i2c: E2 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 0E 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 0E 00 B5 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2B [18:43:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:43:34]wFMCommunicate OK [18:43:34]SAM_PROTO_GetShiftState done [18:43:34]FM_GetShiftState done [18:43:34]req_shift_opened done [18:43:34]requested_item shift.open_date is exist - process it [18:43:34]req_shift_open_date [18:43:34]req_shift_open_date done [18:43:34]produce_requested_data done [18:43:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31012,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:43:34]process_action_free close_receipt [18:43:34]json_value_free [18:43:34]json_value_free done [18:43:34]process_json_proto returns [18:43:34]Send response to host [18:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31012,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:43:34]free response buf [18:43:34]execute_script done [18:43:34]execute_script returns [18:43:34]free content buf [18:43:34]Sock 7.Close socket [18:43:34]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:37]accept exits with 9 [18:48:37]New connection [18:48:37]New thread 3067043172 created [18:48:37]Thread 3066899812 joined [18:48:37]Waiting for new connection... [18:48:37] Sock 9.Parse request [18:48:37]Sock 9.Check first char [18:48:37]Sock 9.First char is OK [18:48:37]request: POST /json_proto HTTP/1.0 [18:48:37]Method: POST [18:48:37]URL: /json_proto [18:48:37]Method is POST - this is cgi request [18:48:37]url: /json_proto [18:48:37]query_string will be loaded in cgi processing [18:48:37]execute_cgi json_proto POST (null) [18:48:37]execute_cgi path=json_proto method=POST [18:48:37]POST find Content-Length [18:48:37]Host: 172.17.51.3:8080 [18:48:37]Content-Length: 679 [18:48:37]Content-Type: application/json [18:48:37] [18:48:37]POST finish read [18:48:37]Found Content-Length = 679 [18:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.620, "sum" : 1799.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1799.00, "payments": [ { "type": 0, "sum" : 1799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]execute_script... [18:48: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)343442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.620, "sum" : 1799.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1799.00, "payments": [ { "type": 0, "sum" : 1799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]POST & json_proto [18:48:37]process_json_proto [18:48:37]json parsed OK: [18:48:37]protocol is kg_v1.0 [18:48:37]action value=close_receipt [18:48:37]process_action close_receipt [18:48:37]cmd_close_receipt [18:48:37]MH_GetDate [18:48:37]Write to MH i2c: F0 00 00 B6 1F C4 [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 B6 1F 00 87 F3 17 67 04 C1 95 66 85 [18:48:37]GetLastDocTimeStamp 1729622612 [18:48:37]current date 1729622919 [18:48:37]FM_GetShiftState [18:48:37]SAM_PROTO_GetShiftState [18:48:37]wFMCommunicate request_size=4 [18:48:37]MH_SAM_APDU [18:48:37]CAPDU: 80 13 01 00 [18:48:37]Write to MH i2c: E2 08 00 B7 1F 80 13 01 00 00 00 00 00 53 [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:37]Read from MH i2c: E2 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 B7 1F 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 2D [18:48:37]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:48:37]wFMCommunicate OK [18:48:37]SAM_PROTO_GetShiftState done [18:48:37]FM_GetShiftState done [18:48:37]opened in 1729557342 [18:48:37]opened+sec_in_day 1729643742 [18:48:37]quantity*price = 179984 [18:48:37]sum+1 = 179985 [18:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 1799.00 Внесено: 2000.00 СДАЧА: 201.00 НСП 1% : 15.93 НДС 12% : 191.13 Наличными: 1799.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 246 22.10.2024 18:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31013 ФПД: 8617912194929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184839&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31013&fm=8617912194929&tin=02508201610067®Number=0000000000186857&sum=179900 [18:48:38]StoreToDocumentArchive [18:48:38]shift 116 fd 31013 [18:48:38]save to /storage/0116/doc_00031013 [18:48:38]save last doc name /storage/0116/doc_00031013 to /storage/kkm_last_doc_name [18:48:38]save OK [18:48:38]Clear old archive folders... [18:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:48:38]tlvbuf is 00CDB0E0 [18:48:38]SAM_PROTO_ClearQueue [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 09 00 00 [18:48:38]Write to MH i2c: E2 08 00 C4 1F 80 09 00 00 00 00 00 00 55 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]SAM_PROTO_ClearQueue done [18:48:38]KKMCreateOFDPacket [18:48:38]OFDProtocolAddRootSTLVToBuf [18:48:38]FM_MakeSignedData [18:48:38]FM_MakeSignedData [18:48:38]SAM_PROTO_SignData [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 01 02 [18:48:38]Write to MH i2c: E2 08 00 C5 1F 80 0D 01 02 00 00 00 00 5D [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]wFMCommunicate request_size=255 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 44 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 87 F3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 79 00 00 35 04 06 00 07 D6 83 98 [18:48:38]Write to MH i2c: E2 02 01 C6 1F 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 32 FF 03 08 00 03 44 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 87 F3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 79 00 00 35 04 06 00 07 D6 83 98 00 00 30 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [18:48:39]RAPDU: 90 00 [18:48:39]wFMCommunicate OK [18:48:39]wFMCommunicate request_size=7 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 0D 02 02 02 57 71 [18:48:39]Write to MH i2c: E2 0A 00 C7 1F 80 0D 02 02 02 00 57 71 00 00 2C [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [18:48:39]RAPDU: 90 00 [18:48:39]wFMCommunicate OK [18:48:39]wFMCommunicate request_size=4 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 0D 03 02 [18:48:39]Write to MH i2c: E2 08 00 C8 1F 80 0D 03 02 00 00 00 00 62 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0B 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0B 00 C8 1F 00 A9 88 7A B3 E7 7C 5E 53 90 00 D5 [18:48:39]RAPDU: A9 88 7A B3 E7 7C 5E 53 90 00 [18:48:39]wFMCommunicate OK [18:48:39]SAM_PROTO_SignData done [18:48:39]FM_MakeSignedData done [18:48:39]CreateOFDProtocolMessage [18:48:39]wFMCommunicate request_size=4 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 11 00 00 [18:48:39]Write to MH i2c: E2 08 00 C9 1F 80 11 00 00 00 00 00 00 62 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 17 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 17 00 C9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [18:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:48:39]wFMCommunicate OK [18:48:39]CreateOFDProtocolMessage done [18:48:39]OFDSenderStorePacket 31013 [18:48:39]StoreOFDPacket docnum=31013 [18:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 30 ED 04 01 DC E6 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 32 FF 03 08 00 03 44 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 87 F3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 79 00 00 35 04 06 00 07 D6 83 98 57 71 A9 88 7A B3 E7 7C 5E 53 [18:48:39]CheckFolder [18:48:39]dirname=/storage/ofd_packets [18:48:39]CheckFolder done [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00031013 [18:48:39]NVStorageSaveData ofd_packets/00031013 [18:48:39]File name is /storage/ofd_packets/00031013 [18:48:39]Write 298 bytes [18:48:39]NVStorageSaveData done [18:48:39]OFDSenderStorePacket done [18:48:39]KKMCreateOFDPacket done [18:48:39]NVStorageSaveData kkm_last_timestamp [18:48:39]File name is /storage/kkm_last_timestamp [18:48:39]Write 4 bytes [18:48:39]NVStorageSaveData done [18:48:39]ExternCall_PrintAddStr [18:48:39]wPrintStart [18:48:39]Write to MH i2c: 01 00 00 CA 1F E9 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 CA 1F 00 00 00 00 00 FF 0F FE [18:48:39]RasterBufferAndPrint [18:48:39]line Счет N : (1)343442 [18:48:39]line ИНН: 02508201610067 [18:48:39]line Контрольно-Кассовый Чек [18:48:39]line ПРОДАЖА [18:48:39]line ТРК (МРК, ГНК) : 64 [18:48:39]line Товар: 2710194210 [18:48:39]line ДТ-К-2 [18:48:39]line 23.620 * 76.20 [18:48:39]line = 1799.84 [18:48:39]line НДС 12% НСП 1% [18:48:39]line > о реализуемом товаре [18:48:39]line ОКРУГЛЕНИЕ: -0.84 [18:48:39]line ИТОГО: 1799.00 [18:48:39]line Внесено: 2000.00 [18:48:39]line СДАЧА: 201.00 [18:48:39]line НСП 1% : 15.93 [18:48:39]line НДС 12% : 191.13 [18:48:39]line Наличными: 1799.00 [18:48:39]line Безнал.: 0.00 [18:48:39]line Место: АЗС № 78 "Партнер Нефть" [18:48:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:48:39]line СНО: Общий режим [18:48:39]line Чек 246 22.10.2024 18:48 [18:48:39]line Смена: 116 ФФД: 1.0 [18:48:39]line ЗНМ: 0300000137 [18:48:39]line РНМ: 0000000000186857 [18:48:39]line Версия ККМ: v1.0 [18:48:39]line ФМ: 0000000002094219 [18:48:39]line ФД: 31013 [18:48:39]line ФПД: 8617912194929 [18:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184839&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31013&fm=8617912194929&tin=02508201610067®Number=0000000000186857&sum=179900 [18:48:39]OFD Sender: Processing packet 31013 [packets to send 11, broken 10] [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00031013 [18:48:39]OFD Sender: To server: pG, [18:48:39]CommunicateWithHost lk.salyk.kg:30040 [18:48:39]ConnectInit lk.salyk.kg [18:48:39]written 0, free lines is 4095 [18:48:39]Connected sock=10 [18:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 30 ED 04 01 DC E6 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 32 FF 03 08 00 03 44 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 10 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 87 F3 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 79 00 00 35 04 06 00 07 D6 83 98 57 71 A9 88 7A B3 E7 7C 5E 53 [18:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BF DF 47 00 A8 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 32 30 39 34 32 31 39 10 04 04 00 25 79 00 00 F4 03 04 00 04 9E 17 67 B6 04 01 00 00 F0 64 4E F5 5E 4A 3F E3 [18:48:39]CommunicateWithHost err = 0 [18:48:39]CheckOFDResponse [18:48:39]1017 (14) - 77093643461234 [18:48:39]1041 (16) - 0000000002094219 [18:48:39]1040 (4) - 31013 [18:48:39]1012 (4) - 22.10.2024 12:43 [18:48:39]1206 (1) - 0 [18:48:39]OFD Sender: Remove packet 31013 [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00031013 [18:48:39]NVStorageDeleteData [18:48:40]Write to MH i2c: 01 00 00 F5 1F 14 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 07 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 07 00 F5 1F 00 00 00 00 00 F4 0C 1B [18:48:40]RasterBufferAndPrint [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]written 0, free lines is 3326 [18:48:40]MH_Cut [18:48:40]Write to MH i2c: D1 01 00 FC 1F 01 ED [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 01 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 01 00 FC 1F 00 EC [18:48:40]Write to MH i2c: 01 00 00 FD 1F 1C [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]OFD Sender: No OFD packet to send [18:48:40]*** Cut start [18:48:40]*** Partial cut [18:48:40]*** CUTSNS_PIN = 1 [18:48:40]*** CUTSNS_PIN = 0 [18:48:41]*** Brake cut motor [18:48:41]Read from MH i2c: 01 [18:48:41]MH_I2C_Read... [18:48:41]*** Stop cut motor [18:48:41]*** Cut end [18:48:41]Read from MH i2c: 01 07 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: 01 07 00 FD 1F 00 00 00 00 00 FF 0F 31 [18:48:41]process_action close_receipt done [18:48:41]requested_data is exist [18:48:41]produce_requested_data [18:48:41]requested_item fm.sn is exist - process it [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 11 00 00 [18:48:41]Write to MH i2c: E2 08 00 FE 1F 80 11 00 00 00 00 00 00 97 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 17 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 17 00 FE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [18:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:48:41]wFMCommunicate OK [18:48:41]requested_item fd.num is exist - process it [18:48:41]SAM_PROTO_GetFieldsCounters [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 00 00 [18:48:41]Write to MH i2c: E2 08 00 FF 1F 80 13 00 00 00 00 00 00 9A [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 62 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 62 00 FF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetFieldsCounters done [18:48:41]requested_item shift.num is exist - process it [18:48:41]requested_item shift.opened is exist - process it [18:48:41]req_shift_opened [18:48:41]FM_GetShiftState [18:48:41]SAM_PROTO_GetShiftState [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 01 00 [18:48:41]Write to MH i2c: E2 08 00 00 20 80 13 01 00 00 00 00 00 9D [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 00 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 77 [18:48:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetShiftState done [18:48:41]FM_GetShiftState done [18:48:41]req_shift_opened done [18:48:41]requested_item shift.open_date is exist - process it [18:48:41]req_shift_open_date [18:48:41]req_shift_open_date done [18:48:41]produce_requested_data done [18:48:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31013,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:48:41]process_action_free close_receipt [18:48:41]json_value_free [18:48:41]json_value_free done [18:48:41]process_json_proto returns [18:48:41]Send response to host [18:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31013,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:48:41]free response buf [18:48:41]execute_script done [18:48:41]execute_script returns [18:48:41]free content buf [18:48:41]Sock 9.Close socket [18:48:41]Sock 9.Thread stoped [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:38]accept exits with 7 [18:50:38]New connection [18:50:38]New thread 3066899812 created [18:50:38]Thread 3067043172 joined [18:50:38]Waiting for new connection... [18:50:38] Sock 7.Parse request [18:50:38]Sock 7.Check first char [18:50:38]Sock 7.First char is OK [18:50:38]request: POST /json_proto HTTP/1.0 [18:50:38]Method: POST [18:50:38]URL: /json_proto [18:50:38]Method is POST - this is cgi request [18:50:38]url: /json_proto [18:50:38]query_string will be loaded in cgi processing [18:50:38]execute_cgi json_proto POST (null) [18:50:38]execute_cgi path=json_proto method=POST [18:50:38]POST find Content-Length [18:50:38]Host: 172.17.51.3:8080 [18:50:38]Content-Length: 677 [18:50:38]Content-Type: application/json [18:50:38] [18:50:38]POST finish read [18:50:38]Found Content-Length = 677 [18:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:38]execute_script... [18:50: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)343443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:38]POST & json_proto [18:50:38]process_json_proto [18:50:38]json parsed OK: [18:50:38]protocol is kg_v1.0 [18:50:38]action value=close_receipt [18:50:38]process_action close_receipt [18:50:38]cmd_close_receipt [18:50:38]MH_GetDate [18:50:38]Write to MH i2c: F0 00 00 01 20 10 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: F0 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: F0 09 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: F0 09 00 01 20 00 FF F3 17 67 04 C1 95 66 49 [18:50:38]GetLastDocTimeStamp 1729622919 [18:50:38]current date 1729623039 [18:50:38]FM_GetShiftState [18:50:38]SAM_PROTO_GetShiftState [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 13 01 00 [18:50:38]Write to MH i2c: E2 08 00 02 20 80 13 01 00 00 00 00 00 9F [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 0E 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 0E 00 02 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 79 [18:50:38]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:50:38]wFMCommunicate OK [18:50:38]SAM_PROTO_GetShiftState done [18:50:38]FM_GetShiftState done [18:50:38]opened in 1729557342 [18:50:38]opened+sec_in_day 1729643742 [18:50:38]quantity*price = 50041 [18:50:38]sum+1 = 50042 [18:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 247 22.10.2024 18:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31014 ФПД: 227802412746703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185040&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31014&fm=227802412746703&tin=02508201610067®Number=0000000000186857&sum=50000 [18:50:39]StoreToDocumentArchive [18:50:39]shift 116 fd 31014 [18:50:39]save to /storage/0116/doc_00031014 [18:50:39]save last doc name /storage/0116/doc_00031014 to /storage/kkm_last_doc_name [18:50:39]save OK [18:50:39]Clear old archive folders... [18:50:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:39]tlvbuf is 00D54B00 [18:50:39]SAM_PROTO_ClearQueue [18:50:39]wFMCommunicate request_size=4 [18:50:39]MH_SAM_APDU [18:50:39]CAPDU: 80 09 00 00 [18:50:39]Write to MH i2c: E2 08 00 0F 20 80 09 00 00 00 00 00 00 A1 [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [18:50:39]RAPDU: 90 00 [18:50:39]wFMCommunicate OK [18:50:39]SAM_PROTO_ClearQueue done [18:50:39]KKMCreateOFDPacket [18:50:39]OFDProtocolAddRootSTLVToBuf [18:50:39]FM_MakeSignedData [18:50:39]FM_MakeSignedData [18:50:39]SAM_PROTO_SignData [18:50:39]wFMCommunicate request_size=4 [18:50:39]MH_SAM_APDU [18:50:39]CAPDU: 80 0D 01 02 [18:50:39]Write to MH i2c: E2 08 00 10 20 80 0D 01 02 00 00 00 00 A9 [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [18:50:39]RAPDU: 90 00 [18:50:39]wFMCommunicate OK [18:50:39]wFMCommunicate request_size=255 [18:50:39]MH_SAM_APDU [18: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 00 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 79 00 00 35 04 06 00 CF [18:50:39]Write to MH i2c: E2 02 01 11 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 00 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 79 00 00 35 04 06 00 CF 00 00 85 [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [18:50:39]RAPDU: 90 00 [18:50:39]wFMCommunicate OK [18:50:39]wFMCommunicate request_size=10 [18:50:39]MH_SAM_APDU [18:50:39]CAPDU: 80 0D 02 02 05 2F 61 E4 07 CF [18:50:39]Write to MH i2c: E2 0D 00 12 20 80 0D 02 02 05 00 2F 61 E4 07 CF 00 00 00 [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [18:50:39]RAPDU: 90 00 [18:50:39]wFMCommunicate OK [18:50:39]wFMCommunicate request_size=4 [18:50:39]MH_SAM_APDU [18:50:39]CAPDU: 80 0D 03 02 [18:50:39]Write to MH i2c: E2 08 00 13 20 80 0D 03 02 00 00 00 00 AE [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 0B 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 0B 00 13 20 00 D7 1A 29 96 13 20 BF 68 90 00 B9 [18:50:39]RAPDU: D7 1A 29 96 13 20 BF 68 90 00 [18:50:39]wFMCommunicate OK [18:50:39]SAM_PROTO_SignData done [18:50:39]FM_MakeSignedData done [18:50:39]CreateOFDProtocolMessage [18:50:39]wFMCommunicate request_size=4 [18:50:39]MH_SAM_APDU [18:50:39]CAPDU: 80 11 00 00 [18:50:39]Write to MH i2c: E2 08 00 14 20 80 11 00 00 00 00 00 00 AE [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 17 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 17 00 14 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [18:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:50:39]wFMCommunicate OK [18:50:39]CreateOFDProtocolMessage done [18:50:39]OFDSenderStorePacket 31014 [18:50:39]StoreOFDPacket docnum=31014 [18:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 E4 07 01 C6 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 00 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 79 00 00 35 04 06 00 CF 2F 61 E4 07 CF D7 1A 29 96 13 20 BF 68 [18:50:39]CheckFolder [18:50:39]dirname=/storage/ofd_packets [18:50:39]CheckFolder done [18:50:39]ProducePacketName [18:50:39]name=ofd_packets/00031014 [18:50:39]NVStorageSaveData ofd_packets/00031014 [18:50:39]File name is /storage/ofd_packets/00031014 [18:50:39]Write 301 bytes [18:50:39]NVStorageSaveData done [18:50:39]OFDSenderStorePacket done [18:50:39]KKMCreateOFDPacket done [18:50:39]NVStorageSaveData kkm_last_timestamp [18:50:39]File name is /storage/kkm_last_timestamp [18:50:39]Write 4 bytes [18:50:39]NVStorageSaveData done [18:50:39]ExternCall_PrintAddStr [18:50:39]wPrintStart [18:50:39]Write to MH i2c: 01 00 00 15 20 35 [18:50:39]Write i2c OK [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: 01 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: 01 07 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 FF 0F 4A [18:50:39]RasterBufferAndPrint [18:50:39]line Счет N : (1)343443 [18:50:39]line ИНН: 02508201610067 [18:50:39]line Контрольно-Кассовый Чек [18:50:39]line ПРОДАЖА [18:50:39]line ТРК (МРК, ГНК) : 63 [18:50:39]line Товар: 2710124130 [18:50:39]line Аи-92-К-2 [18:50:39]line 7.480 * 66.90 [18:50:39]line = 500.41 [18:50:39]line НДС 12% НСП 1% [18:50:39]line > о реализуемом товаре [18:50:39]line ОКРУГЛЕНИЕ: -0.41 [18:50:39]line ИТОГО: 500.00 [18:50:39]line Внесено: 500.00 [18:50:39]line СДАЧА: 0.00 [18:50:39]line НСП 1% : 4.43 [18:50:39]line НДС 12% : 53.14 [18:50:39]line Наличными: 500.00 [18:50:39]line Безнал.: 0.00 [18:50:39]line Место: АЗС № 78 "Партнер Нефть" [18:50:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:50:39]line СНО: Общий режим [18:50:39]line Чек 247 22.10.2024 18:50 [18:50:39]line Смена: 116 ФФД: 1.0 [18:50:39]line ЗНМ: 0300000137 [18:50:39]line РНМ: 0000000000186857 [18:50:39]line Версия ККМ: v1.0 [18:50:39]line ФМ: 0000000002094219 [18:50:39]line ФД: 31014 [18:50:39]line ФПД: 227802412746703 [18:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185040&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31014&fm=227802412746703&tin=02508201610067®Number=0000000000186857&sum=50000 [18:50:40]OFD Sender: Processing packet 31014 [packets to send 11, broken 10] [18:50:40]ProducePacketName [18:50:40]name=ofd_packets/00031014 [18:50:40]OFD Sender: To server: pG, [18:50:40]CommunicateWithHost lk.salyk.kg:30040 [18:50:40]ConnectInit lk.salyk.kg [18:50:40]written 0, free lines is 4095 [18:50:40]Connected sock=10 [18:50:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 E4 07 01 C6 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 00 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 79 00 00 35 04 06 00 CF 2F 61 E4 07 CF D7 1A 29 96 13 20 BF 68 [18:50:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 44 1E 47 00 F7 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 32 30 39 34 32 31 39 10 04 04 00 26 79 00 00 F4 03 04 00 7C 9E 17 67 B6 04 01 00 00 32 3F 37 6B 59 B2 D9 00 [18:50:40]CommunicateWithHost err = 0 [18:50:40]CheckOFDResponse [18:50:40]1017 (14) - 77093643461234 [18:50:40]1041 (16) - 0000000002094219 [18:50:40]1040 (4) - 31014 [18:50:40]1012 (4) - 22.10.2024 12:45 [18:50:40]1206 (1) - 0 [18:50:40]OFD Sender: Remove packet 31014 [18:50:40]ProducePacketName [18:50:40]name=ofd_packets/00031014 [18:50:40]NVStorageDeleteData [18:50:40]Write to MH i2c: 01 00 00 40 20 60 [18:50:40]Write i2c OK [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 07 00 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 07 00 40 20 00 00 00 00 00 E6 0C 59 [18:50:40]RasterBufferAndPrint [18:50:40]line [18:50:40]line [18:50:40]line [18:50:40]line [18:50:40]line [18:50:40]written 0, free lines is 3311 [18:50:40]MH_Cut [18:50:40]Write to MH i2c: D1 01 00 47 20 01 39 [18:50:40]Write i2c OK [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: D1 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: D1 01 00 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: D1 01 00 47 20 00 38 [18:50:40]Write to MH i2c: 01 00 00 48 20 68 [18:50:40]Write i2c OK [18:50:40]MH_I2C_Read... [18:50:40]OFD Sender: No OFD packet to send [18:50:41]*** Cut start [18:50:41]*** Partial cut [18:50:41]*** CUTSNS_PIN = 1 [18:50:41]*** CUTSNS_PIN = 0 [18:50:41]*** Brake cut motor [18:50:41]Read from MH i2c: 01 [18:50:41]MH_I2C_Read... [18:50:41]*** Stop cut motor [18:50:41]*** Cut end [18:50:41]Read from MH i2c: 01 07 00 [18:50:41]MH_I2C_Read... [18:50:41]Read from MH i2c: 01 07 00 48 20 00 00 00 00 00 FF 0F 7D [18:50:41]process_action close_receipt done [18:50:41]requested_data is exist [18:50:41]produce_requested_data [18:50:41]requested_item fm.sn is exist - process it [18:50:41]wFMCommunicate request_size=4 [18:50:41]MH_SAM_APDU [18:50:41]CAPDU: 80 11 00 00 [18:50:41]Write to MH i2c: E2 08 00 49 20 80 11 00 00 00 00 00 00 E3 [18:50:41]Write i2c OK [18:50:41]MH_I2C_Read... [18:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:41]Read from MH i2c: E2 [18:50:41]MH_I2C_Read... [18:50:41]Read from MH i2c: E2 17 00 [18:50:41]MH_I2C_Read... [18:50:41]Read from MH i2c: E2 17 00 49 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [18:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:50:41]wFMCommunicate OK [18:50:41]requested_item fd.num is exist - process it [18:50:41]SAM_PROTO_GetFieldsCounters [18:50:41]wFMCommunicate request_size=4 [18:50:41]MH_SAM_APDU [18:50:41]CAPDU: 80 13 00 00 [18:50:41]Write to MH i2c: E2 08 00 4A 20 80 13 00 00 00 00 00 00 E6 [18:50:41]Write i2c OK [18:50:41]MH_I2C_Read... [18:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:41]Read from MH i2c: E2 [18:50:41]MH_I2C_Read... [18:50:41]Read from MH i2c: E2 62 00 [18:50:41]MH_I2C_Read... [18:50:41]Read from MH i2c: E2 62 00 4A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:50:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:41]wFMCommunicate OK [18:50:41]SAM_PROTO_GetFieldsCounters done [18:50:41]requested_item shift.num is exist - process it [18:50:41]requested_item shift.opened is exist - process it [18:50:41]req_shift_opened [18:50:41]FM_GetShiftState [18:50:41]SAM_PROTO_GetShiftState [18:50:41]wFMCommunicate request_size=4 [18:50:41]MH_SAM_APDU [18:50:41]CAPDU: 80 13 01 00 [18:50:41]Write to MH i2c: E2 08 00 4B 20 80 13 01 00 00 00 00 00 E8 [18:50:41]Write i2c OK [18:50:41]MH_I2C_Read... [18:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:42]Read from MH i2c: E2 [18:50:42]MH_I2C_Read... [18:50:42]Read from MH i2c: E2 0E 00 [18:50:42]MH_I2C_Read... [18:50:42]Read from MH i2c: E2 0E 00 4B 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C2 [18:50:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:50:42]wFMCommunicate OK [18:50:42]SAM_PROTO_GetShiftState done [18:50:42]FM_GetShiftState done [18:50:42]req_shift_opened done [18:50:42]requested_item shift.open_date is exist - process it [18:50:42]req_shift_open_date [18:50:42]req_shift_open_date done [18:50:42]produce_requested_data done [18:50:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31014,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:50:42]process_action_free close_receipt [18:50:42]json_value_free [18:50:42]json_value_free done [18:50:42]process_json_proto returns [18:50:42]Send response to host [18:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31014,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:50:42]free response buf [18:50:42]execute_script done [18:50:42]execute_script returns [18:50:42]free content buf [18:50:42]Sock 7.Close socket [18:50:42]Sock 7.Thread stoped [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:08]accept exits with 9 [18:51:08]New connection [18:51:08]New thread 3067043172 created [18:51:08]Thread 3066899812 joined [18:51:08]Waiting for new connection... [18:51:08] Sock 9.Parse request [18:51:08]Sock 9.Check first char [18:51:08]Sock 9.First char is OK [18:51:08]request: POST /json_proto HTTP/1.0 [18:51:08]Method: POST [18:51:08]URL: /json_proto [18:51:08]Method is POST - this is cgi request [18:51:08]url: /json_proto [18:51:08]query_string will be loaded in cgi processing [18:51:08]execute_cgi json_proto POST (null) [18:51:08]execute_cgi path=json_proto method=POST [18:51:08]POST find Content-Length [18:51:08]Host: 172.17.51.3:8080 [18:51:08]Content-Length: 677 [18:51:08]Content-Type: application/json [18:51:08] [18:51:08]POST finish read [18:51:08]Found Content-Length = 677 [18:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:08]execute_script... [18:51: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)343444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:08]POST & json_proto [18:51:08]process_json_proto [18:51:08]json parsed OK: [18:51:08]protocol is kg_v1.0 [18:51:08]action value=close_receipt [18:51:08]process_action close_receipt [18:51:08]cmd_close_receipt [18:51:08]MH_GetDate [18:51:08]Write to MH i2c: F0 00 00 4C 20 5B [18:51:08]Write i2c OK [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: F0 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: F0 09 00 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: F0 09 00 4C 20 00 1E F4 17 67 04 C1 95 66 B4 [18:51:08]GetLastDocTimeStamp 1729623040 [18:51:08]current date 1729623070 [18:51:08]FM_GetShiftState [18:51:08]SAM_PROTO_GetShiftState [18:51:08]wFMCommunicate request_size=4 [18:51:08]MH_SAM_APDU [18:51:08]CAPDU: 80 13 01 00 [18:51:08]Write to MH i2c: E2 08 00 4D 20 80 13 01 00 00 00 00 00 EA [18:51:08]Write i2c OK [18:51:08]MH_I2C_Read... [18:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:08]Read from MH i2c: E2 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 0E 00 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 0E 00 4D 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C4 [18:51:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:51:08]wFMCommunicate OK [18:51:08]SAM_PROTO_GetShiftState done [18:51:08]FM_GetShiftState done [18:51:08]opened in 1729557342 [18:51:08]opened+sec_in_day 1729643742 [18:51:08]quantity*price = 50041 [18:51:08]sum+1 = 50042 [18:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 248 22.10.2024 18:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31015 ФПД: 47847885607829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185110&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31015&fm=47847885607829&tin=02508201610067®Number=0000000000186857&sum=50000 [18:51:09]StoreToDocumentArchive [18:51:09]shift 116 fd 31015 [18:51:09]save to /storage/0116/doc_00031015 [18:51:09]save last doc name /storage/0116/doc_00031015 to /storage/kkm_last_doc_name [18:51:09]save OK [18:51:09]Clear old archive folders... [18:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:09]tlvbuf is 00CD44E0 [18:51:09]SAM_PROTO_ClearQueue [18:51:09]wFMCommunicate request_size=4 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 09 00 00 [18:51:09]Write to MH i2c: E2 08 00 5A 20 80 09 00 00 00 00 00 00 EC [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 5A 20 00 90 00 EE [18:51:09]RAPDU: 90 00 [18:51:09]wFMCommunicate OK [18:51:09]SAM_PROTO_ClearQueue done [18:51:09]KKMCreateOFDPacket [18:51:09]OFDProtocolAddRootSTLVToBuf [18:51:09]FM_MakeSignedData [18:51:09]FM_MakeSignedData [18:51:09]SAM_PROTO_SignData [18:51:09]wFMCommunicate request_size=4 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 0D 01 02 [18:51:09]Write to MH i2c: E2 08 00 5B 20 80 0D 01 02 00 00 00 00 F4 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [18:51:09]RAPDU: 90 00 [18:51:09]wFMCommunicate OK [18:51:09]wFMCommunicate request_size=255 [18:51:09]MH_SAM_APDU [18:51: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 79 00 00 35 04 06 00 2B [18:51:09]Write to MH i2c: E2 02 01 5C 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 79 00 00 35 04 06 00 2B 00 00 4C [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [18:51:09]RAPDU: 90 00 [18:51:09]wFMCommunicate OK [18:51:09]wFMCommunicate request_size=10 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 0D 02 02 05 84 74 39 93 95 [18:51:09]Write to MH i2c: E2 0D 00 5D 20 80 0D 02 02 05 00 84 74 39 93 95 00 00 5A [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [18:51:09]RAPDU: 90 00 [18:51:09]wFMCommunicate OK [18:51:09]wFMCommunicate request_size=4 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 0D 03 02 [18:51:09]Write to MH i2c: E2 08 00 5E 20 80 0D 03 02 00 00 00 00 F9 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 0B 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 0B 00 5E 20 00 1C 90 02 A9 51 7B 24 62 90 00 A3 [18:51:09]RAPDU: 1C 90 02 A9 51 7B 24 62 90 00 [18:51:09]wFMCommunicate OK [18:51:09]SAM_PROTO_SignData done [18:51:09]FM_MakeSignedData done [18:51:09]CreateOFDProtocolMessage [18:51:09]wFMCommunicate request_size=4 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 11 00 00 [18:51:09]Write to MH i2c: E2 08 00 5F 20 80 11 00 00 00 00 00 00 F9 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 17 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 17 00 5F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [18:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:09]wFMCommunicate OK [18:51:09]CreateOFDProtocolMessage done [18:51:09]OFDSenderStorePacket 31015 [18:51:09]StoreOFDPacket docnum=31015 [18:51:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 51 07 01 77 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 79 00 00 35 04 06 00 2B 84 74 39 93 95 1C 90 02 A9 51 7B 24 62 [18:51:09]CheckFolder [18:51:09]dirname=/storage/ofd_packets [18:51:09]CheckFolder done [18:51:09]ProducePacketName [18:51:09]name=ofd_packets/00031015 [18:51:09]NVStorageSaveData ofd_packets/00031015 [18:51:09]File name is /storage/ofd_packets/00031015 [18:51:09]Write 301 bytes [18:51:09]NVStorageSaveData done [18:51:09]OFDSenderStorePacket done [18:51:09]KKMCreateOFDPacket done [18:51:09]NVStorageSaveData kkm_last_timestamp [18:51:09]File name is /storage/kkm_last_timestamp [18:51:09]Write 4 bytes [18:51:09]NVStorageSaveData done [18:51:09]ExternCall_PrintAddStr [18:51:09]wPrintStart [18:51:09]Write to MH i2c: 01 00 00 60 20 80 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: 01 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: 01 07 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 FF 0F 95 [18:51:09]RasterBufferAndPrint [18:51:09]line Счет N : (1)343444 [18:51:09]line ИНН: 02508201610067 [18:51:09]line Контрольно-Кассовый Чек [18:51:09]line ПРОДАЖА [18:51:09]line ТРК (МРК, ГНК) : 43 [18:51:09]line Товар: 2710124130 [18:51:09]line Аи-92-К-2 [18:51:09]line 7.480 * 66.90 [18:51:09]line = 500.41 [18:51:09]line НДС 12% НСП 1% [18:51:09]line > о реализуемом товаре [18:51:09]line ОКРУГЛЕНИЕ: -0.41 [18:51:09]line ИТОГО: 500.00 [18:51:09]line Внесено: 500.00 [18:51:09]line СДАЧА: 0.00 [18:51:09]line НСП 1% : 4.43 [18:51:09]line НДС 12% : 53.14 [18:51:09]line Наличными: 500.00 [18:51:09]line Безнал.: 0.00 [18:51:09]line Место: АЗС № 78 "Партнер Нефть" [18:51:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:09]line СНО: Общий режим [18:51:09]line Чек 248 22.10.2024 18:51 [18:51:09]line Смена: 116 ФФД: 1.0 [18:51:10]line ЗНМ: 0300000137 [18:51:10]line РНМ: 0000000000186857 [18:51:10]line Версия ККМ: v1.0 [18:51:10]line ФМ: 0000000002094219 [18:51:10]line ФД: 31015 [18:51:10]line ФПД: 47847885607829 [18:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185110&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31015&fm=47847885607829&tin=02508201610067®Number=0000000000186857&sum=50000 [18:51:10]OFD Sender: Processing packet 31015 [packets to send 11, broken 10] [18:51:10]ProducePacketName [18:51:10]name=ofd_packets/00031015 [18:51:10]OFD Sender: To server: pG, [18:51:10]CommunicateWithHost lk.salyk.kg:30040 [18:51:10]ConnectInit lk.salyk.kg [18:51:10]written 0, free lines is 4095 [18:51:10]Connected sock=10 [18:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 51 07 01 77 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 79 00 00 35 04 06 00 2B 84 74 39 93 95 1C 90 02 A9 51 7B 24 62 [18:51:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A6 1B 47 00 9B 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 79 00 00 F4 03 04 00 9A 9E 17 67 B6 04 01 00 00 D4 C5 CE AE C4 2E F7 43 [18:51:10]CommunicateWithHost err = 0 [18:51:10]CheckOFDResponse [18:51:10]1017 (14) - 77093643461234 [18:51:10]1041 (16) - 0000000002094219 [18:51:10]1040 (4) - 31015 [18:51:10]1012 (4) - 22.10.2024 12:46 [18:51:10]1206 (1) - 0 [18:51:10]OFD Sender: Remove packet 31015 [18:51:10]ProducePacketName [18:51:10]name=ofd_packets/00031015 [18:51:10]NVStorageDeleteData [18:51:10]Write to MH i2c: 01 00 00 8B 20 AB [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: 01 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: 01 07 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 E4 0C A2 [18:51:10]RasterBufferAndPrint [18:51:10]line [18:51:10]line [18:51:10]line [18:51:10]line [18:51:10]line [18:51:10]written 0, free lines is 3306 [18:51:10]MH_Cut [18:51:10]Write to MH i2c: D1 01 00 92 20 01 84 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: D1 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: D1 01 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: D1 01 00 92 20 00 83 [18:51:10]Write to MH i2c: 01 00 00 93 20 B3 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:11]OFD Sender: No OFD packet to send [18:51:11]*** Cut start [18:51:11]*** Partial cut [18:51:11]*** CUTSNS_PIN = 1 [18:51:11]*** CUTSNS_PIN = 0 [18:51:11]*** Brake cut motor [18:51:11]Read from MH i2c: 01 [18:51:11]MH_I2C_Read... [18:51:11]*** Stop cut motor [18:51:11]*** Cut end [18:51:11]Read from MH i2c: 01 07 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: 01 07 00 93 20 00 00 00 00 00 FF 0F C8 [18:51:11]process_action close_receipt done [18:51:11]requested_data is exist [18:51:11]produce_requested_data [18:51:11]requested_item fm.sn is exist - process it [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 11 00 00 [18:51:11]Write to MH i2c: E2 08 00 94 20 80 11 00 00 00 00 00 00 2E [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 94 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [18:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:12]wFMCommunicate OK [18:51:12]requested_item fd.num is exist - process it [18:51:12]SAM_PROTO_GetFieldsCounters [18:51:12]wFMCommunicate request_size=4 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 13 00 00 [18:51:12]Write to MH i2c: E2 08 00 95 20 80 13 00 00 00 00 00 00 31 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 62 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 62 00 95 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:51:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:12]wFMCommunicate OK [18:51:12]SAM_PROTO_GetFieldsCounters done [18:51:12]requested_item shift.num is exist - process it [18:51:12]requested_item shift.opened is exist - process it [18:51:12]req_shift_opened [18:51:12]FM_GetShiftState [18:51:12]SAM_PROTO_GetShiftState [18:51:12]wFMCommunicate request_size=4 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 13 01 00 [18:51:12]Write to MH i2c: E2 08 00 96 20 80 13 01 00 00 00 00 00 33 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0E 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0E 00 96 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0D [18:51:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:51:12]wFMCommunicate OK [18:51:12]SAM_PROTO_GetShiftState done [18:51:12]FM_GetShiftState done [18:51:12]req_shift_opened done [18:51:12]requested_item shift.open_date is exist - process it [18:51:12]req_shift_open_date [18:51:12]req_shift_open_date done [18:51:12]produce_requested_data done [18:51:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31015,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:51:12]process_action_free close_receipt [18:51:12]json_value_free [18:51:12]json_value_free done [18:51:12]process_json_proto returns [18:51:12]Send response to host [18:51:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31015,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:51:12]free response buf [18:51:12]execute_script done [18:51:12]execute_script returns [18:51:12]free content buf [18:51:12]Sock 9.Close socket [18:51:12]Sock 9.Thread stoped [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:41]accept exits with 7 [18:51:41]New connection [18:51:41]New thread 3066899812 created [18:51:41]Thread 3067043172 joined [18:51:41]Waiting for new connection... [18:51:41] Sock 7.Parse request [18:51:41]Sock 7.Check first char [18:51:41]Sock 7.First char is OK [18:51:41]request: POST /json_proto HTTP/1.0 [18:51:41]Method: POST [18:51:41]URL: /json_proto [18:51:41]Method is POST - this is cgi request [18:51:41]url: /json_proto [18:51:41]query_string will be loaded in cgi processing [18:51:41]execute_cgi json_proto POST (null) [18:51:41]execute_cgi path=json_proto method=POST [18:51:41]POST find Content-Length [18:51:41]Host: 172.17.51.3:8080 [18:51:41]Content-Length: 800 [18:51:41]Content-Type: application/json [18:51:41] [18:51:41]POST finish read [18:51:41]Found Content-Length = 800 [18:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:41]execute_script... [18:51: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)343445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:41]POST & json_proto [18:51:41]process_json_proto [18:51:41]json parsed OK: [18:51:41]protocol is kg_v1.0 [18:51:41]action value=close_receipt [18:51:41]process_action close_receipt [18:51:41]cmd_close_receipt [18:51:41]MH_GetDate [18:51:41]Write to MH i2c: F0 00 00 97 20 A6 [18:51:41]Write i2c OK [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: F0 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: F0 09 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: F0 09 00 97 20 00 3F F4 17 67 04 C1 95 66 20 [18:51:41]GetLastDocTimeStamp 1729623070 [18:51:41]current date 1729623103 [18:51:41]FM_GetShiftState [18:51:41]SAM_PROTO_GetShiftState [18:51:41]wFMCommunicate request_size=4 [18:51:41]MH_SAM_APDU [18:51:41]CAPDU: 80 13 01 00 [18:51:41]Write to MH i2c: E2 08 00 98 20 80 13 01 00 00 00 00 00 35 [18:51:41]Write i2c OK [18:51:41]MH_I2C_Read... [18:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:41]Read from MH i2c: E2 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 0E 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 0E 00 98 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0F [18:51:41]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:51:41]wFMCommunicate OK [18:51:41]SAM_PROTO_GetShiftState done [18:51:41]FM_GetShiftState done [18:51:41]opened in 1729557342 [18:51:41]opened+sec_in_day 1729643742 [18:51:41]quantity*price = 0 [18:51:41]sum+1 = 1 [18:51:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 249 22.10.2024 18:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949821 ФМ: 0000000002094219 ФД: 31016 ФПД: 57336162808922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185143&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31016&fm=57336162808922&tin=02508201610067®Number=0000000000186857&sum=0 [18:51:42]StoreToDocumentArchive [18:51:42]shift 116 fd 31016 [18:51:42]save to /storage/0116/doc_00031016 [18:51:42]save last doc name /storage/0116/doc_00031016 to /storage/kkm_last_doc_name [18:51:42]save OK [18:51:42]Clear old archive folders... [18:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:42]tlvbuf is 00D5E500 [18:51:42]SAM_PROTO_ClearQueue [18:51:42]wFMCommunicate request_size=4 [18:51:42]MH_SAM_APDU [18:51:42]CAPDU: 80 09 00 00 [18:51:42]Write to MH i2c: E2 08 00 A5 20 80 09 00 00 00 00 00 00 37 [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 A5 20 00 90 00 39 [18:51:42]RAPDU: 90 00 [18:51:42]wFMCommunicate OK [18:51:42]SAM_PROTO_ClearQueue done [18:51:42]KKMCreateOFDPacket [18:51:42]OFDProtocolAddRootSTLVToBuf [18:51:42]FM_MakeSignedData [18:51:42]FM_MakeSignedData [18:51:42]SAM_PROTO_SignData [18:51:42]wFMCommunicate request_size=4 [18:51:42]MH_SAM_APDU [18:51:42]CAPDU: 80 0D 01 02 [18:51:42]Write to MH i2c: E2 08 00 A6 20 80 0D 01 02 00 00 00 00 3F [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [18:51:42]RAPDU: 90 00 [18:51:42]wFMCommunicate OK [18:51:42]wFMCommunicate request_size=255 [18:51:42]MH_SAM_APDU [18:51: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3F F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 79 00 00 35 04 06 00 34 [18:51:42]Write to MH i2c: E2 02 01 A7 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3F F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 79 00 00 35 04 06 00 34 00 00 AC [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [18:51:42]RAPDU: 90 00 [18:51:42]wFMCommunicate OK [18:51:42]wFMCommunicate request_size=10 [18:51:42]MH_SAM_APDU [18:51:42]CAPDU: 80 0D 02 02 05 25 9D 9D F4 5A [18:51:42]Write to MH i2c: E2 0D 00 A8 20 80 0D 02 02 05 00 25 9D 9D F4 5A 00 00 F9 [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [18:51:42]RAPDU: 90 00 [18:51:42]wFMCommunicate OK [18:51:42]wFMCommunicate request_size=4 [18:51:42]MH_SAM_APDU [18:51:42]CAPDU: 80 0D 03 02 [18:51:42]Write to MH i2c: E2 08 00 A9 20 80 0D 03 02 00 00 00 00 44 [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 0B 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 0B 00 A9 20 00 43 AD 77 7A 6A 97 44 EE 90 00 59 [18:51:42]RAPDU: 43 AD 77 7A 6A 97 44 EE 90 00 [18:51:42]wFMCommunicate OK [18:51:42]SAM_PROTO_SignData done [18:51:42]FM_MakeSignedData done [18:51:42]CreateOFDProtocolMessage [18:51:42]wFMCommunicate request_size=4 [18:51:42]MH_SAM_APDU [18:51:42]CAPDU: 80 11 00 00 [18:51:42]Write to MH i2c: E2 08 00 AA 20 80 11 00 00 00 00 00 00 44 [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:42]Read from MH i2c: E2 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 17 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: E2 17 00 AA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [18:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:42]wFMCommunicate OK [18:51:42]CreateOFDProtocolMessage done [18:51:42]OFDSenderStorePacket 31016 [18:51:42]StoreOFDPacket docnum=31016 [18:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 73 07 01 7E 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3F F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 79 00 00 35 04 06 00 34 25 9D 9D F4 5A 43 AD 77 7A 6A 97 44 EE [18:51:42]CheckFolder [18:51:42]dirname=/storage/ofd_packets [18:51:42]CheckFolder done [18:51:42]ProducePacketName [18:51:42]name=ofd_packets/00031016 [18:51:42]NVStorageSaveData ofd_packets/00031016 [18:51:42]File name is /storage/ofd_packets/00031016 [18:51:42]Write 301 bytes [18:51:42]NVStorageSaveData done [18:51:42]OFDSenderStorePacket done [18:51:42]KKMCreateOFDPacket done [18:51:42]NVStorageSaveData kkm_last_timestamp [18:51:42]File name is /storage/kkm_last_timestamp [18:51:42]Write 4 bytes [18:51:42]NVStorageSaveData done [18:51:42]OFD Sender: Processing packet 31016 [packets to send 11, broken 10] [18:51:42]ProducePacketName [18:51:42]name=ofd_packets/00031016 [18:51:42]OFD Sender: To server: pG, [18:51:42]CommunicateWithHost lk.salyk.kg:30040 [18:51:42]ConnectInit lk.salyk.kg [18:51:42]ExternCall_PrintAddStr [18:51:42]wPrintStart [18:51:42]Write to MH i2c: 01 00 00 AB 20 CB [18:51:42]Write i2c OK [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: 01 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: 01 07 00 [18:51:42]MH_I2C_Read... [18:51:42]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [18:51:42]RasterBufferAndPrint [18:51:42]line Счет N : (1)343445 [18:51:42]line ИНН: 02508201610067 [18:51:42]line Контрольно-Кассовый Чек [18:51:42]line ПРОДАЖА [18:51:42]line ТРК (МРК, ГНК) : 53 [18:51:42]line Товар: 2710124130 [18:51:42]line Аи-92-К-2 [18:51:42]line 20.000 * 0.00 [18:51:42]line = 0.00 [18:51:42]line НДС 12% НСП 1% [18:51:42]line > о реализуемом товаре [18:51:42]line ИТОГО: 0.00 [18:51:42]line НСП 1% : 0.00 [18:51:42]line НДС 12% : 0.00 [18:51:42]line Наличными: 0.00 [18:51:42]line Безнал.: 0.00 [18:51:42]line Место: АЗС № 78 "Партнер Нефть" [18:51:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:42]line СНО: Общий режим [18:51:42]line Чек 249 22.10.2024 18:51 [18:51:42]line Смена: 116 ФФД: 1.0 [18:51:42]line ЗНМ: 0300000137 [18:51:42]line РНМ: 0000000000186857 [18:51:42]line Версия ККМ: v1.0 [18:51:42]line Талоны: Топливные Талоны [18:51:42]line 3949821 [18:51:42]line ФМ: 0000000002094219 [18:51:42]line ФД: 31016 [18:51:42]line ФПД: 57336162808922 [18:51:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185143&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31016&fm=57336162808922&tin=02508201610067®Number=0000000000186857&sum=0 [18:51:43]Connected sock=11 [18:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 73 07 01 7E 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3F F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 79 00 00 35 04 06 00 34 25 9D 9D F4 5A 43 AD 77 7A 6A 97 44 EE [18:51:43]written 0, free lines is 4095 [18:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B4 0F 47 00 86 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 32 30 39 34 32 31 39 10 04 04 00 28 79 00 00 F4 03 04 00 BB 9E 17 67 B6 04 01 00 00 62 FD C8 F1 6D 69 24 67 [18:51:43]CommunicateWithHost err = 0 [18:51:43]CheckOFDResponse [18:51:43]1017 (14) - 77093643461234 [18:51:43]1041 (16) - 0000000002094219 [18:51:43]1040 (4) - 31016 [18:51:43]1012 (4) - 22.10.2024 12:46 [18:51:43]1206 (1) - 0 [18:51:43]OFD Sender: Remove packet 31016 [18:51:43]ProducePacketName [18:51:43]name=ofd_packets/00031016 [18:51:43]NVStorageDeleteData [18:51:43]Write to MH i2c: 01 00 00 D5 20 F5 [18:51:43]Write i2c OK [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: 01 [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: 01 07 00 [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 F2 0C FA [18:51:43]RasterBufferAndPrint [18:51:43]line [18:51:43]line [18:51:43]line [18:51:43]line [18:51:43]line [18:51:43]written 0, free lines is 3320 [18:51:43]MH_Cut [18:51:43]Write to MH i2c: D1 01 00 DC 20 01 CE [18:51:43]Write i2c OK [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: D1 [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: D1 01 00 [18:51:43]MH_I2C_Read... [18:51:43]Read from MH i2c: D1 01 00 DC 20 00 CD [18:51:43]Write to MH i2c: 01 00 00 DD 20 FD [18:51:43]Write i2c OK [18:51:43]MH_I2C_Read... [18:51:43]OFD Sender: No OFD packet to send [18:51:44]*** Cut start [18:51:44]*** Partial cut [18:51:44]*** CUTSNS_PIN = 1 [18:51:44]*** CUTSNS_PIN = 0 [18:51:44]*** Brake cut motor [18:51:44]Read from MH i2c: 01 [18:51:44]MH_I2C_Read... [18:51:44]*** Stop cut motor [18:51:44]*** Cut end [18:51:44]Read from MH i2c: 01 07 00 [18:51:44]MH_I2C_Read... [18:51:44]Read from MH i2c: 01 07 00 DD 20 00 00 00 00 00 FF 0F 12 [18:51:44]process_action close_receipt done [18:51:44]requested_data is exist [18:51:44]produce_requested_data [18:51:44]requested_item fm.sn is exist - process it [18:51:44]wFMCommunicate request_size=4 [18:51:44]MH_SAM_APDU [18:51:44]CAPDU: 80 11 00 00 [18:51:44]Write to MH i2c: E2 08 00 DE 20 80 11 00 00 00 00 00 00 78 [18:51:44]Write i2c OK [18:51:44]MH_I2C_Read... [18:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:45]Read from MH i2c: E2 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 17 00 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 17 00 DE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [18:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:45]wFMCommunicate OK [18:51:45]requested_item fd.num is exist - process it [18:51:45]SAM_PROTO_GetFieldsCounters [18:51:45]wFMCommunicate request_size=4 [18:51:45]MH_SAM_APDU [18:51:45]CAPDU: 80 13 00 00 [18:51:45]Write to MH i2c: E2 08 00 DF 20 80 13 00 00 00 00 00 00 7B [18:51:45]Write i2c OK [18:51:45]MH_I2C_Read... [18:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:45]Read from MH i2c: E2 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 62 00 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 62 00 DF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:45]wFMCommunicate OK [18:51:45]SAM_PROTO_GetFieldsCounters done [18:51:45]requested_item shift.num is exist - process it [18:51:45]requested_item shift.opened is exist - process it [18:51:45]req_shift_opened [18:51:45]FM_GetShiftState [18:51:45]SAM_PROTO_GetShiftState [18:51:45]wFMCommunicate request_size=4 [18:51:45]MH_SAM_APDU [18:51:45]CAPDU: 80 13 01 00 [18:51:45]Write to MH i2c: E2 08 00 E0 20 80 13 01 00 00 00 00 00 7D [18:51:45]Write i2c OK [18:51:45]MH_I2C_Read... [18:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:45]Read from MH i2c: E2 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 0E 00 [18:51:45]MH_I2C_Read... [18:51:45]Read from MH i2c: E2 0E 00 E0 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 57 [18:51:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:51:45]wFMCommunicate OK [18:51:45]SAM_PROTO_GetShiftState done [18:51:45]FM_GetShiftState done [18:51:45]req_shift_opened done [18:51:45]requested_item shift.open_date is exist - process it [18:51:45]req_shift_open_date [18:51:45]req_shift_open_date done [18:51:45]produce_requested_data done [18:51:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31016,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:51:45]process_action_free close_receipt [18:51:45]json_value_free [18:51:45]json_value_free done [18:51:45]process_json_proto returns [18:51:45]Send response to host [18:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31016,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:51:45]free response buf [18:51:45]execute_script done [18:51:45]execute_script returns [18:51:45]free content buf [18:51:45]Sock 7.Close socket [18:51:45]Sock 7.Thread stoped [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:24]accept exits with 9 [18:53:24]New connection [18:53:24]New thread 3067043172 created [18:53:24]Thread 3066899812 joined [18:53:24]Waiting for new connection... [18:53:24] Sock 9.Parse request [18:53:24]Sock 9.Check first char [18:53:24]Sock 9.First char is OK [18:53:24]request: POST /json_proto HTTP/1.0 [18:53:24]Method: POST [18:53:24]URL: /json_proto [18:53:24]Method is POST - this is cgi request [18:53:24]url: /json_proto [18:53:24]query_string will be loaded in cgi processing [18:53:24]execute_cgi json_proto POST (null) [18:53:24]execute_cgi path=json_proto method=POST [18:53:24]POST find Content-Length [18:53:24]Host: 172.17.51.3:8080 [18:53:24]Content-Length: 677 [18:53:24]Content-Type: application/json [18:53:24] [18:53:24]POST finish read [18:53:24]Found Content-Length = 677 [18:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:24]execute_script... [18:53: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)343446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:24]POST & json_proto [18:53:24]process_json_proto [18:53:24]json parsed OK: [18:53:24]protocol is kg_v1.0 [18:53:24]action value=close_receipt [18:53:24]process_action close_receipt [18:53:24]cmd_close_receipt [18:53:24]MH_GetDate [18:53:24]Write to MH i2c: F0 00 00 E1 20 F0 [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: F0 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: F0 09 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: F0 09 00 E1 20 00 A6 F4 17 67 04 C1 95 66 D1 [18:53:24]GetLastDocTimeStamp 1729623103 [18:53:24]current date 1729623206 [18:53:24]FM_GetShiftState [18:53:24]SAM_PROTO_GetShiftState [18:53:24]wFMCommunicate request_size=4 [18:53:24]MH_SAM_APDU [18:53:24]CAPDU: 80 13 01 00 [18:53:24]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:25]Read from MH i2c: E2 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 59 [18:53:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:53:25]wFMCommunicate OK [18:53:25]SAM_PROTO_GetShiftState done [18:53:25]FM_GetShiftState done [18:53:25]opened in 1729557342 [18:53:25]opened+sec_in_day 1729643742 [18:53:25]quantity*price = 20003 [18:53:25]sum+1 = 20004 [18:53:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 250 22.10.2024 18:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31017 ФПД: 242233892052448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31017&fm=242233892052448&tin=02508201610067®Number=0000000000186857&sum=20000 [18:53:26]StoreToDocumentArchive [18:53:26]shift 116 fd 31017 [18:53:26]save to /storage/0116/doc_00031017 [18:53:26]save last doc name /storage/0116/doc_00031017 to /storage/kkm_last_doc_name [18:53:26]save OK [18:53:26]Clear old archive folders... [18:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:26]tlvbuf is B6F6B200 [18:53:26]SAM_PROTO_ClearQueue [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 09 00 00 [18:53:26]Write to MH i2c: E2 08 00 EF 20 80 09 00 00 00 00 00 00 81 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 EF 20 00 90 00 83 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]SAM_PROTO_ClearQueue done [18:53:26]KKMCreateOFDPacket [18:53:26]OFDProtocolAddRootSTLVToBuf [18:53:26]FM_MakeSignedData [18:53:26]FM_MakeSignedData [18:53:26]SAM_PROTO_SignData [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 01 02 [18:53:26]Write to MH i2c: E2 08 00 F0 20 80 0D 01 02 00 00 00 00 89 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 F0 20 00 90 00 84 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=255 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A6 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 79 00 00 35 04 06 00 DC [18:53:26]Write to MH i2c: E2 02 01 F1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A6 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 79 00 00 35 04 06 00 DC 00 00 E0 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=10 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 02 02 05 4F 79 16 9D E0 [18:53:26]Write to MH i2c: E2 0D 00 F2 20 80 0D 02 02 05 00 4F 79 16 9D E0 00 00 F1 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 03 02 [18:53:26]Write to MH i2c: E2 08 00 F3 20 80 0D 03 02 00 00 00 00 8E [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 0B 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 0B 00 F3 20 00 73 BB 86 40 1D 40 2B AE 90 00 B9 [18:53:26]RAPDU: 73 BB 86 40 1D 40 2B AE 90 00 [18:53:26]wFMCommunicate OK [18:53:26]SAM_PROTO_SignData done [18:53:26]FM_MakeSignedData done [18:53:26]CreateOFDProtocolMessage [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 11 00 00 [18:53:26]Write to MH i2c: E2 08 00 F4 20 80 11 00 00 00 00 00 00 8E [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 17 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 17 00 F4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DC [18:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:53:26]wFMCommunicate OK [18:53:26]CreateOFDProtocolMessage done [18:53:26]OFDSenderStorePacket 31017 [18:53:26]StoreOFDPacket docnum=31017 [18:53:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 37 19 07 01 07 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A6 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 79 00 00 35 04 06 00 DC 4F 79 16 9D E0 73 BB 86 40 1D 40 2B AE [18:53:26]CheckFolder [18:53:26]dirname=/storage/ofd_packets [18:53:26]CheckFolder done [18:53:26]ProducePacketName [18:53:26]name=ofd_packets/00031017 [18:53:26]NVStorageSaveData ofd_packets/00031017 [18:53:26]File name is /storage/ofd_packets/00031017 [18:53:26]Write 301 bytes [18:53:26]NVStorageSaveData done [18:53:26]OFDSenderStorePacket done [18:53:26]KKMCreateOFDPacket done [18:53:26]NVStorageSaveData kkm_last_timestamp [18:53:26]File name is /storage/kkm_last_timestamp [18:53:26]Write 4 bytes [18:53:26]NVStorageSaveData done [18:53:26]ExternCall_PrintAddStr [18:53:26]wPrintStart [18:53:26]Write to MH i2c: 01 00 00 F5 20 15 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: 01 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: 01 07 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [18:53:26]RasterBufferAndPrint [18:53:26]line Счет N : (1)343446 [18:53:26]line ИНН: 02508201610067 [18:53:26]line Контрольно-Кассовый Чек [18:53:26]line ПРОДАЖА [18:53:26]line ТРК (МРК, ГНК) : 63 [18:53:26]line Товар: 2710124130 [18:53:26]line Аи-92-К-2 [18:53:26]line 2.990 * 66.90 [18:53:26]line = 200.03 [18:53:26]line НДС 12% НСП 1% [18:53:26]line > о реализуемом товаре [18:53:26]line ОКРУГЛЕНИЕ: -0.03 [18:53:26]line ИТОГО: 200.00 [18:53:26]line Внесено: 200.00 [18:53:26]line СДАЧА: 0.00 [18:53:26]line НСП 1% : 1.77 [18:53:26]line НДС 12% : 21.24 [18:53:26]line Наличными: 200.00 [18:53:26]line Безнал.: 0.00 [18:53:26]line Место: АЗС № 78 "Партнер Нефть" [18:53:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:53:26]line СНО: Общий режим [18:53:26]line Чек 250 22.10.2024 18:53 [18:53:26]line Смена: 116 ФФД: 1.0 [18:53:26]line ЗНМ: 0300000137 [18:53:26]line РНМ: 0000000000186857 [18:53:26]line Версия ККМ: v1.0 [18:53:26]line ФМ: 0000000002094219 [18:53:26]line ФД: 31017 [18:53:26]line ФПД: 242233892052448 [18:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31017&fm=242233892052448&tin=02508201610067®Number=0000000000186857&sum=20000 [18:53:27]OFD Sender: Processing packet 31017 [packets to send 11, broken 10] [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00031017 [18:53:27]OFD Sender: To server: pG, [18:53:27]CommunicateWithHost lk.salyk.kg:30040 [18:53:27]ConnectInit lk.salyk.kg [18:53:27]written 0, free lines is 4095 [18:53:27]Connected sock=10 [18:53:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 37 19 07 01 07 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A6 F4 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 79 00 00 35 04 06 00 DC 4F 79 16 9D E0 73 BB 86 40 1D 40 2B AE [18:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 93 82 47 00 6C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 79 00 00 F4 03 04 00 23 9F 17 67 B6 04 01 00 00 42 DE BA 46 C6 32 06 93 [18:53:27]CommunicateWithHost err = 0 [18:53:27]CheckOFDResponse [18:53:27]1017 (14) - 77093643461234 [18:53:27]1041 (16) - 0000000002094219 [18:53:27]1040 (4) - 31017 [18:53:27]1012 (4) - 22.10.2024 12:48 [18:53:27]1206 (1) - 0 [18:53:27]OFD Sender: Remove packet 31017 [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00031017 [18:53:27]NVStorageDeleteData [18:53:27]Write to MH i2c: 01 00 00 20 21 41 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 20 21 00 00 00 00 00 F6 0C 4A [18:53:27]RasterBufferAndPrint [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]written 0, free lines is 3324 [18:53:27]MH_Cut [18:53:27]Write to MH i2c: D1 01 00 27 21 01 1A [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 27 21 00 19 [18:53:27]Write to MH i2c: 01 00 00 28 21 49 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]OFD Sender: No OFD packet to send [18:53:28]*** Cut start [18:53:28]*** Partial cut [18:53:28]*** CUTSNS_PIN = 1 [18:53:28]*** CUTSNS_PIN = 0 [18:53:28]*** Brake cut motor [18:53:28]Read from MH i2c: 01 [18:53:28]MH_I2C_Read... [18:53:28]*** Stop cut motor [18:53:28]*** Cut end [18:53:28]Read from MH i2c: 01 07 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 FF 0F 5E [18:53:28]process_action close_receipt done [18:53:28]requested_data is exist [18:53:28]produce_requested_data [18:53:28]requested_item fm.sn is exist - process it [18:53:28]wFMCommunicate request_size=4 [18:53:28]MH_SAM_APDU [18:53:28]CAPDU: 80 11 00 00 [18:53:28]Write to MH i2c: E2 08 00 29 21 80 11 00 00 00 00 00 00 C4 [18:53:28]Write i2c OK [18:53:28]MH_I2C_Read... [18:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:28]Read from MH i2c: E2 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 17 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 17 00 29 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [18:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:53:28]wFMCommunicate OK [18:53:28]requested_item fd.num is exist - process it [18:53:28]SAM_PROTO_GetFieldsCounters [18:53:28]wFMCommunicate request_size=4 [18:53:28]MH_SAM_APDU [18:53:28]CAPDU: 80 13 00 00 [18:53:28]Write to MH i2c: E2 08 00 2A 21 80 13 00 00 00 00 00 00 C7 [18:53:28]Write i2c OK [18:53:28]MH_I2C_Read... [18:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:28]Read from MH i2c: E2 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 62 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 62 00 2A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [18:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:28]wFMCommunicate OK [18:53:28]SAM_PROTO_GetFieldsCounters done [18:53:28]requested_item shift.num is exist - process it [18:53:28]requested_item shift.opened is exist - process it [18:53:28]req_shift_opened [18:53:28]FM_GetShiftState [18:53:28]SAM_PROTO_GetShiftState [18:53:28]wFMCommunicate request_size=4 [18:53:28]MH_SAM_APDU [18:53:28]CAPDU: 80 13 01 00 [18:53:28]Write to MH i2c: E2 08 00 2B 21 80 13 01 00 00 00 00 00 C9 [18:53:28]Write i2c OK [18:53:28]MH_I2C_Read... [18:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:28]Read from MH i2c: E2 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 0E 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 0E 00 2B 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A3 [18:53:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [18:53:28]wFMCommunicate OK [18:53:28]SAM_PROTO_GetShiftState done [18:53:28]FM_GetShiftState done [18:53:28]req_shift_opened done [18:53:28]requested_item shift.open_date is exist - process it [18:53:28]req_shift_open_date [18:53:28]req_shift_open_date done [18:53:28]produce_requested_data done [18:53:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31017,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [18:53:28]process_action_free close_receipt [18:53:28]json_value_free [18:53:28]json_value_free done [18:53:28]process_json_proto returns [18:53:28]Send response to host [18:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31017,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [18:53:28]free response buf [18:53:28]execute_script done [18:53:28]execute_script returns [18:53:28]free content buf [18:53:28]Sock 9.Close socket [18:53:28]Sock 9.Thread stoped [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]accept exits with 7 [19:11:53]New connection [19:11:53]New thread 3066899812 created [19:11:53]Thread 3067043172 joined [19:11:53]Waiting for new connection... [19:11:53] Sock 7.Parse request [19:11:53]Sock 7.Check first char [19:11:53]Sock 7.First char is OK [19:11:53]request: POST /json_proto HTTP/1.0 [19:11:53]Method: POST [19:11:53]URL: /json_proto [19:11:53]Method is POST - this is cgi request [19:11:53]url: /json_proto [19:11:53]query_string will be loaded in cgi processing [19:11:53]execute_cgi json_proto POST (null) [19:11:53]execute_cgi path=json_proto method=POST [19:11:53]POST find Content-Length [19:11:53]Host: 172.17.51.3:8080 [19:11:53]Content-Length: 682 [19:11:53]Content-Type: application/json [19:11:53] [19:11:53]POST finish read [19:11:53]Found Content-Length = 682 [19:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]execute_script... [19:11: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)343453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]POST & json_proto [19:11:53]process_json_proto [19:11:53]json parsed OK: [19:11:53]protocol is kg_v1.0 [19:11:53]action value=close_receipt [19:11:53]process_action close_receipt [19:11:53]cmd_close_receipt [19:11:53]MH_GetDate [19:11:53]Write to MH i2c: F0 00 00 2C 21 3C [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 2C 21 00 FB F8 17 67 04 C1 95 66 76 [19:11:53]GetLastDocTimeStamp 1729623206 [19:11:53]current date 1729624315 [19:11:53]FM_GetShiftState [19:11:53]SAM_PROTO_GetShiftState [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 13 01 00 [19:11:53]Write to MH i2c: E2 08 00 2D 21 80 13 01 00 00 00 00 00 CB [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 2D 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A5 [19:11:53]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:11:53]wFMCommunicate OK [19:11:53]SAM_PROTO_GetShiftState done [19:11:53]FM_GetShiftState done [19:11:53]opened in 1729557342 [19:11:53]opened+sec_in_day 1729643742 [19:11:53]quantity*price = 300064 [19:11:53]sum+1 = 300066 [19:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 251 22.10.2024 19:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31018 ФПД: 239998650458063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191155&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31018&fm=239998650458063&tin=02508201610067®Number=0000000000186857&sum=300000 [19:11:54]StoreToDocumentArchive [19:11:54]shift 116 fd 31018 [19:11:54]save to /storage/0116/doc_00031018 [19:11:54]save last doc name /storage/0116/doc_00031018 to /storage/kkm_last_doc_name [19:11:54]save OK [19:11:54]Clear old archive folders... [19:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:54]tlvbuf is 00D2B320 [19:11:54]SAM_PROTO_ClearQueue [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 09 00 00 [19:11:54]Write to MH i2c: E2 08 00 3A 21 80 09 00 00 00 00 00 00 CD [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 3A 21 00 90 00 CF [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]SAM_PROTO_ClearQueue done [19:11:54]KKMCreateOFDPacket [19:11:54]OFDProtocolAddRootSTLVToBuf [19:11:54]FM_MakeSignedData [19:11:54]FM_MakeSignedData [19:11:54]SAM_PROTO_SignData [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 01 02 [19:11:54]Write to MH i2c: E2 08 00 3B 21 80 0D 01 02 00 00 00 00 D5 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=255 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FB F8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 79 00 00 35 04 06 00 DA [19:11:54]Write to MH i2c: E2 02 01 3C 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FB F8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 79 00 00 35 04 06 00 DA 00 00 F5 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 03 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [19:11:55]RAPDU: 90 00 [19:11:55]wFMCommunicate OK [19:11:55]wFMCommunicate request_size=10 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 0D 02 02 05 47 0A 4E 9F CF [19:11:55]Write to MH i2c: E2 0D 00 3D 21 80 0D 02 02 05 00 47 0A 4E 9F CF 00 00 EF [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 03 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [19:11:55]RAPDU: 90 00 [19:11:55]wFMCommunicate OK [19:11:55]wFMCommunicate request_size=4 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 0D 03 02 [19:11:55]Write to MH i2c: E2 08 00 3E 21 80 0D 03 02 00 00 00 00 DA [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0B 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0B 00 3E 21 00 FC B2 44 27 7F 79 49 68 90 00 9D [19:11:55]RAPDU: FC B2 44 27 7F 79 49 68 90 00 [19:11:55]wFMCommunicate OK [19:11:55]SAM_PROTO_SignData done [19:11:55]FM_MakeSignedData done [19:11:55]CreateOFDProtocolMessage [19:11:55]wFMCommunicate request_size=4 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 11 00 00 [19:11:55]Write to MH i2c: E2 08 00 3F 21 80 11 00 00 00 00 00 00 DA [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 17 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 17 00 3F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [19:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:11:55]wFMCommunicate OK [19:11:55]CreateOFDProtocolMessage done [19:11:55]OFDSenderStorePacket 31018 [19:11:55]StoreOFDPacket docnum=31018 [19:11:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 1F 07 01 F1 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FB F8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 79 00 00 35 04 06 00 DA 47 0A 4E 9F CF FC B2 44 27 7F 79 49 68 [19:11:55]CheckFolder [19:11:55]dirname=/storage/ofd_packets [19:11:55]CheckFolder done [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00031018 [19:11:55]NVStorageSaveData ofd_packets/00031018 [19:11:55]File name is /storage/ofd_packets/00031018 [19:11:55]Write 301 bytes [19:11:55]NVStorageSaveData done [19:11:55]OFDSenderStorePacket done [19:11:55]KKMCreateOFDPacket done [19:11:55]NVStorageSaveData kkm_last_timestamp [19:11:55]File name is /storage/kkm_last_timestamp [19:11:55]Write 4 bytes [19:11:55]NVStorageSaveData done [19:11:55]ExternCall_PrintAddStr [19:11:55]wPrintStart [19:11:55]Write to MH i2c: 01 00 00 40 21 61 [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 FF 0F 76 [19:11:55]RasterBufferAndPrint [19:11:55]line Счет N : (1)343453 [19:11:55]line ИНН: 02508201610067 [19:11:55]line Контрольно-Кассовый Чек [19:11:55]line ПРОДАЖА [19:11:55]line ТРК (МРК, ГНК) : 42 [19:11:55]line Товар: 2710124500 [19:11:55]line Аи-95-К-3 [19:11:55]line 40.440 * 74.20 [19:11:55]line = 3000.65 [19:11:55]line НДС 12% НСП 1% [19:11:55]line > о реализуемом товаре [19:11:55]line ОКРУГЛЕНИЕ: -0.65 [19:11:55]line ИТОГО: 3000.00 [19:11:55]line Внесено: 3000.00 [19:11:55]line СДАЧА: 0.00 [19:11:55]line НСП 1% : 26.55 [19:11:55]line НДС 12% : 318.65 [19:11:55]line Наличными: 3000.00 [19:11:55]line Безнал.: 0.00 [19:11:55]line Место: АЗС № 78 "Партнер Нефть" [19:11:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:11:55]line СНО: Общий режим [19:11:55]line Чек 251 22.10.2024 19:11 [19:11:55]line Смена: 116 ФФД: 1.0 [19:11:55]line ЗНМ: 0300000137 [19:11:55]line РНМ: 0000000000186857 [19:11:55]line Версия ККМ: v1.0 [19:11:55]line ФМ: 0000000002094219 [19:11:55]line ФД: 31018 [19:11:55]line ФПД: 239998650458063 [19:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191155&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31018&fm=239998650458063&tin=02508201610067®Number=0000000000186857&sum=300000 [19:11:55]OFD Sender: Processing packet 31018 [packets to send 11, broken 10] [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00031018 [19:11:55]OFD Sender: To server: pG, [19:11:55]CommunicateWithHost lk.salyk.kg:30040 [19:11:55]ConnectInit lk.salyk.kg [19:11:55]written 0, free lines is 4095 [19:11:55]Connected sock=10 [19:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 1F 07 01 F1 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FB F8 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 79 00 00 35 04 06 00 DA 47 0A 4E 9F CF FC B2 44 27 7F 79 49 68 [19:11:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 80 79 47 00 26 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 32 30 39 34 32 31 39 10 04 04 00 2A 79 00 00 F4 03 04 00 78 A3 17 67 B6 04 01 00 00 88 CC 2F 3F 6F C4 8D E3 [19:11:56]CommunicateWithHost err = 0 [19:11:56]CheckOFDResponse [19:11:56]1017 (14) - 77093643461234 [19:11:56]1041 (16) - 0000000002094219 [19:11:56]1040 (4) - 31018 [19:11:56]1012 (4) - 22.10.2024 13:07 [19:11:56]1206 (1) - 0 [19:11:56]OFD Sender: Remove packet 31018 [19:11:56]ProducePacketName [19:11:56]name=ofd_packets/00031018 [19:11:56]NVStorageDeleteData [19:11:56]Write to MH i2c: 01 00 00 6B 21 8C [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 6B 21 00 00 00 00 00 F5 0C 94 [19:11:56]RasterBufferAndPrint [19:11:56]line [19:11:56]line [19:11:56]line [19:11:56]line [19:11:56]line [19:11:56]written 0, free lines is 3326 [19:11:56]MH_Cut [19:11:56]Write to MH i2c: D1 01 00 72 21 01 65 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: D1 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: D1 01 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: D1 01 00 72 21 00 64 [19:11:56]Write to MH i2c: 01 00 00 73 21 94 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]OFD Sender: No OFD packet to send [19:11:56]*** Cut start [19:11:56]*** Partial cut [19:11:56]*** CUTSNS_PIN = 1 [19:11:56]*** CUTSNS_PIN = 0 [19:11:57]*** Brake cut motor [19:11:57]Read from MH i2c: 01 [19:11:57]MH_I2C_Read... [19:11:57]*** Stop cut motor [19:11:57]*** Cut end [19:11:57]Read from MH i2c: 01 07 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 73 21 00 00 00 00 00 FF 0F A9 [19:11:57]process_action close_receipt done [19:11:57]requested_data is exist [19:11:57]produce_requested_data [19:11:57]requested_item fm.sn is exist - process it [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 11 00 00 [19:11:57]Write to MH i2c: E2 08 00 74 21 80 11 00 00 00 00 00 00 0F [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 74 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [19:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:11:57]wFMCommunicate OK [19:11:57]requested_item fd.num is exist - process it [19:11:57]SAM_PROTO_GetFieldsCounters [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 00 00 [19:11:57]Write to MH i2c: E2 08 00 75 21 80 13 00 00 00 00 00 00 12 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 75 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [19:11:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetFieldsCounters done [19:11:57]requested_item shift.num is exist - process it [19:11:57]requested_item shift.opened is exist - process it [19:11:57]req_shift_opened [19:11:57]FM_GetShiftState [19:11:57]SAM_PROTO_GetShiftState [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 01 00 [19:11:57]Write to MH i2c: E2 08 00 76 21 80 13 01 00 00 00 00 00 14 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 76 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EE [19:11:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetShiftState done [19:11:57]FM_GetShiftState done [19:11:57]req_shift_opened done [19:11:57]requested_item shift.open_date is exist - process it [19:11:57]req_shift_open_date [19:11:57]req_shift_open_date done [19:11:57]produce_requested_data done [19:11:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31018,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:11:57]process_action_free close_receipt [19:11:57]json_value_free [19:11:57]json_value_free done [19:11:57]process_json_proto returns [19:11:57]Send response to host [19:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31018,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:11:57]free response buf [19:11:57]execute_script done [19:11:57]execute_script returns [19:11:57]free content buf [19:11:57]Sock 7.Close socket [19:11:57]Sock 7.Thread stoped [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:13]accept exits with 9 [19:12:13]New connection [19:12:13]New thread 3067043172 created [19:12:13]Thread 3066899812 joined [19:12:13]Waiting for new connection... [19:12:13] Sock 9.Parse request [19:12:13]Sock 9.Check first char [19:12:13]Sock 9.First char is OK [19:12:13]request: POST /json_proto HTTP/1.0 [19:12:13]Method: POST [19:12:13]URL: /json_proto [19:12:13]Method is POST - this is cgi request [19:12:13]url: /json_proto [19:12:13]query_string will be loaded in cgi processing [19:12:13]execute_cgi json_proto POST (null) [19:12:13]execute_cgi path=json_proto method=POST [19:12:13]POST find Content-Length [19:12:13]Host: 172.17.51.3:8080 [19:12:13]Content-Length: 1219 [19:12:13]Content-Type: application/json [19:12:13] [19:12:13]POST finish read [19:12:13]Found Content-Length = 1219 [19:12:13]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 78\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 00000000012345\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)343454\u000A22.10.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 2.960 x 66.90\u000A\u0418\u0422\u041E\u0413: 198.02\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:13]execute_script... [19:12:13]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 78\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 00000000012345\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)343454\u000A22.10.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 2.960 x 66.90\u000A\u0418\u0422\u041E\u0413: 198.02\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:13]POST & json_proto [19:12:13]process_json_proto [19:12:13]json parsed OK: [19:12:13]protocol is kg_v1.0 [19:12:13]action value=print_text [19:12:13]process_action print_text [19:12:13]cmd_print_text [19:12:13]ExternCall_PrintAddStr [19:12:13]wPrintStart [19:12:13]Write to MH i2c: 01 00 00 77 21 98 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 07 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 FF 0F AD [19:12:13]RasterBufferAndPrint [19:12:13]line *****ТОВАРНЫЙ ЧЕК***** [19:12:13]line АЗС 78 [19:12:13]line Партнер нефть [19:12:13]line 00000000012345 [19:12:13]line Кассир : Таалайбек кызы А. [19:12:13]line Счет N : (1)343454 [19:12:13]line 22.10.2024 18:37 [19:12:13]line ПРОДАЖА [19:12:13]line ТРК (МРК, ГНК): 63 [19:12:13]line Вид ГСМ : 2710124130 [19:12:13]line Аи-92-К-2 [19:12:13]line 2.960 x 66.90 [19:12:13]line ИТОГ: 198.02 [19:12:13]line Тип оплаты: Технологический отпуск: [19:12:13]line ______________________ [19:12:13]line (подпись) [19:12:13]written 0, free lines is 4095 [19:12:13]Write to MH i2c: 01 00 00 8B 21 AC [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 07 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 07 00 8B 21 00 00 00 00 00 10 0E D1 [19:12:13]RasterBufferAndPrint [19:12:13]line [19:12:13]line [19:12:13]line [19:12:13]line [19:12:13]line [19:12:13]written 0, free lines is 3601 [19:12:13]MH_Cut [19:12:13]Write to MH i2c: D1 01 00 92 21 01 85 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: D1 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: D1 01 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: D1 01 00 92 21 00 84 [19:12:13]Write to MH i2c: 01 00 00 93 21 B4 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:14]*** Cut start [19:12:14]*** Partial cut [19:12:14]*** CUTSNS_PIN = 1 [19:12:14]*** CUTSNS_PIN = 0 [19:12:14]*** Brake cut motor [19:12:14]Read from MH i2c: 01 [19:12:14]MH_I2C_Read... [19:12:14]*** Stop cut motor [19:12:14]*** Cut end [19:12:14]Read from MH i2c: 01 07 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 93 21 00 00 00 00 00 FF 0F C9 [19:12:14]process_action print_text done [19:12:14]requested_data is exist [19:12:14]produce_requested_data [19:12:14]requested_item fm.sn is exist - process it [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 11 00 00 [19:12:14]Write to MH i2c: E2 08 00 94 21 80 11 00 00 00 00 00 00 2F [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 17 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 17 00 94 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [19:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:12:14]wFMCommunicate OK [19:12:14]requested_item fd.num is exist - process it [19:12:14]SAM_PROTO_GetFieldsCounters [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 13 00 00 [19:12:14]Write to MH i2c: E2 08 00 95 21 80 13 00 00 00 00 00 00 32 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 62 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 62 00 95 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:14]wFMCommunicate OK [19:12:14]SAM_PROTO_GetFieldsCounters done [19:12:14]requested_item shift.num is exist - process it [19:12:14]requested_item shift.opened is exist - process it [19:12:14]req_shift_opened [19:12:14]FM_GetShiftState [19:12:14]SAM_PROTO_GetShiftState [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 13 01 00 [19:12:14]Write to MH i2c: E2 08 00 96 21 80 13 01 00 00 00 00 00 34 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0E 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0E 00 96 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0E [19:12:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:12:14]wFMCommunicate OK [19:12:14]SAM_PROTO_GetShiftState done [19:12:14]FM_GetShiftState done [19:12:14]req_shift_opened done [19:12:14]requested_item shift.open_date is exist - process it [19:12:14]req_shift_open_date [19:12:14]req_shift_open_date done [19:12:14]produce_requested_data done [19:12:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31018,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:12:14]process_action_free print_text [19:12:14]json_value_free [19:12:14]json_value_free done [19:12:14]process_json_proto returns [19:12:14]Send response to host [19:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31018,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:12:14]free response buf [19:12:14]execute_script done [19:12:14]execute_script returns [19:12:14]free content buf [19:12:14]Sock 9.Close socket [19:12:14]Sock 9.Thread stoped [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:13:57]accept exits with 7 [19:13:57]New connection [19:13:57]New thread 3066899812 created [19:13:57]Thread 3067043172 joined [19:13:57]Waiting for new connection... [19:13:57] Sock 7.Parse request [19:13:57]Sock 7.Check first char [19:13:57]Sock 7.First char is OK [19:13:57]request: POST /json_proto HTTP/1.0 [19:13:57]Method: POST [19:13:57]URL: /json_proto [19:13:57]Method is POST - this is cgi request [19:13:57]url: /json_proto [19:13:57]query_string will be loaded in cgi processing [19:13:57]execute_cgi json_proto POST (null) [19:13:57]execute_cgi path=json_proto method=POST [19:13:57]POST find Content-Length [19:13:57]Host: 172.17.51.3:8080 [19:13:57]Content-Length: 800 [19:13:57]Content-Type: application/json [19:13:57] [19:13:57]POST finish read [19:13:57]Found Content-Length = 800 [19:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1677426", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:57]execute_script... [19:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1677426", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:57]POST & json_proto [19:13:57]process_json_proto [19:13:57]json parsed OK: [19:13:57]protocol is kg_v1.0 [19:13:57]action value=close_receipt [19:13:57]process_action close_receipt [19:13:57]cmd_close_receipt [19:13:57]MH_GetDate [19:13:57]Write to MH i2c: F0 00 00 97 21 A7 [19:13:57]Write i2c OK [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 09 00 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 09 00 97 21 00 77 F9 17 67 04 C1 95 66 5E [19:13:57]GetLastDocTimeStamp 1729624315 [19:13:57]current date 1729624439 [19:13:57]FM_GetShiftState [19:13:57]SAM_PROTO_GetShiftState [19:13:57]wFMCommunicate request_size=4 [19:13:57]MH_SAM_APDU [19:13:57]CAPDU: 80 13 01 00 [19:13:57]Write to MH i2c: E2 08 00 98 21 80 13 01 00 00 00 00 00 36 [19:13:57]Write i2c OK [19:13:57]MH_I2C_Read... [19:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:57]Read from MH i2c: E2 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: E2 0E 00 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: E2 0E 00 98 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 10 [19:13:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:13:57]wFMCommunicate OK [19:13:57]SAM_PROTO_GetShiftState done [19:13:57]FM_GetShiftState done [19:13:57]opened in 1729557342 [19:13:57]opened+sec_in_day 1729643742 [19:13:57]quantity*price = 0 [19:13:57]sum+1 = 1 [19:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 252 22.10.2024 19:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 1677426 ФМ: 0000000002094219 ФД: 31019 ФПД: 166141009457106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31019&fm=166141009457106&tin=02508201610067®Number=0000000000186857&sum=0 [19:13:58]StoreToDocumentArchive [19:13:58]shift 116 fd 31019 [19:13:58]save to /storage/0116/doc_00031019 [19:13:58]save last doc name /storage/0116/doc_00031019 to /storage/kkm_last_doc_name [19:13:58]save OK [19:13:58]Clear old archive folders... [19:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:58]tlvbuf is B6DBE460 [19:13:58]SAM_PROTO_ClearQueue [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 09 00 00 [19:13:58]Write to MH i2c: E2 08 00 A5 21 80 09 00 00 00 00 00 00 38 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_ClearQueue done [19:13:58]KKMCreateOFDPacket [19:13:58]OFDProtocolAddRootSTLVToBuf [19:13:58]FM_MakeSignedData [19:13:58]FM_MakeSignedData [19:13:58]SAM_PROTO_SignData [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 01 02 [19:13:58]Write to MH i2c: E2 08 00 A6 21 80 0D 01 02 00 00 00 00 40 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=255 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 77 F9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 79 00 00 35 04 06 00 97 [19:13:58]Write to MH i2c: E2 02 01 A7 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 77 F9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 79 00 00 35 04 06 00 97 00 00 58 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=10 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 05 1A B7 D9 EF D2 [19:13:58]Write to MH i2c: E2 0D 00 A8 21 80 0D 02 02 05 00 1A B7 D9 EF D2 00 00 B8 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 03 02 [19:13:58]Write to MH i2c: E2 08 00 A9 21 80 0D 03 02 00 00 00 00 45 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 A9 21 00 9B 68 F7 FA FE D7 52 AA 90 00 0B [19:13:58]RAPDU: 9B 68 F7 FA FE D7 52 AA 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_SignData done [19:13:58]FM_MakeSignedData done [19:13:58]CreateOFDProtocolMessage [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 11 00 00 [19:13:58]Write to MH i2c: E2 08 00 AA 21 80 11 00 00 00 00 00 00 45 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 AA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [19:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:13:58]wFMCommunicate OK [19:13:58]CreateOFDProtocolMessage done [19:13:58]OFDSenderStorePacket 31019 [19:13:58]StoreOFDPacket docnum=31019 [19:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 F9 07 01 CB 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 77 F9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 79 00 00 35 04 06 00 97 1A B7 D9 EF D2 9B 68 F7 FA FE D7 52 AA [19:13:58]CheckFolder [19:13:58]dirname=/storage/ofd_packets [19:13:58]CheckFolder done [19:13:58]ProducePacketName [19:13:58]name=ofd_packets/00031019 [19:13:58]NVStorageSaveData ofd_packets/00031019 [19:13:58]File name is /storage/ofd_packets/00031019 [19:13:58]Write 301 bytes [19:13:58]NVStorageSaveData done [19:13:58]OFDSenderStorePacket done [19:13:58]KKMCreateOFDPacket done [19:13:58]NVStorageSaveData kkm_last_timestamp [19:13:58]File name is /storage/kkm_last_timestamp [19:13:58]Write 4 bytes [19:13:58]NVStorageSaveData done [19:13:58]ExternCall_PrintAddStr [19:13:58]wPrintStart [19:13:58]Write to MH i2c: 01 00 00 AB 21 CC [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 FF 0F E1 [19:13:58]RasterBufferAndPrint [19:13:58]line Счет N : (1)343455 [19:13:58]line ИНН: 02508201610067 [19:13:58]line Контрольно-Кассовый Чек [19:13:58]line ПРОДАЖА [19:13:58]line ТРК (МРК, ГНК) : 32 [19:13:58]line Товар: 2710124500 [19:13:58]line Аи-95-К-3 [19:13:58]line 20.000 * 0.00 [19:13:58]line = 0.00 [19:13:58]line НДС 12% НСП 1% [19:13:58]line > о реализуемом товаре [19:13:58]line ИТОГО: 0.00 [19:13:58]line НСП 1% : 0.00 [19:13:58]line НДС 12% : 0.00 [19:13:58]line Наличными: 0.00 [19:13:58]line Безнал.: 0.00 [19:13:58]line Место: АЗС № 78 "Партнер Нефть" [19:13:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:13:58]line СНО: Общий режим [19:13:58]line Чек 252 22.10.2024 19:13 [19:13:58]line Смена: 116 ФФД: 1.0 [19:13:58]line ЗНМ: 0300000137 [19:13:58]line РНМ: 0000000000186857 [19:13:58]line Версия ККМ: v1.0 [19:13:58]line Талоны: Топливные Талоны [19:13:58]line 1677426 [19:13:58]line ФМ: 0000000002094219 [19:13:58]line ФД: 31019 [19:13:59]line ФПД: 166141009457106 [19:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31019&fm=166141009457106&tin=02508201610067®Number=0000000000186857&sum=0 [19:13:59]OFD Sender: Processing packet 31019 [packets to send 11, broken 10] [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00031019 [19:13:59]OFD Sender: To server: pG, [19:13:59]CommunicateWithHost lk.salyk.kg:30040 [19:13:59]ConnectInit lk.salyk.kg [19:13:59]written 0, free lines is 4095 [19:13:59]Connected sock=10 [19:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 F9 07 01 CB 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 77 F9 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 79 00 00 35 04 06 00 97 1A B7 D9 EF D2 9B 68 F7 FA FE D7 52 AA [19:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 CA 47 00 AF F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 79 00 00 F4 03 04 00 F3 A3 17 67 B6 04 01 00 00 DE B2 A9 6D 3E A9 1A 98 [19:13:59]CommunicateWithHost err = 0 [19:13:59]CheckOFDResponse [19:13:59]1017 (14) - 77093643461234 [19:13:59]1041 (16) - 0000000002094219 [19:13:59]1040 (4) - 31019 [19:13:59]1012 (4) - 22.10.2024 13:09 [19:13:59]1206 (1) - 0 [19:13:59]OFD Sender: Remove packet 31019 [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00031019 [19:13:59]NVStorageDeleteData [19:13:59]Write to MH i2c: 01 00 00 D5 21 F6 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 D5 21 00 00 00 00 00 F4 0C FD [19:13:59]RasterBufferAndPrint [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]written 0, free lines is 3321 [19:13:59]MH_Cut [19:13:59]Write to MH i2c: D1 01 00 DC 21 01 CF [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 DC 21 00 CE [19:13:59]Write to MH i2c: 01 00 00 DD 21 FE [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:14:00]OFD Sender: No OFD packet to send [19:14:00]*** Cut start [19:14:00]*** Partial cut [19:14:00]*** CUTSNS_PIN = 1 [19:14:00]*** CUTSNS_PIN = 0 [19:14:00]*** Brake cut motor [19:14:00]Read from MH i2c: 01 [19:14:00]MH_I2C_Read... [19:14:00]*** Stop cut motor [19:14:00]*** Cut end [19:14:00]Read from MH i2c: 01 07 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: 01 07 00 DD 21 00 00 00 00 00 FF 0F 13 [19:14:00]process_action close_receipt done [19:14:00]requested_data is exist [19:14:00]produce_requested_data [19:14:00]requested_item fm.sn is exist - process it [19:14:00]wFMCommunicate request_size=4 [19:14:00]MH_SAM_APDU [19:14:00]CAPDU: 80 11 00 00 [19:14:00]Write to MH i2c: E2 08 00 DE 21 80 11 00 00 00 00 00 00 79 [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:00]Read from MH i2c: E2 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 17 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 17 00 DE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [19:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:14:00]wFMCommunicate OK [19:14:00]requested_item fd.num is exist - process it [19:14:00]SAM_PROTO_GetFieldsCounters [19:14:00]wFMCommunicate request_size=4 [19:14:00]MH_SAM_APDU [19:14:00]CAPDU: 80 13 00 00 [19:14:00]Write to MH i2c: E2 08 00 DF 21 80 13 00 00 00 00 00 00 7C [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 62 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 62 00 DF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetFieldsCounters done [19:14:01]requested_item shift.num is exist - process it [19:14:01]requested_item shift.opened is exist - process it [19:14:01]req_shift_opened [19:14:01]FM_GetShiftState [19:14:01]SAM_PROTO_GetShiftState [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 01 00 [19:14:01]Write to MH i2c: E2 08 00 E0 21 80 13 01 00 00 00 00 00 7E [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 E0 21 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 58 [19:14:01]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetShiftState done [19:14:01]FM_GetShiftState done [19:14:01]req_shift_opened done [19:14:01]requested_item shift.open_date is exist - process it [19:14:01]req_shift_open_date [19:14:01]req_shift_open_date done [19:14:01]produce_requested_data done [19:14:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31019,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:14:01]process_action_free close_receipt [19:14:01]json_value_free [19:14:01]json_value_free done [19:14:01]process_json_proto returns [19:14:01]Send response to host [19:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31019,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:14:01]free response buf [19:14:01]execute_script done [19:14:01]execute_script returns [19:14:01]free content buf [19:14:01]Sock 7.Close socket [19:14:01]Sock 7.Thread stoped [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:32]accept exits with 9 [19:15:32]New connection [19:15:32]New thread 3067043172 created [19:15:32]Thread 3066899812 joined [19:15:32]Waiting for new connection... [19:15:32] Sock 9.Parse request [19:15:32]Sock 9.Check first char [19:15:32]Sock 9.First char is OK [19:15:32]request: POST /json_proto HTTP/1.0 [19:15:32]Method: POST [19:15:32]URL: /json_proto [19:15:32]Method is POST - this is cgi request [19:15:32]url: /json_proto [19:15:32]query_string will be loaded in cgi processing [19:15:32]execute_cgi json_proto POST (null) [19:15:32]execute_cgi path=json_proto method=POST [19:15:32]POST find Content-Length [19:15:32]Host: 172.17.51.3:8080 [19:15:32]Content-Length: 1219 [19:15:32]Content-Type: application/json [19:15:32] [19:15:32]POST finish read [19:15:32]Found Content-Length = 1219 [19:15: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 78\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 00000000012345\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)343456\u000A22.10.2024 18:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 2.960 x 74.20\u000A\u0418\u0422\u041E\u0413: 219.63\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]execute_script... [19:15: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 78\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 00000000012345\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)343456\u000A22.10.2024 18:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 2.960 x 74.20\u000A\u0418\u0422\u041E\u0413: 219.63\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]POST & json_proto [19:15:32]process_json_proto [19:15:32]json parsed OK: [19:15:32]protocol is kg_v1.0 [19:15:32]action value=print_text [19:15:32]process_action print_text [19:15:32]cmd_print_text [19:15:32]ExternCall_PrintAddStr [19:15:32]wPrintStart [19:15:32]Write to MH i2c: 01 00 00 E1 21 02 [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 07 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 FF 0F 17 [19:15:32]RasterBufferAndPrint [19:15:32]line *****ТОВАРНЫЙ ЧЕК***** [19:15:32]line АЗС 78 [19:15:32]line Партнер нефть [19:15:32]line 00000000012345 [19:15:32]line Кассир : Таалайбек кызы А. [19:15:32]line Счет N : (1)343456 [19:15:32]line 22.10.2024 18:40 [19:15:32]line ПРОДАЖА [19:15:32]line ТРК (МРК, ГНК): 62 [19:15:32]line Вид ГСМ : 2710124500 [19:15:32]line Аи-95-К-3 [19:15:32]line 2.960 x 74.20 [19:15:32]line ИТОГ: 219.63 [19:15:32]line Тип оплаты: Технологический отпуск: [19:15:32]line ______________________ [19:15:32]line (подпись) [19:15:32]written 0, free lines is 4095 [19:15:32]Write to MH i2c: 01 00 00 F5 21 16 [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 07 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: 01 07 00 F5 21 00 00 00 00 00 10 0E 3B [19:15:32]RasterBufferAndPrint [19:15:32]line [19:15:32]line [19:15:32]line [19:15:32]line [19:15:32]line [19:15:32]written 0, free lines is 3601 [19:15:32]MH_Cut [19:15:32]Write to MH i2c: D1 01 00 FC 21 01 EF [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: D1 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: D1 01 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: D1 01 00 FC 21 00 EE [19:15:32]Write to MH i2c: 01 00 00 FD 21 1E [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:33]*** Cut start [19:15:33]*** Partial cut [19:15:33]*** CUTSNS_PIN = 1 [19:15:33]*** CUTSNS_PIN = 0 [19:15:33]*** Brake cut motor [19:15:33]Read from MH i2c: 01 [19:15:33]MH_I2C_Read... [19:15:33]*** Stop cut motor [19:15:33]*** Cut end [19:15:33]Read from MH i2c: 01 07 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: 01 07 00 FD 21 00 00 00 00 00 FF 0F 33 [19:15:33]process_action print_text done [19:15:33]requested_data is exist [19:15:33]produce_requested_data [19:15:33]requested_item fm.sn is exist - process it [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 11 00 00 [19:15:33]Write to MH i2c: E2 08 00 FE 21 80 11 00 00 00 00 00 00 99 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 17 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 17 00 FE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [19:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:15:33]wFMCommunicate OK [19:15:33]requested_item fd.num is exist - process it [19:15:33]SAM_PROTO_GetFieldsCounters [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 13 00 00 [19:15:33]Write to MH i2c: E2 08 00 FF 21 80 13 00 00 00 00 00 00 9C [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 62 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 62 00 FF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [19:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:33]wFMCommunicate OK [19:15:33]SAM_PROTO_GetFieldsCounters done [19:15:33]requested_item shift.num is exist - process it [19:15:33]requested_item shift.opened is exist - process it [19:15:33]req_shift_opened [19:15:33]FM_GetShiftState [19:15:33]SAM_PROTO_GetShiftState [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 13 01 00 [19:15:33]Write to MH i2c: E2 08 00 00 22 80 13 01 00 00 00 00 00 9F [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 0E 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 0E 00 00 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 79 [19:15:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:15:33]wFMCommunicate OK [19:15:33]SAM_PROTO_GetShiftState done [19:15:33]FM_GetShiftState done [19:15:33]req_shift_opened done [19:15:33]requested_item shift.open_date is exist - process it [19:15:33]req_shift_open_date [19:15:33]req_shift_open_date done [19:15:33]produce_requested_data done [19:15:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31019,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:15:33]process_action_free print_text [19:15:33]json_value_free [19:15:33]json_value_free done [19:15:33]process_json_proto returns [19:15:33]Send response to host [19:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31019,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:15:33]free response buf [19:15:33]execute_script done [19:15:33]execute_script returns [19:15:33]free content buf [19:15:33]Sock 9.Close socket [19:15:33]Sock 9.Thread stoped [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:25]accept exits with 7 [19:19:25]New connection [19:19:25]New thread 3066899812 created [19:19:25]Thread 3067043172 joined [19:19:25]Waiting for new connection... [19:19:25] Sock 7.Parse request [19:19:25]Sock 7.Check first char [19:19:25]Sock 7.First char is OK [19:19:25]request: POST /json_proto HTTP/1.0 [19:19:25]Method: POST [19:19:25]URL: /json_proto [19:19:25]Method is POST - this is cgi request [19:19:25]url: /json_proto [19:19:25]query_string will be loaded in cgi processing [19:19:25]execute_cgi json_proto POST (null) [19:19:25]execute_cgi path=json_proto method=POST [19:19:25]POST find Content-Length [19:19:25]Host: 172.17.51.3:8080 [19:19:25]Content-Length: 688 [19:19:25]Content-Type: application/json [19:19:25] [19:19:25]POST finish read [19:19:25]Found Content-Length = 688 [19:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:25]execute_script... [19:19: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)343458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:25]POST & json_proto [19:19:25]process_json_proto [19:19:25]json parsed OK: [19:19:25]protocol is kg_v1.0 [19:19:25]action value=close_receipt [19:19:25]process_action close_receipt [19:19:25]cmd_close_receipt [19:19:25]MH_GetDate [19:19:25]Write to MH i2c: F0 00 00 01 22 12 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: F0 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: F0 09 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: F0 09 00 01 22 00 BF FA 17 67 04 C1 95 66 12 [19:19:25]GetLastDocTimeStamp 1729624439 [19:19:25]current date 1729624767 [19:19:25]FM_GetShiftState [19:19:25]SAM_PROTO_GetShiftState [19:19:25]wFMCommunicate request_size=4 [19:19:25]MH_SAM_APDU [19:19:25]CAPDU: 80 13 01 00 [19:19:25]Write to MH i2c: E2 08 00 02 22 80 13 01 00 00 00 00 00 A1 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:25]Read from MH i2c: E2 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 0E 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 0E 00 02 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7B [19:19:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:19:25]wFMCommunicate OK [19:19:25]SAM_PROTO_GetShiftState done [19:19:25]FM_GetShiftState done [19:19:25]opened in 1729557342 [19:19:25]opened+sec_in_day 1729643742 [19:19:25]quantity*price = 300076 [19:19:25]sum+1 = 300077 [19:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 253 22.10.2024 19:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31020 ФПД: 57818570618338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191927&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31020&fm=57818570618338&tin=02508201610067®Number=0000000000186857&sum=300000 [19:19:26]StoreToDocumentArchive [19:19:26]shift 116 fd 31020 [19:19:26]save to /storage/0116/doc_00031020 [19:19:26]save last doc name /storage/0116/doc_00031020 to /storage/kkm_last_doc_name [19:19:26]save OK [19:19:26]Clear old archive folders... [19:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:19:26]tlvbuf is 00D33BC0 [19:19:26]SAM_PROTO_ClearQueue [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 09 00 00 [19:19:26]Write to MH i2c: E2 08 00 0F 22 80 09 00 00 00 00 00 00 A3 [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [19:19:26]RAPDU: 90 00 [19:19:26]wFMCommunicate OK [19:19:26]SAM_PROTO_ClearQueue done [19:19:26]KKMCreateOFDPacket [19:19:26]OFDProtocolAddRootSTLVToBuf [19:19:26]FM_MakeSignedData [19:19:26]FM_MakeSignedData [19:19:26]SAM_PROTO_SignData [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 0D 01 02 [19:19:26]Write to MH i2c: E2 08 00 10 22 80 0D 01 02 00 00 00 00 AB [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [19:19:26]RAPDU: 90 00 [19:19:26]wFMCommunicate OK [19:19:26]wFMCommunicate request_size=255 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 BF FA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 79 00 [19:19:26]Write to MH i2c: E2 02 01 11 22 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 BF FA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 79 00 00 00 34 [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [19:19:26]RAPDU: 90 00 [19:19:26]wFMCommunicate OK [19:19:26]wFMCommunicate request_size=16 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 34 95 EF 5C F5 E2 [19:19:26]Write to MH i2c: E2 13 00 12 22 80 0D 02 02 0B 00 00 35 04 06 00 34 95 EF 5C F5 E2 00 00 EE [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [19:19:26]RAPDU: 90 00 [19:19:26]wFMCommunicate OK [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 0D 03 02 [19:19:26]Write to MH i2c: E2 08 00 13 22 80 0D 03 02 00 00 00 00 B0 [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:27]Read from MH i2c: E2 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: E2 0B 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: E2 0B 00 13 22 00 C3 9E 8C 05 0F 6A 21 75 90 00 B2 [19:19:27]RAPDU: C3 9E 8C 05 0F 6A 21 75 90 00 [19:19:27]wFMCommunicate OK [19:19:27]SAM_PROTO_SignData done [19:19:27]FM_MakeSignedData done [19:19:27]CreateOFDProtocolMessage [19:19:27]wFMCommunicate request_size=4 [19:19:27]MH_SAM_APDU [19:19:27]CAPDU: 80 11 00 00 [19:19:27]Write to MH i2c: E2 08 00 14 22 80 11 00 00 00 00 00 00 B0 [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:27]Read from MH i2c: E2 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: E2 17 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: E2 17 00 14 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [19:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:19:27]wFMCommunicate OK [19:19:27]CreateOFDProtocolMessage done [19:19:27]OFDSenderStorePacket 31020 [19:19:27]StoreOFDPacket docnum=31020 [19:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 50 C4 0D 01 A6 E7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 BF FA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 79 00 00 35 04 06 00 34 95 EF 5C F5 E2 C3 9E 8C 05 0F 6A 21 75 [19:19:27]CheckFolder [19:19:27]dirname=/storage/ofd_packets [19:19:27]CheckFolder done [19:19:27]ProducePacketName [19:19:27]name=ofd_packets/00031020 [19:19:27]NVStorageSaveData ofd_packets/00031020 [19:19:27]File name is /storage/ofd_packets/00031020 [19:19:27]Write 307 bytes [19:19:27]NVStorageSaveData done [19:19:27]OFDSenderStorePacket done [19:19:27]KKMCreateOFDPacket done [19:19:27]NVStorageSaveData kkm_last_timestamp [19:19:27]File name is /storage/kkm_last_timestamp [19:19:27]Write 4 bytes [19:19:27]NVStorageSaveData done [19:19:27]ExternCall_PrintAddStr [19:19:27]wPrintStart [19:19:27]Write to MH i2c: 01 00 00 15 22 37 [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 07 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 07 00 15 22 00 00 00 00 00 FF 0F 4C [19:19:27]RasterBufferAndPrint [19:19:27]line Счет N : (1)343458 [19:19:27]line ИНН: 02508201610067 [19:19:27]line Контрольно-Кассовый Чек [19:19:27]line ПРОДАЖА [19:19:27]line ТРК (МРК, ГНК) : 51 [19:19:27]line Товар: 2710194210 [19:19:27]line D-ENERGY Дт-К-2 [19:19:27]line 38.870 * 77.20 [19:19:27]line = 3000.76 [19:19:27]line НДС 12% НСП 1% [19:19:27]line > о реализуемом товаре [19:19:27]line ОКРУГЛЕНИЕ: -0.76 [19:19:27]line ИТОГО: 3000.00 [19:19:27]line Внесено: 3000.00 [19:19:27]line СДАЧА: 0.00 [19:19:27]line НСП 1% : 26.55 [19:19:27]line НДС 12% : 318.66 [19:19:27]line Наличными: 3000.00 [19:19:27]line Безнал.: 0.00 [19:19:27]line Место: АЗС № 78 "Партнер Нефть" [19:19:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:19:27]line СНО: Общий режим [19:19:27]line Чек 253 22.10.2024 19:19 [19:19:27]line Смена: 116 ФФД: 1.0 [19:19:27]line ЗНМ: 0300000137 [19:19:27]line РНМ: 0000000000186857 [19:19:27]line Версия ККМ: v1.0 [19:19:27]line ФМ: 0000000002094219 [19:19:27]line ФД: 31020 [19:19:27]line ФПД: 57818570618338 [19:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191927&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31020&fm=57818570618338&tin=02508201610067®Number=0000000000186857&sum=300000 [19:19:27]OFD Sender: Processing packet 31020 [packets to send 11, broken 10] [19:19:27]ProducePacketName [19:19:27]name=ofd_packets/00031020 [19:19:27]OFD Sender: To server: pG, [19:19:27]CommunicateWithHost lk.salyk.kg:30040 [19:19:27]ConnectInit lk.salyk.kg [19:19:27]written 0, free lines is 4095 [19:19:27]Connected sock=10 [19:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 50 C4 0D 01 A6 E7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 BF FA 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 79 00 00 35 04 06 00 34 95 EF 5C F5 E2 C3 9E 8C 05 0F 6A 21 75 [19:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3D 4A 47 00 18 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 32 30 39 34 32 31 39 10 04 04 00 2C 79 00 00 F4 03 04 00 3C A5 17 67 B6 04 01 00 00 B8 0C 2C 23 D7 DA 56 2A [19:19:27]CommunicateWithHost err = 0 [19:19:27]CheckOFDResponse [19:19:27]1017 (14) - 77093643461234 [19:19:27]1041 (16) - 0000000002094219 [19:19:27]1040 (4) - 31020 [19:19:27]1012 (4) - 22.10.2024 13:14 [19:19:27]1206 (1) - 0 [19:19:27]OFD Sender: Remove packet 31020 [19:19:27]ProducePacketName [19:19:27]name=ofd_packets/00031020 [19:19:27]NVStorageDeleteData [19:19:27]Write to MH i2c: 01 00 00 40 22 62 [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 07 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: 01 07 00 40 22 00 00 00 00 00 FF 0C 74 [19:19:27]RasterBufferAndPrint [19:19:27]line [19:19:27]line [19:19:27]line [19:19:27]line [19:19:27]line [19:19:27]written 0, free lines is 3332 [19:19:27]MH_Cut [19:19:27]Write to MH i2c: D1 01 00 47 22 01 3B [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: D1 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: D1 01 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: D1 01 00 47 22 00 3A [19:19:27]Write to MH i2c: 01 00 00 48 22 6A [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:28]OFD Sender: No OFD packet to send [19:19:28]*** Cut start [19:19:28]*** Partial cut [19:19:28]*** CUTSNS_PIN = 1 [19:19:28]*** CUTSNS_PIN = 0 [19:19:28]*** Brake cut motor [19:19:29]Read from MH i2c: 01 [19:19:29]MH_I2C_Read... [19:19:29]*** Stop cut motor [19:19:29]*** Cut end [19:19:29]Read from MH i2c: 01 07 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [19:19:29]process_action close_receipt done [19:19:29]requested_data is exist [19:19:29]produce_requested_data [19:19:29]requested_item fm.sn is exist - process it [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 11 00 00 [19:19:29]Write to MH i2c: E2 08 00 49 22 80 11 00 00 00 00 00 00 E5 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 17 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 17 00 49 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [19:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:19:29]wFMCommunicate OK [19:19:29]requested_item fd.num is exist - process it [19:19:29]SAM_PROTO_GetFieldsCounters [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 13 00 00 [19:19:29]Write to MH i2c: E2 08 00 4A 22 80 13 00 00 00 00 00 00 E8 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 62 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 62 00 4A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:29]wFMCommunicate OK [19:19:29]SAM_PROTO_GetFieldsCounters done [19:19:29]requested_item shift.num is exist - process it [19:19:29]requested_item shift.opened is exist - process it [19:19:29]req_shift_opened [19:19:29]FM_GetShiftState [19:19:29]SAM_PROTO_GetShiftState [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 13 01 00 [19:19:29]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 0E 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C4 [19:19:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:19:29]wFMCommunicate OK [19:19:29]SAM_PROTO_GetShiftState done [19:19:29]FM_GetShiftState done [19:19:29]req_shift_opened done [19:19:29]requested_item shift.open_date is exist - process it [19:19:29]req_shift_open_date [19:19:29]req_shift_open_date done [19:19:29]produce_requested_data done [19:19:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31020,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:19:29]process_action_free close_receipt [19:19:29]json_value_free [19:19:29]json_value_free done [19:19:29]process_json_proto returns [19:19:29]Send response to host [19:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31020,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:19:29]free response buf [19:19:29]execute_script done [19:19:29]execute_script returns [19:19:29]free content buf [19:19:29]Sock 7.Close socket [19:19:29]Sock 7.Thread stoped [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:21:59]accept exits with 9 [19:21:59]New connection [19:21:59]New thread 3067043172 created [19:21:59]Thread 3066899812 joined [19:21:59]Waiting for new connection... [19:21:59] Sock 9.Parse request [19:21:59]Sock 9.Check first char [19:21:59]Sock 9.First char is OK [19:21:59]request: POST /json_proto HTTP/1.0 [19:21:59]Method: POST [19:21:59]URL: /json_proto [19:21:59]Method is POST - this is cgi request [19:21:59]url: /json_proto [19:21:59]query_string will be loaded in cgi processing [19:21:59]execute_cgi json_proto POST (null) [19:21:59]execute_cgi path=json_proto method=POST [19:21:59]POST find Content-Length [19:21:59]Host: 172.17.51.3:8080 [19:21:59]Content-Length: 674 [19:21:59]Content-Type: application/json [19:21:59] [19:21:59]POST finish read [19:21:59]Found Content-Length = 674 [19:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [19:21:59]execute_script... [19:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [19:21:59]POST & json_proto [19:21:59]process_json_proto [19:21:59]json parsed OK: [19:21:59]protocol is kg_v1.0 [19:21:59]action value=close_receipt [19:21:59]process_action close_receipt [19:21:59]cmd_close_receipt [19:21:59]MH_GetDate [19:21:59]Write to MH i2c: F0 00 00 4C 22 5D [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: F0 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: F0 09 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: F0 09 00 4C 22 00 59 FB 17 67 04 C1 95 66 F8 [19:21:59]GetLastDocTimeStamp 1729624767 [19:21:59]current date 1729624921 [19:21:59]FM_GetShiftState [19:21:59]SAM_PROTO_GetShiftState [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 13 01 00 [19:21:59]Write to MH i2c: E2 08 00 4D 22 80 13 01 00 00 00 00 00 EC [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 0E 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 0E 00 4D 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 C6 [19:21:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:21:59]wFMCommunicate OK [19:21:59]SAM_PROTO_GetShiftState done [19:21:59]FM_GetShiftState done [19:21:59]opened in 1729557342 [19:21:59]opened+sec_in_day 1729643742 [19:21:59]quantity*price = 40005 [19:21:59]sum+1 = 40006 [19:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 254 22.10.2024 19:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31021 ФПД: 79791511824796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31021&fm=79791511824796&tin=02508201610067®Number=0000000000186857&sum=40000 [19:22:00]StoreToDocumentArchive [19:22:00]shift 116 fd 31021 [19:22:00]save to /storage/0116/doc_00031021 [19:22:00]save last doc name /storage/0116/doc_00031021 to /storage/kkm_last_doc_name [19:22:00]save OK [19:22:00]Clear old archive folders... [19:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:00]tlvbuf is B6F6E9E0 [19:22:00]SAM_PROTO_ClearQueue [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 09 00 00 [19:22:00]Write to MH i2c: E2 08 00 5A 22 80 09 00 00 00 00 00 00 EE [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]SAM_PROTO_ClearQueue done [19:22:00]KKMCreateOFDPacket [19:22:00]OFDProtocolAddRootSTLVToBuf [19:22:00]FM_MakeSignedData [19:22:00]FM_MakeSignedData [19:22:00]SAM_PROTO_SignData [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 0D 01 02 [19:22:00]Write to MH i2c: E2 08 00 5B 22 80 0D 01 02 00 00 00 00 F6 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]wFMCommunicate request_size=255 [19:22:00]MH_SAM_APDU [19:22:00]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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 59 FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 79 00 00 35 04 06 00 48 91 E8 B7 [19:22:00]Write to MH i2c: E2 02 01 5C 22 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 59 FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 79 00 00 35 04 06 00 48 91 E8 B7 00 00 D2 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 5C 22 00 90 00 F2 [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]wFMCommunicate request_size=7 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 0D 02 02 02 E9 9C [19:22:00]Write to MH i2c: E2 0A 00 5D 22 80 0D 02 02 02 00 E9 9C 00 00 82 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 0D 03 02 [19:22:00]Write to MH i2c: E2 08 00 5E 22 80 0D 03 02 00 00 00 00 FB [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0B 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0B 00 5E 22 00 86 70 E6 8E EB 9B F4 B5 90 00 95 [19:22:00]RAPDU: 86 70 E6 8E EB 9B F4 B5 90 00 [19:22:00]wFMCommunicate OK [19:22:00]SAM_PROTO_SignData done [19:22:00]FM_MakeSignedData done [19:22:00]CreateOFDProtocolMessage [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 11 00 00 [19:22:00]Write to MH i2c: E2 08 00 5F 22 80 11 00 00 00 00 00 00 FB [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 17 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 17 00 5F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [19:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:22:00]wFMCommunicate OK [19:22:00]CreateOFDProtocolMessage done [19:22:00]OFDSenderStorePacket 31021 [19:22:00]StoreOFDPacket docnum=31021 [19:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 74 18 04 01 6F 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 59 FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 79 00 00 35 04 06 00 48 91 E8 B7 E9 9C 86 70 E6 8E EB 9B F4 B5 [19:22:00]CheckFolder [19:22:00]dirname=/storage/ofd_packets [19:22:00]CheckFolder done [19:22:00]ProducePacketName [19:22:00]name=ofd_packets/00031021 [19:22:00]NVStorageSaveData ofd_packets/00031021 [19:22:00]File name is /storage/ofd_packets/00031021 [19:22:00]Write 298 bytes [19:22:00]NVStorageSaveData done [19:22:00]OFDSenderStorePacket done [19:22:00]KKMCreateOFDPacket done [19:22:00]NVStorageSaveData kkm_last_timestamp [19:22:00]File name is /storage/kkm_last_timestamp [19:22:00]Write 4 bytes [19:22:00]NVStorageSaveData done [19:22:00]ExternCall_PrintAddStr [19:22:00]wPrintStart [19:22:00]Write to MH i2c: 01 00 00 60 22 82 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 07 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 07 00 60 22 00 00 00 00 00 FF 0F 97 [19:22:00]RasterBufferAndPrint [19:22:00]line Счет N : (1)343459 [19:22:00]line ИНН: 02508201610067 [19:22:00]line Контрольно-Кассовый Чек [19:22:00]line ПРОДАЖА [19:22:00]line ТРК (МРК, ГНК) : 64 [19:22:00]line Товар: 2710194210 [19:22:00]line ДТ-К-2 [19:22:00]line 5.250 * 76.20 [19:22:00]line = 400.05 [19:22:00]line НДС 12% НСП 1% [19:22:00]line > о реализуемом товаре [19:22:00]line ОКРУГЛЕНИЕ: -0.05 [19:22:00]line ИТОГО: 400.00 [19:22:00]line Внесено: 400.00 [19:22:00]line СДАЧА: 0.00 [19:22:00]line НСП 1% : 3.54 [19:22:00]line НДС 12% : 42.48 [19:22:00]line Наличными: 400.00 [19:22:00]line Безнал.: 0.00 [19:22:00]line Место: АЗС № 78 "Партнер Нефть" [19:22:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:22:00]line СНО: Общий режим [19:22:00]line Чек 254 22.10.2024 19:22 [19:22:00]line Смена: 116 ФФД: 1.0 [19:22:00]line ЗНМ: 0300000137 [19:22:00]line РНМ: 0000000000186857 [19:22:00]line Версия ККМ: v1.0 [19:22:00]line ФМ: 0000000002094219 [19:22:00]line ФД: 31021 [19:22:00]line ФПД: 79791511824796 [19:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31021&fm=79791511824796&tin=02508201610067®Number=0000000000186857&sum=40000 [19:22:01]OFD Sender: Processing packet 31021 [packets to send 11, broken 10] [19:22:01]ProducePacketName [19:22:01]name=ofd_packets/00031021 [19:22:01]OFD Sender: To server: pG, [19:22:01]CommunicateWithHost lk.salyk.kg:30040 [19:22:01]ConnectInit lk.salyk.kg [19:22:01]written 0, free lines is 4095 [19:22:01]Connected sock=10 [19:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 74 18 04 01 6F 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 59 FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 79 00 00 35 04 06 00 48 91 E8 B7 E9 9C 86 70 E6 8E EB 9B F4 B5 [19:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AD B3 47 00 5B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 79 00 00 F4 03 04 00 D6 A5 17 67 B6 04 01 00 00 C3 59 CD 6C 5A 09 35 1D [19:22:01]CommunicateWithHost err = 0 [19:22:01]CheckOFDResponse [19:22:01]1017 (14) - 77093643461234 [19:22:01]1041 (16) - 0000000002094219 [19:22:01]1040 (4) - 31021 [19:22:01]1012 (4) - 22.10.2024 13:17 [19:22:01]1206 (1) - 0 [19:22:01]OFD Sender: Remove packet 31021 [19:22:01]ProducePacketName [19:22:01]name=ofd_packets/00031021 [19:22:01]NVStorageDeleteData [19:22:01]Write to MH i2c: 01 00 00 8B 22 AD [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 07 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 07 00 8B 22 00 00 00 00 00 F9 0C B9 [19:22:01]RasterBufferAndPrint [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]written 0, free lines is 3331 [19:22:01]MH_Cut [19:22:01]Write to MH i2c: D1 01 00 92 22 01 86 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 01 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 01 00 92 22 00 85 [19:22:01]Write to MH i2c: 01 00 00 93 22 B5 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:02]OFD Sender: No OFD packet to send [19:22:02]*** Cut start [19:22:02]*** Partial cut [19:22:02]*** CUTSNS_PIN = 1 [19:22:02]*** CUTSNS_PIN = 0 [19:22:02]*** Brake cut motor [19:22:03]Read from MH i2c: 01 [19:22:03]MH_I2C_Read... [19:22:03]*** Stop cut motor [19:22:03]*** Cut end [19:22:03]Read from MH i2c: 01 07 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [19:22:03]process_action close_receipt done [19:22:03]requested_data is exist [19:22:03]produce_requested_data [19:22:03]requested_item fm.sn is exist - process it [19:22:03]wFMCommunicate request_size=4 [19:22:03]MH_SAM_APDU [19:22:03]CAPDU: 80 11 00 00 [19:22:03]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:03]Read from MH i2c: E2 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 17 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 17 00 94 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [19:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:22:03]wFMCommunicate OK [19:22:03]requested_item fd.num is exist - process it [19:22:03]SAM_PROTO_GetFieldsCounters [19:22:03]wFMCommunicate request_size=4 [19:22:03]MH_SAM_APDU [19:22:03]CAPDU: 80 13 00 00 [19:22:03]Write to MH i2c: E2 08 00 95 22 80 13 00 00 00 00 00 00 33 [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:03]Read from MH i2c: E2 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 62 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 62 00 95 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [19:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:03]wFMCommunicate OK [19:22:03]SAM_PROTO_GetFieldsCounters done [19:22:03]requested_item shift.num is exist - process it [19:22:03]requested_item shift.opened is exist - process it [19:22:03]req_shift_opened [19:22:03]FM_GetShiftState [19:22:03]SAM_PROTO_GetShiftState [19:22:03]wFMCommunicate request_size=4 [19:22:03]MH_SAM_APDU [19:22:03]CAPDU: 80 13 01 00 [19:22:03]Write to MH i2c: E2 08 00 96 22 80 13 01 00 00 00 00 00 35 [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:03]Read from MH i2c: E2 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 0E 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: E2 0E 00 96 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 0F [19:22:03]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:22:03]wFMCommunicate OK [19:22:03]SAM_PROTO_GetShiftState done [19:22:03]FM_GetShiftState done [19:22:03]req_shift_opened done [19:22:03]requested_item shift.open_date is exist - process it [19:22:03]req_shift_open_date [19:22:03]req_shift_open_date done [19:22:03]produce_requested_data done [19:22:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31021,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:22:03]process_action_free close_receipt [19:22:03]json_value_free [19:22:03]json_value_free done [19:22:03]process_json_proto returns [19:22:03]Send response to host [19:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31021,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:22:03]free response buf [19:22:03]execute_script done [19:22:03]execute_script returns [19:22:03]free content buf [19:22:03]Sock 9.Close socket [19:22:03]Sock 9.Thread stoped [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:55]accept exits with 7 [19:23:55]New connection [19:23:55]New thread 3066899812 created [19:23:55]Thread 3067043172 joined [19:23:55]Waiting for new connection... [19:23:55] Sock 7.Parse request [19:23:55]Sock 7.Check first char [19:23:55]Sock 7.First char is OK [19:23:55]request: POST /json_proto HTTP/1.0 [19:23:55]Method: POST [19:23:55]URL: /json_proto [19:23:55]Method is POST - this is cgi request [19:23:55]url: /json_proto [19:23:55]query_string will be loaded in cgi processing [19:23:55]execute_cgi json_proto POST (null) [19:23:55]execute_cgi path=json_proto method=POST [19:23:55]POST find Content-Length [19:23:55]Host: 172.17.51.3:8080 [19:23:55]Content-Length: 677 [19:23:55]Content-Type: application/json [19:23:55] [19:23:55]POST finish read [19:23:55]Found Content-Length = 677 [19:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:55]execute_script... [19:23:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:55]POST & json_proto [19:23:55]process_json_proto [19:23:55]json parsed OK: [19:23:55]protocol is kg_v1.0 [19:23:55]action value=close_receipt [19:23:55]process_action close_receipt [19:23:55]cmd_close_receipt [19:23:55]MH_GetDate [19:23:55]Write to MH i2c: F0 00 00 97 22 A8 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 09 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 09 00 97 22 00 CD FB 17 67 04 C1 95 66 B7 [19:23:55]GetLastDocTimeStamp 1729624921 [19:23:55]current date 1729625037 [19:23:55]FM_GetShiftState [19:23:55]SAM_PROTO_GetShiftState [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 13 01 00 [19:23:55]Write to MH i2c: E2 08 00 98 22 80 13 01 00 00 00 00 00 37 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 98 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 11 [19:23:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:23:55]wFMCommunicate OK [19:23:55]SAM_PROTO_GetShiftState done [19:23:55]FM_GetShiftState done [19:23:55]opened in 1729557342 [19:23:55]opened+sec_in_day 1729643742 [19:23:55]quantity*price = 50041 [19:23:55]sum+1 = 50042 [19:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 255 22.10.2024 19:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31022 ФПД: 147068403984714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31022&fm=147068403984714&tin=02508201610067®Number=0000000000186857&sum=50000 [19:23:56]StoreToDocumentArchive [19:23:56]shift 116 fd 31022 [19:23:56]save to /storage/0116/doc_00031022 [19:23:56]save last doc name /storage/0116/doc_00031022 to /storage/kkm_last_doc_name [19:23:56]save OK [19:23:56]Clear old archive folders... [19:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:56]tlvbuf is 00CDB070 [19:23:56]SAM_PROTO_ClearQueue [19:23:56]wFMCommunicate request_size=4 [19:23:56]MH_SAM_APDU [19:23:56]CAPDU: 80 09 00 00 [19:23:56]Write to MH i2c: E2 08 00 A5 22 80 09 00 00 00 00 00 00 39 [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:56]Read from MH i2c: E2 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [19:23:56]RAPDU: 90 00 [19:23:56]wFMCommunicate OK [19:23:56]SAM_PROTO_ClearQueue done [19:23:56]KKMCreateOFDPacket [19:23:56]OFDProtocolAddRootSTLVToBuf [19:23:56]FM_MakeSignedData [19:23:56]FM_MakeSignedData [19:23:56]SAM_PROTO_SignData [19:23:56]wFMCommunicate request_size=4 [19:23:56]MH_SAM_APDU [19:23:56]CAPDU: 80 0D 01 02 [19:23:56]Write to MH i2c: E2 08 00 A6 22 80 0D 01 02 00 00 00 00 41 [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:56]Read from MH i2c: E2 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [19:23:56]RAPDU: 90 00 [19:23:56]wFMCommunicate OK [19:23:56]wFMCommunicate request_size=255 [19:23:56]MH_SAM_APDU [19:23: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CD FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 79 00 00 35 04 06 00 85 [19:23:56]Write to MH i2c: E2 02 01 A7 22 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CD FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 79 00 00 35 04 06 00 85 00 00 B7 [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:56]Read from MH i2c: E2 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [19:23:56]RAPDU: 90 00 [19:23:56]wFMCommunicate OK [19:23:56]wFMCommunicate request_size=10 [19:23:56]MH_SAM_APDU [19:23:56]CAPDU: 80 0D 02 02 05 C2 07 FA 29 4A [19:23:56]Write to MH i2c: E2 0D 00 A8 22 80 0D 02 02 05 00 C2 07 FA 29 4A 00 00 84 [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [19:23:57]RAPDU: 90 00 [19:23:57]wFMCommunicate OK [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 0D 03 02 [19:23:57]Write to MH i2c: E2 08 00 A9 22 80 0D 03 02 00 00 00 00 46 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0B 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0B 00 A9 22 00 0C D3 B3 B1 C9 DF 6C B9 90 00 57 [19:23:57]RAPDU: 0C D3 B3 B1 C9 DF 6C B9 90 00 [19:23:57]wFMCommunicate OK [19:23:57]SAM_PROTO_SignData done [19:23:57]FM_MakeSignedData done [19:23:57]CreateOFDProtocolMessage [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 11 00 00 [19:23:57]Write to MH i2c: E2 08 00 AA 22 80 11 00 00 00 00 00 00 46 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 AA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [19:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:23:57]wFMCommunicate OK [19:23:57]CreateOFDProtocolMessage done [19:23:57]OFDSenderStorePacket 31022 [19:23:57]StoreOFDPacket docnum=31022 [19:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 A1 07 01 0B B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CD FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 79 00 00 35 04 06 00 85 C2 07 FA 29 4A 0C D3 B3 B1 C9 DF 6C B9 [19:23:57]CheckFolder [19:23:57]dirname=/storage/ofd_packets [19:23:57]CheckFolder done [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00031022 [19:23:57]NVStorageSaveData ofd_packets/00031022 [19:23:57]File name is /storage/ofd_packets/00031022 [19:23:57]Write 301 bytes [19:23:57]NVStorageSaveData done [19:23:57]OFDSenderStorePacket done [19:23:57]KKMCreateOFDPacket done [19:23:57]NVStorageSaveData kkm_last_timestamp [19:23:57]File name is /storage/kkm_last_timestamp [19:23:57]Write 4 bytes [19:23:57]NVStorageSaveData done [19:23:57]ExternCall_PrintAddStr [19:23:57]wPrintStart [19:23:57]Write to MH i2c: 01 00 00 AB 22 CD [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 AB 22 00 00 00 00 00 FF 0F E2 [19:23:57]RasterBufferAndPrint [19:23:57]line Счет N : (1)343460 [19:23:57]line ИНН: 02508201610067 [19:23:57]line Контрольно-Кассовый Чек [19:23:57]line ПРОДАЖА [19:23:57]line ТРК (МРК, ГНК) : 53 [19:23:57]line Товар: 2710124130 [19:23:57]line Аи-92-К-2 [19:23:57]line 7.480 * 66.90 [19:23:57]line = 500.41 [19:23:57]line НДС 12% НСП 1% [19:23:57]line > о реализуемом товаре [19:23:57]line ОКРУГЛЕНИЕ: -0.41 [19:23:57]line ИТОГО: 500.00 [19:23:57]line Внесено: 500.00 [19:23:57]line СДАЧА: 0.00 [19:23:57]line НСП 1% : 4.43 [19:23:57]line НДС 12% : 53.14 [19:23:57]line Наличными: 500.00 [19:23:57]line Безнал.: 0.00 [19:23:57]line Место: АЗС № 78 "Партнер Нефть" [19:23:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:23:57]line СНО: Общий режим [19:23:57]line Чек 255 22.10.2024 19:23 [19:23:57]line Смена: 116 ФФД: 1.0 [19:23:57]line ЗНМ: 0300000137 [19:23:57]line РНМ: 0000000000186857 [19:23:57]line Версия ККМ: v1.0 [19:23:57]line ФМ: 0000000002094219 [19:23:57]line ФД: 31022 [19:23:57]line ФПД: 147068403984714 [19:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31022&fm=147068403984714&tin=02508201610067®Number=0000000000186857&sum=50000 [19:23:57]OFD Sender: Processing packet 31022 [packets to send 11, broken 10] [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00031022 [19:23:57]OFD Sender: To server: pG, [19:23:57]CommunicateWithHost lk.salyk.kg:30040 [19:23:57]ConnectInit lk.salyk.kg [19:23:57]written 0, free lines is 4095 [19:23:57]Connected sock=9 [19:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 A1 07 01 0B B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CD FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 79 00 00 35 04 06 00 85 C2 07 FA 29 4A 0C D3 B3 B1 C9 DF 6C B9 [19:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1C DA 47 00 D6 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 32 30 39 34 32 31 39 10 04 04 00 2E 79 00 00 F4 03 04 00 4A A6 17 67 B6 04 01 00 00 A1 C7 9A D7 28 60 6A 9E [19:23:57]CommunicateWithHost err = 0 [19:23:57]CheckOFDResponse [19:23:57]1017 (14) - 77093643461234 [19:23:57]1041 (16) - 0000000002094219 [19:23:57]1040 (4) - 31022 [19:23:57]1012 (4) - 22.10.2024 13:19 [19:23:57]1206 (1) - 0 [19:23:57]OFD Sender: Remove packet 31022 [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00031022 [19:23:57]NVStorageDeleteData [19:23:57]Write to MH i2c: 01 00 00 D6 22 F8 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 EF 0C FA [19:23:57]RasterBufferAndPrint [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]written 0, free lines is 3321 [19:23:57]MH_Cut [19:23:57]Write to MH i2c: D1 01 00 DD 22 01 D1 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: D1 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: D1 01 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: D1 01 00 DD 22 00 D0 [19:23:57]Write to MH i2c: 01 00 00 DE 22 00 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:58]OFD Sender: No OFD packet to send [19:23:58]*** Cut start [19:23:58]*** Partial cut [19:23:58]*** CUTSNS_PIN = 1 [19:23:58]*** CUTSNS_PIN = 0 [19:23:58]*** Brake cut motor [19:23:59]Read from MH i2c: 01 [19:23:59]MH_I2C_Read... [19:23:59]*** Stop cut motor [19:23:59]*** Cut end [19:23:59]Read from MH i2c: 01 07 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: 01 07 00 DE 22 00 00 00 00 00 FF 0F 15 [19:23:59]process_action close_receipt done [19:23:59]requested_data is exist [19:23:59]produce_requested_data [19:23:59]requested_item fm.sn is exist - process it [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 11 00 00 [19:23:59]Write to MH i2c: E2 08 00 DF 22 80 11 00 00 00 00 00 00 7B [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 DF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [19:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:23:59]wFMCommunicate OK [19:23:59]requested_item fd.num is exist - process it [19:23:59]SAM_PROTO_GetFieldsCounters [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 13 00 00 [19:23:59]Write to MH i2c: E2 08 00 E0 22 80 13 00 00 00 00 00 00 7E [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 62 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 62 00 E0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [19:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_GetFieldsCounters done [19:23:59]requested_item shift.num is exist - process it [19:23:59]requested_item shift.opened is exist - process it [19:23:59]req_shift_opened [19:23:59]FM_GetShiftState [19:23:59]SAM_PROTO_GetShiftState [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 13 01 00 [19:23:59]Write to MH i2c: E2 08 00 E1 22 80 13 01 00 00 00 00 00 80 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0E 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0E 00 E1 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5A [19:23:59]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_GetShiftState done [19:23:59]FM_GetShiftState done [19:23:59]req_shift_opened done [19:23:59]requested_item shift.open_date is exist - process it [19:23:59]req_shift_open_date [19:23:59]req_shift_open_date done [19:23:59]produce_requested_data done [19:23:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31022,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:23:59]process_action_free close_receipt [19:23:59]json_value_free [19:23:59]json_value_free done [19:23:59]process_json_proto returns [19:23:59]Send response to host [19:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31022,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:23:59]free response buf [19:23:59]execute_script done [19:23:59]execute_script returns [19:23:59]free content buf [19:23:59]Sock 7.Close socket [19:23:59]Sock 7.Thread stoped [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:40]accept exits with 10 [19:24:40]New connection [19:24:40]New thread 3067043172 created [19:24:40]Thread 3066899812 joined [19:24:40]Waiting for new connection... [19:24:40] Sock 10.Parse request [19:24:40]Sock 10.Check first char [19:24:40]Sock 10.First char is OK [19:24:40]request: POST /json_proto HTTP/1.0 [19:24:40]Method: POST [19:24:40]URL: /json_proto [19:24:40]Method is POST - this is cgi request [19:24:40]url: /json_proto [19:24:40]query_string will be loaded in cgi processing [19:24:40]execute_cgi json_proto POST (null) [19:24:40]execute_cgi path=json_proto method=POST [19:24:40]POST find Content-Length [19:24:40]Host: 172.17.51.3:8080 [19:24:40]Content-Length: 751 [19:24:40]Content-Type: application/json [19:24:40] [19:24:40]POST finish read [19:24:40]Found Content-Length = 751 [19:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:40]execute_script... [19:24: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)343461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:40]POST & json_proto [19:24:40]process_json_proto [19:24:40]json parsed OK: [19:24:40]protocol is kg_v1.0 [19:24:40]action value=close_receipt [19:24:40]process_action close_receipt [19:24:40]cmd_close_receipt [19:24:40]MH_GetDate [19:24:40]Write to MH i2c: F0 00 00 E2 22 F3 [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: F0 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: F0 09 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: F0 09 00 E2 22 00 FA FB 17 67 04 C1 95 66 2F [19:24:40]GetLastDocTimeStamp 1729625037 [19:24:40]current date 1729625082 [19:24:40]FM_GetShiftState [19:24:40]SAM_PROTO_GetShiftState [19:24:40]wFMCommunicate request_size=4 [19:24:40]MH_SAM_APDU [19:24:40]CAPDU: 80 13 01 00 [19:24:40]Write to MH i2c: E2 08 00 E3 22 80 13 01 00 00 00 00 00 82 [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:40]Read from MH i2c: E2 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 0E 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 0E 00 E3 22 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5C [19:24:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:24:40]wFMCommunicate OK [19:24:40]SAM_PROTO_GetShiftState done [19:24:40]FM_GetShiftState done [19:24:40]opened in 1729557342 [19:24:40]opened+sec_in_day 1729643742 [19:24:40]quantity*price = 0 [19:24:40]sum+1 = 1 [19:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 256 22.10.2024 19:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30135190 ФМ: 0000000002094219 ФД: 31023 ФПД: 105900928945676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192442&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31023&fm=105900928945676&tin=02508201610067®Number=0000000000186857&sum=0 [19:24:41]StoreToDocumentArchive [19:24:41]shift 116 fd 31023 [19:24:41]save to /storage/0116/doc_00031023 [19:24:41]save last doc name /storage/0116/doc_00031023 to /storage/kkm_last_doc_name [19:24:41]save OK [19:24:41]Clear old archive folders... [19:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:41]tlvbuf is 00D65EB0 [19:24:41]SAM_PROTO_ClearQueue [19:24:41]wFMCommunicate request_size=4 [19:24:41]MH_SAM_APDU [19:24:41]CAPDU: 80 09 00 00 [19:24:41]Write to MH i2c: E2 08 00 F0 22 80 09 00 00 00 00 00 00 84 [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:41]Read from MH i2c: E2 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: E2 03 00 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [19:24:41]RAPDU: 90 00 [19:24:41]wFMCommunicate OK [19:24:41]SAM_PROTO_ClearQueue done [19:24:41]KKMCreateOFDPacket [19:24:41]OFDProtocolAddRootSTLVToBuf [19:24:41]FM_MakeSignedData [19:24:41]FM_MakeSignedData [19:24:41]SAM_PROTO_SignData [19:24:41]wFMCommunicate request_size=4 [19:24:41]MH_SAM_APDU [19:24:41]CAPDU: 80 0D 01 02 [19:24:41]Write to MH i2c: E2 08 00 F1 22 80 0D 01 02 00 00 00 00 8C [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=255 [19:24:42]MH_SAM_APDU [19:24:42]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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FA FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 79 00 00 35 04 06 00 60 50 FB 40 [19:24:42]Write to MH i2c: E2 02 01 F2 22 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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FA FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 79 00 00 35 04 06 00 60 50 FB 40 00 00 38 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=7 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 02 02 02 4E 0C [19:24:42]Write to MH i2c: E2 0A 00 F3 22 80 0D 02 02 02 00 4E 0C 00 00 ED [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 03 02 [19:24:42]Write to MH i2c: E2 08 00 F4 22 80 0D 03 02 00 00 00 00 91 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0B 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0B 00 F4 22 00 F5 D6 6B F3 44 B8 BB C2 90 00 34 [19:24:42]RAPDU: F5 D6 6B F3 44 B8 BB C2 90 00 [19:24:42]wFMCommunicate OK [19:24:42]SAM_PROTO_SignData done [19:24:42]FM_MakeSignedData done [19:24:42]CreateOFDProtocolMessage [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 11 00 00 [19:24:42]Write to MH i2c: E2 08 00 F5 22 80 11 00 00 00 00 00 00 91 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 F5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [19:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:24:42]wFMCommunicate OK [19:24:42]CreateOFDProtocolMessage done [19:24:42]OFDSenderStorePacket 31023 [19:24:42]StoreOFDPacket docnum=31023 [19:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BB 55 04 01 90 93 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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FA FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 79 00 00 35 04 06 00 60 50 FB 40 4E 0C F5 D6 6B F3 44 B8 BB C2 [19:24:42]CheckFolder [19:24:42]dirname=/storage/ofd_packets [19:24:42]CheckFolder done [19:24:42]ProducePacketName [19:24:42]name=ofd_packets/00031023 [19:24:42]NVStorageSaveData ofd_packets/00031023 [19:24:42]File name is /storage/ofd_packets/00031023 [19:24:42]Write 298 bytes [19:24:42]NVStorageSaveData done [19:24:42]OFDSenderStorePacket done [19:24:42]KKMCreateOFDPacket done [19:24:42]NVStorageSaveData kkm_last_timestamp [19:24:42]File name is /storage/kkm_last_timestamp [19:24:42]Write 4 bytes [19:24:42]NVStorageSaveData done [19:24:42]ExternCall_PrintAddStr [19:24:42]wPrintStart [19:24:42]Write to MH i2c: 01 00 00 F6 22 18 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 07 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 FF 0F 2D [19:24:42]RasterBufferAndPrint [19:24:42]line Счет N : (1)343461 [19:24:42]line ИНН: 02508201610067 [19:24:42]line Контрольно-Кассовый Чек [19:24:42]line ПРОДАЖА [19:24:42]line ТРК (МРК, ГНК) : 44 [19:24:42]line Товар: 2710194210 [19:24:42]line ДТ-К-2 [19:24:42]line 15.000 * 0.00 [19:24:42]line = 0.00 [19:24:42]line НДС 12% НСП 1% [19:24:42]line > о реализуемом товаре [19:24:42]line ИТОГО: 0.00 [19:24:42]line НСП 1% : 0.00 [19:24:42]line НДС 12% : 0.00 [19:24:42]line Наличными: 0.00 [19:24:42]line Безнал.: 0.00 [19:24:42]line Место: АЗС № 78 "Партнер Нефть" [19:24:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:24:42]line СНО: Общий режим [19:24:42]line Чек 256 22.10.2024 19:24 [19:24:42]line Смена: 116 ФФД: 1.0 [19:24:42]line ЗНМ: 0300000137 [19:24:42]line РНМ: 0000000000186857 [19:24:42]line Версия ККМ: v1.0 [19:24:42]line Талоны: ТК ГПНА Online [19:24:42]line 30135190 [19:24:42]line ФМ: 0000000002094219 [19:24:42]line ФД: 31023 [19:24:42]line ФПД: 105900928945676 [19:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192442&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31023&fm=105900928945676&tin=02508201610067®Number=0000000000186857&sum=0 [19:24:42]OFD Sender: Processing packet 31023 [packets to send 11, broken 10] [19:24:42]ProducePacketName [19:24:42]name=ofd_packets/00031023 [19:24:42]OFD Sender: To server: pG, [19:24:42]CommunicateWithHost lk.salyk.kg:30040 [19:24:42]ConnectInit lk.salyk.kg [19:24:42]written 0, free lines is 4095 [19:24:43]Write to MH i2c: 01 00 00 20 23 43 [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 07 00 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 07 00 20 23 00 00 00 00 00 FA 0C 50 [19:24:43]RasterBufferAndPrint [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]written 0, free lines is 3328 [19:24:43]MH_Cut [19:24:43]Write to MH i2c: D1 01 00 27 23 01 1C [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 01 00 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 01 00 27 23 00 1B [19:24:43]Write to MH i2c: 01 00 00 28 23 4B [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:43]*** Cut start [19:24:43]*** Partial cut [19:24:43]*** CUTSNS_PIN = 1 [19:24:43]*** CUTSNS_PIN = 0 [19:24:44]*** Brake cut motor [19:24:44]Read from MH i2c: 01 [19:24:44]MH_I2C_Read... [19:24:44]*** Stop cut motor [19:24:44]*** Cut end [19:24:44]Read from MH i2c: 01 07 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [19:24:44]process_action close_receipt done [19:24:44]requested_data is exist [19:24:44]produce_requested_data [19:24:44]requested_item fm.sn is exist - process it [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 11 00 00 [19:24:44]Write to MH i2c: E2 08 00 29 23 80 11 00 00 00 00 00 00 C6 [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:44]Read from MH i2c: E2 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 17 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 17 00 29 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [19:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:24:44]wFMCommunicate OK [19:24:44]requested_item fd.num is exist - process it [19:24:44]SAM_PROTO_GetFieldsCounters [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 13 00 00 [19:24:44]Write to MH i2c: E2 08 00 2A 23 80 13 00 00 00 00 00 00 C9 [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:44]Read from MH i2c: E2 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 62 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 62 00 2A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:44]wFMCommunicate OK [19:24:44]SAM_PROTO_GetFieldsCounters done [19:24:44]requested_item shift.num is exist - process it [19:24:44]requested_item shift.opened is exist - process it [19:24:44]req_shift_opened [19:24:44]FM_GetShiftState [19:24:44]SAM_PROTO_GetShiftState [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 13 01 00 [19:24:44]Write to MH i2c: E2 08 00 2B 23 80 13 01 00 00 00 00 00 CB [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:44]Read from MH i2c: E2 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 0E 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 0E 00 2B 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A5 [19:24:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:24:44]wFMCommunicate OK [19:24:44]SAM_PROTO_GetShiftState done [19:24:44]FM_GetShiftState done [19:24:44]req_shift_opened done [19:24:44]requested_item shift.open_date is exist - process it [19:24:44]req_shift_open_date [19:24:44]req_shift_open_date done [19:24:44]produce_requested_data done [19:24:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31023,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:24:44]process_action_free close_receipt [19:24:44]json_value_free [19:24:44]json_value_free done [19:24:44]process_json_proto returns [19:24:44]Send response to host [19:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31023,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:24:44]free response buf [19:24:44]execute_script done [19:24:44]execute_script returns [19:24:44]free content buf [19:24:44]Sock 10.Close socket [19:24:44]Sock 10.Thread stoped [19:26:55]ConnectInit Can't connect to host [19:26:55]CommunicateWithHost connect error [19:26:55]CommunicateWithHost err = -1 [19:26:55]OFD Sender: Server communicate error [19:27:00]OFD Sender: Processing packet 31023 [packets to send 11, broken 10] [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00031023 [19:27:00]OFD Sender: To server: pG, [19:27:00]CommunicateWithHost lk.salyk.kg:30040 [19:27:00]ConnectInit lk.salyk.kg [19:27:01]Connected sock=9 [19:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BB 55 04 01 90 93 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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FA FB 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 79 00 00 35 04 06 00 60 50 FB 40 4E 0C F5 D6 6B F3 44 B8 BB C2 [19:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 80 7A 47 00 D2 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 32 30 39 34 32 31 39 10 04 04 00 2F 79 00 00 F4 03 04 00 01 A7 17 67 B6 04 01 00 00 70 60 4C 2F 29 AF 0B 83 [19:27:01]CommunicateWithHost err = 0 [19:27:01]CheckOFDResponse [19:27:01]1017 (14) - 77093643461234 [19:27:01]1041 (16) - 0000000002094219 [19:27:01]1040 (4) - 31023 [19:27:01]1012 (4) - 22.10.2024 13:22 [19:27:01]1206 (1) - 0 [19:27:01]OFD Sender: Remove packet 31023 [19:27:01]ProducePacketName [19:27:01]name=ofd_packets/00031023 [19:27:01]NVStorageDeleteData [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:14]accept exits with 7 [19:27:14]New connection [19:27:14]New thread 3066899812 created [19:27:14]Thread 3067043172 joined [19:27:14]Waiting for new connection... [19:27:14] Sock 7.Parse request [19:27:14]Sock 7.Check first char [19:27:14]Sock 7.First char is OK [19:27:14]request: POST /json_proto HTTP/1.0 [19:27:14]Method: POST [19:27:14]URL: /json_proto [19:27:14]Method is POST - this is cgi request [19:27:14]url: /json_proto [19:27:14]query_string will be loaded in cgi processing [19:27:14]execute_cgi json_proto POST (null) [19:27:14]execute_cgi path=json_proto method=POST [19:27:14]POST find Content-Length [19:27:14]Host: 172.17.51.3:8080 [19:27:14]Content-Length: 682 [19:27:14]Content-Type: application/json [19:27:14] [19:27:14]POST finish read [19:27:14]Found Content-Length = 682 [19:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:14]execute_script... [19:27: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)343462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:14]POST & json_proto [19:27:14]process_json_proto [19:27:14]json parsed OK: [19:27:14]protocol is kg_v1.0 [19:27:14]action value=close_receipt [19:27:14]process_action close_receipt [19:27:14]cmd_close_receipt [19:27:14]MH_GetDate [19:27:14]Write to MH i2c: F0 00 00 2C 23 3E [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 09 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 09 00 2C 23 00 94 FC 17 67 04 C1 95 66 15 [19:27:14]GetLastDocTimeStamp 1729625082 [19:27:14]current date 1729625236 [19:27:14]FM_GetShiftState [19:27:14]SAM_PROTO_GetShiftState [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 13 01 00 [19:27:14]Write to MH i2c: E2 08 00 2D 23 80 13 01 00 00 00 00 00 CD [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 2D 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A7 [19:27:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetShiftState done [19:27:14]FM_GetShiftState done [19:27:14]opened in 1729557342 [19:27:14]opened+sec_in_day 1729643742 [19:27:14]quantity*price = 100015 [19:27:14]sum+1 = 100017 [19:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 257 22.10.2024 19:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31024 ФПД: 3844807387039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192716&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31024&fm=3844807387039&tin=02508201610067®Number=0000000000186857&sum=100000 [19:27:15]StoreToDocumentArchive [19:27:15]shift 116 fd 31024 [19:27:15]save to /storage/0116/doc_00031024 [19:27:15]save last doc name /storage/0116/doc_00031024 to /storage/kkm_last_doc_name [19:27:15]save OK [19:27:15]Clear old archive folders... [19:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:15]tlvbuf is 00D4CA40 [19:27:15]SAM_PROTO_ClearQueue [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 09 00 00 [19:27:15]Write to MH i2c: E2 08 00 3A 23 80 09 00 00 00 00 00 00 CF [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [19:27:15]RAPDU: 90 00 [19:27:15]wFMCommunicate OK [19:27:15]SAM_PROTO_ClearQueue done [19:27:15]KKMCreateOFDPacket [19:27:15]OFDProtocolAddRootSTLVToBuf [19:27:15]FM_MakeSignedData [19:27:15]FM_MakeSignedData [19:27:15]SAM_PROTO_SignData [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 0D 01 02 [19:27:15]Write to MH i2c: E2 08 00 3B 23 80 0D 01 02 00 00 00 00 D7 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [19:27:15]RAPDU: 90 00 [19:27:15]wFMCommunicate OK [19:27:15]wFMCommunicate request_size=255 [19:27:15]MH_SAM_APDU [19:27: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 94 FC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 79 00 00 35 04 06 00 03 [19:27:15]Write to MH i2c: E2 02 01 3C 23 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 94 FC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 79 00 00 35 04 06 00 03 00 00 92 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [19:27:15]RAPDU: 90 00 [19:27:15]wFMCommunicate OK [19:27:15]wFMCommunicate request_size=10 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 0D 02 02 05 7F 30 60 E7 9F [19:27:15]Write to MH i2c: E2 0D 00 3D 23 80 0D 02 02 05 00 7F 30 60 E7 9F 00 00 79 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [19:27:15]RAPDU: 90 00 [19:27:15]wFMCommunicate OK [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 0D 03 02 [19:27:15]Write to MH i2c: E2 08 00 3E 23 80 0D 03 02 00 00 00 00 DC [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 0B 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 0B 00 3E 23 00 71 E7 65 E6 37 61 8C 36 90 00 DA [19:27:15]RAPDU: 71 E7 65 E6 37 61 8C 36 90 00 [19:27:15]wFMCommunicate OK [19:27:15]SAM_PROTO_SignData done [19:27:15]FM_MakeSignedData done [19:27:15]CreateOFDProtocolMessage [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 11 00 00 [19:27:15]Write to MH i2c: E2 08 00 3F 23 80 11 00 00 00 00 00 00 DC [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 3F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [19:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:27:15]wFMCommunicate OK [19:27:15]CreateOFDProtocolMessage done [19:27:15]OFDSenderStorePacket 31024 [19:27:15]StoreOFDPacket docnum=31024 [19:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B8 0C 07 01 F1 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 94 FC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 79 00 00 35 04 06 00 03 7F 30 60 E7 9F 71 E7 65 E6 37 61 8C 36 [19:27:15]CheckFolder [19:27:15]dirname=/storage/ofd_packets [19:27:15]CheckFolder done [19:27:15]ProducePacketName [19:27:15]name=ofd_packets/00031024 [19:27:15]NVStorageSaveData ofd_packets/00031024 [19:27:15]File name is /storage/ofd_packets/00031024 [19:27:15]Write 301 bytes [19:27:15]NVStorageSaveData done [19:27:15]OFDSenderStorePacket done [19:27:15]KKMCreateOFDPacket done [19:27:15]NVStorageSaveData kkm_last_timestamp [19:27:15]File name is /storage/kkm_last_timestamp [19:27:15]Write 4 bytes [19:27:15]NVStorageSaveData done [19:27:15]ExternCall_PrintAddStr [19:27:15]wPrintStart [19:27:15]Write to MH i2c: 01 00 00 40 23 63 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 FF 0F 78 [19:27:15]RasterBufferAndPrint [19:27:15]line Счет N : (1)343462 [19:27:15]line ИНН: 02508201610067 [19:27:15]line Контрольно-Кассовый Чек [19:27:15]line ПРОДАЖА [19:27:15]line ТРК (МРК, ГНК) : 53 [19:27:15]line Товар: 2710124130 [19:27:15]line Аи-92-К-2 [19:27:15]line 14.950 * 66.90 [19:27:15]line = 1000.16 [19:27:15]line НДС 12% НСП 1% [19:27:15]line > о реализуемом товаре [19:27:15]line ОКРУГЛЕНИЕ: -0.16 [19:27:15]line ИТОГО: 1000.00 [19:27:15]line Внесено: 1000.00 [19:27:15]line СДАЧА: 0.00 [19:27:15]line НСП 1% : 8.85 [19:27:15]line НДС 12% : 106.21 [19:27:15]line Наличными: 1000.00 [19:27:15]line Безнал.: 0.00 [19:27:15]line Место: АЗС № 78 "Партнер Нефть" [19:27:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:27:15]line СНО: Общий режим [19:27:15]line Чек 257 22.10.2024 19:27 [19:27:15]line Смена: 116 ФФД: 1.0 [19:27:15]line ЗНМ: 0300000137 [19:27:15]line РНМ: 0000000000186857 [19:27:15]line Версия ККМ: v1.0 [19:27:15]line ФМ: 0000000002094219 [19:27:15]line ФД: 31024 [19:27:15]line ФПД: 3844807387039 [19:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192716&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31024&fm=3844807387039&tin=02508201610067®Number=0000000000186857&sum=100000 [19:27:16]OFD Sender: Processing packet 31024 [packets to send 11, broken 10] [19:27:16]ProducePacketName [19:27:16]name=ofd_packets/00031024 [19:27:16]OFD Sender: To server: pG, [19:27:16]CommunicateWithHost lk.salyk.kg:30040 [19:27:16]ConnectInit lk.salyk.kg [19:27:16]written 0, free lines is 4095 [19:27:16]Connected sock=10 [19:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B8 0C 07 01 F1 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 94 FC 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 79 00 00 35 04 06 00 03 7F 30 60 E7 9F 71 E7 65 E6 37 61 8C 36 [19:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B8 6A 47 00 95 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 79 00 00 F4 03 04 00 10 A7 17 67 B6 04 01 00 00 B4 E3 21 FF 53 E3 45 0B [19:27:16]CommunicateWithHost err = 0 [19:27:16]CheckOFDResponse [19:27:16]1017 (14) - 77093643461234 [19:27:16]1041 (16) - 0000000002094219 [19:27:16]1040 (4) - 31024 [19:27:16]1012 (4) - 22.10.2024 13:22 [19:27:16]1206 (1) - 0 [19:27:16]OFD Sender: Remove packet 31024 [19:27:16]ProducePacketName [19:27:16]name=ofd_packets/00031024 [19:27:16]NVStorageDeleteData [19:27:16]Write to MH i2c: 01 00 00 6B 23 8E [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 6B 23 00 00 00 00 00 F0 0C 91 [19:27:16]RasterBufferAndPrint [19:27:16]line [19:27:16]line [19:27:16]line [19:27:16]line [19:27:16]line [19:27:16]written 0, free lines is 3318 [19:27:16]MH_Cut [19:27:16]Write to MH i2c: D1 01 00 72 23 01 67 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: D1 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: D1 01 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: D1 01 00 72 23 00 66 [19:27:16]Write to MH i2c: 01 00 00 73 23 96 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]OFD Sender: No OFD packet to send [19:27:17]*** Cut start [19:27:17]*** Partial cut [19:27:17]*** CUTSNS_PIN = 1 [19:27:17]*** CUTSNS_PIN = 0 [19:27:17]*** Brake cut motor [19:27:17]Read from MH i2c: 01 [19:27:17]MH_I2C_Read... [19:27:17]*** Stop cut motor [19:27:17]*** Cut end [19:27:17]Read from MH i2c: 01 07 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 FF 0F AB [19:27:17]process_action close_receipt done [19:27:17]requested_data is exist [19:27:17]produce_requested_data [19:27:17]requested_item fm.sn is exist - process it [19:27:17]wFMCommunicate request_size=4 [19:27:17]MH_SAM_APDU [19:27:17]CAPDU: 80 11 00 00 [19:27:17]Write to MH i2c: E2 08 00 74 23 80 11 00 00 00 00 00 00 11 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:17]Read from MH i2c: E2 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 17 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 17 00 74 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [19:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:27:17]wFMCommunicate OK [19:27:17]requested_item fd.num is exist - process it [19:27:17]SAM_PROTO_GetFieldsCounters [19:27:17]wFMCommunicate request_size=4 [19:27:17]MH_SAM_APDU [19:27:17]CAPDU: 80 13 00 00 [19:27:17]Write to MH i2c: E2 08 00 75 23 80 13 00 00 00 00 00 00 14 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 62 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 62 00 75 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:27:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:18]wFMCommunicate OK [19:27:18]SAM_PROTO_GetFieldsCounters done [19:27:18]requested_item shift.num is exist - process it [19:27:18]requested_item shift.opened is exist - process it [19:27:18]req_shift_opened [19:27:18]FM_GetShiftState [19:27:18]SAM_PROTO_GetShiftState [19:27:18]wFMCommunicate request_size=4 [19:27:18]MH_SAM_APDU [19:27:18]CAPDU: 80 13 01 00 [19:27:18]Write to MH i2c: E2 08 00 76 23 80 13 01 00 00 00 00 00 16 [19:27:18]Write i2c OK [19:27:18]MH_I2C_Read... [19:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:18]Read from MH i2c: E2 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 0E 00 [19:27:18]MH_I2C_Read... [19:27:18]Read from MH i2c: E2 0E 00 76 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F0 [19:27:18]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:27:18]wFMCommunicate OK [19:27:18]SAM_PROTO_GetShiftState done [19:27:18]FM_GetShiftState done [19:27:18]req_shift_opened done [19:27:18]requested_item shift.open_date is exist - process it [19:27:18]req_shift_open_date [19:27:18]req_shift_open_date done [19:27:18]produce_requested_data done [19:27:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31024,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:27:18]process_action_free close_receipt [19:27:18]json_value_free [19:27:18]json_value_free done [19:27:18]process_json_proto returns [19:27:18]Send response to host [19:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31024,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:27:18]free response buf [19:27:18]execute_script done [19:27:18]execute_script returns [19:27:18]free content buf [19:27:18]Sock 7.Close socket [19:27:18]Sock 7.Thread stoped [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:56]accept exits with 9 [19:29:56]New connection [19:29:56]New thread 3067043172 created [19:29:56]Thread 3066899812 joined [19:29:56]Waiting for new connection... [19:29:56] Sock 9.Parse request [19:29:56]Sock 9.Check first char [19:29:56]Sock 9.First char is OK [19:29:56]request: POST /json_proto HTTP/1.0 [19:29:56]Method: POST [19:29:56]URL: /json_proto [19:29:56]Method is POST - this is cgi request [19:29:56]url: /json_proto [19:29:56]query_string will be loaded in cgi processing [19:29:56]execute_cgi json_proto POST (null) [19:29:56]execute_cgi path=json_proto method=POST [19:29:56]POST find Content-Length [19:29:56]Host: 172.17.51.3:8080 [19:29:56]Content-Length: 674 [19:29:56]Content-Type: application/json [19:29:56] [19:29:56]POST finish read [19:29:56]Found Content-Length = 674 [19:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:56]execute_script... [19:29: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)343464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:56]POST & json_proto [19:29:56]process_json_proto [19:29:56]json parsed OK: [19:29:56]protocol is kg_v1.0 [19:29:56]action value=close_receipt [19:29:56]process_action close_receipt [19:29:56]cmd_close_receipt [19:29:56]MH_GetDate [19:29:56]Write to MH i2c: F0 00 00 77 23 89 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 77 23 00 36 FD 17 67 04 C1 95 66 03 [19:29:56]GetLastDocTimeStamp 1729625236 [19:29:56]current date 1729625398 [19:29:56]FM_GetShiftState [19:29:56]SAM_PROTO_GetShiftState [19:29:56]wFMCommunicate request_size=4 [19:29:56]MH_SAM_APDU [19:29:56]CAPDU: 80 13 01 00 [19:29:56]Write to MH i2c: E2 08 00 78 23 80 13 01 00 00 00 00 00 18 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:56]Read from MH i2c: E2 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 78 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F2 [19:29:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:29:56]wFMCommunicate OK [19:29:56]SAM_PROTO_GetShiftState done [19:29:56]FM_GetShiftState done [19:29:56]opened in 1729557342 [19:29:56]opened+sec_in_day 1729643742 [19:29:56]quantity*price = 50063 [19:29:56]sum+1 = 50064 [19:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 258 22.10.2024 19:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31025 ФПД: 233114322619587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192958&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31025&fm=233114322619587&tin=02508201610067®Number=0000000000186857&sum=50000 [19:29:57]StoreToDocumentArchive [19:29:57]shift 116 fd 31025 [19:29:57]save to /storage/0116/doc_00031025 [19:29:57]save last doc name /storage/0116/doc_00031025 to /storage/kkm_last_doc_name [19:29:57]save OK [19:29:57]Clear old archive folders... [19:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:29:57]tlvbuf is B6DBE5B0 [19:29:57]SAM_PROTO_ClearQueue [19:29:57]wFMCommunicate request_size=4 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 09 00 00 [19:29:57]Write to MH i2c: E2 08 00 85 23 80 09 00 00 00 00 00 00 1A [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]SAM_PROTO_ClearQueue done [19:29:57]KKMCreateOFDPacket [19:29:57]OFDProtocolAddRootSTLVToBuf [19:29:57]FM_MakeSignedData [19:29:57]FM_MakeSignedData [19:29:57]SAM_PROTO_SignData [19:29:57]wFMCommunicate request_size=4 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 0D 01 02 [19:29:57]Write to MH i2c: E2 08 00 86 23 80 0D 01 02 00 00 00 00 22 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]wFMCommunicate request_size=255 [19:29:57]MH_SAM_APDU [19:29:57]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 79 00 00 35 04 06 00 D4 04 28 64 [19:29:57]Write to MH i2c: E2 02 01 87 23 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 79 00 00 35 04 06 00 D4 04 28 64 00 00 67 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]wFMCommunicate request_size=7 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 0D 02 02 02 4C C3 [19:29:57]Write to MH i2c: E2 0A 00 88 23 80 0D 02 02 02 00 4C C3 00 00 38 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]wFMCommunicate request_size=4 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 0D 03 02 [19:29:57]Write to MH i2c: E2 08 00 89 23 80 0D 03 02 00 00 00 00 27 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 89 23 00 0D DC 49 1A AF 00 6A 73 90 00 00 [19:29:58]RAPDU: 0D DC 49 1A AF 00 6A 73 90 00 [19:29:58]wFMCommunicate OK [19:29:58]SAM_PROTO_SignData done [19:29:58]FM_MakeSignedData done [19:29:58]CreateOFDProtocolMessage [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 11 00 00 [19:29:58]Write to MH i2c: E2 08 00 8A 23 80 11 00 00 00 00 00 00 27 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 8A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [19:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:29:58]wFMCommunicate OK [19:29:58]CreateOFDProtocolMessage done [19:29:58]OFDSenderStorePacket 31025 [19:29:58]StoreOFDPacket docnum=31025 [19:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A1 BA 04 01 CB B9 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 79 00 00 35 04 06 00 D4 04 28 64 4C C3 0D DC 49 1A AF 00 6A 73 [19:29:58]CheckFolder [19:29:58]dirname=/storage/ofd_packets [19:29:58]CheckFolder done [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00031025 [19:29:58]NVStorageSaveData ofd_packets/00031025 [19:29:58]File name is /storage/ofd_packets/00031025 [19:29:58]Write 298 bytes [19:29:58]NVStorageSaveData done [19:29:58]OFDSenderStorePacket done [19:29:58]KKMCreateOFDPacket done [19:29:58]NVStorageSaveData kkm_last_timestamp [19:29:58]File name is /storage/kkm_last_timestamp [19:29:58]OFD Sender: Processing packet 31025 [packets to send 11, broken 10] [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00031025 [19:29:58]OFD Sender: To server: pG, [19:29:58]CommunicateWithHost lk.salyk.kg:30040 [19:29:58]ConnectInit lk.salyk.kg [19:29:58]Write 4 bytes [19:29:58]NVStorageSaveData done [19:29:58]ExternCall_PrintAddStr [19:29:58]wPrintStart [19:29:58]Write to MH i2c: 01 00 00 8B 23 AE [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 8B 23 00 00 00 00 00 FF 0F C3 [19:29:58]RasterBufferAndPrint [19:29:58]line Счет N : (1)343464 [19:29:58]line ИНН: 02508201610067 [19:29:58]line Контрольно-Кассовый Чек [19:29:58]line ПРОДАЖА [19:29:58]line ТРК (МРК, ГНК) : 44 [19:29:58]line Товар: 2710194210 [19:29:58]line ДТ-К-2 [19:29:58]line 6.570 * 76.20 [19:29:58]line = 500.63 [19:29:58]line НДС 12% НСП 1% [19:29:58]line > о реализуемом товаре [19:29:58]line ОКРУГЛЕНИЕ: -0.63 [19:29:58]line ИТОГО: 500.00 [19:29:58]line Внесено: 500.00 [19:29:58]line СДАЧА: 0.00 [19:29:58]line НСП 1% : 4.43 [19:29:58]line НДС 12% : 53.16 [19:29:58]line Наличными: 500.00 [19:29:58]line Безнал.: 0.00 [19:29:58]line Место: АЗС № 78 "Партнер Нефть" [19:29:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:29:58]line СНО: Общий режим [19:29:58]line Чек 258 22.10.2024 19:29 [19:29:58]line Смена: 116 ФФД: 1.0 [19:29:58]line ЗНМ: 0300000137 [19:29:58]line РНМ: 0000000000186857 [19:29:58]line Версия ККМ: v1.0 [19:29:58]line ФМ: 0000000002094219 [19:29:58]line ФД: 31025 [19:29:58]line ФПД: 233114322619587 [19:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192958&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31025&fm=233114322619587&tin=02508201610067®Number=0000000000186857&sum=50000 [19:29:58]Connected sock=11 [19:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A1 BA 04 01 CB B9 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 79 00 00 35 04 06 00 D4 04 28 64 4C C3 0D DC 49 1A AF 00 6A 73 [19:29:58]written 0, free lines is 4095 [19:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4F A1 47 00 CD 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 32 30 39 34 32 31 39 10 04 04 00 31 79 00 00 F4 03 04 00 B3 A7 17 67 B6 04 01 00 00 3E E3 62 1F A6 FE BB 97 [19:29:58]CommunicateWithHost err = 0 [19:29:58]CheckOFDResponse [19:29:58]1017 (14) - 77093643461234 [19:29:58]1041 (16) - 0000000002094219 [19:29:58]1040 (4) - 31025 [19:29:58]1012 (4) - 22.10.2024 13:25 [19:29:58]1206 (1) - 0 [19:29:58]OFD Sender: Remove packet 31025 [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00031025 [19:29:58]NVStorageDeleteData [19:29:58]Write to MH i2c: 01 00 00 B6 23 D9 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 B6 23 00 00 00 00 00 E5 0C D1 [19:29:58]RasterBufferAndPrint [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]written 0, free lines is 3307 [19:29:58]MH_Cut [19:29:58]Write to MH i2c: D1 01 00 BD 23 01 B2 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 01 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 01 00 BD 23 00 B1 [19:29:58]Write to MH i2c: 01 00 00 BE 23 E1 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:59]OFD Sender: No OFD packet to send [19:29:59]*** Cut start [19:29:59]*** Partial cut [19:29:59]*** CUTSNS_PIN = 1 [19:29:59]*** CUTSNS_PIN = 0 [19:29:59]*** Brake cut motor [19:30:00]Read from MH i2c: 01 [19:30:00]MH_I2C_Read... [19:30:00]*** Stop cut motor [19:30:00]*** Cut end [19:30:00]Read from MH i2c: 01 07 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 FF 0F F6 [19:30:00]process_action close_receipt done [19:30:00]requested_data is exist [19:30:00]produce_requested_data [19:30:00]requested_item fm.sn is exist - process it [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 11 00 00 [19:30:00]Write to MH i2c: E2 08 00 BF 23 80 11 00 00 00 00 00 00 5C [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 17 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 17 00 BF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [19:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:30:00]wFMCommunicate OK [19:30:00]requested_item fd.num is exist - process it [19:30:00]SAM_PROTO_GetFieldsCounters [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 13 00 00 [19:30:00]Write to MH i2c: E2 08 00 C0 23 80 13 00 00 00 00 00 00 5F [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 62 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 62 00 C0 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [19:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:00]wFMCommunicate OK [19:30:00]SAM_PROTO_GetFieldsCounters done [19:30:00]requested_item shift.num is exist - process it [19:30:00]requested_item shift.opened is exist - process it [19:30:00]req_shift_opened [19:30:00]FM_GetShiftState [19:30:00]SAM_PROTO_GetShiftState [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 13 01 00 [19:30:00]Write to MH i2c: E2 08 00 C1 23 80 13 01 00 00 00 00 00 61 [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 0E 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 0E 00 C1 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3B [19:30:00]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:30:00]wFMCommunicate OK [19:30:00]SAM_PROTO_GetShiftState done [19:30:00]FM_GetShiftState done [19:30:00]req_shift_opened done [19:30:00]requested_item shift.open_date is exist - process it [19:30:00]req_shift_open_date [19:30:00]req_shift_open_date done [19:30:00]produce_requested_data done [19:30:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31025,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:30:00]process_action_free close_receipt [19:30:00]json_value_free [19:30:00]json_value_free done [19:30:00]process_json_proto returns [19:30:00]Send response to host [19:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31025,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:30:00]free response buf [19:30:00]execute_script done [19:30:00]execute_script returns [19:30:00]free content buf [19:30:00]Sock 9.Close socket [19:30:00]Sock 9.Thread stoped [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:28]accept exits with 7 [19:32:28]New connection [19:32:28]New thread 3066899812 created [19:32:28]Thread 3067043172 joined [19:32:28]Waiting for new connection... [19:32:28] Sock 7.Parse request [19:32:28]Sock 7.Check first char [19:32:28]Sock 7.First char is OK [19:32:28]request: POST /json_proto HTTP/1.0 [19:32:28]Method: POST [19:32:28]URL: /json_proto [19:32:28]Method is POST - this is cgi request [19:32:28]url: /json_proto [19:32:28]query_string will be loaded in cgi processing [19:32:28]execute_cgi json_proto POST (null) [19:32:28]execute_cgi path=json_proto method=POST [19:32:28]POST find Content-Length [19:32:28]Host: 172.17.51.3:8080 [19:32:28]Content-Length: 677 [19:32:28]Content-Type: application/json [19:32:28] [19:32:28]POST finish read [19:32:28]Found Content-Length = 677 [19:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:28]execute_script... [19:32: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)343465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:28]POST & json_proto [19:32:28]process_json_proto [19:32:28]json parsed OK: [19:32:28]protocol is kg_v1.0 [19:32:28]action value=close_receipt [19:32:28]process_action close_receipt [19:32:28]cmd_close_receipt [19:32:28]MH_GetDate [19:32:28]Write to MH i2c: F0 00 00 C2 23 D4 [19:32:28]Write i2c OK [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: F0 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: F0 09 00 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: F0 09 00 C2 23 00 CE FD 17 67 04 C1 95 66 E6 [19:32:28]GetLastDocTimeStamp 1729625398 [19:32:28]current date 1729625550 [19:32:28]FM_GetShiftState [19:32:28]SAM_PROTO_GetShiftState [19:32:28]wFMCommunicate request_size=4 [19:32:28]MH_SAM_APDU [19:32:28]CAPDU: 80 13 01 00 [19:32:28]Write to MH i2c: E2 08 00 C3 23 80 13 01 00 00 00 00 00 63 [19:32:28]Write i2c OK [19:32:28]MH_I2C_Read... [19:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:28]Read from MH i2c: E2 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: E2 0E 00 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: E2 0E 00 C3 23 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 3D [19:32:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:32:28]wFMCommunicate OK [19:32:28]SAM_PROTO_GetShiftState done [19:32:28]FM_GetShiftState done [19:32:28]opened in 1729557342 [19:32:28]opened+sec_in_day 1729643742 [19:32:28]quantity*price = 40006 [19:32:28]sum+1 = 40007 [19:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 259 22.10.2024 19:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31026 ФПД: 150695135466752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193230&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31026&fm=150695135466752&tin=02508201610067®Number=0000000000186857&sum=40000 [19:32:29]StoreToDocumentArchive [19:32:29]shift 116 fd 31026 [19:32:29]save to /storage/0116/doc_00031026 [19:32:29]save last doc name /storage/0116/doc_00031026 to /storage/kkm_last_doc_name [19:32:29]save OK [19:32:29]Clear old archive folders... [19:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:29]tlvbuf is B6EF0980 [19:32:29]SAM_PROTO_ClearQueue [19:32:29]wFMCommunicate request_size=4 [19:32:29]MH_SAM_APDU [19:32:29]CAPDU: 80 09 00 00 [19:32:29]Write to MH i2c: E2 08 00 D0 23 80 09 00 00 00 00 00 00 65 [19:32:29]Write i2c OK [19:32:29]MH_I2C_Read... [19:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:29]Read from MH i2c: E2 [19:32:29]MH_I2C_Read... [19:32:29]Read from MH i2c: E2 03 00 [19:32:29]MH_I2C_Read... [19:32:29]Read from MH i2c: E2 03 00 D0 23 00 90 00 67 [19:32:29]RAPDU: 90 00 [19:32:29]wFMCommunicate OK [19:32:29]SAM_PROTO_ClearQueue done [19:32:29]KKMCreateOFDPacket [19:32:29]OFDProtocolAddRootSTLVToBuf [19:32:29]FM_MakeSignedData [19:32:29]FM_MakeSignedData [19:32:29]SAM_PROTO_SignData [19:32:29]wFMCommunicate request_size=4 [19:32:29]MH_SAM_APDU [19:32:29]CAPDU: 80 0D 01 02 [19:32:29]Write to MH i2c: E2 08 00 D1 23 80 0D 01 02 00 00 00 00 6D [19:32:29]Write i2c OK [19:32:29]MH_I2C_Read... [19:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:29]Read from MH i2c: E2 [19:32:29]MH_I2C_Read... [19:32:29]Read from MH i2c: E2 03 00 [19:32:29]MH_I2C_Read... [19:32:29]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [19:32:29]RAPDU: 90 00 [19:32:29]wFMCommunicate OK [19:32:29]wFMCommunicate request_size=255 [19:32:29]MH_SAM_APDU [19:32: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CE FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 79 00 00 35 04 06 00 89 [19:32:29]Write to MH i2c: E2 02 01 D2 23 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CE FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 79 00 00 35 04 06 00 89 00 00 C2 [19:32:29]Write i2c OK [19:32:29]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 03 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [19:32:30]RAPDU: 90 00 [19:32:30]wFMCommunicate OK [19:32:30]wFMCommunicate request_size=10 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 0D 02 02 05 0E 72 04 D5 00 [19:32:30]Write to MH i2c: E2 0D 00 D3 23 80 0D 02 02 05 00 0E 72 04 D5 00 00 00 D3 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 03 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [19:32:30]RAPDU: 90 00 [19:32:30]wFMCommunicate OK [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 0D 03 02 [19:32:30]Write to MH i2c: E2 08 00 D4 23 80 0D 03 02 00 00 00 00 72 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0B 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0B 00 D4 23 00 01 3F 9D D8 1A 36 89 DB 90 00 DC [19:32:30]RAPDU: 01 3F 9D D8 1A 36 89 DB 90 00 [19:32:30]wFMCommunicate OK [19:32:30]SAM_PROTO_SignData done [19:32:30]FM_MakeSignedData done [19:32:30]CreateOFDProtocolMessage [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 11 00 00 [19:32:30]Write to MH i2c: E2 08 00 D5 23 80 11 00 00 00 00 00 00 72 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 17 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 17 00 D5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [19:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:32:30]wFMCommunicate OK [19:32:30]CreateOFDProtocolMessage done [19:32:30]OFDSenderStorePacket 31026 [19:32:30]StoreOFDPacket docnum=31026 [19:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8E 1D 07 01 96 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CE FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 79 00 00 35 04 06 00 89 0E 72 04 D5 00 01 3F 9D D8 1A 36 89 DB [19:32:30]CheckFolder [19:32:30]dirname=/storage/ofd_packets [19:32:30]CheckFolder done [19:32:30]ProducePacketName [19:32:30]name=ofd_packets/00031026 [19:32:30]NVStorageSaveData ofd_packets/00031026 [19:32:30]File name is /storage/ofd_packets/00031026 [19:32:30]Write 301 bytes [19:32:30]NVStorageSaveData done [19:32:30]OFDSenderStorePacket done [19:32:30]KKMCreateOFDPacket done [19:32:30]NVStorageSaveData kkm_last_timestamp [19:32:30]File name is /storage/kkm_last_timestamp [19:32:30]Write 4 bytes [19:32:30]NVStorageSaveData done [19:32:30]ExternCall_PrintAddStr [19:32:30]wPrintStart [19:32:30]Write to MH i2c: 01 00 00 D6 23 F9 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: 01 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: 01 07 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: 01 07 00 D6 23 00 00 00 00 00 FF 0F 0E [19:32:30]RasterBufferAndPrint [19:32:30]line Счет N : (1)343465 [19:32:30]line ИНН: 02508201610067 [19:32:30]line Контрольно-Кассовый Чек [19:32:30]line ПРОДАЖА [19:32:30]line ТРК (МРК, ГНК) : 43 [19:32:30]line Товар: 2710124130 [19:32:30]line Аи-92-К-2 [19:32:30]line 5.980 * 66.90 [19:32:30]line = 400.06 [19:32:30]line НДС 12% НСП 1% [19:32:30]line > о реализуемом товаре [19:32:30]line ОКРУГЛЕНИЕ: -0.06 [19:32:30]line ИТОГО: 400.00 [19:32:30]line Внесено: 400.00 [19:32:30]line СДАЧА: 0.00 [19:32:30]line НСП 1% : 3.54 [19:32:30]line НДС 12% : 42.48 [19:32:30]line Наличными: 400.00 [19:32:30]line Безнал.: 0.00 [19:32:30]line Место: АЗС № 78 "Партнер Нефть" [19:32:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:32:30]line СНО: Общий режим [19:32:30]line Чек 259 22.10.2024 19:32 [19:32:30]line Смена: 116 ФФД: 1.0 [19:32:30]line ЗНМ: 0300000137 [19:32:30]line РНМ: 0000000000186857 [19:32:30]line Версия ККМ: v1.0 [19:32:30]line ФМ: 0000000002094219 [19:32:30]line ФД: 31026 [19:32:30]line ФПД: 150695135466752 [19:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193230&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31026&fm=150695135466752&tin=02508201610067®Number=0000000000186857&sum=40000 [19:32:30]OFD Sender: Processing packet 31026 [packets to send 11, broken 10] [19:32:30]ProducePacketName [19:32:30]name=ofd_packets/00031026 [19:32:30]OFD Sender: To server: pG, [19:32:30]CommunicateWithHost lk.salyk.kg:30040 [19:32:30]ConnectInit lk.salyk.kg [19:32:30]written 0, free lines is 4095 [19:32:30]Connected sock=10 [19:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8E 1D 07 01 96 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CE FD 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 79 00 00 35 04 06 00 89 0E 72 04 D5 00 01 3F 9D D8 1A 36 89 DB [19:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 22 1E 47 00 21 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 32 30 39 34 32 31 39 10 04 04 00 32 79 00 00 F4 03 04 00 4B A8 17 67 B6 04 01 00 00 B1 4D E6 FE CA 8B 5F B6 [19:32:30]CommunicateWithHost err = 0 [19:32:30]CheckOFDResponse [19:32:30]1017 (14) - 77093643461234 [19:32:30]1041 (16) - 0000000002094219 [19:32:30]1040 (4) - 31026 [19:32:30]1012 (4) - 22.10.2024 13:27 [19:32:30]1206 (1) - 0 [19:32:30]OFD Sender: Remove packet 31026 [19:32:30]ProducePacketName [19:32:30]name=ofd_packets/00031026 [19:32:30]NVStorageDeleteData [19:32:31]Write to MH i2c: 01 00 00 01 24 25 [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: 01 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: 01 07 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: 01 07 00 01 24 00 00 00 00 00 FD 0C 35 [19:32:31]RasterBufferAndPrint [19:32:31]line [19:32:31]line [19:32:31]line [19:32:31]line [19:32:31]line [19:32:31]written 0, free lines is 3334 [19:32:31]MH_Cut [19:32:31]Write to MH i2c: D1 01 00 08 24 01 FE [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: D1 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: D1 01 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: D1 01 00 08 24 00 FD [19:32:31]Write to MH i2c: 01 00 00 09 24 2D [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]OFD Sender: No OFD packet to send [19:32:31]*** Cut start [19:32:31]*** Partial cut [19:32:31]*** CUTSNS_PIN = 1 [19:32:31]*** CUTSNS_PIN = 0 [19:32:32]*** Brake cut motor [19:32:32]Read from MH i2c: 01 [19:32:32]MH_I2C_Read... [19:32:32]*** Stop cut motor [19:32:32]*** Cut end [19:32:32]Read from MH i2c: 01 07 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 09 24 00 00 00 00 00 FF 0F 42 [19:32:32]process_action close_receipt done [19:32:32]requested_data is exist [19:32:32]produce_requested_data [19:32:32]requested_item fm.sn is exist - process it [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 11 00 00 [19:32:32]Write to MH i2c: E2 08 00 0A 24 80 11 00 00 00 00 00 00 A8 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 0A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [19:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:32:32]wFMCommunicate OK [19:32:32]requested_item fd.num is exist - process it [19:32:32]SAM_PROTO_GetFieldsCounters [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 13 00 00 [19:32:32]Write to MH i2c: E2 08 00 0B 24 80 13 00 00 00 00 00 00 AB [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 62 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 62 00 0B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [19:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:32]wFMCommunicate OK [19:32:32]SAM_PROTO_GetFieldsCounters done [19:32:32]requested_item shift.num is exist - process it [19:32:32]requested_item shift.opened is exist - process it [19:32:32]req_shift_opened [19:32:32]FM_GetShiftState [19:32:32]SAM_PROTO_GetShiftState [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 13 01 00 [19:32:32]Write to MH i2c: E2 08 00 0C 24 80 13 01 00 00 00 00 00 AD [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0E 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0E 00 0C 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 87 [19:32:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:32:32]wFMCommunicate OK [19:32:32]SAM_PROTO_GetShiftState done [19:32:32]FM_GetShiftState done [19:32:32]req_shift_opened done [19:32:32]requested_item shift.open_date is exist - process it [19:32:32]req_shift_open_date [19:32:32]req_shift_open_date done [19:32:32]produce_requested_data done [19:32:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31026,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:32:32]process_action_free close_receipt [19:32:32]json_value_free [19:32:32]json_value_free done [19:32:32]process_json_proto returns [19:32:32]Send response to host [19:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31026,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:32:32]free response buf [19:32:32]execute_script done [19:32:32]execute_script returns [19:32:32]free content buf [19:32:32]Sock 7.Close socket [19:32:32]Sock 7.Thread stoped [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:45]accept exits with 9 [19:42:45]New connection [19:42:45]New thread 3067043172 created [19:42:45]Thread 3066899812 joined [19:42:45]Waiting for new connection... [19:42:45] Sock 9.Parse request [19:42:45]Sock 9.Check first char [19:42:45]Sock 9.First char is OK [19:42:45]request: POST /json_proto HTTP/1.0 [19:42:45]Method: POST [19:42:45]URL: /json_proto [19:42:45]Method is POST - this is cgi request [19:42:45]url: /json_proto [19:42:45]query_string will be loaded in cgi processing [19:42:45]execute_cgi json_proto POST (null) [19:42:45]execute_cgi path=json_proto method=POST [19:42:45]POST find Content-Length [19:42:45]Host: 172.17.51.3:8080 [19:42:45]Content-Length: 679 [19:42:45]Content-Type: application/json [19:42:45] [19:42:45]POST finish read [19:42:45]Found Content-Length = 679 [19:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:45]execute_script... [19: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)343466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:45]POST & json_proto [19:42:45]process_json_proto [19:42:45]json parsed OK: [19:42:45]protocol is kg_v1.0 [19:42:45]action value=close_receipt [19:42:45]process_action close_receipt [19:42:45]cmd_close_receipt [19:42:45]MH_GetDate [19:42:45]Write to MH i2c: F0 00 00 0D 24 20 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: F0 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: F0 09 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: F0 09 00 0D 24 00 37 00 18 67 04 C1 95 66 9F [19:42:45]GetLastDocTimeStamp 1729625550 [19:42:45]current date 1729626167 [19:42:45]FM_GetShiftState [19:42:45]SAM_PROTO_GetShiftState [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 13 01 00 [19:42:45]Write to MH i2c: E2 08 00 0E 24 80 13 01 00 00 00 00 00 AF [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0E 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0E 00 0E 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 89 [19:42:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_GetShiftState done [19:42:45]FM_GetShiftState done [19:42:45]opened in 1729557342 [19:42:45]opened+sec_in_day 1729643742 [19:42:45]quantity*price = 200025 [19:42:45]sum+1 = 200026 [19:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 260 22.10.2024 19:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31027 ФПД: 82144824989841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194247&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31027&fm=82144824989841&tin=02508201610067®Number=0000000000186857&sum=200000 [19:42:46]StoreToDocumentArchive [19:42:46]shift 116 fd 31027 [19:42:46]save to /storage/0116/doc_00031027 [19:42:46]save last doc name /storage/0116/doc_00031027 to /storage/kkm_last_doc_name [19:42:46]save OK [19:42:46]Clear old archive folders... [19:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:46]tlvbuf is B6DBE750 [19:42:46]SAM_PROTO_ClearQueue [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 09 00 00 [19:42:46]Write to MH i2c: E2 08 00 1B 24 80 09 00 00 00 00 00 00 B1 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 1B 24 00 90 00 B3 [19:42:46]RAPDU: 90 00 [19:42:46]wFMCommunicate OK [19:42:46]SAM_PROTO_ClearQueue done [19:42:46]KKMCreateOFDPacket [19:42:46]OFDProtocolAddRootSTLVToBuf [19:42:46]FM_MakeSignedData [19:42:46]FM_MakeSignedData [19:42:46]SAM_PROTO_SignData [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 0D 01 02 [19:42:46]Write to MH i2c: E2 08 00 1C 24 80 0D 01 02 00 00 00 00 B9 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [19:42:46]RAPDU: 90 00 [19:42:46]wFMCommunicate OK [19:42:46]wFMCommunicate request_size=255 [19:42:46]MH_SAM_APDU [19: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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 37 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 79 00 00 35 04 06 00 4A B5 D5 1D [19:42:46]Write to MH i2c: E2 02 01 1D 24 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 37 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 79 00 00 35 04 06 00 4A B5 D5 1D 00 00 FA [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [19:42:46]RAPDU: 90 00 [19:42:46]wFMCommunicate OK [19:42:46]wFMCommunicate request_size=7 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 0D 02 02 02 18 91 [19:42:46]Write to MH i2c: E2 0A 00 1E 24 80 0D 02 02 02 00 18 91 00 00 69 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 03 00 1E 24 00 90 00 B6 [19:42:46]RAPDU: 90 00 [19:42:46]wFMCommunicate OK [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 0D 03 02 [19:42:46]Write to MH i2c: E2 08 00 1F 24 80 0D 03 02 00 00 00 00 BE [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 0B 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 0B 00 1F 24 00 E7 A5 DE F5 14 39 68 D7 90 00 AA [19:42:46]RAPDU: E7 A5 DE F5 14 39 68 D7 90 00 [19:42:46]wFMCommunicate OK [19:42:46]SAM_PROTO_SignData done [19:42:46]FM_MakeSignedData done [19:42:46]CreateOFDProtocolMessage [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 11 00 00 [19:42:46]Write to MH i2c: E2 08 00 20 24 80 11 00 00 00 00 00 00 BE [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:47]OFD Sender: No OFD packet to send [19:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 20 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [19:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:47]wFMCommunicate OK [19:42:47]CreateOFDProtocolMessage done [19:42:47]OFDSenderStorePacket 31027 [19:42:47]StoreOFDPacket docnum=31027 [19:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 58 04 01 36 CA 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 37 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 79 00 00 35 04 06 00 4A B5 D5 1D 18 91 E7 A5 DE F5 14 39 68 D7 [19:42:47]CheckFolder [19:42:47]dirname=/storage/ofd_packets [19:42:47]CheckFolder done [19:42:47]ProducePacketName [19:42:47]name=ofd_packets/00031027 [19:42:47]NVStorageSaveData ofd_packets/00031027 [19:42:47]File name is /storage/ofd_packets/00031027 [19:42:47]Write 298 bytes [19:42:47]NVStorageSaveData done [19:42:47]OFDSenderStorePacket done [19:42:47]KKMCreateOFDPacket done [19:42:47]NVStorageSaveData kkm_last_timestamp [19:42:47]File name is /storage/kkm_last_timestamp [19:42:47]Write 4 bytes [19:42:47]NVStorageSaveData done [19:42:47]ExternCall_PrintAddStr [19:42:47]wPrintStart [19:42:47]Write to MH i2c: 01 00 00 21 24 45 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 21 24 00 00 00 00 00 FF 0F 5A [19:42:47]RasterBufferAndPrint [19:42:47]line Счет N : (1)343466 [19:42:47]line ИНН: 02508201610067 [19:42:47]line Контрольно-Кассовый Чек [19:42:47]line ПРОДАЖА [19:42:47]line ТРК (МРК, ГНК) : 44 [19:42:47]line Товар: 2710194210 [19:42:47]line ДТ-К-2 [19:42:47]line 26.250 * 76.20 [19:42:47]line = 2000.25 [19:42:47]line НДС 12% НСП 1% [19:42:47]line > о реализуемом товаре [19:42:47]line ОКРУГЛЕНИЕ: -0.25 [19:42:47]line ИТОГО: 2000.00 [19:42:47]line Внесено: 2000.00 [19:42:47]line СДАЧА: 0.00 [19:42:47]line НСП 1% : 17.70 [19:42:47]line НДС 12% : 212.42 [19:42:47]line Наличными: 2000.00 [19:42:47]line Безнал.: 0.00 [19:42:47]line Место: АЗС № 78 "Партнер Нефть" [19:42:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:42:47]line СНО: Общий режим [19:42:47]line Чек 260 22.10.2024 19:42 [19:42:47]line Смена: 116 ФФД: 1.0 [19:42:47]line ЗНМ: 0300000137 [19:42:47]line РНМ: 0000000000186857 [19:42:47]line Версия ККМ: v1.0 [19:42:47]line ФМ: 0000000002094219 [19:42:47]line ФД: 31027 [19:42:47]line ФПД: 82144824989841 [19:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194247&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31027&fm=82144824989841&tin=02508201610067®Number=0000000000186857&sum=200000 [19:42:47]OFD Sender: Processing packet 31027 [packets to send 11, broken 10] [19:42:47]ProducePacketName [19:42:47]name=ofd_packets/00031027 [19:42:47]OFD Sender: To server: pG, [19:42:47]CommunicateWithHost lk.salyk.kg:30040 [19:42:47]ConnectInit lk.salyk.kg [19:42:47]written 0, free lines is 4095 [19:42:47]Connected sock=10 [19:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 58 04 01 36 CA 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 37 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 79 00 00 35 04 06 00 4A B5 D5 1D 18 91 E7 A5 DE F5 14 39 68 D7 [19:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 EE 47 00 7C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 79 00 00 F4 03 04 00 B4 AA 17 67 B6 04 01 00 00 D2 26 60 90 D9 D7 5C 24 [19:42:47]CommunicateWithHost err = 0 [19:42:47]CheckOFDResponse [19:42:47]1017 (14) - 77093643461234 [19:42:47]1041 (16) - 0000000002094219 [19:42:47]1040 (4) - 31027 [19:42:47]1012 (4) - 22.10.2024 13:37 [19:42:47]1206 (1) - 0 [19:42:47]OFD Sender: Remove packet 31027 [19:42:47]ProducePacketName [19:42:47]name=ofd_packets/00031027 [19:42:47]NVStorageDeleteData [19:42:47]Write to MH i2c: 01 00 00 4C 24 70 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 4C 24 00 00 00 00 00 F5 0C 78 [19:42:47]RasterBufferAndPrint [19:42:47]line [19:42:47]line [19:42:47]line [19:42:47]line [19:42:47]line [19:42:47]written 0, free lines is 3327 [19:42:47]MH_Cut [19:42:47]Write to MH i2c: D1 01 00 53 24 01 49 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: D1 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: D1 01 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: D1 01 00 53 24 00 48 [19:42:47]Write to MH i2c: 01 00 00 54 24 78 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:48]OFD Sender: No OFD packet to send [19:42:48]*** Cut start [19:42:48]*** Partial cut [19:42:48]*** CUTSNS_PIN = 1 [19:42:48]*** CUTSNS_PIN = 0 [19:42:48]*** Brake cut motor [19:42:49]Read from MH i2c: 01 [19:42:49]MH_I2C_Read... [19:42:49]*** Stop cut motor [19:42:49]*** Cut end [19:42:49]Read from MH i2c: 01 07 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: 01 07 00 54 24 00 00 00 00 00 FF 0F 8D [19:42:49]process_action close_receipt done [19:42:49]requested_data is exist [19:42:49]produce_requested_data [19:42:49]requested_item fm.sn is exist - process it [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 11 00 00 [19:42:49]Write to MH i2c: E2 08 00 55 24 80 11 00 00 00 00 00 00 F3 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 17 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 17 00 55 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [19:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:49]wFMCommunicate OK [19:42:49]requested_item fd.num is exist - process it [19:42:49]SAM_PROTO_GetFieldsCounters [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 13 00 00 [19:42:49]Write to MH i2c: E2 08 00 56 24 80 13 00 00 00 00 00 00 F6 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 62 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 62 00 56 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [19:42:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_GetFieldsCounters done [19:42:49]requested_item shift.num is exist - process it [19:42:49]requested_item shift.opened is exist - process it [19:42:49]req_shift_opened [19:42:49]FM_GetShiftState [19:42:49]SAM_PROTO_GetShiftState [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 13 01 00 [19:42:49]Write to MH i2c: E2 08 00 57 24 80 13 01 00 00 00 00 00 F8 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 57 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D2 [19:42:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_GetShiftState done [19:42:49]FM_GetShiftState done [19:42:49]req_shift_opened done [19:42:49]requested_item shift.open_date is exist - process it [19:42:49]req_shift_open_date [19:42:49]req_shift_open_date done [19:42:49]produce_requested_data done [19:42:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31027,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:42:49]process_action_free close_receipt [19:42:49]json_value_free [19:42:49]json_value_free done [19:42:49]process_json_proto returns [19:42:49]Send response to host [19:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31027,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:42:49]free response buf [19:42:49]execute_script done [19:42:49]execute_script returns [19:42:49]free content buf [19:42:49]Sock 9.Close socket [19:42:49]Sock 9.Thread stoped [19:42:49]accept exits with 7 [19:42:49]New connection [19:42:49]New thread 3066899812 created [19:42:49]Thread 3067043172 joined [19:42:49]Waiting for new connection... [19:42:49] Sock 7.Parse request [19:42:49]Sock 7.Check first char [19:42:49]Sock 7.First char is OK [19:42:49]request: POST /json_proto HTTP/1.0 [19:42:49]Method: POST [19:42:49]URL: /json_proto [19:42:49]Method is POST - this is cgi request [19:42:49]url: /json_proto [19:42:49]query_string will be loaded in cgi processing [19:42:49]execute_cgi json_proto POST (null) [19:42:49]execute_cgi path=json_proto method=POST [19:42:49]POST find Content-Length [19:42:49]Host: 172.17.51.3:8080 [19:42:49]Content-Length: 682 [19:42:49]Content-Type: application/json [19:42:49] [19:42:49]POST finish read [19:42:49]Found Content-Length = 682 [19:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:49]execute_script... [19: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)343467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:49]POST & json_proto [19:42:49]process_json_proto [19:42:49]json parsed OK: [19:42:49]protocol is kg_v1.0 [19:42:49]action value=close_receipt [19:42:49]process_action close_receipt [19:42:49]cmd_close_receipt [19:42:49]MH_GetDate [19:42:49]Write to MH i2c: F0 00 00 58 24 6B [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 09 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 09 00 58 24 00 3B 00 18 67 04 C1 95 66 EE [19:42:49]GetLastDocTimeStamp 1729626167 [19:42:49]current date 1729626171 [19:42:49]FM_GetShiftState [19:42:49]SAM_PROTO_GetShiftState [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 13 01 00 [19:42:49]Write to MH i2c: E2 08 00 59 24 80 13 01 00 00 00 00 00 FA [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 59 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D4 [19:42:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_GetShiftState done [19:42:49]FM_GetShiftState done [19:42:49]opened in 1729557342 [19:42:49]opened+sec_in_day 1729643742 [19:42:49]quantity*price = 100015 [19:42:49]sum+1 = 100017 [19:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 261 22.10.2024 19:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31028 ФПД: 173490278349563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194251&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31028&fm=173490278349563&tin=02508201610067®Number=0000000000186857&sum=100000 [19:42:51]StoreToDocumentArchive [19:42:51]shift 116 fd 31028 [19:42:51]save to /storage/0116/doc_00031028 [19:42:51]save last doc name /storage/0116/doc_00031028 to /storage/kkm_last_doc_name [19:42:51]save OK [19:42:51]Clear old archive folders... [19:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:51]tlvbuf is 00D65BB0 [19:42:51]SAM_PROTO_ClearQueue [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 09 00 00 [19:42:51]Write to MH i2c: E2 08 00 66 24 80 09 00 00 00 00 00 00 FC [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 66 24 00 90 00 FE [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]SAM_PROTO_ClearQueue done [19:42:51]KKMCreateOFDPacket [19:42:51]OFDProtocolAddRootSTLVToBuf [19:42:51]FM_MakeSignedData [19:42:51]FM_MakeSignedData [19:42:51]SAM_PROTO_SignData [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 01 02 [19:42:51]Write to MH i2c: E2 08 00 67 24 80 0D 01 02 00 00 00 00 04 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 67 24 00 90 00 FF [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=255 [19:42:51]MH_SAM_APDU [19:42: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3B 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 79 00 00 35 04 06 00 9D [19:42:51]Write to MH i2c: E2 02 01 68 24 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3B 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 79 00 00 35 04 06 00 9D 00 00 0D [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=10 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 02 02 05 C9 DA 69 BA FB [19:42:51]Write to MH i2c: E2 0D 00 69 24 80 0D 02 02 05 00 C9 DA 69 BA FB 00 00 D2 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 03 02 [19:42:51]Write to MH i2c: E2 08 00 6A 24 80 0D 03 02 00 00 00 00 09 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 0B 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 0B 00 6A 24 00 D0 47 C8 B8 10 EE A7 3A 90 00 80 [19:42:51]RAPDU: D0 47 C8 B8 10 EE A7 3A 90 00 [19:42:51]wFMCommunicate OK [19:42:51]SAM_PROTO_SignData done [19:42:51]FM_MakeSignedData done [19:42:51]CreateOFDProtocolMessage [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 11 00 00 [19:42:51]Write to MH i2c: E2 08 00 6B 24 80 11 00 00 00 00 00 00 09 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 6B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [19:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:51]wFMCommunicate OK [19:42:51]CreateOFDProtocolMessage done [19:42:51]OFDSenderStorePacket 31028 [19:42:51]StoreOFDPacket docnum=31028 [19:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 ED 3A 07 01 D4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3B 00 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 79 00 00 35 04 06 00 9D C9 DA 69 BA FB D0 47 C8 B8 10 EE A7 3A [19:42:51]CheckFolder [19:42:51]dirname=/storage/ofd_packets [19:42:51]CheckFolder done [19:42:51]ProducePacketName [19:42:51]name=ofd_packets/00031028 [19:42:51]NVStorageSaveData ofd_packets/00031028 [19:42:51]File name is /storage/ofd_packets/00031028 [19:42:51]Write 301 bytes [19:42:51]NVStorageSaveData done [19:42:51]OFDSenderStorePacket done [19:42:51]KKMCreateOFDPacket done [19:42:51]NVStorageSaveData kkm_last_timestamp [19:42:51]File name is /storage/kkm_last_timestamp [19:42:51]Write 4 bytes [19:42:51]NVStorageSaveData done [19:42:51]ExternCall_PrintAddStr [19:42:51]wPrintStart [19:42:51]Write to MH i2c: 01 00 00 6C 24 90 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 [19:42:51]MH_I2C_Read... [19:42:51]OFD Sender: Processing packet 31028 [packets to send 11, broken 10] [19:42:51]ProducePacketName [19:42:51]name=ofd_packets/00031028 [19:42:51]OFD Sender: To server: pG, [19:42:51]CommunicateWithHost lk.salyk.kg:30040 [19:42:51]ConnectInit lk.salyk.kg [19:42:51]Read from MH i2c: 01 07 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 07 00 6C 24 00 00 00 00 00 FF 0F A5 [19:42:51]RasterBufferAndPrint [19:42:51]line Счет N : (1)343467 [19:42:51]line ИНН: 02508201610067 [19:42:51]line Контрольно-Кассовый Чек [19:42:51]line ПРОДАЖА [19:42:51]line ТРК (МРК, ГНК) : 53 [19:42:51]line Товар: 2710124130 [19:42:51]line Аи-92-К-2 [19:42:51]line 14.950 * 66.90 [19:42:51]line = 1000.16 [19:42:51]line НДС 12% НСП 1% [19:42:51]line > о реализуемом товаре [19:42:51]line ОКРУГЛЕНИЕ: -0.16 [19:42:51]line ИТОГО: 1000.00 [19:42:51]line Внесено: 1000.00 [19:42:51]line СДАЧА: 0.00 [19:42:51]line НСП 1% : 8.85 [19:42:51]line НДС 12% : 106.21 [19:42:51]line Наличными: 1000.00 [19:42:51]line Безнал.: 0.00 [19:42:51]line Место: АЗС № 78 "Партнер Нефть" [19:42:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:42:51]line СНО: Общий режим [19:42:52]line Чек 261 22.10.2024 19:42 [19:42:52]line Смена: 116 ФФД: 1.0 [19:42:52]line ЗНМ: 0300000137 [19:42:52]line РНМ: 0000000000186857 [19:42:52]line Версия ККМ: v1.0 [19:42:52]line ФМ: 0000000002094219 [19:42:52]line ФД: 31028 [19:42:52]line ФПД: 173490278349563 [19:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194251&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31028&fm=173490278349563&tin=02508201610067®Number=0000000000186857&sum=100000 [19:42:52]Connected sock=10 [19:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 ED 3A 07 01 D4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3B 00 18 67 0E 04 04 00 74 written 0, free lines is 4095 [19:42:52]00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 79 00 00 35 04 06 00 9D C9 DA 69 BA FB D0 47 C8 B8 10 EE A7 3A [19:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 89 B0 47 00 AA 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 32 30 39 34 32 31 39 10 04 04 00 34 79 00 00 F4 03 04 00 B8 AA 17 67 B6 04 01 00 00 A3 1F 90 2B CA 00 10 B3 [19:42:52]CommunicateWithHost err = 0 [19:42:52]CheckOFDResponse [19:42:52]1017 (14) - 77093643461234 [19:42:52]1041 (16) - 0000000002094219 [19:42:52]1040 (4) - 31028 [19:42:52]1012 (4) - 22.10.2024 13:38 [19:42:52]1206 (1) - 0 [19:42:52]OFD Sender: Remove packet 31028 [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00031028 [19:42:52]NVStorageDeleteData [19:42:52]Write to MH i2c: 01 00 00 97 24 BB [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 97 24 00 00 00 00 00 F4 0C C2 [19:42:52]RasterBufferAndPrint [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]written 0, free lines is 3328 [19:42:52]MH_Cut [19:42:52]Write to MH i2c: D1 01 00 9E 24 01 94 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 9E 24 00 93 [19:42:52]Write to MH i2c: 01 00 00 9F 24 C3 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:53]OFD Sender: No OFD packet to send [19:42:53]*** Cut start [19:42:53]*** Partial cut [19:42:53]*** CUTSNS_PIN = 1 [19:42:53]*** CUTSNS_PIN = 0 [19:42:53]*** Brake cut motor [19:42:54]Read from MH i2c: 01 [19:42:54]MH_I2C_Read... [19:42:54]*** Stop cut motor [19:42:54]*** Cut end [19:42:54]Read from MH i2c: 01 07 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: 01 07 00 9F 24 00 00 00 00 00 FF 0F D8 [19:42:54]process_action close_receipt done [19:42:54]requested_data is exist [19:42:54]produce_requested_data [19:42:54]requested_item fm.sn is exist - process it [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 11 00 00 [19:42:54]Write to MH i2c: E2 08 00 A0 24 80 11 00 00 00 00 00 00 3E [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 17 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 17 00 A0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [19:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:54]wFMCommunicate OK [19:42:54]requested_item fd.num is exist - process it [19:42:54]SAM_PROTO_GetFieldsCounters [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 13 00 00 [19:42:54]Write to MH i2c: E2 08 00 A1 24 80 13 00 00 00 00 00 00 41 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 62 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 62 00 A1 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [19:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:54]wFMCommunicate OK [19:42:54]SAM_PROTO_GetFieldsCounters done [19:42:54]requested_item shift.num is exist - process it [19:42:54]requested_item shift.opened is exist - process it [19:42:54]req_shift_opened [19:42:54]FM_GetShiftState [19:42:54]SAM_PROTO_GetShiftState [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 13 01 00 [19:42:54]Write to MH i2c: E2 08 00 A2 24 80 13 01 00 00 00 00 00 43 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 0E 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 0E 00 A2 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1D [19:42:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:42:54]wFMCommunicate OK [19:42:54]SAM_PROTO_GetShiftState done [19:42:54]FM_GetShiftState done [19:42:54]req_shift_opened done [19:42:54]requested_item shift.open_date is exist - process it [19:42:54]req_shift_open_date [19:42:54]req_shift_open_date done [19:42:54]produce_requested_data done [19:42:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31028,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:42:54]process_action_free close_receipt [19:42:54]json_value_free [19:42:54]json_value_free done [19:42:54]process_json_proto returns [19:42:54]Send response to host [19:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31028,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:42:54]free response buf [19:42:54]execute_script done [19:42:54]execute_script returns [19:42:54]free content buf [19:42:54]Sock 7.Close socket [19:42:54]Sock 7.Thread stoped [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:42]accept exits with 9 [19:56:42]New connection [19:56:42]New thread 3067043172 created [19:56:42]Thread 3066899812 joined [19:56:42]Waiting for new connection... [19:56:42] Sock 9.Parse request [19:56:42]Sock 9.Check first char [19:56:42]Sock 9.First char is OK [19:56:42]request: POST /json_proto HTTP/1.0 [19:56:42]Method: POST [19:56:42]URL: /json_proto [19:56:42]Method is POST - this is cgi request [19:56:42]url: /json_proto [19:56:42]query_string will be loaded in cgi processing [19:56:42]execute_cgi json_proto POST (null) [19:56:42]execute_cgi path=json_proto method=POST [19:56:42]POST find Content-Length [19:56:42]Host: 172.17.51.3:8080 [19:56:42]Content-Length: 682 [19:56:42]Content-Type: application/json [19:56:42] [19:56:42]POST finish read [19:56:42]Found Content-Length = 682 [19:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [19:56:42]execute_script... [19:56: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)343468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [19:56:42]POST & json_proto [19:56:42]process_json_proto [19:56:42]json parsed OK: [19:56:42]protocol is kg_v1.0 [19:56:42]action value=close_receipt [19:56:42]process_action close_receipt [19:56:42]cmd_close_receipt [19:56:42]MH_GetDate [19:56:42]Write to MH i2c: F0 00 00 A3 24 B6 [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: F0 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: F0 09 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: F0 09 00 A3 24 00 7C 03 18 67 04 C1 95 66 7D [19:56:42]GetLastDocTimeStamp 1729626171 [19:56:42]current date 1729627004 [19:56:42]FM_GetShiftState [19:56:42]SAM_PROTO_GetShiftState [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 13 01 00 [19:56:42]Write to MH i2c: E2 08 00 A4 24 80 13 01 00 00 00 00 00 45 [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 0E 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 0E 00 A4 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 1F [19:56:42]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:56:42]wFMCommunicate OK [19:56:42]SAM_PROTO_GetShiftState done [19:56:42]FM_GetShiftState done [19:56:42]opened in 1729557342 [19:56:42]opened+sec_in_day 1729643742 [19:56:42]quantity*price = 200031 [19:56:42]sum+1 = 200032 [19:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 262 22.10.2024 19:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31029 ФПД: 216961817469014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31029&fm=216961817469014&tin=02508201610067®Number=0000000000186857&sum=200000 [19:56:43]StoreToDocumentArchive [19:56:43]shift 116 fd 31029 [19:56:43]save to /storage/0116/doc_00031029 [19:56:43]save last doc name /storage/0116/doc_00031029 to /storage/kkm_last_doc_name [19:56:43]save OK [19:56:43]Clear old archive folders... [19:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:43]tlvbuf is 00CC5050 [19:56:43]SAM_PROTO_ClearQueue [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 09 00 00 [19:56:43]Write to MH i2c: E2 08 00 B1 24 80 09 00 00 00 00 00 00 47 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B1 24 00 90 00 49 [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]SAM_PROTO_ClearQueue done [19:56:43]KKMCreateOFDPacket [19:56:43]OFDProtocolAddRootSTLVToBuf [19:56:43]FM_MakeSignedData [19:56:43]FM_MakeSignedData [19:56:43]SAM_PROTO_SignData [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 01 02 [19:56:43]Write to MH i2c: E2 08 00 B2 24 80 0D 01 02 00 00 00 00 4F [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B2 24 00 90 00 4A [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=255 [19:56:43]MH_SAM_APDU [19:56: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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7C 03 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 79 00 00 35 04 06 00 C5 [19:56:43]Write to MH i2c: E2 02 01 B3 24 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7C 03 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 79 00 00 35 04 06 00 C5 00 00 0E [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B3 24 00 90 00 4B [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=10 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 02 02 05 53 5C 0F 60 56 [19:56:43]Write to MH i2c: E2 0D 00 B4 24 80 0D 02 02 05 00 53 5C 0F 60 56 00 00 D0 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]OFD Sender: No OFD packet to send [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 03 02 [19:56:43]Write to MH i2c: E2 08 00 B5 24 80 0D 03 02 00 00 00 00 54 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 B5 24 00 77 42 47 DD 9F A7 94 9A 90 00 A6 [19:56:43]RAPDU: 77 42 47 DD 9F A7 94 9A 90 00 [19:56:43]wFMCommunicate OK [19:56:43]SAM_PROTO_SignData done [19:56:43]FM_MakeSignedData done [19:56:43]CreateOFDProtocolMessage [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 11 00 00 [19:56:43]Write to MH i2c: E2 08 00 B6 24 80 11 00 00 00 00 00 00 54 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 B6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [19:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:56:43]wFMCommunicate OK [19:56:43]CreateOFDProtocolMessage done [19:56:43]OFDSenderStorePacket 31029 [19:56:43]StoreOFDPacket docnum=31029 [19:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 1A 07 01 68 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7C 03 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 79 00 00 35 04 06 00 C5 53 5C 0F 60 56 77 42 47 DD 9F A7 94 9A [19:56:43]CheckFolder [19:56:43]dirname=/storage/ofd_packets [19:56:43]CheckFolder done [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00031029 [19:56:43]NVStorageSaveData ofd_packets/00031029 [19:56:43]File name is /storage/ofd_packets/00031029 [19:56:43]Write 301 bytes [19:56:43]NVStorageSaveData done [19:56:43]OFDSenderStorePacket done [19:56:43]KKMCreateOFDPacket done [19:56:43]NVStorageSaveData kkm_last_timestamp [19:56:43]File name is /storage/kkm_last_timestamp [19:56:43]Write 4 bytes [19:56:43]NVStorageSaveData done [19:56:43]ExternCall_PrintAddStr [19:56:43]wPrintStart [19:56:43]Write to MH i2c: 01 00 00 B7 24 DB [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 B7 24 00 00 00 00 00 FF 0F F0 [19:56:43]RasterBufferAndPrint [19:56:43]line Счет N : (1)343468 [19:56:43]line ИНН: 02508201610067 [19:56:43]line Контрольно-Кассовый Чек [19:56:43]line ПРОДАЖА [19:56:43]line ТРК (МРК, ГНК) : 53 [19:56:43]line Товар: 2710124130 [19:56:43]line Аи-92-К-2 [19:56:43]line 29.900 * 66.90 [19:56:43]line = 2000.31 [19:56:43]line НДС 12% НСП 1% [19:56:43]line > о реализуемом товаре [19:56:43]line ОКРУГЛЕНИЕ: -0.31 [19:56:43]line ИТОГО: 2000.00 [19:56:43]line Внесено: 2000.00 [19:56:43]line СДАЧА: 0.00 [19:56:43]line НСП 1% : 17.70 [19:56:43]line НДС 12% : 212.42 [19:56:43]line Наличными: 2000.00 [19:56:43]line Безнал.: 0.00 [19:56:43]line Место: АЗС № 78 "Партнер Нефть" [19:56:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:56:43]line СНО: Общий режим [19:56:43]line Чек 262 22.10.2024 19:56 [19:56:43]line Смена: 116 ФФД: 1.0 [19:56:43]line ЗНМ: 0300000137 [19:56:43]line РНМ: 0000000000186857 [19:56:43]line Версия ККМ: v1.0 [19:56:43]line ФМ: 0000000002094219 [19:56:43]line ФД: 31029 [19:56:43]line ФПД: 216961817469014 [19:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31029&fm=216961817469014&tin=02508201610067®Number=0000000000186857&sum=200000 [19:56:44]OFD Sender: Processing packet 31029 [packets to send 11, broken 10] [19:56:44]ProducePacketName [19:56:44]name=ofd_packets/00031029 [19:56:44]OFD Sender: To server: pG, [19:56:44]CommunicateWithHost lk.salyk.kg:30040 [19:56:44]ConnectInit lk.salyk.kg [19:56:44]written 0, free lines is 4095 [19:56:44]Connected sock=10 [19:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 1A 07 01 68 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7C 03 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 79 00 00 35 04 06 00 C5 53 5C 0F 60 56 77 42 47 DD 9F A7 94 9A [19:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 81 78 47 00 50 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 79 00 00 F4 03 04 00 F8 AD 17 67 B6 04 01 00 00 1C 09 B9 CB ED 37 B9 B1 [19:56:44]CommunicateWithHost err = 0 [19:56:44]CheckOFDResponse [19:56:44]1017 (14) - 77093643461234 [19:56:44]1041 (16) - 0000000002094219 [19:56:44]1040 (4) - 31029 [19:56:44]1012 (4) - 22.10.2024 13:51 [19:56:44]1206 (1) - 0 [19:56:44]OFD Sender: Remove packet 31029 [19:56:44]ProducePacketName [19:56:44]name=ofd_packets/00031029 [19:56:44]NVStorageDeleteData [19:56:44]Write to MH i2c: 01 00 00 E2 24 06 [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 07 00 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 07 00 E2 24 00 00 00 00 00 ED 0C 06 [19:56:44]RasterBufferAndPrint [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]written 0, free lines is 3318 [19:56:44]MH_Cut [19:56:44]Write to MH i2c: D1 01 00 E9 24 01 DF [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 01 00 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 01 00 E9 24 00 DE [19:56:44]Write to MH i2c: 01 00 00 EA 24 0E [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:45]OFD Sender: No OFD packet to send [19:56:45]*** Cut start [19:56:45]*** Partial cut [19:56:45]*** CUTSNS_PIN = 1 [19:56:45]*** CUTSNS_PIN = 0 [19:56:45]*** Brake cut motor [19:56:45]Read from MH i2c: 01 [19:56:45]MH_I2C_Read... [19:56:45]*** Stop cut motor [19:56:45]*** Cut end [19:56:45]Read from MH i2c: 01 07 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: 01 07 00 EA 24 00 00 00 00 00 FF 0F 23 [19:56:45]process_action close_receipt done [19:56:45]requested_data is exist [19:56:45]produce_requested_data [19:56:45]requested_item fm.sn is exist - process it [19:56:45]wFMCommunicate request_size=4 [19:56:45]MH_SAM_APDU [19:56:45]CAPDU: 80 11 00 00 [19:56:45]Write to MH i2c: E2 08 00 EB 24 80 11 00 00 00 00 00 00 89 [19:56:45]Write i2c OK [19:56:45]MH_I2C_Read... [19:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:45]Read from MH i2c: E2 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 17 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 17 00 EB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [19:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:56:45]wFMCommunicate OK [19:56:45]requested_item fd.num is exist - process it [19:56:45]SAM_PROTO_GetFieldsCounters [19:56:45]wFMCommunicate request_size=4 [19:56:45]MH_SAM_APDU [19:56:45]CAPDU: 80 13 00 00 [19:56:45]Write to MH i2c: E2 08 00 EC 24 80 13 00 00 00 00 00 00 8C [19:56:45]Write i2c OK [19:56:45]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 62 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 62 00 EC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [19:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:46]wFMCommunicate OK [19:56:46]SAM_PROTO_GetFieldsCounters done [19:56:46]requested_item shift.num is exist - process it [19:56:46]requested_item shift.opened is exist - process it [19:56:46]req_shift_opened [19:56:46]FM_GetShiftState [19:56:46]SAM_PROTO_GetShiftState [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 13 01 00 [19:56:46]Write to MH i2c: E2 08 00 ED 24 80 13 01 00 00 00 00 00 8E [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 ED 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 68 [19:56:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [19:56:46]wFMCommunicate OK [19:56:46]SAM_PROTO_GetShiftState done [19:56:46]FM_GetShiftState done [19:56:46]req_shift_opened done [19:56:46]requested_item shift.open_date is exist - process it [19:56:46]req_shift_open_date [19:56:46]req_shift_open_date done [19:56:46]produce_requested_data done [19:56:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31029,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [19:56:46]process_action_free close_receipt [19:56:46]json_value_free [19:56:46]json_value_free done [19:56:46]process_json_proto returns [19:56:46]Send response to host [19:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31029,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [19:56:46]free response buf [19:56:46]execute_script done [19:56:46]execute_script returns [19:56:46]free content buf [19:56:46]Sock 9.Close socket [19:56:46]Sock 9.Thread stoped [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:23]accept exits with 7 [20:05:23]New connection [20:05:23]New thread 3066899812 created [20:05:23]Thread 3067043172 joined [20:05:23]Waiting for new connection... [20:05:23] Sock 7.Parse request [20:05:23]Sock 7.Check first char [20:05:23]Sock 7.First char is OK [20:05:23]request: POST /json_proto HTTP/1.0 [20:05:23]Method: POST [20:05:23]URL: /json_proto [20:05:23]Method is POST - this is cgi request [20:05:23]url: /json_proto [20:05:23]query_string will be loaded in cgi processing [20:05:23]execute_cgi json_proto POST (null) [20:05:23]execute_cgi path=json_proto method=POST [20:05:23]POST find Content-Length [20:05:23]Host: 172.17.51.3:8080 [20:05:23]Content-Length: 677 [20:05:23]Content-Type: application/json [20:05:23] [20:05:23]POST finish read [20:05:23]Found Content-Length = 677 [20:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:23]execute_script... [20:05: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)343469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:23]POST & json_proto [20:05:23]process_json_proto [20:05:23]json parsed OK: [20:05:23]protocol is kg_v1.0 [20:05:23]action value=close_receipt [20:05:23]process_action close_receipt [20:05:23]cmd_close_receipt [20:05:23]MH_GetDate [20:05:23]Write to MH i2c: F0 00 00 EE 24 01 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: F0 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: F0 09 00 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: F0 09 00 EE 24 00 86 05 18 67 04 C1 95 66 D4 [20:05:23]GetLastDocTimeStamp 1729627004 [20:05:23]current date 1729627526 [20:05:23]FM_GetShiftState [20:05:23]SAM_PROTO_GetShiftState [20:05:23]wFMCommunicate request_size=4 [20:05:23]MH_SAM_APDU [20:05:23]CAPDU: 80 13 01 00 [20:05:23]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6A [20:05:24]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:05:24]wFMCommunicate OK [20:05:24]SAM_PROTO_GetShiftState done [20:05:24]FM_GetShiftState done [20:05:24]opened in 1729557342 [20:05:24]opened+sec_in_day 1729643742 [20:05:24]quantity*price = 40006 [20:05:24]sum+1 = 40007 [20:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 263 22.10.2024 20:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31030 ФПД: 246966925640417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31030&fm=246966925640417&tin=02508201610067®Number=0000000000186857&sum=40000 [20:05:25]StoreToDocumentArchive [20:05:25]shift 116 fd 31030 [20:05:25]save to /storage/0116/doc_00031030 [20:05:25]save last doc name /storage/0116/doc_00031030 to /storage/kkm_last_doc_name [20:05:25]save OK [20:05:25]Clear old archive folders... [20:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:25]tlvbuf is 00CD6A20 [20:05:25]SAM_PROTO_ClearQueue [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 09 00 00 [20:05:25]Write to MH i2c: E2 08 00 FC 24 80 09 00 00 00 00 00 00 92 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 FC 24 00 90 00 94 [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]SAM_PROTO_ClearQueue done [20:05:25]KKMCreateOFDPacket [20:05:25]OFDProtocolAddRootSTLVToBuf [20:05:25]FM_MakeSignedData [20:05:25]FM_MakeSignedData [20:05:25]SAM_PROTO_SignData [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 01 02 [20:05:25]Write to MH i2c: E2 08 00 FD 24 80 0D 01 02 00 00 00 00 9A [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]wFMCommunicate request_size=255 [20:05:25]MH_SAM_APDU [20:05: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 79 00 00 35 04 06 00 E0 [20:05:25]Write to MH i2c: E2 02 01 FE 24 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 79 00 00 35 04 06 00 E0 00 00 0F [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]OFD Sender: No OFD packet to send [20:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]wFMCommunicate request_size=10 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 02 02 05 9D 77 DF C2 E1 [20:05:25]Write to MH i2c: E2 0D 00 FF 24 80 0D 02 02 05 00 9D 77 DF C2 E1 00 00 3D [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [20:05:25]RAPDU: 90 00 [20:05:25]wFMCommunicate OK [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 0D 03 02 [20:05:25]Write to MH i2c: E2 08 00 00 25 80 0D 03 02 00 00 00 00 A0 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 0B 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 0B 00 00 25 00 C6 3D 4D 7F 7F 6D 67 F5 90 00 B8 [20:05:25]RAPDU: C6 3D 4D 7F 7F 6D 67 F5 90 00 [20:05:25]wFMCommunicate OK [20:05:25]SAM_PROTO_SignData done [20:05:25]FM_MakeSignedData done [20:05:25]CreateOFDProtocolMessage [20:05:25]wFMCommunicate request_size=4 [20:05:25]MH_SAM_APDU [20:05:25]CAPDU: 80 11 00 00 [20:05:25]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:25]Read from MH i2c: E2 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 17 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [20:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:05:25]wFMCommunicate OK [20:05:25]CreateOFDProtocolMessage done [20:05:25]OFDSenderStorePacket 31030 [20:05:25]StoreOFDPacket docnum=31030 [20:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B0 7C 07 01 A7 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 79 00 00 35 04 06 00 E0 9D 77 DF C2 E1 C6 3D 4D 7F 7F 6D 67 F5 [20:05:25]CheckFolder [20:05:25]dirname=/storage/ofd_packets [20:05:25]CheckFolder done [20:05:25]ProducePacketName [20:05:25]name=ofd_packets/00031030 [20:05:25]NVStorageSaveData ofd_packets/00031030 [20:05:25]File name is /storage/ofd_packets/00031030 [20:05:25]Write 301 bytes [20:05:25]NVStorageSaveData done [20:05:25]OFDSenderStorePacket done [20:05:25]KKMCreateOFDPacket done [20:05:25]NVStorageSaveData kkm_last_timestamp [20:05:25]File name is /storage/kkm_last_timestamp [20:05:25]Write 4 bytes [20:05:25]NVStorageSaveData done [20:05:25]ExternCall_PrintAddStr [20:05:25]wPrintStart [20:05:25]Write to MH i2c: 01 00 00 02 25 27 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 02 25 00 00 00 00 00 FF 0F 3C [20:05:25]RasterBufferAndPrint [20:05:25]line Счет N : (1)343469 [20:05:25]line ИНН: 02508201610067 [20:05:25]line Контрольно-Кассовый Чек [20:05:25]line ПРОДАЖА [20:05:25]line ТРК (МРК, ГНК) : 63 [20:05:25]line Товар: 2710124130 [20:05:25]line Аи-92-К-2 [20:05:25]line 5.980 * 66.90 [20:05:25]line = 400.06 [20:05:25]line НДС 12% НСП 1% [20:05:25]line > о реализуемом товаре [20:05:25]line ОКРУГЛЕНИЕ: -0.06 [20:05:25]line ИТОГО: 400.00 [20:05:25]line Внесено: 400.00 [20:05:25]line СДАЧА: 0.00 [20:05:25]line НСП 1% : 3.54 [20:05:25]line НДС 12% : 42.48 [20:05:25]line Наличными: 400.00 [20:05:25]line Безнал.: 0.00 [20:05:25]line Место: АЗС № 78 "Партнер Нефть" [20:05:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:05:25]line СНО: Общий режим [20:05:25]line Чек 263 22.10.2024 20:05 [20:05:25]line Смена: 116 ФФД: 1.0 [20:05:25]line ЗНМ: 0300000137 [20:05:25]line РНМ: 0000000000186857 [20:05:25]line Версия ККМ: v1.0 [20:05:25]line ФМ: 0000000002094219 [20:05:25]line ФД: 31030 [20:05:25]line ФПД: 246966925640417 [20:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31030&fm=246966925640417&tin=02508201610067®Number=0000000000186857&sum=40000 [20:05:26]OFD Sender: Processing packet 31030 [packets to send 11, broken 10] [20:05:26]ProducePacketName [20:05:26]name=ofd_packets/00031030 [20:05:26]OFD Sender: To server: pG, [20:05:26]CommunicateWithHost lk.salyk.kg:30040 [20:05:26]ConnectInit lk.salyk.kg [20:05:26]written 0, free lines is 4095 [20:05:26]Connected sock=10 [20:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B0 7C 07 01 A7 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 79 00 00 35 04 06 00 E0 9D 77 DF C2 E1 C6 3D 4D 7F 7F 6D 67 F5 [20:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B3 08 47 00 73 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 79 00 00 F4 03 04 00 02 B0 17 67 B6 04 01 00 00 1F A2 9F 05 04 20 91 6C [20:05:26]CommunicateWithHost err = 0 [20:05:26]CheckOFDResponse [20:05:26]1017 (14) - 77093643461234 [20:05:26]1041 (16) - 0000000002094219 [20:05:26]1040 (4) - 31030 [20:05:26]1012 (4) - 22.10.2024 14:00 [20:05:26]1206 (1) - 0 [20:05:26]OFD Sender: Remove packet 31030 [20:05:26]ProducePacketName [20:05:26]name=ofd_packets/00031030 [20:05:26]NVStorageDeleteData [20:05:26]Write to MH i2c: 01 00 00 2D 25 52 [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 07 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 EC 0C 51 [20:05:26]RasterBufferAndPrint [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]line [20:05:26]written 0, free lines is 3318 [20:05:26]MH_Cut [20:05:26]Write to MH i2c: D1 01 00 34 25 01 2B [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 01 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: D1 01 00 34 25 00 2A [20:05:26]Write to MH i2c: 01 00 00 35 25 5A [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]OFD Sender: No OFD packet to send [20:05:27]*** Cut start [20:05:27]*** Partial cut [20:05:27]*** CUTSNS_PIN = 1 [20:05:27]*** CUTSNS_PIN = 0 [20:05:27]*** Brake cut motor [20:05:27]Read from MH i2c: 01 *** Stop cut motor [20:05:27]*** Cut end [20:05:27] [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: 01 07 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: 01 07 00 35 25 00 00 00 00 00 FF 0F 6F [20:05:27]process_action close_receipt done [20:05:27]requested_data is exist [20:05:27]produce_requested_data [20:05:27]requested_item fm.sn is exist - process it [20:05:27]wFMCommunicate request_size=4 [20:05:27]MH_SAM_APDU [20:05:27]CAPDU: 80 11 00 00 [20:05:27]Write to MH i2c: E2 08 00 36 25 80 11 00 00 00 00 00 00 D5 [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 17 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 17 00 36 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [20:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:05:27]wFMCommunicate OK [20:05:27]requested_item fd.num is exist - process it [20:05:27]SAM_PROTO_GetFieldsCounters [20:05:27]wFMCommunicate request_size=4 [20:05:27]MH_SAM_APDU [20:05:27]CAPDU: 80 13 00 00 [20:05:27]Write to MH i2c: E2 08 00 37 25 80 13 00 00 00 00 00 00 D8 [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 62 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 62 00 37 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [20:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:27]wFMCommunicate OK [20:05:27]SAM_PROTO_GetFieldsCounters done [20:05:27]requested_item shift.num is exist - process it [20:05:27]requested_item shift.opened is exist - process it [20:05:27]req_shift_opened [20:05:27]FM_GetShiftState [20:05:27]SAM_PROTO_GetShiftState [20:05:27]wFMCommunicate request_size=4 [20:05:27]MH_SAM_APDU [20:05:27]CAPDU: 80 13 01 00 [20:05:27]Write to MH i2c: E2 08 00 38 25 80 13 01 00 00 00 00 00 DA [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 38 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B4 [20:05:27]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:05:27]wFMCommunicate OK [20:05:27]SAM_PROTO_GetShiftState done [20:05:27]FM_GetShiftState done [20:05:27]req_shift_opened done [20:05:27]requested_item shift.open_date is exist - process it [20:05:27]req_shift_open_date [20:05:27]req_shift_open_date done [20:05:27]produce_requested_data done [20:05:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31030,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:05:27]process_action_free close_receipt [20:05:27]json_value_free [20:05:27]json_value_free done [20:05:27]process_json_proto returns [20:05:27]Send response to host [20:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31030,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:05:27]free response buf [20:05:27]execute_script done [20:05:27]execute_script returns [20:05:27]free content buf [20:05:27]Sock 7.Close socket [20:05:27]Sock 7.Thread stoped [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:53]accept exits with 9 [20:05:53]New connection [20:05:53]New thread 3067043172 created [20:05:53]Thread 3066899812 joined [20:05:53]Waiting for new connection... [20:05:53] Sock 9.Parse request [20:05:53]Sock 9.Check first char [20:05:53]Sock 9.First char is OK [20:05:53]request: POST /json_proto HTTP/1.0 [20:05:53]Method: POST [20:05:53]URL: /json_proto [20:05:53]Method is POST - this is cgi request [20:05:53]url: /json_proto [20:05:53]query_string will be loaded in cgi processing [20:05:53]execute_cgi json_proto POST (null) [20:05:53]execute_cgi path=json_proto method=POST [20:05:53]POST find Content-Length [20:05:53]Host: 172.17.51.3:8080 [20:05:53]Content-Length: 677 [20:05:53]Content-Type: application/json [20:05:53] [20:05:53]POST finish read [20:05:53]Found Content-Length = 677 [20:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:53]execute_script... [20:05: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)343470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:53]POST & json_proto [20:05:53]process_json_proto [20:05:53]json parsed OK: [20:05:53]protocol is kg_v1.0 [20:05:53]action value=close_receipt [20:05:53]process_action close_receipt [20:05:53]cmd_close_receipt [20:05:53]MH_GetDate [20:05:53]Write to MH i2c: F0 00 00 39 25 4D [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: F0 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: F0 09 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: F0 09 00 39 25 00 A4 05 18 67 04 C1 95 66 3E [20:05:54]GetLastDocTimeStamp 1729627526 [20:05:54]current date 1729627556 [20:05:54]FM_GetShiftState [20:05:54]SAM_PROTO_GetShiftState [20:05:54]wFMCommunicate request_size=4 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 13 01 00 [20:05:54]Write to MH i2c: E2 08 00 3A 25 80 13 01 00 00 00 00 00 DC [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 0E 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 0E 00 3A 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B6 [20:05:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:05:54]wFMCommunicate OK [20:05:54]SAM_PROTO_GetShiftState done [20:05:54]FM_GetShiftState done [20:05:54]opened in 1729557342 [20:05:54]opened+sec_in_day 1729643742 [20:05:54]quantity*price = 50010 [20:05:54]sum+1 = 50012 [20:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 264 22.10.2024 20:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31031 ФПД: 135597535751513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31031&fm=135597535751513&tin=02508201610067®Number=0000000000186857&sum=50000 [20:05:55]StoreToDocumentArchive [20:05:55]shift 116 fd 31031 [20:05:55]save to /storage/0116/doc_00031031 [20:05:55]save last doc name /storage/0116/doc_00031031 to /storage/kkm_last_doc_name [20:05:55]save OK [20:05:55]Clear old archive folders... [20:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:55]tlvbuf is 00CC9B60 [20:05:55]SAM_PROTO_ClearQueue [20:05:55]wFMCommunicate request_size=4 [20:05:55]MH_SAM_APDU [20:05:55]CAPDU: 80 09 00 00 [20:05:55]Write to MH i2c: E2 08 00 47 25 80 09 00 00 00 00 00 00 DE [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 47 25 00 90 00 E0 [20:05:55]RAPDU: 90 00 [20:05:55]wFMCommunicate OK [20:05:55]SAM_PROTO_ClearQueue done [20:05:55]KKMCreateOFDPacket [20:05:55]OFDProtocolAddRootSTLVToBuf [20:05:55]FM_MakeSignedData [20:05:55]FM_MakeSignedData [20:05:55]SAM_PROTO_SignData [20:05:55]wFMCommunicate request_size=4 [20:05:55]MH_SAM_APDU [20:05:55]CAPDU: 80 0D 01 02 [20:05:55]Write to MH i2c: E2 08 00 48 25 80 0D 01 02 00 00 00 00 E6 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [20:05:55]RAPDU: 90 00 [20:05:55]wFMCommunicate OK [20:05:55]wFMCommunicate request_size=255 [20:05:55]MH_SAM_APDU [20:05: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A4 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 79 00 00 35 04 06 00 7B [20:05:55]Write to MH i2c: E2 02 01 49 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A4 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 79 00 00 35 04 06 00 7B 00 00 20 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 49 25 00 90 00 E2 [20:05:55]RAPDU: 90 00 [20:05:55]wFMCommunicate OK [20:05:55]wFMCommunicate request_size=10 [20:05:55]MH_SAM_APDU [20:05:55]CAPDU: 80 0D 02 02 05 53 42 F3 6D 59 [20:05:55]Write to MH i2c: E2 0D 00 4A 25 80 0D 02 02 05 00 53 42 F3 6D 59 00 00 41 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 03 00 4A 25 00 90 00 E3 [20:05:55]RAPDU: 90 00 [20:05:55]wFMCommunicate OK [20:05:55]wFMCommunicate request_size=4 [20:05:55]MH_SAM_APDU [20:05:55]CAPDU: 80 0D 03 02 [20:05:55]Write to MH i2c: E2 08 00 4B 25 80 0D 03 02 00 00 00 00 EB [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 0B 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 0B 00 4B 25 00 6E 9C 22 20 8A FC D7 8C 90 00 21 [20:05:55]RAPDU: 6E 9C 22 20 8A FC D7 8C 90 00 [20:05:55]wFMCommunicate OK [20:05:55]SAM_PROTO_SignData done [20:05:55]FM_MakeSignedData done [20:05:55]CreateOFDProtocolMessage [20:05:55]wFMCommunicate request_size=4 [20:05:55]MH_SAM_APDU [20:05:55]CAPDU: 80 11 00 00 [20:05:55]Write to MH i2c: E2 08 00 4C 25 80 11 00 00 00 00 00 00 EB [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:55]Read from MH i2c: E2 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 17 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: E2 17 00 4C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [20:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:05:55]wFMCommunicate OK [20:05:55]CreateOFDProtocolMessage done [20:05:55]OFDSenderStorePacket 31031 [20:05:55]StoreOFDPacket docnum=31031 [20:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 1C 07 01 C8 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A4 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 79 00 00 35 04 06 00 7B 53 42 F3 6D 59 6E 9C 22 20 8A FC D7 8C [20:05:55]CheckFolder [20:05:55]dirname=/storage/ofd_packets [20:05:55]CheckFolder done [20:05:55]ProducePacketName [20:05:55]name=ofd_packets/00031031 [20:05:55]NVStorageSaveData ofd_packets/00031031 [20:05:55]File name is /storage/ofd_packets/00031031 [20:05:55]Write 301 bytes [20:05:55]NVStorageSaveData done [20:05:55]OFDSenderStorePacket done [20:05:55]KKMCreateOFDPacket done [20:05:55]NVStorageSaveData kkm_last_timestamp [20:05:55]File name is /storage/kkm_last_timestamp [20:05:55]Write 4 bytes [20:05:55]NVStorageSaveData done [20:05:55]ExternCall_PrintAddStr [20:05:55]wPrintStart [20:05:55]Write to MH i2c: 01 00 00 4D 25 72 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 07 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 FF 0F 87 [20:05:55]RasterBufferAndPrint [20:05:55]line Счет N : (1)343470 [20:05:55]line ИНН: 02508201610067 [20:05:55]line Контрольно-Кассовый Чек [20:05:55]line ПРОДАЖА [20:05:55]line ТРК (МРК, ГНК) : 42 [20:05:55]line Товар: 2710124500 [20:05:55]line Аи-95-К-3 [20:05:55]line 6.740 * 74.20 [20:05:55]line = 500.11 [20:05:55]line НДС 12% НСП 1% [20:05:55]line > о реализуемом товаре [20:05:55]line ОКРУГЛЕНИЕ: -0.11 [20:05:55]line ИТОГО: 500.00 [20:05:55]line Внесено: 500.00 [20:05:55]line СДАЧА: 0.00 [20:05:55]line НСП 1% : 4.43 [20:05:55]line НДС 12% : 53.11 [20:05:55]line Наличными: 500.00 [20:05:55]line Безнал.: 0.00 [20:05:55]line Место: АЗС № 78 "Партнер Нефть" [20:05:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:05:55]line СНО: Общий режим [20:05:55]line Чек 264 22.10.2024 20:05 [20:05:55]line Смена: 116 ФФД: 1.0 [20:05:55]line ЗНМ: 0300000137 [20:05:55]line РНМ: 0000000000186857 [20:05:55]line Версия ККМ: v1.0 [20:05:55]line ФМ: 0000000002094219 [20:05:55]line ФД: 31031 [20:05:55]line ФПД: 135597535751513 [20:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31031&fm=135597535751513&tin=02508201610067®Number=0000000000186857&sum=50000 [20:05:55]OFD Sender: Processing packet 31031 [packets to send 11, broken 10] [20:05:55]ProducePacketName [20:05:55]name=ofd_packets/00031031 [20:05:55]OFD Sender: To server: pG, [20:05:55]CommunicateWithHost lk.salyk.kg:30040 [20:05:55]ConnectInit lk.salyk.kg [20:05:55]written 0, free lines is 4095 [20:05:56]Connected sock=10 [20:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 1C 07 01 C8 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A4 05 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 79 00 00 35 04 06 00 7B 53 42 F3 6D 59 6E 9C 22 20 8A FC D7 8C [20:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 25 0D 47 00 F9 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 79 00 00 F4 03 04 00 20 B0 17 67 B6 04 01 00 00 D6 49 6F 4E BF 94 4E 27 [20:05:56]CommunicateWithHost err = 0 [20:05:56]CheckOFDResponse [20:05:56]1017 (14) - 77093643461234 [20:05:56]1041 (16) - 0000000002094219 [20:05:56]1040 (4) - 31031 [20:05:56]1012 (4) - 22.10.2024 14:01 [20:05:56]1206 (1) - 0 [20:05:56]OFD Sender: Remove packet 31031 [20:05:56]ProducePacketName [20:05:56]name=ofd_packets/00031031 [20:05:56]NVStorageDeleteData [20:05:56]Write to MH i2c: 01 00 00 78 25 9D [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 07 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 07 00 78 25 00 00 00 00 00 E3 0C 93 [20:05:56]RasterBufferAndPrint [20:05:56]line [20:05:56]line [20:05:56]line [20:05:56]line [20:05:56]line [20:05:56]written 0, free lines is 3305 [20:05:56]MH_Cut [20:05:56]Write to MH i2c: D1 01 00 7F 25 01 76 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: D1 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: D1 01 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: D1 01 00 7F 25 00 75 [20:05:56]Write to MH i2c: 01 00 00 80 25 A5 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]OFD Sender: No OFD packet to send [20:05:57]*** Cut start [20:05:57]*** Partial cut [20:05:57]*** CUTSNS_PIN = 1 [20:05:57]*** CUTSNS_PIN = 0 [20:05:57]*** Brake cut motor [20:05:57]Read from MH i2c: 01 [20:05:57]*** Stop cut motor [20:05:57]*** Cut end [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: 01 07 00 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: 01 07 00 80 25 00 00 00 00 00 FF 0F BA [20:05:57]process_action close_receipt done [20:05:57]requested_data is exist [20:05:57]produce_requested_data [20:05:57]requested_item fm.sn is exist - process it [20:05:57]wFMCommunicate request_size=4 [20:05:57]MH_SAM_APDU [20:05:57]CAPDU: 80 11 00 00 [20:05:57]Write to MH i2c: E2 08 00 81 25 80 11 00 00 00 00 00 00 20 [20:05:57]Write i2c OK [20:05:57]MH_I2C_Read... [20:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:57]Read from MH i2c: E2 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 17 00 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 17 00 81 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [20:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:05:57]wFMCommunicate OK [20:05:57]requested_item fd.num is exist - process it [20:05:57]SAM_PROTO_GetFieldsCounters [20:05:57]wFMCommunicate request_size=4 [20:05:57]MH_SAM_APDU [20:05:57]CAPDU: 80 13 00 00 [20:05:57]Write to MH i2c: E2 08 00 82 25 80 13 00 00 00 00 00 00 23 [20:05:57]Write i2c OK [20:05:57]MH_I2C_Read... [20:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:57]Read from MH i2c: E2 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 62 00 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 62 00 82 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [20:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:57]wFMCommunicate OK [20:05:57]SAM_PROTO_GetFieldsCounters done [20:05:57]requested_item shift.num is exist - process it [20:05:57]requested_item shift.opened is exist - process it [20:05:57]req_shift_opened [20:05:57]FM_GetShiftState [20:05:57]SAM_PROTO_GetShiftState [20:05:57]wFMCommunicate request_size=4 [20:05:57]MH_SAM_APDU [20:05:57]CAPDU: 80 13 01 00 [20:05:57]Write to MH i2c: E2 08 00 83 25 80 13 01 00 00 00 00 00 25 [20:05:57]Write i2c OK [20:05:57]MH_I2C_Read... [20:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:57]Read from MH i2c: E2 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 0E 00 [20:05:57]MH_I2C_Read... [20:05:57]Read from MH i2c: E2 0E 00 83 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FF [20:05:57]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:05:57]wFMCommunicate OK [20:05:57]SAM_PROTO_GetShiftState done [20:05:57]FM_GetShiftState done [20:05:57]req_shift_opened done [20:05:57]requested_item shift.open_date is exist - process it [20:05:57]req_shift_open_date [20:05:57]req_shift_open_date done [20:05:57]produce_requested_data done [20:05:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31031,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:05:57]process_action_free close_receipt [20:05:57]json_value_free [20:05:57]json_value_free done [20:05:57]process_json_proto returns [20:05:57]Send response to host [20:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31031,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:05:57]free response buf [20:05:57]execute_script done [20:05:57]execute_script returns [20:05:57]free content buf [20:05:57]Sock 9.Close socket [20:05:57]Sock 9.Thread stoped [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:45]accept exits with 7 [20:08:45]New connection [20:08:45]New thread 3066899812 created [20:08:45]Thread 3067043172 joined [20:08:45]Waiting for new connection... [20:08:45] Sock 7.Parse request [20:08:45]Sock 7.Check first char [20:08:45]Sock 7.First char is OK [20:08:45]request: POST /json_proto HTTP/1.0 [20:08:45]Method: POST [20:08:45]URL: /json_proto [20:08:45]Method is POST - this is cgi request [20:08:45]url: /json_proto [20:08:45]query_string will be loaded in cgi processing [20:08:45]execute_cgi json_proto POST (null) [20:08:45]execute_cgi path=json_proto method=POST [20:08:45]POST find Content-Length [20:08:45]Host: 172.17.51.3:8080 [20:08:45]Content-Length: 677 [20:08:45]Content-Type: application/json [20:08:45] [20:08:45]POST finish read [20:08:45]Found Content-Length = 677 [20:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:45]execute_script... [20:08: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)343471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:45]POST & json_proto [20:08:45]process_json_proto [20:08:45]json parsed OK: [20:08:45]protocol is kg_v1.0 [20:08:45]action value=close_receipt [20:08:45]process_action close_receipt [20:08:45]cmd_close_receipt [20:08:45]MH_GetDate [20:08:45]Write to MH i2c: F0 00 00 84 25 98 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: F0 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: F0 09 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: F0 09 00 84 25 00 4F 06 18 67 04 C1 95 66 35 [20:08:45]GetLastDocTimeStamp 1729627556 [20:08:45]current date 1729627727 [20:08:45]FM_GetShiftState [20:08:45]SAM_PROTO_GetShiftState [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 13 01 00 [20:08:45]Write to MH i2c: E2 08 00 85 25 80 13 01 00 00 00 00 00 27 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 85 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 01 [20:08:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:08:45]wFMCommunicate OK [20:08:45]SAM_PROTO_GetShiftState done [20:08:45]FM_GetShiftState done [20:08:45]opened in 1729557342 [20:08:45]opened+sec_in_day 1729643742 [20:08:45]quantity*price = 50041 [20:08:45]sum+1 = 50042 [20:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 265 22.10.2024 20:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31032 ФПД: 192837226076418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200847&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31032&fm=192837226076418&tin=02508201610067®Number=0000000000186857&sum=50000 [20:08:46]StoreToDocumentArchive [20:08:46]shift 116 fd 31032 [20:08:46]save to /storage/0116/doc_00031032 [20:08:46]save last doc name /storage/0116/doc_00031032 to /storage/kkm_last_doc_name [20:08:46]save OK [20:08:46]Clear old archive folders... [20:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:46]tlvbuf is B6F6E6A0 [20:08:46]SAM_PROTO_ClearQueue [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 09 00 00 [20:08:46]Write to MH i2c: E2 08 00 92 25 80 09 00 00 00 00 00 00 29 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 92 25 00 90 00 2B [20:08:46]RAPDU: 90 00 [20:08:46]wFMCommunicate OK [20:08:46]SAM_PROTO_ClearQueue done [20:08:46]KKMCreateOFDPacket [20:08:46]OFDProtocolAddRootSTLVToBuf [20:08:46]FM_MakeSignedData [20:08:46]FM_MakeSignedData [20:08:46]SAM_PROTO_SignData [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 0D 01 02 [20:08:46]Write to MH i2c: E2 08 00 93 25 80 0D 01 02 00 00 00 00 31 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 93 25 00 90 00 2C [20:08:46]RAPDU: 90 00 [20:08:46]wFMCommunicate OK [20:08:46]wFMCommunicate request_size=255 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 4F 06 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 79 00 00 35 04 06 00 AF [20:08:46]Write to MH i2c: E2 02 01 94 25 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 4F 06 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 79 00 00 35 04 06 00 AF 00 00 74 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 94 25 00 90 00 2D [20:08:46]RAPDU: 90 00 [20:08:46]wFMCommunicate OK [20:08:46]wFMCommunicate request_size=10 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 0D 02 02 05 62 6A 5C 19 02 [20:08:46]Write to MH i2c: E2 0D 00 95 25 80 0D 02 02 05 00 62 6A 5C 19 02 00 00 81 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 03 00 95 25 00 90 00 2E [20:08:46]RAPDU: 90 00 [20:08:46]wFMCommunicate OK [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 0D 03 02 [20:08:46]Write to MH i2c: E2 08 00 96 25 80 0D 03 02 00 00 00 00 36 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0B 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0B 00 96 25 00 5F 2B BC 47 7B 65 D1 58 90 00 CD [20:08:46]RAPDU: 5F 2B BC 47 7B 65 D1 58 90 00 [20:08:46]wFMCommunicate OK [20:08:46]SAM_PROTO_SignData done [20:08:46]FM_MakeSignedData done [20:08:46]CreateOFDProtocolMessage [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 11 00 00 [20:08:46]Write to MH i2c: E2 08 00 97 25 80 11 00 00 00 00 00 00 36 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 17 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 17 00 97 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [20:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:08:46]wFMCommunicate OK [20:08:46]CreateOFDProtocolMessage done [20:08:46]OFDSenderStorePacket 31032 [20:08:46]StoreOFDPacket docnum=31032 [20:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD D3 07 01 89 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 4F 06 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 79 00 00 35 04 06 00 AF 62 6A 5C 19 02 5F 2B BC 47 7B 65 D1 58 [20:08:46]CheckFolder [20:08:46]dirname=/storage/ofd_packets [20:08:46]CheckFolder done [20:08:46]ProducePacketName [20:08:46]name=ofd_packets/00031032 [20:08:46]NVStorageSaveData ofd_packets/00031032 [20:08:46]File name is /storage/ofd_packets/00031032 [20:08:46]Write 301 bytes [20:08:46]NVStorageSaveData done [20:08:46]OFDSenderStorePacket done [20:08:46]KKMCreateOFDPacket done [20:08:46]NVStorageSaveData kkm_last_timestamp [20:08:46]File name is /storage/kkm_last_timestamp [20:08:46]Write 4 bytes [20:08:46]NVStorageSaveData done [20:08:46]ExternCall_PrintAddStr [20:08:46]wPrintStart [20:08:46]Write to MH i2c: 01 00 00 98 25 BD [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: 01 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: 01 07 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: 01 07 00 98 25 00 00 00 00 00 FF 0F D2 [20:08:46]RasterBufferAndPrint [20:08:46]line Счет N : (1)343471 [20:08:46]line ИНН: 02508201610067 [20:08:46]line Контрольно-Кассовый Чек [20:08:46]line ПРОДАЖА [20:08:46]line ТРК (МРК, ГНК) : 53 [20:08:46]line Товар: 2710124130 [20:08:46]line Аи-92-К-2 [20:08:46]line 7.480 * 66.90 [20:08:46]line = 500.41 [20:08:46]line НДС 12% НСП 1% [20:08:46]line > о реализуемом товаре [20:08:46]line ОКРУГЛЕНИЕ: -0.41 [20:08:46]line ИТОГО: 500.00 [20:08:46]line Внесено: 500.00 [20:08:46]line СДАЧА: 0.00 [20:08:46]line НСП 1% : 4.43 [20:08:46]line НДС 12% : 53.14 [20:08:46]line Наличными: 500.00 [20:08:46]line Безнал.: 0.00 [20:08:46]line Место: АЗС № 78 "Партнер Нефть" [20:08:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:08:46]line СНО: Общий режим [20:08:46]line Чек 265 22.10.2024 20:08 [20:08:46]line Смена: 116 ФФД: 1.0 [20:08:46]line ЗНМ: 0300000137 [20:08:46]line РНМ: 0000000000186857 [20:08:46]line Версия ККМ: v1.0 [20:08:46]line ФМ: 0000000002094219 [20:08:46]line ФД: 31032 [20:08:46]line ФПД: 192837226076418 [20:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200847&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31032&fm=192837226076418&tin=02508201610067®Number=0000000000186857&sum=50000 [20:08:47]OFD Sender: Processing packet 31032 [packets to send 11, broken 10] [20:08:47]ProducePacketName [20:08:47]name=ofd_packets/00031032 [20:08:47]OFD Sender: To server: pG, [20:08:47]CommunicateWithHost lk.salyk.kg:30040 [20:08:47]ConnectInit lk.salyk.kg [20:08:47]written 0, free lines is 4095 [20:08:47]Connected sock=10 [20:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD D3 07 01 89 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 4F 06 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 79 00 00 35 04 06 00 AF 62 6A 5C 19 02 5F 2B BC 47 7B 65 D1 58 [20:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 99 47 00 94 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 32 30 39 34 32 31 39 10 04 04 00 38 79 00 00 F4 03 04 00 CB B0 17 67 B6 04 01 00 00 02 59 1D BE 3F 00 79 05 [20:08:47]CommunicateWithHost err = 0 [20:08:47]CheckOFDResponse [20:08:47]1017 (14) - 77093643461234 [20:08:47]1041 (16) - 0000000002094219 [20:08:47]1040 (4) - 31032 [20:08:47]1012 (4) - 22.10.2024 14:03 [20:08:47]1206 (1) - 0 [20:08:47]OFD Sender: Remove packet 31032 [20:08:47]ProducePacketName [20:08:47]name=ofd_packets/00031032 [20:08:47]NVStorageDeleteData [20:08:47]Write to MH i2c: 01 00 00 C3 25 E8 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 07 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 07 00 C3 25 00 00 00 00 00 E4 0C DF [20:08:47]RasterBufferAndPrint [20:08:47]line [20:08:47]line [20:08:47]line [20:08:47]line [20:08:47]line [20:08:47]written 0, free lines is 3306 [20:08:47]MH_Cut [20:08:47]Write to MH i2c: D1 01 00 CA 25 01 C1 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: D1 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: D1 01 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: D1 01 00 CA 25 00 C0 [20:08:47]Write to MH i2c: 01 00 00 CB 25 F0 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:48]OFD Sender: No OFD packet to send [20:08:48]*** Cut start [20:08:48]*** Partial cut [20:08:48]*** CUTSNS_PIN = 1 [20:08:48]*** CUTSNS_PIN = 0 [20:08:48]*** Brake cut motor [20:08:48]Read from MH i2c: 01 [20:08:48]MH_I2C_Read... [20:08:48]*** Stop cut motor [20:08:48]*** Cut end [20:08:48]Read from MH i2c: 01 07 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 FF 0F 05 [20:08:48]process_action close_receipt done [20:08:48]requested_data is exist [20:08:48]produce_requested_data [20:08:48]requested_item fm.sn is exist - process it [20:08:48]wFMCommunicate request_size=4 [20:08:48]MH_SAM_APDU [20:08:48]CAPDU: 80 11 00 00 [20:08:48]Write to MH i2c: E2 08 00 CC 25 80 11 00 00 00 00 00 00 6B [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:48]Read from MH i2c: E2 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: E2 17 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: E2 17 00 CC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B9 [20:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:08:48]wFMCommunicate OK [20:08:48]requested_item fd.num is exist - process it [20:08:48]SAM_PROTO_GetFieldsCounters [20:08:48]wFMCommunicate request_size=4 [20:08:48]MH_SAM_APDU [20:08:48]CAPDU: 80 13 00 00 [20:08:48]Write to MH i2c: E2 08 00 CD 25 80 13 00 00 00 00 00 00 6E [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 62 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 62 00 CD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [20:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:49]wFMCommunicate OK [20:08:49]SAM_PROTO_GetFieldsCounters done [20:08:49]requested_item shift.num is exist - process it [20:08:49]requested_item shift.opened is exist - process it [20:08:49]req_shift_opened [20:08:49]FM_GetShiftState [20:08:49]SAM_PROTO_GetShiftState [20:08:49]wFMCommunicate request_size=4 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 13 01 00 [20:08:49]Write to MH i2c: E2 08 00 CE 25 80 13 01 00 00 00 00 00 70 [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 0E 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 0E 00 CE 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 4A [20:08:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:08:49]wFMCommunicate OK [20:08:49]SAM_PROTO_GetShiftState done [20:08:49]FM_GetShiftState done [20:08:49]req_shift_opened done [20:08:49]requested_item shift.open_date is exist - process it [20:08:49]req_shift_open_date [20:08:49]req_shift_open_date done [20:08:49]produce_requested_data done [20:08:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31032,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:08:49]process_action_free close_receipt [20:08:49]json_value_free [20:08:49]json_value_free done [20:08:49]process_json_proto returns [20:08:49]Send response to host [20:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31032,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:08:49]free response buf [20:08:49]execute_script done [20:08:49]execute_script returns [20:08:49]free content buf [20:08:49]Sock 7.Close socket [20:08:49]Sock 7.Thread stoped [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]int [20:10:18]Write to MH i2c: 01 00 00 CF 25 F4 [20:10:18]*** FLAG_PRN_PAP1 set [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 CF 25 00 01 00 00 00 FF 0F 0A [20:10:18]state=0 [20:10:18]No paper [20:10:18]int [20:10:18]Write to MH i2c: 01 00 00 D0 25 F5 [20:10:18]*** FLAG_PRN_PAP2 set [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 D0 25 00 03 00 00 00 FF 0F 0D [20:10:18]state=0 [20:10:18]No paper [20:10:18]Cover opened [20:10:18]OFD Sender: No OFD packet to send [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D1 25 F6 [20:10:21]*** FLAG_PRN_PAP2 reset [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D1 25 00 01 00 00 00 FF 0F 0C [20:10:21]state=3 [20:10:21]No paper [20:10:21]Cover closed [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D2 25 F7 [20:10:21]*** FLAG_PRN_PAP2 set [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D2 25 00 03 00 00 00 FF 0F 0F [20:10:21]state=0 [20:10:21]No paper [20:10:21]Cover opened [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D3 25 F8 [20:10:21]*** FLAG_PRN_PAP2 reset [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D3 25 00 01 00 00 00 FF 0F 0E [20:10:21]state=3 [20:10:21]No paper [20:10:21]Cover closed [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D4 25 F9 [20:10:21]*** FLAG_PRN_PAP2 set [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D4 25 00 03 00 00 00 FF 0F 11 [20:10:21]state=0 [20:10:21]No paper [20:10:21]Cover opened [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D5 25 FA [20:10:21]*** FLAG_PRN_PAP2 reset [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D5 25 00 01 00 00 00 FF 0F 10 [20:10:21]state=3 [20:10:21]No paper [20:10:21]Cover closed [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D6 25 FB [20:10:21]*** FLAG_PRN_PAP2 set [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D6 25 00 03 00 00 00 FF 0F 13 [20:10:21]state=0 [20:10:21]No paper [20:10:21]Cover opened [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D7 25 FC [20:10:21]*** FLAG_PRN_PAP2 reset [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D7 25 00 01 00 00 00 FF 0F 12 [20:10:21]state=3 [20:10:21]No paper [20:10:21]Cover closed [20:10:21]int [20:10:21]Write to MH i2c: 01 00 00 D8 25 FD [20:10:21]*** FLAG_PRN_PAP2 set [20:10:21]Write i2c OK [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 [20:10:21]MH_I2C_Read... [20:10:21]Read from MH i2c: 01 07 00 D8 25 00 03 00 00 00 FF 0F 15 [20:10:21]state=0 [20:10:21]No paper [20:10:21]Cover opened [20:10:23]OFD Sender: No OFD packet to send [20:10:26]Write to MH i2c: 01 00 00 D9 25 FE [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 D9 25 00 03 00 00 00 FF 0F 16 [20:10:26]state=3 [20:10:26]No paper [20:10:26]Cover opened [20:10:28]OFD Sender: No OFD packet to send [20:10:31]Write to MH i2c: 01 00 00 DA 25 FF [20:10:31]Write i2c OK [20:10:31]MH_I2C_Read... [20:10:31]Read from MH i2c: 01 [20:10:31]MH_I2C_Read... [20:10:31]Read from MH i2c: 01 07 00 [20:10:31]MH_I2C_Read... [20:10:31]Read from MH i2c: 01 07 00 DA 25 00 03 00 00 00 FF 0F 17 [20:10:31]state=3 [20:10:31]No paper [20:10:31]Cover opened [20:10:33]OFD Sender: No OFD packet to send [20:10:36]Write to MH i2c: 01 00 00 DB 25 00 [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 07 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 07 00 DB 25 00 03 00 00 00 FF 0F 18 [20:10:36]state=3 [20:10:36]No paper [20:10:36]Cover opened [20:10:38]OFD Sender: No OFD packet to send [20:10:39]int [20:10:39]Write to MH i2c: 01 00 00 DC 25 01 [20:10:39]*** FLAG_PRN_PAP1 reset [20:10:39]*** FLAG_PRN_PAP2 reset [20:10:39]Write i2c OK [20:10:39]MH_I2C_Read... [20:10:39]Read from MH i2c: 01 [20:10:39]MH_I2C_Read... [20:10:39]Read from MH i2c: 01 07 00 [20:10:39]MH_I2C_Read... [20:10:39]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 FF 0F 16 [20:10:39]state=3 [20:10:39]Cover closed [20:10:43]OFD Sender: No OFD packet to send [20:10:46]accept exits with 9 [20:10:46]New connection [20:10:46]New thread 3067043172 created [20:10:46]Thread 3066899812 joined [20:10:46]Waiting for new connection... [20:10:46] Sock 9.Parse request [20:10:46]Sock 9.Check first char [20:10:46]Sock 9.First char is OK [20:10:46]request: POST /json_proto HTTP/1.0 [20:10:46]Method: POST [20:10:46]URL: /json_proto [20:10:46]Method is POST - this is cgi request [20:10:46]url: /json_proto [20:10:46]query_string will be loaded in cgi processing [20:10:46]execute_cgi json_proto POST (null) [20:10:46]execute_cgi path=json_proto method=POST [20:10:46]POST find Content-Length [20:10:46]Host: 172.17.51.3:8080 [20:10:46]Content-Length: 215 [20:10:46]Content-Type: application/json [20:10:46] [20:10:46]POST finish read [20:10:46]Found Content-Length = 215 [20:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]execute_script... [20:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]POST & json_proto [20:10:46]process_json_proto [20:10:46]json parsed OK: [20:10:46]protocol is kg_v1.0 [20:10:46]action value=get_value [20:10:46]process_action get_value [20:10:46]cmd_get_value [20:10:46]process_action get_value done [20:10:46]requested_data is exist [20:10:46]produce_requested_data [20:10:46]requested_item kkm.sn is exist - process it [20:10:46]requested_item kkm.ver is exist - process it [20:10:46]requested_item fm.sn is exist - process it [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 11 00 00 [20:10:46]Write to MH i2c: E2 08 00 DD 25 80 11 00 00 00 00 00 00 7C [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 17 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 17 00 DD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [20:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:10:46]wFMCommunicate OK [20:10:46]requested_item fd.num is exist - process it [20:10:46]SAM_PROTO_GetFieldsCounters [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 00 00 [20:10:46]Write to MH i2c: E2 08 00 DE 25 80 13 00 00 00 00 00 00 7F [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 62 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 62 00 DE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [20:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:46]wFMCommunicate OK [20:10:46]SAM_PROTO_GetFieldsCounters done [20:10:46]requested_item shift.num is exist - process it [20:10:46]requested_item shift.opened is exist - process it [20:10:46]req_shift_opened [20:10:46]FM_GetShiftState [20:10:46]SAM_PROTO_GetShiftState [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 01 00 [20:10:46]Write to MH i2c: E2 08 00 DF 25 80 13 01 00 00 00 00 00 81 [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 DF 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 5B [20:10:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:10:46]wFMCommunicate OK [20:10:46]SAM_PROTO_GetShiftState done [20:10:46]FM_GetShiftState done [20:10:46]req_shift_opened done [20:10:46]requested_item shift.open_date is exist - process it [20:10:46]req_shift_open_date [20:10:46]req_shift_open_date done [20:10:46]produce_requested_data done [20:10:46]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31032,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:10:46]process_action_free get_value [20:10:46]json_value_free [20:10:46]json_value_free done [20:10:46]process_json_proto returns [20:10:46]Send response to host [20:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31032,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:10:46]free response buf [20:10:46]execute_script done [20:10:46]execute_script returns [20:10:46]free content buf [20:10:46]Sock 9.Close socket [20:10:46]Sock 9.Thread stoped [20:10:46]accept exits with 7 [20:10:46]New connection [20:10:46]New thread 3066899812 created [20:10:46]Thread 3067043172 joined [20:10:46]Waiting for new connection... [20:10:46] Sock 7.Parse request [20:10:46]Sock 7.Check first char [20:10:46]Sock 7.First char is OK [20:10:46]request: POST /json_proto HTTP/1.0 [20:10:46]Method: POST [20:10:46]URL: /json_proto [20:10:46]Method is POST - this is cgi request [20:10:46]url: /json_proto [20:10:46]query_string will be loaded in cgi processing [20:10:46]execute_cgi json_proto POST (null) [20:10:46]execute_cgi path=json_proto method=POST [20:10:46]POST find Content-Length [20:10:46]Host: 172.17.51.3:8080 [20:10:46]Content-Length: 331 [20:10:46]Content-Type: application/json [20:10:46] [20:10:46]POST finish read [20:10:46]Found Content-Length = 331 [20:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:10:46]execute_script... [20:10:46]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" ] } } [20:10:46]POST & json_proto [20:10:46]process_json_proto [20:10:46]json parsed OK: [20:10:46]protocol is kg_v1.0 [20:10:46]action value=get_value [20:10:46]process_action get_value [20:10:46]cmd_get_value [20:10:46]process_action get_value done [20:10:46]requested_data is exist [20:10:46]produce_requested_data [20:10:46]requested_item fm.sale.total is exist - process it [20:10:46]SAM_PROTO_GetFMData [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 03 00 [20:10:46]Write to MH i2c: E2 08 00 E0 25 80 13 03 00 00 00 00 00 84 [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 E0 25 00 BF 04 85 04 BB 04 6E 04 04 00 50 78 00 00 69 04 A1 00 6F 04 04 00 41 78 00 00 B1 04 04 00 10 20 8E A6 70 04 04 00 28 A2 A0 85 72 04 04 00 E8 7D ED 20 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 28 37 B1 11 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 37 6D 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 96 [20:10:47]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 50 78 00 00 69 04 A1 00 6F 04 04 00 41 78 00 00 B1 04 04 00 10 20 8E A6 70 04 04 00 28 A2 A0 85 72 04 04 00 E8 7D ED 20 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 28 37 B1 11 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 37 6D 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [20:10:47]wFMCommunicate OK [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 17 00 00 [20:10:47]Write to MH i2c: E2 08 00 E1 25 80 17 00 00 00 00 00 00 86 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 E1 25 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [20:10:47]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:10:47]wFMCommunicate OK [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 17 00 00 [20:10:47]Write to MH i2c: E2 08 00 E2 25 80 17 00 00 00 00 00 00 87 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 FD 00 E2 25 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [20:10:47]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 [20:10:47]wFMCommunicate OK [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 17 00 00 [20:10:47]Write to MH i2c: E2 08 00 E3 25 80 17 00 00 00 00 00 00 88 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 FD 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 FD 00 E3 25 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 02 [20:10:48]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 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 17 00 00 [20:10:48]Write to MH i2c: E2 08 00 E4 25 80 17 00 00 00 00 00 00 89 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]OFD Sender: No OFD packet to send [20:10:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 DC 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 DC 00 E4 25 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 6D [20:10:48]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 [20:10:48]wFMCommunicate OK [20:10:48]SAM_PROTO_GetFMData done [20:10:48]requested_item fm.sale_refund.total is exist - process it [20:10:48]requested_item fm.buy.total is exist - process it [20:10:48]requested_item shift.sale.total is exist - process it [20:10:48]SAM_PROTO_GetShiftData [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 13 02 00 [20:10:48]Write to MH i2c: E2 08 00 E5 25 80 13 02 00 00 00 00 00 88 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 FD 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 FD 00 E5 25 00 B1 04 AA 04 AD 04 6E 04 04 00 09 01 00 00 69 04 9E 00 6F 04 04 00 09 01 00 00 B1 04 04 00 65 BF 84 01 70 04 04 00 F8 41 56 01 72 04 03 00 6D 7D 2E 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 5B 4B 29 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 EB 70 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [20:10:48]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 09 01 00 00 69 04 9E 00 6F 04 04 00 09 01 00 00 B1 04 04 00 65 BF 84 01 70 04 04 00 F8 41 56 01 72 04 03 00 6D 7D 2E 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 5B 4B 29 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 EB 70 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 17 00 00 [20:10:48]Write to MH i2c: E2 08 00 E6 25 80 17 00 00 00 00 00 00 8B [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:49]Read from MH i2c: E2 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 E6 25 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [20:10:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:10:49]wFMCommunicate OK [20:10:49]wFMCommunicate request_size=4 [20:10:49]MH_SAM_APDU [20:10:49]CAPDU: 80 17 00 00 [20:10:49]Write to MH i2c: E2 08 00 E7 25 80 17 00 00 00 00 00 00 8C [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:49]Read from MH i2c: E2 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 E7 25 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [20:10:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:10:49]wFMCommunicate OK [20:10:49]wFMCommunicate request_size=4 [20:10:49]MH_SAM_APDU [20:10:49]CAPDU: 80 17 00 00 [20:10:49]Write to MH i2c: E2 08 00 E8 25 80 17 00 00 00 00 00 00 8D [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:10:49]Read from MH i2c: E2 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 FD 00 E8 25 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 90 00 05 [20:10:49]RAPDU: 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 90 00 [20:10:49]wFMCommunicate OK [20:10:49]wFMCommunicate request_size=4 [20:10:49]MH_SAM_APDU [20:10:49]CAPDU: 80 17 00 00 [20:10:49]Write to MH i2c: E2 08 00 E9 25 80 17 00 00 00 00 00 00 8E [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:10:49]Read from MH i2c: E2 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: E2 CE 00 [20:10:49]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 CE 00 E9 25 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [20:10:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:10:50]wFMCommunicate OK [20:10:50]SAM_PROTO_GetShiftData done [20:10:50]requested_item shift.sale.total_cash is exist - process it [20:10:50]requested_item shift.sale_refund.total is exist - process it [20:10:50]requested_item shift.sale_refund.total_cash is exist - process it [20:10:50]requested_item shift.buy.total is exist - process it [20:10:50]requested_item shift.buy.total_cash is exist - process it [20:10:50]produce_requested_data done [20:10:50]produce_requested_data return {"fm.sale.total":27943321.76,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":254769.65,"shift.sale.total_cash":224302.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} [20:10:50]process_action_free get_value [20:10:50]json_value_free [20:10:50]json_value_free done [20:10:50]process_json_proto returns [20:10:50]Send response to host [20:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27943321.76,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":254769.65,"shift.sale.total_cash":224302.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}}} [20:10:50]free response buf [20:10:50]execute_script done [20:10:50]execute_script returns [20:10:50]free content buf [20:10:50]Sock 7.Close socket [20:10:50]Sock 7.Thread stoped [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:47]accept exits with 9 [20:19:47]New connection [20:19:47]New thread 3067043172 created [20:19:47]Thread 3066899812 joined [20:19:47]Waiting for new connection... [20:19:47] Sock 9.Parse request [20:19:47]Sock 9.Check first char [20:19:47]Sock 9.First char is OK [20:19:47]request: POST /json_proto HTTP/1.0 [20:19:47]Method: POST [20:19:47]URL: /json_proto [20:19:47]Method is POST - this is cgi request [20:19:47]url: /json_proto [20:19:47]query_string will be loaded in cgi processing [20:19:47]execute_cgi json_proto POST (null) [20:19:47]execute_cgi path=json_proto method=POST [20:19:47]POST find Content-Length [20:19:47]Host: 172.17.51.3:8080 [20:19:47]Content-Length: 849 [20:19:47]Content-Type: application/json [20:19:47] [20:19:47]POST finish read [20:19:47]Found Content-Length = 849 [20:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3200.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:47]execute_script... [20:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3200.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:47]POST & json_proto [20:19:47]process_json_proto [20:19:47]json parsed OK: [20:19:47]protocol is kg_v1.0 [20:19:47]action value=close_receipt [20:19:47]process_action close_receipt [20:19:47]cmd_close_receipt [20:19:47]MH_GetDate [20:19:47]Write to MH i2c: F0 00 00 EA 25 FE [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: F0 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: F0 09 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: F0 09 00 EA 25 00 E5 08 18 67 04 C1 95 66 33 [20:19:47]GetLastDocTimeStamp 1729627727 [20:19:47]current date 1729628389 [20:19:47]FM_GetShiftState [20:19:47]SAM_PROTO_GetShiftState [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 13 01 00 [20:19:47]Write to MH i2c: E2 08 00 EB 25 80 13 01 00 00 00 00 00 8D [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0E 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0E 00 EB 25 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 67 [20:19:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:19:47]wFMCommunicate OK [20:19:47]SAM_PROTO_GetShiftState done [20:19:47]FM_GetShiftState done [20:19:47]opened in 1729557342 [20:19:47]opened+sec_in_day 1729643742 [20:19:47]quantity*price = 320071 [20:19:47]sum+1 = 320072 [20:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3200.71 НСП 1% : 28.32 НДС 12% : 339.90 Наличными: 0.00 Безнал.: 3200.71 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 266 22.10.2024 20:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31033 ФПД: 35748340951865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201949&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31033&fm=35748340951865&tin=02508201610067®Number=0000000000186857&sum=320071 [20:19:48]StoreToDocumentArchive [20:19:48]shift 116 fd 31033 [20:19:48]save to /storage/0116/doc_00031033 [20:19:48]save last doc name /storage/0116/doc_00031033 to /storage/kkm_last_doc_name [20:19:48]save OK [20:19:48]Clear old archive folders... [20:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:19:48]tlvbuf is 00D60BF0 [20:19:48]SAM_PROTO_ClearQueue [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 09 00 00 [20:19:48]Write to MH i2c: E2 08 00 F8 25 80 09 00 00 00 00 00 00 8F [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [20:19:48]RAPDU: 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_ClearQueue done [20:19:48]KKMCreateOFDPacket [20:19:48]OFDProtocolAddRootSTLVToBuf [20:19:48]FM_MakeSignedData [20:19:48]FM_MakeSignedData [20:19:48]SAM_PROTO_SignData [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 0D 01 02 [20:19:48]Write to MH i2c: E2 08 00 F9 25 80 0D 01 02 00 00 00 00 97 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [20:19:48]RAPDU: 90 00 [20:19:48]wFMCommunicate OK [20:19:48]wFMCommunicate request_size=255 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 E5 08 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 79 00 [20:19:48]Write to MH i2c: E2 02 01 FA 25 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 E5 08 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 79 00 00 00 73 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]OFD Sender: No OFD packet to send [20:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [20:19:48]RAPDU: 90 00 [20:19:48]wFMCommunicate OK [20:19:48]wFMCommunicate request_size=16 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 20 83 4F 29 EB 39 [20:19:48]Write to MH i2c: E2 13 00 FB 25 80 0D 02 02 0B 00 00 35 04 06 00 20 83 4F 29 EB 39 00 00 2E [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [20:19:48]RAPDU: 90 00 [20:19:48]wFMCommunicate OK [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 0D 03 02 [20:19:48]Write to MH i2c: E2 08 00 FC 25 80 0D 03 02 00 00 00 00 9C [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0B 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0B 00 FC 25 00 16 35 26 9D F4 27 9C 8D 90 00 EF [20:19:48]RAPDU: 16 35 26 9D F4 27 9C 8D 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_SignData done [20:19:48]FM_MakeSignedData done [20:19:48]CreateOFDProtocolMessage [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 11 00 00 [20:19:48]Write to MH i2c: E2 08 00 FD 25 80 11 00 00 00 00 00 00 9C [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 FD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [20:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:19:48]wFMCommunicate OK [20:19:48]CreateOFDProtocolMessage done [20:19:48]OFDSenderStorePacket 31033 [20:19:48]StoreOFDPacket docnum=31033 [20:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B5 AA 0D 01 20 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 E5 08 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 79 00 00 35 04 06 00 20 83 4F 29 EB 39 16 35 26 9D F4 27 9C 8D [20:19:48]CheckFolder [20:19:48]dirname=/storage/ofd_packets [20:19:48]CheckFolder done [20:19:48]ProducePacketName [20:19:48]name=ofd_packets/00031033 [20:19:48]NVStorageSaveData ofd_packets/00031033 [20:19:48]File name is /storage/ofd_packets/00031033 [20:19:48]Write 307 bytes [20:19:48]NVStorageSaveData done [20:19:48]OFDSenderStorePacket done [20:19:48]KKMCreateOFDPacket done [20:19:48]NVStorageSaveData kkm_last_timestamp [20:19:48]File name is /storage/kkm_last_timestamp [20:19:48]Write 4 bytes [20:19:48]NVStorageSaveData done [20:19:48]ExternCall_PrintAddStr [20:19:48]wPrintStart [20:19:48]Write to MH i2c: 01 00 00 FE 25 23 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 FE 25 00 00 00 00 00 FF 0F 38 [20:19:48]RasterBufferAndPrint [20:19:48]line Счет N : (1)343472 [20:19:48]line ИНН: 02508201610067 [20:19:48]line Контрольно-Кассовый Чек [20:19:48]line ПРОДАЖА [20:19:48]line ТРК (МРК, ГНК) : 51 [20:19:48]line Товар: 2710194210 [20:19:48]line D-ENERGY Дт-К-2 [20:19:48]line 41.460 * 77.20 [20:19:48]line = 3200.71 [20:19:48]line НДС 12% НСП 1% [20:19:48]line > о реализуемом товаре [20:19:48]line ИТОГО: 3200.71 [20:19:48]line НСП 1% : 28.32 [20:19:48]line НДС 12% : 339.90 [20:19:48]line Наличными: 0.00 [20:19:48]line Безнал.: 3200.71 [20:19:48]line Место: АЗС № 78 "Партнер Нефть" [20:19:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:19:48]line СНО: Общий режим [20:19:48]line Чек 266 22.10.2024 20:19 [20:19:48]line Смена: 116 ФФД: 1.0 [20:19:48]line ЗНМ: 0300000137 [20:19:48]line РНМ: 0000000000186857 [20:19:48]line Версия ККМ: v1.0 [20:19:48]line Платежная система: АКБ Кыргызстан [20:19:48]line ФМ: 0000000002094219 [20:19:48]line ФД: 31033 [20:19:48]line ФПД: 35748340951865 [20:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201949&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31033&fm=35748340951865&tin=02508201610067®Number=0000000000186857&sum=320071 [20:19:49]OFD Sender: Processing packet 31033 [packets to send 11, broken 10] [20:19:49]ProducePacketName [20:19:49]name=ofd_packets/00031033 [20:19:49]OFD Sender: To server: pG, [20:19:49]CommunicateWithHost lk.salyk.kg:30040 [20:19:49]ConnectInit lk.salyk.kg [20:19:49]written 0, free lines is 4095 [20:19:49]Connected sock=10 [20:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B5 AA 0D 01 20 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 E5 08 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 79 00 00 35 04 06 00 20 83 4F 29 EB 39 16 35 26 9D F4 27 9C 8D [20:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8A 49 47 00 D5 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 32 30 39 34 32 31 39 10 04 04 00 39 79 00 00 F4 03 04 00 62 B3 17 67 B6 04 01 00 00 D0 2F C0 DA FE F8 82 F8 [20:19:49]CommunicateWithHost err = 0 [20:19:49]CheckOFDResponse [20:19:49]1017 (14) - 77093643461234 [20:19:49]1041 (16) - 0000000002094219 [20:19:49]1040 (4) - 31033 [20:19:49]1012 (4) - 22.10.2024 14:14 [20:19:49]1206 (1) - 0 [20:19:49]OFD Sender: Remove packet 31033 [20:19:49]ProducePacketName [20:19:49]name=ofd_packets/00031033 [20:19:49]NVStorageDeleteData [20:19:49]Write to MH i2c: 01 00 00 28 26 4E [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: 01 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: 01 07 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: 01 07 00 28 26 00 00 00 00 00 03 0D 65 [20:19:49]RasterBufferAndPrint [20:19:49]line [20:19:49]line [20:19:49]line [20:19:49]line [20:19:49]line [20:19:49]written 0, free lines is 3337 [20:19:49]MH_Cut [20:19:49]Write to MH i2c: D1 01 00 2F 26 01 27 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: D1 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: D1 01 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: D1 01 00 2F 26 00 26 [20:19:49]Write to MH i2c: 01 00 00 30 26 56 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:50]OFD Sender: No OFD packet to send [20:19:50]*** Cut start [20:19:50]*** Partial cut [20:19:50]*** CUTSNS_PIN = 1 [20:19:50]*** CUTSNS_PIN = 0 [20:19:50]*** Brake cut motor [20:19:50]Read from MH i2c: 01 [20:19:50]MH_I2C_Read... [20:19:50]*** Stop cut motor [20:19:50]*** Cut end [20:19:50]Read from MH i2c: 01 07 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: 01 07 00 30 26 00 00 00 00 00 FF 0F 6B [20:19:50]process_action close_receipt done [20:19:50]requested_data is exist [20:19:50]produce_requested_data [20:19:50]requested_item fm.sn is exist - process it [20:19:50]wFMCommunicate request_size=4 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 11 00 00 [20:19:50]Write to MH i2c: E2 08 00 31 26 80 11 00 00 00 00 00 00 D1 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:51]Read from MH i2c: E2 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 17 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 17 00 31 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [20:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:19:51]wFMCommunicate OK [20:19:51]requested_item fd.num is exist - process it [20:19:51]SAM_PROTO_GetFieldsCounters [20:19:51]wFMCommunicate request_size=4 [20:19:51]MH_SAM_APDU [20:19:51]CAPDU: 80 13 00 00 [20:19:51]Write to MH i2c: E2 08 00 32 26 80 13 00 00 00 00 00 00 D4 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:51]Read from MH i2c: E2 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 62 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 62 00 32 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [20:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:51]wFMCommunicate OK [20:19:51]SAM_PROTO_GetFieldsCounters done [20:19:51]requested_item shift.num is exist - process it [20:19:51]requested_item shift.opened is exist - process it [20:19:51]req_shift_opened [20:19:51]FM_GetShiftState [20:19:51]SAM_PROTO_GetShiftState [20:19:51]wFMCommunicate request_size=4 [20:19:51]MH_SAM_APDU [20:19:51]CAPDU: 80 13 01 00 [20:19:51]Write to MH i2c: E2 08 00 33 26 80 13 01 00 00 00 00 00 D6 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:51]Read from MH i2c: E2 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 0E 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 0E 00 33 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B0 [20:19:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:19:51]wFMCommunicate OK [20:19:51]SAM_PROTO_GetShiftState done [20:19:51]FM_GetShiftState done [20:19:51]req_shift_opened done [20:19:51]requested_item shift.open_date is exist - process it [20:19:51]req_shift_open_date [20:19:51]req_shift_open_date done [20:19:51]produce_requested_data done [20:19:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31033,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:19:51]process_action_free close_receipt [20:19:51]json_value_free [20:19:51]json_value_free done [20:19:51]process_json_proto returns [20:19:51]Send response to host [20:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31033,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:19:51]free response buf [20:19:51]execute_script done [20:19:51]execute_script returns [20:19:51]free content buf [20:19:51]Sock 9.Close socket [20:19:51]Sock 9.Thread stoped [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:09]accept exits with 7 [20:23:09]New connection [20:23:09]New thread 3066899812 created [20:23:09]Thread 3067043172 joined [20:23:09]Waiting for new connection... [20:23:09] Sock 7.Parse request [20:23:09]Sock 7.Check first char [20:23:09]Sock 7.First char is OK [20:23:09]request: POST /json_proto HTTP/1.0 [20:23:09]Method: POST [20:23:09]URL: /json_proto [20:23:09]Method is POST - this is cgi request [20:23:09]url: /json_proto [20:23:09]query_string will be loaded in cgi processing [20:23:09]execute_cgi json_proto POST (null) [20:23:09]execute_cgi path=json_proto method=POST [20:23:09]POST find Content-Length [20:23:09]Host: 172.17.51.3:8080 [20:23:09]Content-Length: 840 [20:23:09]Content-Type: application/json [20:23:09] [20:23:09]POST finish read [20:23:09]Found Content-Length = 840 [20:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:09]execute_script... [20:23: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)343473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:09]POST & json_proto [20:23:09]process_json_proto [20:23:09]json parsed OK: [20:23:09]protocol is kg_v1.0 [20:23:09]action value=close_receipt [20:23:09]process_action close_receipt [20:23:09]cmd_close_receipt [20:23:09]MH_GetDate [20:23:09]Write to MH i2c: F0 00 00 34 26 49 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: F0 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: F0 09 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: F0 09 00 34 26 00 AF 09 18 67 04 C1 95 66 49 [20:23:09]GetLastDocTimeStamp 1729628389 [20:23:09]current date 1729628591 [20:23:09]FM_GetShiftState [20:23:09]SAM_PROTO_GetShiftState [20:23:09]wFMCommunicate request_size=4 [20:23:09]MH_SAM_APDU [20:23:09]CAPDU: 80 13 01 00 [20:23:09]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [20:23:09]Write i2c OK [20:23:09]MH_I2C_Read... [20:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:09]Read from MH i2c: E2 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 0E 00 [20:23:09]MH_I2C_Read... [20:23:09]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B2 [20:23:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:23:09]wFMCommunicate OK [20:23:09]SAM_PROTO_GetShiftState done [20:23:09]FM_GetShiftState done [20:23:09]opened in 1729557342 [20:23:09]opened+sec_in_day 1729643742 [20:23:09]quantity*price = 50041 [20:23:09]sum+1 = 50042 [20:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 267 22.10.2024 20:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31034 ФПД: 86429260196706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31034&fm=86429260196706&tin=02508201610067®Number=0000000000186857&sum=50041 [20:23:10]StoreToDocumentArchive [20:23:10]shift 116 fd 31034 [20:23:10]save to /storage/0116/doc_00031034 [20:23:10]save last doc name /storage/0116/doc_00031034 to /storage/kkm_last_doc_name [20:23:10]save OK [20:23:10]Clear old archive folders... [20:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:10]tlvbuf is 00CCDB70 [20:23:10]SAM_PROTO_ClearQueue [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 09 00 00 [20:23:10]Write to MH i2c: E2 08 00 42 26 80 09 00 00 00 00 00 00 DA [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 42 26 00 90 00 DC [20:23:10]RAPDU: 90 00 [20:23:10]wFMCommunicate OK [20:23:10]SAM_PROTO_ClearQueue done [20:23:10]KKMCreateOFDPacket [20:23:10]OFDProtocolAddRootSTLVToBuf [20:23:10]FM_MakeSignedData [20:23:10]FM_MakeSignedData [20:23:10]SAM_PROTO_SignData [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 0D 01 02 [20:23:10]Write to MH i2c: E2 08 00 43 26 80 0D 01 02 00 00 00 00 E2 [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 03 00 43 26 00 90 00 DD [20:23:10]RAPDU: 90 00 [20:23:10]wFMCommunicate OK [20:23:10]wFMCommunicate request_size=255 [20:23:10]MH_SAM_APDU [20:23: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B0 09 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 79 00 00 35 04 06 00 4E [20:23:10]Write to MH i2c: E2 02 01 44 26 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B0 09 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 79 00 00 35 04 06 00 4E 00 00 7E [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=10 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 02 02 05 9B 61 5A 2B 62 [20:23:11]Write to MH i2c: E2 0D 00 45 26 80 0D 02 02 05 00 9B 61 5A 2B 62 00 00 D2 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 03 02 [20:23:11]Write to MH i2c: E2 08 00 46 26 80 0D 03 02 00 00 00 00 E7 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 0B 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 0B 00 46 26 00 37 69 D0 3A 18 06 9A 34 90 00 7E [20:23:11]RAPDU: 37 69 D0 3A 18 06 9A 34 90 00 [20:23:11]wFMCommunicate OK [20:23:11]SAM_PROTO_SignData done [20:23:11]FM_MakeSignedData done [20:23:11]CreateOFDProtocolMessage [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 11 00 00 [20:23:11]Write to MH i2c: E2 08 00 47 26 80 11 00 00 00 00 00 00 E7 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 17 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 17 00 47 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [20:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:23:11]wFMCommunicate OK [20:23:11]CreateOFDProtocolMessage done [20:23:11]OFDSenderStorePacket 31034 [20:23:11]StoreOFDPacket docnum=31034 [20:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F0 E7 07 01 9A 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B0 09 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 79 00 00 35 04 06 00 4E 9B 61 5A 2B 62 37 69 D0 3A 18 06 9A 34 [20:23:11]CheckFolder [20:23:11]dirname=/storage/ofd_packets [20:23:11]CheckFolder done [20:23:11]ProducePacketName [20:23:11]name=ofd_packets/00031034 [20:23:11]NVStorageSaveData ofd_packets/00031034 [20:23:11]File name is /storage/ofd_packets/00031034 [20:23:11]Write 301 bytes [20:23:11]NVStorageSaveData done [20:23:11]OFDSenderStorePacket done [20:23:11]KKMCreateOFDPacket done [20:23:11]NVStorageSaveData kkm_last_timestamp [20:23:11]File name is /storage/kkm_last_timestamp [20:23:11]Write 4 bytes [20:23:11]NVStorageSaveData done [20:23:11]ExternCall_PrintAddStr [20:23:11]wPrintStart [20:23:11]Write to MH i2c: 01 00 00 48 26 6E [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 48 26 00 00 00 00 00 FF 0F 83 [20:23:11]RasterBufferAndPrint [20:23:11]line Счет N : (1)343473 [20:23:11]line ИНН: 02508201610067 [20:23:11]line Контрольно-Кассовый Чек [20:23:11]line ПРОДАЖА [20:23:11]line ТРК (МРК, ГНК) : 53 [20:23:11]line Товар: 2710124130 [20:23:11]line Аи-92-К-2 [20:23:11]line 7.480 * 66.90 [20:23:11]line = 500.41 [20:23:11]line НДС 12% НСП 1% [20:23:11]line > о реализуемом товаре [20:23:11]line ИТОГО: 500.41 [20:23:11]line НСП 1% : 4.43 [20:23:11]line НДС 12% : 53.14 [20:23:11]line Наличными: 0.00 [20:23:11]line Безнал.: 500.41 [20:23:11]line Место: АЗС № 78 "Партнер Нефть" [20:23:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:23:11]line СНО: Общий режим [20:23:11]line Чек 267 22.10.2024 20:23 [20:23:11]line Смена: 116 ФФД: 1.0 [20:23:11]line ЗНМ: 0300000137 [20:23:11]line РНМ: 0000000000186857 [20:23:11]line Версия ККМ: v1.0 [20:23:11]line Платежная система: АКБ Кыргызстан [20:23:11]line ФМ: 0000000002094219 [20:23:11]line ФД: 31034 [20:23:11]line ФПД: 86429260196706 [20:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31034&fm=86429260196706&tin=02508201610067®Number=0000000000186857&sum=50041 [20:23:11]OFD Sender: Processing packet 31034 [packets to send 11, broken 10] [20:23:11]ProducePacketName [20:23:11]name=ofd_packets/00031034 [20:23:11]OFD Sender: To server: pG, [20:23:11]CommunicateWithHost lk.salyk.kg:30040 [20:23:11]ConnectInit lk.salyk.kg [20:23:11]written 0, free lines is 4095 [20:23:11]Connected sock=10 [20:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F0 E7 07 01 9A 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B0 09 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 79 00 00 35 04 06 00 4E 9B 61 5A 2B 62 37 69 D0 3A 18 06 9A 34 [20:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B3 4C 47 00 C9 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 79 00 00 F4 03 04 00 2C B4 17 67 B6 04 01 00 00 66 A8 EB EF 9F 73 E3 3D [20:23:12]CommunicateWithHost err = 0 [20:23:12]CheckOFDResponse [20:23:12]1017 (14) - 77093643461234 [20:23:12]1041 (16) - 0000000002094219 [20:23:12]1040 (4) - 31034 [20:23:12]1012 (4) - 22.10.2024 14:18 [20:23:12]1206 (1) - 0 [20:23:12]OFD Sender: Remove packet 31034 [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00031034 [20:23:12]NVStorageDeleteData [20:23:12]Write to MH i2c: 01 00 00 72 26 98 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 72 26 00 00 00 00 00 F9 0C A4 [20:23:12]RasterBufferAndPrint [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]written 0, free lines is 3327 [20:23:12]MH_Cut [20:23:12]Write to MH i2c: D1 01 00 79 26 01 71 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 01 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 01 00 79 26 00 70 [20:23:12]Write to MH i2c: 01 00 00 7A 26 A0 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]OFD Sender: No OFD packet to send [20:23:12]*** Cut start [20:23:12]*** Partial cut [20:23:12]*** CUTSNS_PIN = 1 [20:23:12]*** CUTSNS_PIN = 0 [20:23:13]*** Brake cut motor [20:23:13]Read from MH i2c: 01 [20:23:13]MH_I2C_Read... [20:23:13]*** Stop cut motor [20:23:13]*** Cut end [20:23:13]Read from MH i2c: 01 07 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 7A 26 00 00 00 00 00 FF 0F B5 [20:23:13]process_action close_receipt done [20:23:13]requested_data is exist [20:23:13]produce_requested_data [20:23:13]requested_item fm.sn is exist - process it [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 11 00 00 [20:23:13]Write to MH i2c: E2 08 00 7B 26 80 11 00 00 00 00 00 00 1B [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 7B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [20:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:23:13]wFMCommunicate OK [20:23:13]requested_item fd.num is exist - process it [20:23:13]SAM_PROTO_GetFieldsCounters [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 13 00 00 [20:23:13]Write to MH i2c: E2 08 00 7C 26 80 13 00 00 00 00 00 00 1E [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 62 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 62 00 7C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [20:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:13]wFMCommunicate OK [20:23:13]SAM_PROTO_GetFieldsCounters done [20:23:13]requested_item shift.num is exist - process it [20:23:13]requested_item shift.opened is exist - process it [20:23:13]req_shift_opened [20:23:13]FM_GetShiftState [20:23:13]SAM_PROTO_GetShiftState [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 13 01 00 [20:23:13]Write to MH i2c: E2 08 00 7D 26 80 13 01 00 00 00 00 00 20 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 0E 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 0E 00 7D 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FA [20:23:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:23:13]wFMCommunicate OK [20:23:13]SAM_PROTO_GetShiftState done [20:23:13]FM_GetShiftState done [20:23:13]req_shift_opened done [20:23:13]requested_item shift.open_date is exist - process it [20:23:13]req_shift_open_date [20:23:13]req_shift_open_date done [20:23:13]produce_requested_data done [20:23:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31034,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:23:13]process_action_free close_receipt [20:23:13]json_value_free [20:23:13]json_value_free done [20:23:13]process_json_proto returns [20:23:13]Send response to host [20:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31034,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:23:13]free response buf [20:23:13]execute_script done [20:23:13]execute_script returns [20:23:13]free content buf [20:23:13]Sock 7.Close socket [20:23:13]Sock 7.Thread stoped [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:36]accept exits with 9 [20:28:36]New connection [20:28:36]New thread 3067043172 created [20:28:36]Thread 3066899812 joined [20:28:36]Waiting for new connection... [20:28:36] Sock 9.Parse request [20:28:36]Sock 9.Check first char [20:28:36]Sock 9.First char is OK [20:28:36]request: POST /json_proto HTTP/1.0 [20:28:36]Method: POST [20:28:36]URL: /json_proto [20:28:36]Method is POST - this is cgi request [20:28:36]url: /json_proto [20:28:36]query_string will be loaded in cgi processing [20:28:36]execute_cgi json_proto POST (null) [20:28:36]execute_cgi path=json_proto method=POST [20:28:36]POST find Content-Length [20:28:36]Host: 172.17.51.3:8080 [20:28:36]Content-Length: 677 [20:28:36]Content-Type: application/json [20:28:36] [20:28:36]POST finish read [20:28:36]Found Content-Length = 677 [20:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "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" ] } } [20:28:36]execute_script... [20:28: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)343474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "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" ] } } [20:28:36]POST & json_proto [20:28:36]process_json_proto [20:28:36]json parsed OK: [20:28:36]protocol is kg_v1.0 [20:28:36]action value=close_receipt [20:28:36]process_action close_receipt [20:28:36]cmd_close_receipt [20:28:36]MH_GetDate [20:28:36]Write to MH i2c: F0 00 00 7E 26 93 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 09 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 09 00 7E 26 00 F6 0A 18 67 04 C1 95 66 DB [20:28:36]GetLastDocTimeStamp 1729628592 [20:28:36]current date 1729628918 [20:28:36]FM_GetShiftState [20:28:36]SAM_PROTO_GetShiftState [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 13 01 00 [20:28:36]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FC [20:28:36]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:28:36]wFMCommunicate OK [20:28:36]SAM_PROTO_GetShiftState done [20:28:36]FM_GetShiftState done [20:28:36]opened in 1729557342 [20:28:36]opened+sec_in_day 1729643742 [20:28:36]quantity*price = 27027 [20:28:36]sum+1 = 27029 [20:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 268 22.10.2024 20:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31035 ФПД: 250283620944739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31035&fm=250283620944739&tin=02508201610067®Number=0000000000186857&sum=27000 [20:28:37]StoreToDocumentArchive [20:28:37]shift 116 fd 31035 [20:28:37]save to /storage/0116/doc_00031035 [20:28:37]save last doc name /storage/0116/doc_00031035 to /storage/kkm_last_doc_name [20:28:37]save OK [20:28:37]Clear old archive folders... [20:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:37]tlvbuf is B6F6B8A0 [20:28:37]SAM_PROTO_ClearQueue [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 09 00 00 [20:28:37]Write to MH i2c: E2 08 00 8C 26 80 09 00 00 00 00 00 00 24 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [20:28:37]RAPDU: 90 00 [20:28:37]wFMCommunicate OK [20:28:37]SAM_PROTO_ClearQueue done [20:28:37]KKMCreateOFDPacket [20:28:37]OFDProtocolAddRootSTLVToBuf [20:28:37]FM_MakeSignedData [20:28:37]FM_MakeSignedData [20:28:37]SAM_PROTO_SignData [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 0D 01 02 [20:28:37]Write to MH i2c: E2 08 00 8D 26 80 0D 01 02 00 00 00 00 2C [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [20:28:37]RAPDU: 90 00 [20:28:37]wFMCommunicate OK [20:28:37]wFMCommunicate request_size=255 [20:28:37]MH_SAM_APDU [20:28: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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 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 36 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 0C 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 79 00 00 35 04 06 00 E3 [20:28:37]Write to MH i2c: E2 02 01 8E 26 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 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 36 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 0C 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 79 00 00 35 04 06 00 E3 00 00 D1 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]OFD Sender: No OFD packet to send [20:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [20:28:37]RAPDU: 90 00 [20:28:37]wFMCommunicate OK [20:28:37]wFMCommunicate request_size=10 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 0D 02 02 05 A1 B2 51 CB 63 [20:28:37]Write to MH i2c: E2 0D 00 8F 26 80 0D 02 02 05 00 A1 B2 51 CB 63 00 00 0B [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [20:28:37]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 03 02 [20:28:38]Write to MH i2c: E2 08 00 90 26 80 0D 03 02 00 00 00 00 31 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 90 26 00 95 CF AA 60 8D FC 94 90 90 00 4D [20:28:38]RAPDU: 95 CF AA 60 8D FC 94 90 90 00 [20:28:38]wFMCommunicate OK [20:28:38]SAM_PROTO_SignData done [20:28:38]FM_MakeSignedData done [20:28:38]CreateOFDProtocolMessage [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 11 00 00 [20:28:38]Write to MH i2c: E2 08 00 91 26 80 11 00 00 00 00 00 00 31 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 91 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [20:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:28:38]wFMCommunicate OK [20:28:38]CreateOFDProtocolMessage done [20:28:38]OFDSenderStorePacket 31035 [20:28:38]StoreOFDPacket docnum=31035 [20:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0B AD 07 01 B9 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 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 36 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 0C 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 79 00 00 35 04 06 00 E3 A1 B2 51 CB 63 95 CF AA 60 8D FC 94 90 [20:28:38]CheckFolder [20:28:38]dirname=/storage/ofd_packets [20:28:38]CheckFolder done [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00031035 [20:28:38]NVStorageSaveData ofd_packets/00031035 [20:28:38]File name is /storage/ofd_packets/00031035 [20:28:38]Write 301 bytes [20:28:38]NVStorageSaveData done [20:28:38]OFDSenderStorePacket done [20:28:38]KKMCreateOFDPacket done [20:28:38]NVStorageSaveData kkm_last_timestamp [20:28:38]File name is /storage/kkm_last_timestamp [20:28:38]Write 4 bytes [20:28:38]NVStorageSaveData done [20:28:38]ExternCall_PrintAddStr [20:28:38]wPrintStart [20:28:38]Write to MH i2c: 01 00 00 92 26 B8 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 92 26 00 00 00 00 00 FF 0F CD [20:28:38]RasterBufferAndPrint [20:28:38]line Счет N : (1)343474 [20:28:38]line ИНН: 02508201610067 [20:28:38]line Контрольно-Кассовый Чек [20:28:38]line ПРОДАЖА [20:28:38]line ТРК (МРК, ГНК) : 63 [20:28:38]line Товар: 2710124130 [20:28:38]line Аи-92-К-2 [20:28:38]line 4.040 * 66.90 [20:28:38]line = 270.28 [20:28:38]line НДС 12% НСП 1% [20:28:38]line > о реализуемом товаре [20:28:38]line ОКРУГЛЕНИЕ: -0.28 [20:28:38]line ИТОГО: 270.00 [20:28:38]line Внесено: 270.00 [20:28:38]line СДАЧА: 0.00 [20:28:38]line НСП 1% : 2.39 [20:28:38]line НДС 12% : 28.70 [20:28:38]line Наличными: 270.00 [20:28:38]line Безнал.: 0.00 [20:28:38]line Место: АЗС № 78 "Партнер Нефть" [20:28:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:28:38]line СНО: Общий режим [20:28:38]line Чек 268 22.10.2024 20:28 [20:28:38]line Смена: 116 ФФД: 1.0 [20:28:38]line ЗНМ: 0300000137 [20:28:38]line РНМ: 0000000000186857 [20:28:38]line Версия ККМ: v1.0 [20:28:38]line ФМ: 0000000002094219 [20:28:38]line ФД: 31035 [20:28:38]line ФПД: 250283620944739 [20:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31035&fm=250283620944739&tin=02508201610067®Number=0000000000186857&sum=27000 [20:28:38]OFD Sender: Processing packet 31035 [packets to send 11, broken 10] [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00031035 [20:28:38]OFD Sender: To server: pG, [20:28:38]CommunicateWithHost lk.salyk.kg:30040 [20:28:38]ConnectInit lk.salyk.kg [20:28:38]written 0, free lines is 4095 [20:28:38]Connected sock=10 [20:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0B AD 07 01 B9 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 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 36 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 0C 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 79 00 00 35 04 06 00 E3 A1 B2 51 CB 63 95 CF AA 60 8D FC 94 90 [20:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D9 98 47 00 30 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 32 30 39 34 32 31 39 10 04 04 00 3B 79 00 00 F4 03 04 00 73 B5 17 67 B6 04 01 00 00 D3 58 48 76 BB F6 E7 B3 [20:28:38]CommunicateWithHost err = 0 [20:28:38]CheckOFDResponse [20:28:38]1017 (14) - 77093643461234 [20:28:38]1041 (16) - 0000000002094219 [20:28:38]1040 (4) - 31035 [20:28:38]1012 (4) - 22.10.2024 14:23 [20:28:38]1206 (1) - 0 [20:28:38]OFD Sender: Remove packet 31035 [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00031035 [20:28:38]NVStorageDeleteData [20:28:38]Write to MH i2c: 01 00 00 BD 26 E3 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 FD 0C F3 [20:28:38]RasterBufferAndPrint [20:28:38]line [20:28:38]line [20:28:38]line [20:28:38]line [20:28:38]line [20:28:38]written 0, free lines is 3332 [20:28:38]MH_Cut [20:28:38]Write to MH i2c: D1 01 00 C4 26 01 BC [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: D1 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: D1 01 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: D1 01 00 C4 26 00 BB [20:28:38]Write to MH i2c: 01 00 00 C5 26 EB [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:39]OFD Sender: No OFD packet to send [20:28:39]*** Cut start [20:28:39]*** Partial cut [20:28:39]*** CUTSNS_PIN = 1 [20:28:39]*** CUTSNS_PIN = 0 [20:28:39]*** Brake cut motor [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]*** Stop cut motor [20:28:40]*** Cut end [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 C5 26 00 00 00 00 00 FF 0F 00 [20:28:40]process_action close_receipt done [20:28:40]requested_data is exist [20:28:40]produce_requested_data [20:28:40]requested_item fm.sn is exist - process it [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 11 00 00 [20:28:40]Write to MH i2c: E2 08 00 C6 26 80 11 00 00 00 00 00 00 66 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 17 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 17 00 C6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [20:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:28:40]wFMCommunicate OK [20:28:40]requested_item fd.num is exist - process it [20:28:40]SAM_PROTO_GetFieldsCounters [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 13 00 00 [20:28:40]Write to MH i2c: E2 08 00 C7 26 80 13 00 00 00 00 00 00 69 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 62 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 62 00 C7 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [20:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_GetFieldsCounters done [20:28:40]requested_item shift.num is exist - process it [20:28:40]requested_item shift.opened is exist - process it [20:28:40]req_shift_opened [20:28:40]FM_GetShiftState [20:28:40]SAM_PROTO_GetShiftState [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 13 01 00 [20:28:40]Write to MH i2c: E2 08 00 C8 26 80 13 01 00 00 00 00 00 6B [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 C8 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 45 [20:28:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_GetShiftState done [20:28:40]FM_GetShiftState done [20:28:40]req_shift_opened done [20:28:40]requested_item shift.open_date is exist - process it [20:28:40]req_shift_open_date [20:28:40]req_shift_open_date done [20:28:40]produce_requested_data done [20:28:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31035,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:28:40]process_action_free close_receipt [20:28:40]json_value_free [20:28:40]json_value_free done [20:28:40]process_json_proto returns [20:28:40]Send response to host [20:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31035,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:28:40]free response buf [20:28:40]execute_script done [20:28:40]execute_script returns [20:28:40]free content buf [20:28:40]Sock 9.Close socket [20:28:40]Sock 9.Thread stoped [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:35]accept exits with 7 [20:29:35]New connection [20:29:35]New thread 3066899812 created [20:29:35]Thread 3067043172 joined [20:29:35]Waiting for new connection... [20:29:35] Sock 7.Parse request [20:29:35]Sock 7.Check first char [20:29:35]Sock 7.First char is OK [20:29:35]request: POST /json_proto HTTP/1.0 [20:29:35]Method: POST [20:29:35]URL: /json_proto [20:29:35]Method is POST - this is cgi request [20:29:35]url: /json_proto [20:29:35]query_string will be loaded in cgi processing [20:29:35]execute_cgi json_proto POST (null) [20:29:35]execute_cgi path=json_proto method=POST [20:29:35]POST find Content-Length [20:29:35]Host: 172.17.51.3:8080 [20:29:35]Content-Length: 843 [20:29:35]Content-Type: application/json [20:29:35] [20:29:35]POST finish read [20:29:35]Found Content-Length = 843 [20:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:35]execute_script... [20:29: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)343475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:35]POST & json_proto [20:29:35]process_json_proto [20:29:35]json parsed OK: [20:29:35]protocol is kg_v1.0 [20:29:35]action value=close_receipt [20:29:35]process_action close_receipt [20:29:35]cmd_close_receipt [20:29:35]MH_GetDate [20:29:35]Write to MH i2c: F0 00 00 C9 26 DE [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: F0 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: F0 09 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: F0 09 00 C9 26 00 32 0B 18 67 04 C1 95 66 63 [20:29:35]GetLastDocTimeStamp 1729628918 [20:29:35]current date 1729628978 [20:29:35]FM_GetShiftState [20:29:35]SAM_PROTO_GetShiftState [20:29:35]wFMCommunicate request_size=4 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 13 01 00 [20:29:35]Write to MH i2c: E2 08 00 CA 26 80 13 01 00 00 00 00 00 6D [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 0E 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 0E 00 CA 26 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 47 [20:29:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:29:35]wFMCommunicate OK [20:29:35]SAM_PROTO_GetShiftState done [20:29:35]FM_GetShiftState done [20:29:35]opened in 1729557342 [20:29:35]opened+sec_in_day 1729643742 [20:29:35]quantity*price = 200043 [20:29:35]sum+1 = 200044 [20:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 269 22.10.2024 20:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31036 ФПД: 112746416440193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31036&fm=112746416440193&tin=02508201610067®Number=0000000000186857&sum=200043 [20:29:36]StoreToDocumentArchive [20:29:36]shift 116 fd 31036 [20:29:36]save to /storage/0116/doc_00031036 [20:29:36]save last doc name /storage/0116/doc_00031036 to /storage/kkm_last_doc_name [20:29:36]save OK [20:29:36]Clear old archive folders... [20:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:36]tlvbuf is 00CDAC20 [20:29:36]SAM_PROTO_ClearQueue [20:29:36]wFMCommunicate request_size=4 [20:29:36]MH_SAM_APDU [20:29:36]CAPDU: 80 09 00 00 [20:29:36]Write to MH i2c: E2 08 00 D7 26 80 09 00 00 00 00 00 00 6F [20:29:36]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 D7 26 00 90 00 71 [20:29:37]RAPDU: 90 00 [20:29:37]wFMCommunicate OK [20:29:37]SAM_PROTO_ClearQueue done [20:29:37]KKMCreateOFDPacket [20:29:37]OFDProtocolAddRootSTLVToBuf [20:29:37]FM_MakeSignedData [20:29:37]FM_MakeSignedData [20:29:37]SAM_PROTO_SignData [20:29:37]wFMCommunicate request_size=4 [20:29:37]MH_SAM_APDU [20:29:37]CAPDU: 80 0D 01 02 [20:29:37]Write to MH i2c: E2 08 00 D8 26 80 0D 01 02 00 00 00 00 77 [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [20:29:37]RAPDU: 90 00 [20:29:37]wFMCommunicate OK [20:29:37]wFMCommunicate request_size=255 [20:29:37]MH_SAM_APDU [20:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 32 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 79 00 00 35 04 06 00 66 [20:29:37]Write to MH i2c: E2 02 01 D9 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 32 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 79 00 00 35 04 06 00 66 00 00 60 [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [20:29:37]RAPDU: 90 00 [20:29:37]wFMCommunicate OK [20:29:37]wFMCommunicate request_size=10 [20:29:37]MH_SAM_APDU [20:29:37]CAPDU: 80 0D 02 02 05 8A D2 1A 03 81 [20:29:37]Write to MH i2c: E2 0D 00 DA 26 80 0D 02 02 05 00 8A D2 1A 03 81 00 00 7E [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [20:29:37]RAPDU: 90 00 [20:29:37]wFMCommunicate OK [20:29:37]wFMCommunicate request_size=4 [20:29:37]MH_SAM_APDU [20:29:37]CAPDU: 80 0D 03 02 [20:29:37]Write to MH i2c: E2 08 00 DB 26 80 0D 03 02 00 00 00 00 7C [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 0B 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 0B 00 DB 26 00 27 3A 8B D4 5B 53 11 35 90 00 31 [20:29:37]RAPDU: 27 3A 8B D4 5B 53 11 35 90 00 [20:29:37]wFMCommunicate OK [20:29:37]SAM_PROTO_SignData done [20:29:37]FM_MakeSignedData done [20:29:37]CreateOFDProtocolMessage [20:29:37]wFMCommunicate request_size=4 [20:29:37]MH_SAM_APDU [20:29:37]CAPDU: 80 11 00 00 [20:29:37]Write to MH i2c: E2 08 00 DC 26 80 11 00 00 00 00 00 00 7C [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 17 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 17 00 DC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [20:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:29:37]wFMCommunicate OK [20:29:37]CreateOFDProtocolMessage done [20:29:37]OFDSenderStorePacket 31036 [20:29:37]StoreOFDPacket docnum=31036 [20:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 0C 07 01 B3 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 32 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 79 00 00 35 04 06 00 66 8A D2 1A 03 81 27 3A 8B D4 5B 53 11 35 [20:29:37]CheckFolder [20:29:37]dirname=/storage/ofd_packets [20:29:37]CheckFolder done [20:29:37]ProducePacketName [20:29:37]name=ofd_packets/00031036 [20:29:37]NVStorageSaveData ofd_packets/00031036 [20:29:37]File name is /storage/ofd_packets/00031036 [20:29:37]Write 301 bytes [20:29:37]NVStorageSaveData done [20:29:37]OFDSenderStorePacket done [20:29:37]KKMCreateOFDPacket done [20:29:37]NVStorageSaveData kkm_last_timestamp [20:29:37]File name is /storage/kkm_last_timestamp [20:29:37]Write 4 bytes [20:29:37]NVStorageSaveData done [20:29:37]ExternCall_PrintAddStr [20:29:37]wPrintStart [20:29:37]Write to MH i2c: 01 00 00 DD 26 03 [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: 01 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: 01 07 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: 01 07 00 DD 26 00 00 00 00 00 FF 0F 18 [20:29:37]RasterBufferAndPrint [20:29:37]line Счет N : (1)343475 [20:29:37]line ИНН: 02508201610067 [20:29:37]line Контрольно-Кассовый Чек [20:29:37]line ПРОДАЖА [20:29:37]line ТРК (МРК, ГНК) : 52 [20:29:37]line Товар: 2710124500 [20:29:37]line Аи-95-К-3 [20:29:37]line 26.960 * 74.20 [20:29:37]line = 2000.43 [20:29:37]line НДС 12% НСП 1% [20:29:37]line > о реализуемом товаре [20:29:37]line ИТОГО: 2000.43 [20:29:37]line НСП 1% : 17.70 [20:29:37]line НДС 12% : 212.43 [20:29:37]line Наличными: 0.00 [20:29:37]line Безнал.: 2000.43 [20:29:37]line Место: АЗС № 78 "Партнер Нефть" [20:29:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:29:37]line СНО: Общий режим [20:29:37]line Чек 269 22.10.2024 20:29 [20:29:37]line Смена: 116 ФФД: 1.0 [20:29:37]line ЗНМ: 0300000137 [20:29:37]line РНМ: 0000000000186857 [20:29:37]line Версия ККМ: v1.0 [20:29:37]line Платежная система: АКБ Кыргызстан [20:29:37]line ФМ: 0000000002094219 [20:29:37]line ФД: 31036 [20:29:37]line ФПД: 112746416440193 [20:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31036&fm=112746416440193&tin=02508201610067®Number=0000000000186857&sum=200043 [20:29:37]OFD Sender: Processing packet 31036 [packets to send 11, broken 10] [20:29:37]ProducePacketName [20:29:37]name=ofd_packets/00031036 [20:29:37]OFD Sender: To server: pG, [20:29:37]CommunicateWithHost lk.salyk.kg:30040 [20:29:37]ConnectInit lk.salyk.kg [20:29:37]written 0, free lines is 4095 [20:29:38]Connected sock=10 [20:29:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 0C 07 01 B3 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 32 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 79 00 00 35 04 06 00 66 8A D2 1A 03 81 27 3A 8B D4 5B 53 11 35 [20:29:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A5 B1 47 00 87 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 79 00 00 F4 03 04 00 AE B5 17 67 B6 04 01 00 00 E7 C2 1B 89 08 9F D5 9A [20:29:38]CommunicateWithHost err = 0 [20:29:38]CheckOFDResponse [20:29:38]1017 (14) - 77093643461234 [20:29:38]1041 (16) - 0000000002094219 [20:29:38]1040 (4) - 31036 [20:29:38]1012 (4) - 22.10.2024 14:24 [20:29:38]1206 (1) - 0 [20:29:38]OFD Sender: Remove packet 31036 [20:29:38]ProducePacketName [20:29:38]name=ofd_packets/00031036 [20:29:38]NVStorageDeleteData [20:29:38]Write to MH i2c: 01 00 00 07 27 2E [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 07 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 07 00 07 27 00 00 00 00 00 0D 0D 4F [20:29:38]RasterBufferAndPrint [20:29:38]line [20:29:38]line [20:29:38]line [20:29:38]line [20:29:38]line [20:29:38]written 0, free lines is 3348 [20:29:38]MH_Cut [20:29:38]Write to MH i2c: D1 01 00 0E 27 01 07 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: D1 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: D1 01 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: D1 01 00 0E 27 00 06 [20:29:38]Write to MH i2c: 01 00 00 0F 27 36 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]OFD Sender: No OFD packet to send [20:29:38]*** Cut start [20:29:38]*** Partial cut [20:29:38]*** CUTSNS_PIN = 1 [20:29:39]*** CUTSNS_PIN = 0 [20:29:39]*** Brake cut motor [20:29:39]Read from MH i2c: 01 [20:29:39]MH_I2C_Read... [20:29:39]*** Stop cut motor [20:29:39]*** Cut end [20:29:39]Read from MH i2c: 01 07 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: 01 07 00 0F 27 00 00 00 00 00 FF 0F 4B [20:29:39]process_action close_receipt done [20:29:39]requested_data is exist [20:29:39]produce_requested_data [20:29:39]requested_item fm.sn is exist - process it [20:29:39]wFMCommunicate request_size=4 [20:29:39]MH_SAM_APDU [20:29:39]CAPDU: 80 11 00 00 [20:29:39]Write to MH i2c: E2 08 00 10 27 80 11 00 00 00 00 00 00 B1 [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:39]Read from MH i2c: E2 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 17 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 17 00 10 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [20:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:29:39]wFMCommunicate OK [20:29:39]requested_item fd.num is exist - process it [20:29:39]SAM_PROTO_GetFieldsCounters [20:29:39]wFMCommunicate request_size=4 [20:29:39]MH_SAM_APDU [20:29:39]CAPDU: 80 13 00 00 [20:29:39]Write to MH i2c: E2 08 00 11 27 80 13 00 00 00 00 00 00 B4 [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:39]Read from MH i2c: E2 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 62 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 62 00 11 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [20:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:39]wFMCommunicate OK [20:29:39]SAM_PROTO_GetFieldsCounters done [20:29:39]requested_item shift.num is exist - process it [20:29:39]requested_item shift.opened is exist - process it [20:29:39]req_shift_opened [20:29:39]FM_GetShiftState [20:29:39]SAM_PROTO_GetShiftState [20:29:39]wFMCommunicate request_size=4 [20:29:39]MH_SAM_APDU [20:29:39]CAPDU: 80 13 01 00 [20:29:39]Write to MH i2c: E2 08 00 12 27 80 13 01 00 00 00 00 00 B6 [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:39]Read from MH i2c: E2 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 0E 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 0E 00 12 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 90 [20:29:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:29:39]wFMCommunicate OK [20:29:39]SAM_PROTO_GetShiftState done [20:29:39]FM_GetShiftState done [20:29:39]req_shift_opened done [20:29:39]requested_item shift.open_date is exist - process it [20:29:39]req_shift_open_date [20:29:39]req_shift_open_date done [20:29:39]produce_requested_data done [20:29:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31036,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:29:39]process_action_free close_receipt [20:29:39]json_value_free [20:29:39]json_value_free done [20:29:39]process_json_proto returns [20:29:39]Send response to host [20:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31036,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:29:39]free response buf [20:29:39]execute_script done [20:29:39]execute_script returns [20:29:39]free content buf [20:29:39]Sock 7.Close socket [20:29:39]Sock 7.Thread stoped [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:24]accept exits with 9 [20:30:24]New connection [20:30:24]New thread 3067043172 created [20:30:24]Thread 3066899812 joined [20:30:24]Waiting for new connection... [20:30:24] Sock 9.Parse request [20:30:24]Sock 9.Check first char [20:30:24]Sock 9.First char is OK [20:30:24]request: POST /json_proto HTTP/1.0 [20:30:24]Method: POST [20:30:24]URL: /json_proto [20:30:24]Method is POST - this is cgi request [20:30:24]url: /json_proto [20:30:24]query_string will be loaded in cgi processing [20:30:24]execute_cgi json_proto POST (null) [20:30:24]execute_cgi path=json_proto method=POST [20:30:24]POST find Content-Length [20:30:24]Host: 172.17.51.3:8080 [20:30:24]Content-Length: 679 [20:30:24]Content-Type: application/json [20:30:24] [20:30:24]POST finish read [20:30:24]Found Content-Length = 679 [20:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:24]execute_script... [20:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:24]POST & json_proto [20:30:24]process_json_proto [20:30:24]json parsed OK: [20:30:24]protocol is kg_v1.0 [20:30:24]action value=close_receipt [20:30:24]process_action close_receipt [20:30:24]cmd_close_receipt [20:30:24]MH_GetDate [20:30:24]Write to MH i2c: F0 00 00 13 27 29 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: F0 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: F0 09 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: F0 09 00 13 27 00 63 0B 18 67 04 C1 95 66 DF [20:30:24]GetLastDocTimeStamp 1729628978 [20:30:24]current date 1729629027 [20:30:24]FM_GetShiftState [20:30:24]SAM_PROTO_GetShiftState [20:30:24]wFMCommunicate request_size=4 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 13 01 00 [20:30:24]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:25]Read from MH i2c: E2 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: E2 0E 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 92 [20:30:25]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:30:25]wFMCommunicate OK [20:30:25]SAM_PROTO_GetShiftState done [20:30:25]FM_GetShiftState done [20:30:25]opened in 1729557342 [20:30:25]opened+sec_in_day 1729643742 [20:30:25]quantity*price = 100050 [20:30:25]sum+1 = 100052 [20:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 270 22.10.2024 20:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31037 ФПД: 258742689205668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203027&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31037&fm=258742689205668&tin=02508201610067®Number=0000000000186857&sum=100000 [20:30:26]StoreToDocumentArchive [20:30:26]shift 116 fd 31037 [20:30:26]save to /storage/0116/doc_00031037 [20:30:26]save last doc name /storage/0116/doc_00031037 to /storage/kkm_last_doc_name [20:30:26]save OK [20:30:26]Clear old archive folders... [20:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:30:26]tlvbuf is 00CD47D0 [20:30:26]SAM_PROTO_ClearQueue [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 09 00 00 [20:30:26]Write to MH i2c: E2 08 00 21 27 80 09 00 00 00 00 00 00 BA [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 21 27 00 90 00 BC [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]SAM_PROTO_ClearQueue done [20:30:26]KKMCreateOFDPacket [20:30:26]OFDProtocolAddRootSTLVToBuf [20:30:26]FM_MakeSignedData [20:30:26]FM_MakeSignedData [20:30:26]SAM_PROTO_SignData [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 01 02 [20:30:26]Write to MH i2c: E2 08 00 22 27 80 0D 01 02 00 00 00 00 C2 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 22 27 00 90 00 BD [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=255 [20:30:26]MH_SAM_APDU [20:30: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 63 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 79 00 00 35 04 06 00 EB 53 3A 14 [20:30:26]Write to MH i2c: E2 02 01 23 27 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 63 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 79 00 00 35 04 06 00 EB 53 3A 14 00 00 FB [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=7 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 02 02 02 0D A4 [20:30:26]Write to MH i2c: E2 0A 00 24 27 80 0D 02 02 02 00 0D A4 00 00 7A [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 03 02 [20:30:26]Write to MH i2c: E2 08 00 25 27 80 0D 03 02 00 00 00 00 C7 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0B 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0B 00 25 27 00 FE F0 35 0A 51 77 CB 8E 90 00 16 [20:30:26]RAPDU: FE F0 35 0A 51 77 CB 8E 90 00 [20:30:26]wFMCommunicate OK [20:30:26]SAM_PROTO_SignData done [20:30:26]FM_MakeSignedData done [20:30:26]CreateOFDProtocolMessage [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 11 00 00 [20:30:26]Write to MH i2c: E2 08 00 26 27 80 11 00 00 00 00 00 00 C7 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 17 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 17 00 26 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [20:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:30:26]wFMCommunicate OK [20:30:26]CreateOFDProtocolMessage done [20:30:26]OFDSenderStorePacket 31037 [20:30:26]StoreOFDPacket docnum=31037 [20:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 BE 04 01 53 CE 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 63 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 79 00 00 35 04 06 00 EB 53 3A 14 0D A4 FE F0 35 0A 51 77 CB 8E [20:30:26]CheckFolder [20:30:26]dirname=/storage/ofd_packets [20:30:26]CheckFolder done [20:30:26]ProducePacketName [20:30:26]name=ofd_packets/00031037 [20:30:26]NVStorageSaveData ofd_packets/00031037 [20:30:26]File name is /storage/ofd_packets/00031037 [20:30:26]Write 298 bytes [20:30:26]NVStorageSaveData done [20:30:26]OFDSenderStorePacket done [20:30:26]KKMCreateOFDPacket done [20:30:26]NVStorageSaveData kkm_last_timestamp [20:30:26]File name is /storage/kkm_last_timestamp [20:30:26]Write 4 bytes [20:30:26]NVStorageSaveData done [20:30:26]ExternCall_PrintAddStr [20:30:26]wPrintStart [20:30:26]Write to MH i2c: 01 00 00 27 27 4E [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 FF 0F 63 [20:30:26]RasterBufferAndPrint [20:30:26]line Счет N : (1)343476 [20:30:26]line ИНН: 02508201610067 [20:30:26]line Контрольно-Кассовый Чек [20:30:26]line ПРОДАЖА [20:30:26]line ТРК (МРК, ГНК) : 44 [20:30:26]line Товар: 2710194210 [20:30:26]line ДТ-К-2 [20:30:26]line 13.130 * 76.20 [20:30:26]line = 1000.51 [20:30:26]line НДС 12% НСП 1% [20:30:26]line > о реализуемом товаре [20:30:26]line ОКРУГЛЕНИЕ: -0.51 [20:30:26]line ИТОГО: 1000.00 [20:30:26]line Внесено: 1000.00 [20:30:26]line СДАЧА: 0.00 [20:30:26]line НСП 1% : 8.85 [20:30:26]line НДС 12% : 106.25 [20:30:26]line Наличными: 1000.00 [20:30:26]line Безнал.: 0.00 [20:30:26]line Место: АЗС № 78 "Партнер Нефть" [20:30:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:30:26]line СНО: Общий режим [20:30:26]line Чек 270 22.10.2024 20:30 [20:30:26]line Смена: 116 ФФД: 1.0 [20:30:26]line ЗНМ: 0300000137 [20:30:26]line РНМ: 0000000000186857 [20:30:26]line Версия ККМ: v1.0 [20:30:26]line ФМ: 0000000002094219 [20:30:26]line ФД: 31037 [20:30:26]line ФПД: 258742689205668 [20:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203027&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31037&fm=258742689205668&tin=02508201610067®Number=0000000000186857&sum=100000 [20:30:26]OFD Sender: Processing packet 31037 [packets to send 11, broken 10] [20:30:26]ProducePacketName [20:30:26]name=ofd_packets/00031037 [20:30:26]OFD Sender: To server: pG, [20:30:26]CommunicateWithHost lk.salyk.kg:30040 [20:30:26]ConnectInit lk.salyk.kg [20:30:26]written 0, free lines is 4095 [20:30:27]Connected sock=10 [20:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 BE 04 01 53 CE 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 63 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 79 00 00 35 04 06 00 EB 53 3A 14 0D A4 FE F0 35 0A 51 77 CB 8E [20:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 68 A1 47 00 6C 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 79 00 00 F4 03 04 00 DF B5 17 67 B6 04 01 00 00 8B 0B 1F CC B0 FC 0A 10 [20:30:27]CommunicateWithHost err = 0 [20:30:27]CheckOFDResponse [20:30:27]1017 (14) - 77093643461234 [20:30:27]1041 (16) - 0000000002094219 [20:30:27]1040 (4) - 31037 [20:30:27]1012 (4) - 22.10.2024 14:25 [20:30:27]1206 (1) - 0 [20:30:27]OFD Sender: Remove packet 31037 [20:30:27]ProducePacketName [20:30:27]name=ofd_packets/00031037 [20:30:27]NVStorageDeleteData [20:30:27]Write to MH i2c: 01 00 00 52 27 79 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 07 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 07 00 52 27 00 00 00 00 00 F4 0C 80 [20:30:27]RasterBufferAndPrint [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]written 0, free lines is 3322 [20:30:27]MH_Cut [20:30:27]Write to MH i2c: D1 01 00 59 27 01 52 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 01 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 01 00 59 27 00 51 [20:30:27]Write to MH i2c: 01 00 00 5A 27 81 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]OFD Sender: No OFD packet to send [20:30:28]*** Cut start [20:30:28]*** Partial cut [20:30:28]*** CUTSNS_PIN = 1 [20:30:28]*** CUTSNS_PIN = 0 [20:30:28]*** Brake cut motor [20:30:28]Read from MH i2c: 01 [20:30:28]MH_I2C_Read... [20:30:28]*** Stop cut motor [20:30:28]*** Cut end [20:30:28]Read from MH i2c: 01 07 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: 01 07 00 5A 27 00 00 00 00 00 FF 0F 96 [20:30:28]process_action close_receipt done [20:30:28]requested_data is exist [20:30:28]produce_requested_data [20:30:28]requested_item fm.sn is exist - process it [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 11 00 00 [20:30:28]Write to MH i2c: E2 08 00 5B 27 80 11 00 00 00 00 00 00 FC [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 17 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 17 00 5B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [20:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:30:28]wFMCommunicate OK [20:30:28]requested_item fd.num is exist - process it [20:30:28]SAM_PROTO_GetFieldsCounters [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 13 00 00 [20:30:28]Write to MH i2c: E2 08 00 5C 27 80 13 00 00 00 00 00 00 FF [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 62 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 62 00 5C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [20:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:28]wFMCommunicate OK [20:30:28]SAM_PROTO_GetFieldsCounters done [20:30:28]requested_item shift.num is exist - process it [20:30:28]requested_item shift.opened is exist - process it [20:30:28]req_shift_opened [20:30:28]FM_GetShiftState [20:30:28]SAM_PROTO_GetShiftState [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 13 01 00 [20:30:28]Write to MH i2c: E2 08 00 5D 27 80 13 01 00 00 00 00 00 01 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 0E 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 0E 00 5D 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DB [20:30:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:30:28]wFMCommunicate OK [20:30:28]SAM_PROTO_GetShiftState done [20:30:28]FM_GetShiftState done [20:30:28]req_shift_opened done [20:30:28]requested_item shift.open_date is exist - process it [20:30:28]req_shift_open_date [20:30:28]req_shift_open_date done [20:30:28]produce_requested_data done [20:30:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31037,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:30:28]process_action_free close_receipt [20:30:28]json_value_free [20:30:28]json_value_free done [20:30:28]process_json_proto returns [20:30:28]Send response to host [20:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31037,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:30:28]free response buf [20:30:28]execute_script done [20:30:28]execute_script returns [20:30:28]free content buf [20:30:28]Sock 9.Close socket [20:30:28]Sock 9.Thread stoped [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:15]accept exits with 7 [20:32:15]New connection [20:32:15]New thread 3066899812 created [20:32:15]Thread 3067043172 joined [20:32:15]Waiting for new connection... [20:32:15] Sock 7.Parse request [20:32:15]Sock 7.Check first char [20:32:15]Sock 7.First char is OK [20:32:15]request: POST /json_proto HTTP/1.0 [20:32:15]Method: POST [20:32:15]URL: /json_proto [20:32:15]Method is POST - this is cgi request [20:32:15]url: /json_proto [20:32:15]query_string will be loaded in cgi processing [20:32:15]execute_cgi json_proto POST (null) [20:32:15]execute_cgi path=json_proto method=POST [20:32:15]POST find Content-Length [20:32:15]Host: 172.17.51.3:8080 [20:32:15]Content-Length: 677 [20:32:15]Content-Type: application/json [20:32:15] [20:32:15]POST finish read [20:32:15]Found Content-Length = 677 [20:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:15]execute_script... [20:32: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)343477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:15]POST & json_proto [20:32:15]process_json_proto [20:32:15]json parsed OK: [20:32:15]protocol is kg_v1.0 [20:32:15]action value=close_receipt [20:32:15]process_action close_receipt [20:32:15]cmd_close_receipt [20:32:15]MH_GetDate [20:32:15]Write to MH i2c: F0 00 00 5E 27 74 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 5E 27 00 D1 0B 18 67 04 C1 95 66 98 [20:32:15]GetLastDocTimeStamp 1729629027 [20:32:15]current date 1729629137 [20:32:15]FM_GetShiftState [20:32:15]SAM_PROTO_GetShiftState [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 13 01 00 [20:32:15]Write to MH i2c: E2 08 00 5F 27 80 13 01 00 00 00 00 00 03 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 5F 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DD [20:32:15]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_GetShiftState done [20:32:15]FM_GetShiftState done [20:32:15]opened in 1729557342 [20:32:15]opened+sec_in_day 1729643742 [20:32:15]quantity*price = 16056 [20:32:15]sum+1 = 16057 [20:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 271 22.10.2024 20:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31038 ФПД: 198184831229766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203218&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31038&fm=198184831229766&tin=02508201610067®Number=0000000000186857&sum=16000 [20:32:16]StoreToDocumentArchive [20:32:16]shift 116 fd 31038 [20:32:16]save to /storage/0116/doc_00031038 [20:32:16]save last doc name /storage/0116/doc_00031038 to /storage/kkm_last_doc_name [20:32:16]save OK [20:32:16]Clear old archive folders... [20:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:16]tlvbuf is 00D54FE0 [20:32:16]SAM_PROTO_ClearQueue [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 09 00 00 [20:32:16]Write to MH i2c: E2 08 00 6C 27 80 09 00 00 00 00 00 00 05 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 6C 27 00 90 00 07 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]SAM_PROTO_ClearQueue done [20:32:16]KKMCreateOFDPacket [20:32:16]OFDProtocolAddRootSTLVToBuf [20:32:16]FM_MakeSignedData [20:32:16]FM_MakeSignedData [20:32:16]SAM_PROTO_SignData [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 01 02 [20:32:16]Write to MH i2c: E2 08 00 6D 27 80 0D 01 02 00 00 00 00 0D [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 6D 27 00 90 00 08 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=255 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D2 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 79 00 00 35 04 06 00 B4 [20:32:16]Write to MH i2c: E2 02 01 6E 27 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 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D2 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 79 00 00 35 04 06 00 B4 00 00 B8 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [20:32:17]RAPDU: 90 00 [20:32:17]wFMCommunicate OK [20:32:17]wFMCommunicate request_size=10 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 0D 02 02 05 3F 80 77 1F 46 [20:32:17]Write to MH i2c: E2 0D 00 6F 27 80 0D 02 02 05 00 3F 80 77 1F 46 00 00 B5 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [20:32:17]RAPDU: 90 00 [20:32:17]wFMCommunicate OK [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 0D 03 02 [20:32:17]Write to MH i2c: E2 08 00 70 27 80 0D 03 02 00 00 00 00 12 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 70 27 00 15 1B BB A0 D3 4C 96 1F 90 00 72 [20:32:17]RAPDU: 15 1B BB A0 D3 4C 96 1F 90 00 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_SignData done [20:32:17]FM_MakeSignedData done [20:32:17]CreateOFDProtocolMessage [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 11 00 00 [20:32:17]Write to MH i2c: E2 08 00 71 27 80 11 00 00 00 00 00 00 12 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 71 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [20:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:32:17]wFMCommunicate OK [20:32:17]CreateOFDProtocolMessage done [20:32:17]OFDSenderStorePacket 31038 [20:32:17]StoreOFDPacket docnum=31038 [20:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 2C 07 01 CB 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D2 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 79 00 00 35 04 06 00 B4 3F 80 77 1F 46 15 1B BB A0 D3 4C 96 1F [20:32:17]CheckFolder [20:32:17]dirname=/storage/ofd_packets [20:32:17]CheckFolder done [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00031038 [20:32:17]NVStorageSaveData ofd_packets/00031038 [20:32:17]File name is /storage/ofd_packets/00031038 [20:32:17]Write 301 bytes [20:32:17]NVStorageSaveData done [20:32:17]OFDSenderStorePacket done [20:32:17]KKMCreateOFDPacket done [20:32:17]NVStorageSaveData kkm_last_timestamp [20:32:17]File name is /storage/kkm_last_timestamp [20:32:17]Write 4 bytes [20:32:17]NVStorageSaveData done [20:32:17]ExternCall_PrintAddStr [20:32:17]wPrintStart [20:32:17]Write to MH i2c: 01 00 00 72 27 99 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 72 27 00 00 00 00 00 FF 0F AE [20:32:17]RasterBufferAndPrint [20:32:17]line Счет N : (1)343477 [20:32:17]line ИНН: 02508201610067 [20:32:17]line Контрольно-Кассовый Чек [20:32:17]line ПРОДАЖА [20:32:17]line ТРК (МРК, ГНК) : 53 [20:32:17]line Товар: 2710124130 [20:32:17]line Аи-92-К-2 [20:32:17]line 2.400 * 66.90 [20:32:17]line = 160.56 [20:32:17]line НДС 12% НСП 1% [20:32:17]line > о реализуемом товаре [20:32:17]line ОКРУГЛЕНИЕ: -0.56 [20:32:17]line ИТОГО: 160.00 [20:32:17]line Внесено: 160.00 [20:32:17]line СДАЧА: 0.00 [20:32:17]line НСП 1% : 1.42 [20:32:17]line НДС 12% : 17.05 [20:32:17]line Наличными: 160.00 [20:32:17]line Безнал.: 0.00 [20:32:17]line Место: АЗС № 78 "Партнер Нефть" [20:32:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:32:17]line СНО: Общий режим [20:32:17]line Чек 271 22.10.2024 20:32 [20:32:17]line Смена: 116 ФФД: 1.0 [20:32:17]line ЗНМ: 0300000137 [20:32:17]line РНМ: 0000000000186857 [20:32:17]line Версия ККМ: v1.0 [20:32:17]line ФМ: 0000000002094219 [20:32:17]line ФД: 31038 [20:32:17]line ФПД: 198184831229766 [20:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203218&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31038&fm=198184831229766&tin=02508201610067®Number=0000000000186857&sum=16000 [20:32:17]OFD Sender: Processing packet 31038 [packets to send 11, broken 10] [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00031038 [20:32:17]OFD Sender: To server: pG, [20:32:17]CommunicateWithHost lk.salyk.kg:30040 [20:32:17]ConnectInit lk.salyk.kg [20:32:17]written 0, free lines is 4095 [20:32:17]Connected sock=9 [20:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 2C 07 01 CB 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D2 0B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 79 00 00 35 04 06 00 B4 3F 80 77 1F 46 15 1B BB A0 D3 4C 96 1F [20:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B9 C2 47 00 AF 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 79 00 00 F4 03 04 00 4E B6 17 67 B6 04 01 00 00 02 15 F9 89 A4 B1 7E 64 [20:32:17]CommunicateWithHost err = 0 [20:32:17]CheckOFDResponse [20:32:17]1017 (14) - 77093643461234 [20:32:17]1041 (16) - 0000000002094219 [20:32:17]1040 (4) - 31038 [20:32:17]1012 (4) - 22.10.2024 14:27 [20:32:17]1206 (1) - 0 [20:32:17]OFD Sender: Remove packet 31038 [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00031038 [20:32:17]NVStorageDeleteData [20:32:18]Write to MH i2c: 01 00 00 9D 27 C4 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 07 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 E8 0C BF [20:32:18]RasterBufferAndPrint [20:32:18]line [20:32:18]line [20:32:18]line [20:32:18]line [20:32:18]line [20:32:18]written 0, free lines is 3313 [20:32:18]MH_Cut [20:32:18]Write to MH i2c: D1 01 00 A4 27 01 9D [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 01 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 01 00 A4 27 00 9C [20:32:18]Write to MH i2c: 01 00 00 A5 27 CC [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]OFD Sender: No OFD packet to send [20:32:18]*** Cut start [20:32:18]*** Partial cut [20:32:18]*** CUTSNS_PIN = 1 [20:32:18]*** CUTSNS_PIN = 0 [20:32:19]*** Brake cut motor [20:32:19]Read from MH i2c: 01 [20:32:19]MH_I2C_Read... [20:32:19]*** Stop cut motor [20:32:19]*** Cut end [20:32:19]Read from MH i2c: 01 07 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 07 00 A5 27 00 00 00 00 00 FF 0F E1 [20:32:19]process_action close_receipt done [20:32:19]requested_data is exist [20:32:19]produce_requested_data [20:32:19]requested_item fm.sn is exist - process it [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 11 00 00 [20:32:19]Write to MH i2c: E2 08 00 A6 27 80 11 00 00 00 00 00 00 47 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 A6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [20:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:32:19]wFMCommunicate OK [20:32:19]requested_item fd.num is exist - process it [20:32:19]SAM_PROTO_GetFieldsCounters [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 00 00 [20:32:19]Write to MH i2c: E2 08 00 A7 27 80 13 00 00 00 00 00 00 4A [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 A7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [20:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetFieldsCounters done [20:32:19]requested_item shift.num is exist - process it [20:32:19]requested_item shift.opened is exist - process it [20:32:19]req_shift_opened [20:32:19]FM_GetShiftState [20:32:19]SAM_PROTO_GetShiftState [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 01 00 [20:32:19]Write to MH i2c: E2 08 00 A8 27 80 13 01 00 00 00 00 00 4C [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 A8 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 26 [20:32:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetShiftState done [20:32:19]FM_GetShiftState done [20:32:19]req_shift_opened done [20:32:19]requested_item shift.open_date is exist - process it [20:32:19]req_shift_open_date [20:32:19]req_shift_open_date done [20:32:19]produce_requested_data done [20:32:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31038,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:32:19]process_action_free close_receipt [20:32:19]json_value_free [20:32:19]json_value_free done [20:32:19]process_json_proto returns [20:32:19]Send response to host [20:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31038,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:32:19]free response buf [20:32:19]execute_script done [20:32:19]execute_script returns [20:32:19]free content buf [20:32:19]Sock 7.Close socket [20:32:19]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:19]accept exits with 10 [20:37:19]New connection [20:37:19]New thread 3067043172 created [20:37:19]Thread 3066899812 joined [20:37:19]Waiting for new connection... [20:37:19] Sock 10.Parse request [20:37:19]Sock 10.Check first char [20:37:19]Sock 10.First char is OK [20:37:19]request: POST /json_proto HTTP/1.0 [20:37:19]Method: POST [20:37:19]URL: /json_proto [20:37:19]Method is POST - this is cgi request [20:37:19]url: /json_proto [20:37:19]query_string will be loaded in cgi processing [20:37:19]execute_cgi json_proto POST (null) [20:37:19]execute_cgi path=json_proto method=POST [20:37:19]POST find Content-Length [20:37:19]Host: 172.17.51.3:8080 [20:37:19]Content-Length: 677 [20:37:19]Content-Type: application/json [20:37:19] [20:37:19]POST finish read [20:37:19]Found Content-Length = 677 [20:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:19]execute_script... [20:37: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)343478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:19]POST & json_proto [20:37:19]process_json_proto [20:37:19]json parsed OK: [20:37:19]protocol is kg_v1.0 [20:37:19]action value=close_receipt [20:37:19]process_action close_receipt [20:37:19]cmd_close_receipt [20:37:19]MH_GetDate [20:37:19]Write to MH i2c: F0 00 00 A9 27 BF [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 09 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 09 00 A9 27 00 01 0D 18 67 04 C1 95 66 15 [20:37:19]GetLastDocTimeStamp 1729629138 [20:37:19]current date 1729629441 [20:37:19]FM_GetShiftState [20:37:19]SAM_PROTO_GetShiftState [20:37:19]wFMCommunicate request_size=4 [20:37:19]MH_SAM_APDU [20:37:19]CAPDU: 80 13 01 00 [20:37:19]Write to MH i2c: E2 08 00 AA 27 80 13 01 00 00 00 00 00 4E [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:19]Read from MH i2c: E2 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 AA 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 28 [20:37:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:37:19]wFMCommunicate OK [20:37:19]SAM_PROTO_GetShiftState done [20:37:19]FM_GetShiftState done [20:37:19]opened in 1729557342 [20:37:19]opened+sec_in_day 1729643742 [20:37:19]quantity*price = 30038 [20:37:19]sum+1 = 30039 [20:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 272 22.10.2024 20:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31039 ФПД: 79608302945155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31039&fm=79608302945155&tin=02508201610067®Number=0000000000186857&sum=30000 [20:37:20]StoreToDocumentArchive [20:37:20]shift 116 fd 31039 [20:37:20]save to /storage/0116/doc_00031039 [20:37:20]save last doc name /storage/0116/doc_00031039 to /storage/kkm_last_doc_name [20:37:20]save OK [20:37:20]Clear old archive folders... [20:37:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:20]tlvbuf is B6F6B600 [20:37:20]SAM_PROTO_ClearQueue [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 09 00 00 [20:37:20]Write to MH i2c: E2 08 00 B7 27 80 09 00 00 00 00 00 00 50 [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 B7 27 00 90 00 52 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]SAM_PROTO_ClearQueue done [20:37:20]KKMCreateOFDPacket [20:37:20]OFDProtocolAddRootSTLVToBuf [20:37:20]FM_MakeSignedData [20:37:20]FM_MakeSignedData [20:37:20]SAM_PROTO_SignData [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 0D 01 02 [20:37:20]Write to MH i2c: E2 08 00 B8 27 80 0D 01 02 00 00 00 00 58 [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 B8 27 00 90 00 53 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]wFMCommunicate request_size=255 [20:37:20]MH_SAM_APDU [20:37: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 01 0D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 79 00 00 35 04 06 00 48 [20:37:20]Write to MH i2c: E2 02 01 B9 27 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 01 0D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 79 00 00 35 04 06 00 48 00 00 EF [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:21]Read from MH i2c: E2 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 03 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [20:37:21]RAPDU: 90 00 [20:37:21]wFMCommunicate OK [20:37:21]wFMCommunicate request_size=10 [20:37:21]MH_SAM_APDU [20:37:21]CAPDU: 80 0D 02 02 05 67 40 9E 43 83 [20:37:21]Write to MH i2c: E2 0D 00 BA 27 80 0D 02 02 05 00 67 40 9E 43 83 00 00 70 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:21]Read from MH i2c: E2 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 03 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 03 00 BA 27 00 90 00 55 [20:37:21]RAPDU: 90 00 [20:37:21]wFMCommunicate OK [20:37:21]wFMCommunicate request_size=4 [20:37:21]MH_SAM_APDU [20:37:21]CAPDU: 80 0D 03 02 [20:37:21]Write to MH i2c: E2 08 00 BB 27 80 0D 03 02 00 00 00 00 5D [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:21]Read from MH i2c: E2 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 0B 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 0B 00 BB 27 00 63 47 5A 80 F5 1F DC 4C 90 00 1E [20:37:21]RAPDU: 63 47 5A 80 F5 1F DC 4C 90 00 [20:37:21]wFMCommunicate OK [20:37:21]SAM_PROTO_SignData done [20:37:21]FM_MakeSignedData done [20:37:21]CreateOFDProtocolMessage [20:37:21]wFMCommunicate request_size=4 [20:37:21]MH_SAM_APDU [20:37:21]CAPDU: 80 11 00 00 [20:37:21]Write to MH i2c: E2 08 00 BC 27 80 11 00 00 00 00 00 00 5D [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:21]Read from MH i2c: E2 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 17 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: E2 17 00 BC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [20:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:37:21]wFMCommunicate OK [20:37:21]CreateOFDProtocolMessage done [20:37:21]OFDSenderStorePacket 31039 [20:37:21]StoreOFDPacket docnum=31039 [20:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 90 D7 07 01 C1 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 01 0D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 79 00 00 35 04 06 00 48 67 40 9E 43 83 63 47 5A 80 F5 1F DC 4C [20:37:21]CheckFolder [20:37:21]dirname=/storage/ofd_packets [20:37:21]CheckFolder done [20:37:21]ProducePacketName [20:37:21]name=ofd_packets/00031039 [20:37:21]NVStorageSaveData ofd_packets/00031039 [20:37:21]File name is /storage/ofd_packets/00031039 [20:37:21]Write 301 bytes [20:37:21]NVStorageSaveData done [20:37:21]OFDSenderStorePacket done [20:37:21]KKMCreateOFDPacket done [20:37:21]NVStorageSaveData kkm_last_timestamp [20:37:21]File name is /storage/kkm_last_timestamp [20:37:21]Write 4 bytes [20:37:21]NVStorageSaveData done [20:37:21]ExternCall_PrintAddStr [20:37:21]wPrintStart [20:37:21]Write to MH i2c: 01 00 00 BD 27 E4 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 BD 27 00 00 00 00 00 FF 0F F9 [20:37:21]RasterBufferAndPrint [20:37:21]line Счет N : (1)343478 [20:37:21]line ИНН: 02508201610067 [20:37:21]line Контрольно-Кассовый Чек [20:37:21]line ПРОДАЖА [20:37:21]line ТРК (МРК, ГНК) : 43 [20:37:21]line Товар: 2710124130 [20:37:21]line Аи-92-К-2 [20:37:21]line 4.490 * 66.90 [20:37:21]line = 300.38 [20:37:21]line НДС 12% НСП 1% [20:37:21]line > о реализуемом товаре [20:37:21]line ОКРУГЛЕНИЕ: -0.38 [20:37:21]line ИТОГО: 300.00 [20:37:21]line Внесено: 300.00 [20:37:21]line СДАЧА: 0.00 [20:37:21]line НСП 1% : 2.66 [20:37:21]line НДС 12% : 31.90 [20:37:21]line Наличными: 300.00 [20:37:21]line Безнал.: 0.00 [20:37:21]line Место: АЗС № 78 "Партнер Нефть" [20:37:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:37:21]line СНО: Общий режим [20:37:21]line Чек 272 22.10.2024 20:37 [20:37:21]line Смена: 116 ФФД: 1.0 [20:37:21]line ЗНМ: 0300000137 [20:37:21]line РНМ: 0000000000186857 [20:37:21]line Версия ККМ: v1.0 [20:37:21]line ФМ: 0000000002094219 [20:37:21]line ФД: 31039 [20:37:21]line ФПД: 79608302945155 [20:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31039&fm=79608302945155&tin=02508201610067®Number=0000000000186857&sum=30000 [20:37:21]OFD Sender: Processing packet 31039 [packets to send 11, broken 10] [20:37:21]ProducePacketName [20:37:21]name=ofd_packets/00031039 [20:37:21]OFD Sender: To server: pG, [20:37:21]CommunicateWithHost lk.salyk.kg:30040 [20:37:21]ConnectInit lk.salyk.kg [20:37:21]written 0, free lines is 4095 [20:37:21]Connected sock=9 [20:37:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 90 D7 07 01 C1 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 01 0D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 79 00 00 35 04 06 00 48 67 40 9E 43 83 63 47 5A 80 F5 1F DC 4C [20:37:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 64 A8 47 00 D9 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 32 30 39 34 32 31 39 10 04 04 00 3F 79 00 00 F4 03 04 00 7E B7 17 67 B6 04 01 00 00 9E 40 47 9E 0E 5E 90 15 [20:37:21]CommunicateWithHost err = 0 [20:37:21]CheckOFDResponse [20:37:21]1017 (14) - 77093643461234 [20:37:21]1041 (16) - 0000000002094219 [20:37:21]1040 (4) - 31039 [20:37:21]1012 (4) - 22.10.2024 14:32 [20:37:21]1206 (1) - 0 [20:37:21]OFD Sender: Remove packet 31039 [20:37:21]ProducePacketName [20:37:21]name=ofd_packets/00031039 [20:37:21]NVStorageDeleteData [20:37:21]Write to MH i2c: 01 00 00 E8 27 0F [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 EE 0C 10 [20:37:21]RasterBufferAndPrint [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]written 0, free lines is 3319 [20:37:21]MH_Cut [20:37:21]Write to MH i2c: D1 01 00 EF 27 01 E8 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 01 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 01 00 EF 27 00 E7 [20:37:21]Write to MH i2c: 01 00 00 F0 27 17 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:22]OFD Sender: No OFD packet to send [20:37:22]*** Cut start [20:37:22]*** Partial cut [20:37:22]*** CUTSNS_PIN = 1 [20:37:22]*** CUTSNS_PIN = 0 [20:37:22]*** Brake cut motor [20:37:23]Read from MH i2c: 01 [20:37:23]MH_I2C_Read... [20:37:23]*** Stop cut motor [20:37:23]*** Cut end [20:37:23]Read from MH i2c: 01 07 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: 01 07 00 F0 27 00 00 00 00 00 FF 0F 2C [20:37:23]process_action close_receipt done [20:37:23]requested_data is exist [20:37:23]produce_requested_data [20:37:23]requested_item fm.sn is exist - process it [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 11 00 00 [20:37:23]Write to MH i2c: E2 08 00 F1 27 80 11 00 00 00 00 00 00 92 [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:23]Read from MH i2c: E2 17 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 17 00 F1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [20:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:37:23]wFMCommunicate OK [20:37:23]requested_item fd.num is exist - process it [20:37:23]SAM_PROTO_GetFieldsCounters [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 13 00 00 [20:37:23]Write to MH i2c: E2 08 00 F2 27 80 13 00 00 00 00 00 00 95 [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 62 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 62 00 F2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [20:37:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:23]wFMCommunicate OK [20:37:23]SAM_PROTO_GetFieldsCounters done [20:37:23]requested_item shift.num is exist - process it [20:37:23]requested_item shift.opened is exist - process it [20:37:23]req_shift_opened [20:37:23]FM_GetShiftState [20:37:23]SAM_PROTO_GetShiftState [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 13 01 00 [20:37:23]Write to MH i2c: E2 08 00 F3 27 80 13 01 00 00 00 00 00 97 [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 0E 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 0E 00 F3 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 71 [20:37:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:37:23]wFMCommunicate OK [20:37:23]SAM_PROTO_GetShiftState done [20:37:23]FM_GetShiftState done [20:37:23]req_shift_opened done [20:37:23]requested_item shift.open_date is exist - process it [20:37:23]req_shift_open_date [20:37:23]req_shift_open_date done [20:37:23]produce_requested_data done [20:37:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31039,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:37:23]process_action_free close_receipt [20:37:23]json_value_free [20:37:23]json_value_free done [20:37:23]process_json_proto returns [20:37:23]Send response to host [20:37:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31039,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:37:23]free response buf [20:37:23]execute_script done [20:37:23]execute_script returns [20:37:23]free content buf [20:37:23]Sock 10.Close socket [20:37:23]Sock 10.Thread stoped [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47: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:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:10]accept exits with 7 [20:59:10]New connection [20:59:10]New thread 3066899812 created [20:59:10]Thread 3067043172 joined [20:59:10]Waiting for new connection... [20:59:10] Sock 7.Parse request [20:59:10]Sock 7.Check first char [20:59:10]Sock 7.First char is OK [20:59:10]request: POST /json_proto HTTP/1.0 [20:59:10]Method: POST [20:59:10]URL: /json_proto [20:59:10]Method is POST - this is cgi request [20:59:10]url: /json_proto [20:59:10]query_string will be loaded in cgi processing [20:59:10]execute_cgi json_proto POST (null) [20:59:10]execute_cgi path=json_proto method=POST [20:59:10]POST find Content-Length [20:59:10]Host: 172.17.51.3:8080 [20:59:10]Content-Length: 800 [20:59:10]Content-Type: application/json [20:59:10] [20:59:10]POST finish read [20:59:10]Found Content-Length = 800 [20:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3906216", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:10]execute_script... [20:59: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)343479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3906216", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:10]POST & json_proto [20:59:10]process_json_proto [20:59:10]json parsed OK: [20:59:10]protocol is kg_v1.0 [20:59:10]action value=close_receipt [20:59:10]process_action close_receipt [20:59:10]cmd_close_receipt [20:59:10]MH_GetDate [20:59:10]Write to MH i2c: F0 00 00 F4 27 0A [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: F0 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: F0 09 00 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: F0 09 00 F4 27 00 21 12 18 67 04 C1 95 66 85 [20:59:10]GetLastDocTimeStamp 1729629441 [20:59:10]current date 1729630753 [20:59:10]FM_GetShiftState [20:59:10]SAM_PROTO_GetShiftState [20:59:10]wFMCommunicate request_size=4 [20:59:10]MH_SAM_APDU [20:59:10]CAPDU: 80 13 01 00 [20:59:10]Write to MH i2c: E2 08 00 F5 27 80 13 01 00 00 00 00 00 99 [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:10]Read from MH i2c: E2 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: E2 0E 00 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: E2 0E 00 F5 27 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 73 [20:59:10]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:59:10]wFMCommunicate OK [20:59:10]SAM_PROTO_GetShiftState done [20:59:10]FM_GetShiftState done [20:59:10]opened in 1729557342 [20:59:10]opened+sec_in_day 1729643742 [20:59:10]quantity*price = 0 [20:59:10]sum+1 = 1 [20:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 273 22.10.2024 20:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3906216 ФМ: 0000000002094219 ФД: 31040 ФПД: 111354817752455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31040&fm=111354817752455&tin=02508201610067®Number=0000000000186857&sum=0 [20:59:11]StoreToDocumentArchive [20:59:11]shift 116 fd 31040 [20:59:11]save to /storage/0116/doc_00031040 [20:59:11]save last doc name /storage/0116/doc_00031040 to /storage/kkm_last_doc_name [20:59:11]save OK [20:59:11]Clear old archive folders... [20:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:11]tlvbuf is 00D4CDB0 [20:59:11]SAM_PROTO_ClearQueue [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 09 00 00 [20:59:11]Write to MH i2c: E2 08 00 02 28 80 09 00 00 00 00 00 00 9C [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 03 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 03 00 02 28 00 90 00 9E [20:59:11]RAPDU: 90 00 [20:59:11]wFMCommunicate OK [20:59:11]SAM_PROTO_ClearQueue done [20:59:11]KKMCreateOFDPacket [20:59:11]OFDProtocolAddRootSTLVToBuf [20:59:11]FM_MakeSignedData [20:59:11]FM_MakeSignedData [20:59:11]SAM_PROTO_SignData [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 0D 01 02 [20:59:11]Write to MH i2c: E2 08 00 03 28 80 0D 01 02 00 00 00 00 A4 [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 03 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 03 00 03 28 00 90 00 9F [20:59:11]RAPDU: 90 00 [20:59:11]wFMCommunicate OK [20:59:11]wFMCommunicate request_size=255 [20:59:11]MH_SAM_APDU [20:59: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 21 12 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 79 00 00 35 04 06 00 65 [20:59:11]Write to MH i2c: E2 02 01 04 28 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 21 12 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 79 00 00 35 04 06 00 65 00 00 3D [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 04 28 00 90 00 A0 [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]wFMCommunicate request_size=10 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 02 02 05 46 D0 5B 2D 87 [20:59:12]Write to MH i2c: E2 0D 00 05 28 80 0D 02 02 05 00 46 D0 5B 2D 87 00 00 D6 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 05 28 00 90 00 A1 [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 03 02 [20:59:12]Write to MH i2c: E2 08 00 06 28 80 0D 03 02 00 00 00 00 A9 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 0B 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 0B 00 06 28 00 A3 4A 20 86 49 D6 BF B1 90 00 CC [20:59:12]RAPDU: A3 4A 20 86 49 D6 BF B1 90 00 [20:59:12]wFMCommunicate OK [20:59:12]SAM_PROTO_SignData done [20:59:12]FM_MakeSignedData done [20:59:12]CreateOFDProtocolMessage [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 11 00 00 [20:59:12]Write to MH i2c: E2 08 00 07 28 80 11 00 00 00 00 00 00 A9 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 17 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 17 00 07 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [20:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:59:12]wFMCommunicate OK [20:59:12]CreateOFDProtocolMessage done [20:59:12]OFDSenderStorePacket 31040 [20:59:12]StoreOFDPacket docnum=31040 [20:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E4 E1 07 01 AA 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 21 12 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 79 00 00 35 04 06 00 65 46 D0 5B 2D 87 A3 4A 20 86 49 D6 BF B1 [20:59:12]CheckFolder [20:59:12]dirname=/storage/ofd_packets [20:59:12]CheckFolder done [20:59:12]ProducePacketName [20:59:12]name=ofd_packets/00031040 [20:59:12]NVStorageSaveData ofd_packets/00031040 [20:59:12]File name is /storage/ofd_packets/00031040 [20:59:12]Write 301 bytes [20:59:12]NVStorageSaveData done [20:59:12]OFDSenderStorePacket done [20:59:12]KKMCreateOFDPacket done [20:59:12]NVStorageSaveData kkm_last_timestamp [20:59:12]File name is /storage/kkm_last_timestamp [20:59:12]Write 4 bytes [20:59:12]NVStorageSaveData done [20:59:12]ExternCall_PrintAddStr [20:59:12]wPrintStart [20:59:12]Write to MH i2c: 01 00 00 08 28 30 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 07 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 07 00 08 28 00 00 00 00 00 FF 0F 45 [20:59:12]RasterBufferAndPrint [20:59:12]line Счет N : (1)343479 [20:59:12]line ИНН: 02508201610067 [20:59:12]line Контрольно-Кассовый Чек [20:59:12]line ПРОДАЖА [20:59:12]line ТРК (МРК, ГНК) : 53 [20:59:12]line Товар: 2710124130 [20:59:12]line Аи-92-К-2 [20:59:12]line 10.000 * 0.00 [20:59:12]line = 0.00 [20:59:12]line НДС 12% НСП 1% [20:59:12]line > о реализуемом товаре [20:59:12]line ИТОГО: 0.00 [20:59:12]line НСП 1% : 0.00 [20:59:12]line НДС 12% : 0.00 [20:59:12]line Наличными: 0.00 [20:59:12]line Безнал.: 0.00 [20:59:12]line Место: АЗС № 78 "Партнер Нефть" [20:59:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:59:12]line СНО: Общий режим [20:59:12]line Чек 273 22.10.2024 20:59 [20:59:12]line Смена: 116 ФФД: 1.0 [20:59:12]line ЗНМ: 0300000137 [20:59:12]line РНМ: 0000000000186857 [20:59:12]line Версия ККМ: v1.0 [20:59:12]line Талоны: Топливные Талоны [20:59:12]line 3906216 [20:59:12]line ФМ: 0000000002094219 [20:59:12]line ФД: 31040 [20:59:12]line ФПД: 111354817752455 [20:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31040&fm=111354817752455&tin=02508201610067®Number=0000000000186857&sum=0 [20:59:12]OFD Sender: Processing packet 31040 [packets to send 11, broken 10] [20:59:12]ProducePacketName [20:59:12]name=ofd_packets/00031040 [20:59:12]OFD Sender: To server: pG, [20:59:12]CommunicateWithHost lk.salyk.kg:30040 [20:59:12]ConnectInit lk.salyk.kg [20:59:12]written 0, free lines is 4095 [20:59:12]Connected sock=10 [20:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E4 E1 07 01 AA 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 21 12 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 79 00 00 35 04 06 00 65 46 D0 5B 2D 87 A3 4A 20 86 49 D6 BF B1 [20:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 73 CE 47 00 16 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 32 30 39 34 32 31 39 10 04 04 00 40 79 00 00 F4 03 04 00 9D BC 17 67 B6 04 01 00 00 A8 70 04 03 32 FE 90 50 [20:59:12]CommunicateWithHost err = 0 [20:59:12]CheckOFDResponse [20:59:12]1017 (14) - 77093643461234 [20:59:12]1041 (16) - 0000000002094219 [20:59:12]1040 (4) - 31040 [20:59:12]1012 (4) - 22.10.2024 14:54 [20:59:12]1206 (1) - 0 [20:59:12]OFD Sender: Remove packet 31040 [20:59:12]ProducePacketName [20:59:12]name=ofd_packets/00031040 [20:59:12]NVStorageDeleteData [20:59:13]Write to MH i2c: 01 00 00 32 28 5A [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 EC 0C 59 [20:59:13]RasterBufferAndPrint [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]written 0, free lines is 3314 [20:59:13]MH_Cut [20:59:13]Write to MH i2c: D1 01 00 39 28 01 33 [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 01 00 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 01 00 39 28 00 32 [20:59:13]Write to MH i2c: 01 00 00 3A 28 62 [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]OFD Sender: No OFD packet to send [20:59:13]*** Cut start [20:59:13]*** Partial cut [20:59:13]*** CUTSNS_PIN = 1 [20:59:13]*** CUTSNS_PIN = 0 [20:59:14]*** Brake cut motor [20:59:14]Read from MH i2c: 01 [20:59:14]MH_I2C_Read... [20:59:14]*** Stop cut motor [20:59:14]*** Cut end [20:59:14]Read from MH i2c: 01 07 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: 01 07 00 3A 28 00 00 00 00 00 FF 0F 77 [20:59:14]process_action close_receipt done [20:59:14]requested_data is exist [20:59:14]produce_requested_data [20:59:14]requested_item fm.sn is exist - process it [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 11 00 00 [20:59:14]Write to MH i2c: E2 08 00 3B 28 80 11 00 00 00 00 00 00 DD [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:14]Read from MH i2c: E2 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 17 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 17 00 3B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [20:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:59:14]wFMCommunicate OK [20:59:14]requested_item fd.num is exist - process it [20:59:14]SAM_PROTO_GetFieldsCounters [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 13 00 00 [20:59:14]Write to MH i2c: E2 08 00 3C 28 80 13 00 00 00 00 00 00 E0 [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:14]Read from MH i2c: E2 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 62 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 62 00 3C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [20:59:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:14]wFMCommunicate OK [20:59:14]SAM_PROTO_GetFieldsCounters done [20:59:14]requested_item shift.num is exist - process it [20:59:14]requested_item shift.opened is exist - process it [20:59:14]req_shift_opened [20:59:14]FM_GetShiftState [20:59:14]SAM_PROTO_GetShiftState [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 13 01 00 [20:59:14]Write to MH i2c: E2 08 00 3D 28 80 13 01 00 00 00 00 00 E2 [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:14]Read from MH i2c: E2 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 0E 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 0E 00 3D 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BC [20:59:14]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [20:59:14]wFMCommunicate OK [20:59:14]SAM_PROTO_GetShiftState done [20:59:14]FM_GetShiftState done [20:59:14]req_shift_opened done [20:59:14]requested_item shift.open_date is exist - process it [20:59:14]req_shift_open_date [20:59:14]req_shift_open_date done [20:59:14]produce_requested_data done [20:59:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31040,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [20:59:14]process_action_free close_receipt [20:59:14]json_value_free [20:59:14]json_value_free done [20:59:14]process_json_proto returns [20:59:14]Send response to host [20:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31040,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [20:59:14]free response buf [20:59:14]execute_script done [20:59:14]execute_script returns [20:59:14]free content buf [20:59:14]Sock 7.Close socket [20:59:14]Sock 7.Thread stoped [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:22]accept exits with 9 [21:03:22]New connection [21:03:22]New thread 3067043172 created [21:03:22]Thread 3066899812 joined [21:03:22]Waiting for new connection... [21:03:22] Sock 9.Parse request [21:03:22]Sock 9.Check first char [21:03:22]Sock 9.First char is OK [21:03:22]request: POST /json_proto HTTP/1.0 [21:03:22]Method: POST [21:03:22]URL: /json_proto [21:03:22]Method is POST - this is cgi request [21:03:22]url: /json_proto [21:03:22]query_string will be loaded in cgi processing [21:03:22]execute_cgi json_proto POST (null) [21:03:22]execute_cgi path=json_proto method=POST [21:03:22]POST find Content-Length [21:03:22]Host: 172.17.51.3:8080 [21:03:22]Content-Length: 688 [21:03:22]Content-Type: application/json [21:03:22] [21:03:22]POST finish read [21:03:22]Found Content-Length = 688 [21:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:22]execute_script... [21:03: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)343480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:22]POST & json_proto [21:03:22]process_json_proto [21:03:22]json parsed OK: [21:03:22]protocol is kg_v1.0 [21:03:22]action value=close_receipt [21:03:22]process_action close_receipt [21:03:22]cmd_close_receipt [21:03:22]MH_GetDate [21:03:22]Write to MH i2c: F0 00 00 3E 28 55 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 3E 28 00 1D 13 18 67 04 C1 95 66 CD [21:03:22]GetLastDocTimeStamp 1729630753 [21:03:22]current date 1729631005 [21:03:22]FM_GetShiftState [21:03:22]SAM_PROTO_GetShiftState [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 13 01 00 [21:03:22]Write to MH i2c: E2 08 00 3F 28 80 13 01 00 00 00 00 00 E4 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 3F 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 BE [21:03:22]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:03:22]wFMCommunicate OK [21:03:22]SAM_PROTO_GetShiftState done [21:03:22]FM_GetShiftState done [21:03:22]opened in 1729557342 [21:03:22]opened+sec_in_day 1729643742 [21:03:22]quantity*price = 100051 [21:03:22]sum+1 = 100052 [21:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 274 22.10.2024 21:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31041 ФПД: 229408822163687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210325&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31041&fm=229408822163687&tin=02508201610067®Number=0000000000186857&sum=100000 [21:03:23]StoreToDocumentArchive [21:03:23]shift 116 fd 31041 [21:03:23]save to /storage/0116/doc_00031041 [21:03:23]save last doc name /storage/0116/doc_00031041 to /storage/kkm_last_doc_name [21:03:23]save OK [21:03:23]Clear old archive folders... [21:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:03:23]tlvbuf is B6EF0B40 [21:03:23]SAM_PROTO_ClearQueue [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 09 00 00 [21:03:23]Write to MH i2c: E2 08 00 4C 28 80 09 00 00 00 00 00 00 E6 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 4C 28 00 90 00 E8 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]SAM_PROTO_ClearQueue done [21:03:23]KKMCreateOFDPacket [21:03:23]OFDProtocolAddRootSTLVToBuf [21:03:23]FM_MakeSignedData [21:03:23]FM_MakeSignedData [21:03:23]SAM_PROTO_SignData [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 01 02 [21:03:23]Write to MH i2c: E2 08 00 4D 28 80 0D 01 02 00 00 00 00 EE [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 4D 28 00 90 00 E9 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=255 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 1D 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 79 00 [21:03:23]Write to MH i2c: E2 02 01 4E 28 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 1D 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 79 00 00 00 38 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:24]Read from MH i2c: E2 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 03 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 03 00 4E 28 00 90 00 EA [21:03:24]RAPDU: 90 00 [21:03:24]wFMCommunicate OK [21:03:24]wFMCommunicate request_size=16 [21:03:24]MH_SAM_APDU [21:03:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D0 A5 67 5A 78 E7 [21:03:24]Write to MH i2c: E2 13 00 4F 28 80 0D 02 02 0B 00 00 35 04 06 00 D0 A5 67 5A 78 E7 00 00 DB [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:24]Read from MH i2c: E2 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 03 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 03 00 4F 28 00 90 00 EB [21:03:24]RAPDU: 90 00 [21:03:24]wFMCommunicate OK [21:03:24]wFMCommunicate request_size=4 [21:03:24]MH_SAM_APDU [21:03:24]CAPDU: 80 0D 03 02 [21:03:24]Write to MH i2c: E2 08 00 50 28 80 0D 03 02 00 00 00 00 F3 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:24]Read from MH i2c: E2 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 0B 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 0B 00 50 28 00 B4 6C 30 B2 A0 67 04 E5 90 00 E6 [21:03:24]RAPDU: B4 6C 30 B2 A0 67 04 E5 90 00 [21:03:24]wFMCommunicate OK [21:03:24]SAM_PROTO_SignData done [21:03:24]FM_MakeSignedData done [21:03:24]CreateOFDProtocolMessage [21:03:24]wFMCommunicate request_size=4 [21:03:24]MH_SAM_APDU [21:03:24]CAPDU: 80 11 00 00 [21:03:24]Write to MH i2c: E2 08 00 51 28 80 11 00 00 00 00 00 00 F3 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:24]Read from MH i2c: E2 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 17 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 17 00 51 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [21:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:03:24]wFMCommunicate OK [21:03:24]CreateOFDProtocolMessage done [21:03:24]OFDSenderStorePacket 31041 [21:03:24]StoreOFDPacket docnum=31041 [21:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 09 4C 0D 01 D1 AC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 1D 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 79 00 00 35 04 06 00 D0 A5 67 5A 78 E7 B4 6C 30 B2 A0 67 04 E5 [21:03:24]CheckFolder [21:03:24]dirname=/storage/ofd_packets [21:03:24]CheckFolder done [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00031041 [21:03:24]NVStorageSaveData ofd_packets/00031041 [21:03:24]File name is /storage/ofd_packets/00031041 [21:03:24]Write 307 bytes [21:03:24]NVStorageSaveData done [21:03:24]OFDSenderStorePacket done [21:03:24]KKMCreateOFDPacket done [21:03:24]NVStorageSaveData kkm_last_timestamp [21:03:24]File name is /storage/kkm_last_timestamp [21:03:24]Write 4 bytes [21:03:24]NVStorageSaveData done [21:03:24]ExternCall_PrintAddStr [21:03:24]wPrintStart [21:03:24]Write to MH i2c: 01 00 00 52 28 7A [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 FF 0F 8F [21:03:24]RasterBufferAndPrint [21:03:24]line Счет N : (1)343480 [21:03:24]line ИНН: 02508201610067 [21:03:24]line Контрольно-Кассовый Чек [21:03:24]line ПРОДАЖА [21:03:24]line ТРК (МРК, ГНК) : 61 [21:03:24]line Товар: 2710194210 [21:03:24]line D-ENERGY Дт-К-2 [21:03:24]line 12.960 * 77.20 [21:03:24]line = 1000.51 [21:03:24]line НДС 12% НСП 1% [21:03:24]line > о реализуемом товаре [21:03:24]line ОКРУГЛЕНИЕ: -0.51 [21:03:24]line ИТОГО: 1000.00 [21:03:24]line Внесено: 1000.00 [21:03:24]line СДАЧА: 0.00 [21:03:24]line НСП 1% : 8.85 [21:03:24]line НДС 12% : 106.25 [21:03:24]line Наличными: 1000.00 [21:03:24]line Безнал.: 0.00 [21:03:24]line Место: АЗС № 78 "Партнер Нефть" [21:03:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:03:24]line СНО: Общий режим [21:03:24]line Чек 274 22.10.2024 21:03 [21:03:24]line Смена: 116 ФФД: 1.0 [21:03:24]line ЗНМ: 0300000137 [21:03:24]line РНМ: 0000000000186857 [21:03:24]line Версия ККМ: v1.0 [21:03:24]line ФМ: 0000000002094219 [21:03:24]line ФД: 31041 [21:03:24]line ФПД: 229408822163687 [21:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210325&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31041&fm=229408822163687&tin=02508201610067®Number=0000000000186857&sum=100000 [21:03:24]OFD Sender: Processing packet 31041 [packets to send 11, broken 10] [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00031041 [21:03:24]OFD Sender: To server: pG, [21:03:24]CommunicateWithHost lk.salyk.kg:30040 [21:03:24]ConnectInit lk.salyk.kg [21:03:24]written 0, free lines is 4095 [21:03:24]Connected sock=11 [21:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 09 4C 0D 01 D1 AC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 1D 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 79 00 00 35 04 06 00 D0 A5 67 5A 78 E7 B4 6C 30 B2 A0 67 04 E5 [21:03:25]Write to MH i2c: 01 00 00 7D 28 A5 [21:03:25]Write i2c OK [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 07 00 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 07 00 7D 28 00 00 00 00 00 EA 0C A2 [21:03:25]RasterBufferAndPrint [21:03:25]line [21:03:25]line [21:03:25]line [21:03:25]line [21:03:25]line [21:03:25]written 0, free lines is 3312 [21:03:25]MH_Cut [21:03:25]Write to MH i2c: D1 01 00 84 28 01 7E [21:03:25]Write i2c OK [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: D1 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: D1 01 00 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: D1 01 00 84 28 00 7D [21:03:25]Write to MH i2c: 01 00 00 85 28 AD [21:03:25]Write i2c OK [21:03:25]MH_I2C_Read... [21:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 15 67 47 00 8C 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 79 00 00 F4 03 04 00 99 BD 17 67 B6 04 01 00 00 E2 4E DB 38 6C 67 30 2D [21:03:25]CommunicateWithHost err = 0 [21:03:25]CheckOFDResponse [21:03:25]1017 (14) - 77093643461234 [21:03:25]1041 (16) - 0000000002094219 [21:03:25]1040 (4) - 31041 [21:03:25]1012 (4) - 22.10.2024 14:58 [21:03:25]1206 (1) - 0 [21:03:25]OFD Sender: Remove packet 31041 [21:03:25]ProducePacketName [21:03:25]name=ofd_packets/00031041 [21:03:25]NVStorageDeleteData [21:03:25]OFD Sender: No OFD packet to send [21:03:25]*** Cut start [21:03:25]*** Partial cut [21:03:25]*** CUTSNS_PIN = 1 [21:03:25]*** CUTSNS_PIN = 0 [21:03:26]*** Brake cut motor [21:03:26]Read from MH i2c: 01 [21:03:26]MH_I2C_Read... [21:03:26]*** Stop cut motor [21:03:26]*** Cut end [21:03:26]Read from MH i2c: 01 07 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: 01 07 00 85 28 00 00 00 00 00 FF 0F C2 [21:03:26]process_action close_receipt done [21:03:26]requested_data is exist [21:03:26]produce_requested_data [21:03:26]requested_item fm.sn is exist - process it [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 11 00 00 [21:03:26]Write to MH i2c: E2 08 00 86 28 80 11 00 00 00 00 00 00 28 [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 86 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [21:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:03:26]wFMCommunicate OK [21:03:26]requested_item fd.num is exist - process it [21:03:26]SAM_PROTO_GetFieldsCounters [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 00 00 [21:03:26]Write to MH i2c: E2 08 00 87 28 80 13 00 00 00 00 00 00 2B [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 87 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [21:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetFieldsCounters done [21:03:26]requested_item shift.num is exist - process it [21:03:26]requested_item shift.opened is exist - process it [21:03:26]req_shift_opened [21:03:26]FM_GetShiftState [21:03:26]SAM_PROTO_GetShiftState [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 01 00 [21:03:26]Write to MH i2c: E2 08 00 88 28 80 13 01 00 00 00 00 00 2D [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 88 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 07 [21:03:26]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetShiftState done [21:03:26]FM_GetShiftState done [21:03:26]req_shift_opened done [21:03:26]requested_item shift.open_date is exist - process it [21:03:26]req_shift_open_date [21:03:26]req_shift_open_date done [21:03:26]produce_requested_data done [21:03:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31041,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [21:03:26]process_action_free close_receipt [21:03:26]json_value_free [21:03:26]json_value_free done [21:03:26]process_json_proto returns [21:03:26]Send response to host [21:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31041,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [21:03:26]free response buf [21:03:26]execute_script done [21:03:26]execute_script returns [21:03:26]free content buf [21:03:26]Sock 9.Close socket [21:03:26]Sock 9.Thread stoped [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:04:58]ConnectInit Can't connect to host [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:19]accept exits with 10 [21:06:19]New connection [21:06:19]New thread 3066899812 created [21:06:19]Thread 3067043172 joined [21:06:19]Waiting for new connection... [21:06:19] Sock 10.Parse request [21:06:19]Sock 10.Check first char [21:06:19]Sock 10.First char is OK [21:06:19]request: POST /json_proto HTTP/1.0 [21:06:19]Method: POST [21:06:19]URL: /json_proto [21:06:19]Method is POST - this is cgi request [21:06:19]url: /json_proto [21:06:19]query_string will be loaded in cgi processing [21:06:19]execute_cgi json_proto POST (null) [21:06:19]execute_cgi path=json_proto method=POST [21:06:19]POST find Content-Length [21:06:19]Host: 172.17.51.3:8080 [21:06:19]Content-Length: 682 [21:06:19]Content-Type: application/json [21:06:19] [21:06:19]POST finish read [21:06:19]Found Content-Length = 682 [21:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 32.900, "sum" : 2441.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:19]execute_script... [21:06: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)343482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 32.900, "sum" : 2441.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:19]POST & json_proto [21:06:19]process_json_proto [21:06:19]json parsed OK: [21:06:19]protocol is kg_v1.0 [21:06:19]action value=close_receipt [21:06:19]process_action close_receipt [21:06:19]cmd_close_receipt [21:06:19]MH_GetDate [21:06:19]Write to MH i2c: F0 00 00 89 28 A0 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: F0 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: F0 09 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: F0 09 00 89 28 00 CE 13 18 67 04 C1 95 66 C9 [21:06:19]GetLastDocTimeStamp 1729631005 [21:06:19]current date 1729631182 [21:06:19]FM_GetShiftState [21:06:19]SAM_PROTO_GetShiftState [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 13 01 00 [21:06:19]Write to MH i2c: E2 08 00 8A 28 80 13 01 00 00 00 00 00 2F [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0E 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0E 00 8A 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 09 [21:06:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:06:19]wFMCommunicate OK [21:06:19]SAM_PROTO_GetShiftState done [21:06:19]FM_GetShiftState done [21:06:19]opened in 1729557342 [21:06:19]opened+sec_in_day 1729643742 [21:06:19]quantity*price = 244118 [21:06:19]sum+1 = 244119 [21:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 2441.00 Внесено: 5000.00 СДАЧА: 2559.00 НСП 1% : 21.60 НДС 12% : 259.24 Наличными: 2441.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 275 22.10.2024 21:06 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31042 ФПД: 239099871878663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31042&fm=239099871878663&tin=02508201610067®Number=0000000000186857&sum=244100 [21:06:20]StoreToDocumentArchive [21:06:20]shift 116 fd 31042 [21:06:20]save to /storage/0116/doc_00031042 [21:06:20]save last doc name /storage/0116/doc_00031042 to /storage/kkm_last_doc_name [21:06:20]OFD Sender: No OFD packet to send [21:06:20]save OK [21:06:20]Clear old archive folders... [21:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:20]tlvbuf is 00CEAD10 [21:06:20]SAM_PROTO_ClearQueue [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 09 00 00 [21:06:20]Write to MH i2c: E2 08 00 97 28 80 09 00 00 00 00 00 00 31 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:20]Read from MH i2c: E2 03 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [21:06:20]RAPDU: 90 00 [21:06:20]wFMCommunicate OK [21:06:20]SAM_PROTO_ClearQueue done [21:06:20]KKMCreateOFDPacket [21:06:20]OFDProtocolAddRootSTLVToBuf [21:06:20]FM_MakeSignedData [21:06:20]FM_MakeSignedData [21:06:20]SAM_PROTO_SignData [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 0D 01 02 [21:06:20]Write to MH i2c: E2 08 00 98 28 80 0D 01 02 00 00 00 00 39 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 03 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 03 00 98 28 00 90 00 34 [21:06:20]RAPDU: 90 00 [21:06:20]wFMCommunicate OK [21:06:20]wFMCommunicate request_size=255 [21:06:20]MH_SAM_APDU [21:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 96 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 65 00 00 00 00 07 04 06 00 84 B9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CE 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 79 00 00 35 04 06 00 D9 [21:06:20]Write to MH i2c: E2 02 01 99 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 96 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 65 00 00 00 00 07 04 06 00 84 B9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CE 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 79 00 00 35 04 06 00 D9 00 00 D5 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:21]Read from MH i2c: E2 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 03 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [21:06:21]RAPDU: 90 00 [21:06:21]wFMCommunicate OK [21:06:21]wFMCommunicate request_size=10 [21:06:21]MH_SAM_APDU [21:06:21]CAPDU: 80 0D 02 02 05 75 C6 ED DE 07 [21:06:21]Write to MH i2c: E2 0D 00 9A 28 80 0D 02 02 05 00 75 C6 ED DE 07 00 00 53 [21:06:21]Write i2c OK [21:06:21]MH_I2C_Read... [21:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:21]Read from MH i2c: E2 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 03 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 03 00 9A 28 00 90 00 36 [21:06:21]RAPDU: 90 00 [21:06:21]wFMCommunicate OK [21:06:21]wFMCommunicate request_size=4 [21:06:21]MH_SAM_APDU [21:06:21]CAPDU: 80 0D 03 02 [21:06:21]Write to MH i2c: E2 08 00 9B 28 80 0D 03 02 00 00 00 00 3E [21:06:21]Write i2c OK [21:06:21]MH_I2C_Read... [21:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:21]Read from MH i2c: E2 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 0B 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 0B 00 9B 28 00 A5 30 7A C8 81 9C 2B 92 90 00 30 [21:06:21]RAPDU: A5 30 7A C8 81 9C 2B 92 90 00 [21:06:21]wFMCommunicate OK [21:06:21]SAM_PROTO_SignData done [21:06:21]FM_MakeSignedData done [21:06:21]CreateOFDProtocolMessage [21:06:21]wFMCommunicate request_size=4 [21:06:21]MH_SAM_APDU [21:06:21]CAPDU: 80 11 00 00 [21:06:21]Write to MH i2c: E2 08 00 9C 28 80 11 00 00 00 00 00 00 3E [21:06:21]Write i2c OK [21:06:21]MH_I2C_Read... [21:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:21]Read from MH i2c: E2 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 17 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: E2 17 00 9C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [21:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:06:21]wFMCommunicate OK [21:06:21]CreateOFDProtocolMessage done [21:06:21]OFDSenderStorePacket 31042 [21:06:21]StoreOFDPacket docnum=31042 [21:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 2E 07 01 3F A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 96 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 65 00 00 00 00 07 04 06 00 84 B9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CE 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 79 00 00 35 04 06 00 D9 75 C6 ED DE 07 A5 30 7A C8 81 9C 2B 92 [21:06:21]CheckFolder [21:06:21]dirname=/storage/ofd_packets [21:06:21]CheckFolder done [21:06:21]ProducePacketName [21:06:21]name=ofd_packets/00031042 [21:06:21]NVStorageSaveData ofd_packets/00031042 [21:06:21]File name is /storage/ofd_packets/00031042 [21:06:21]Write 301 bytes [21:06:21]NVStorageSaveData done [21:06:21]OFDSenderStorePacket done [21:06:21]KKMCreateOFDPacket done [21:06:21]NVStorageSaveData kkm_last_timestamp [21:06:21]File name is /storage/kkm_last_timestamp [21:06:21]Write 4 bytes [21:06:21]OFD Sender: Processing packet 31042 [packets to send 11, broken 10] [21:06:21]ProducePacketName [21:06:21]name=ofd_packets/00031042 [21:06:21]OFD Sender: To server: pG, [21:06:21]CommunicateWithHost lk.salyk.kg:30040 [21:06:21]ConnectInit lk.salyk.kg [21:06:21]NVStorageSaveData done [21:06:21]ExternCall_PrintAddStr [21:06:21]wPrintStart [21:06:21]Write to MH i2c: 01 00 00 9D 28 C5 [21:06:21]Write i2c OK [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: 01 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: 01 07 00 [21:06:21]MH_I2C_Read... [21:06:21]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 FF 0F DA [21:06:21]RasterBufferAndPrint [21:06:21]line Счет N : (1)343482 [21:06:21]line ИНН: 02508201610067 [21:06:21]line Контрольно-Кассовый Чек [21:06:21]line ПРОДАЖА [21:06:21]line ТРК (МРК, ГНК) : 52 [21:06:21]line Товар: 2710124500 [21:06:21]line Аи-95-К-3 [21:06:21]line 32.900 * 74.20 [21:06:21]line = 2441.18 [21:06:21]line НДС 12% НСП 1% [21:06:21]line > о реализуемом товаре [21:06:21]line ОКРУГЛЕНИЕ: -0.18 [21:06:21]line ИТОГО: 2441.00 [21:06:21]line Внесено: 5000.00 [21:06:21]line СДАЧА: 2559.00 [21:06:21]line НСП 1% : 21.60 [21:06:21]line НДС 12% : 259.24 [21:06:21]line Наличными: 2441.00 [21:06:21]line Безнал.: 0.00 [21:06:21]line Место: АЗС № 78 "Партнер Нефть" [21:06:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:06:21]line СНО: Общий режим [21:06:21]line Чек 275 22.10.2024 21:06 [21:06:21]line Смена: 116 ФФД: 1.0 [21:06:21]line ЗНМ: 0300000137 [21:06:21]line РНМ: 0000000000186857 [21:06:21]line Версия ККМ: v1.0 [21:06:21]line ФМ: 0000000002094219 [21:06:21]line ФД: 31042 [21:06:21]line ФПД: 239099871878663 [21:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31042&fm=239099871878663&tin=02508201610067®Number=0000000000186857&sum=244100 [21:06:21]Connected sock=12 [21:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 2E 07 01 3F A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 96 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 65 00 00 00 00 07 04 06 00 84 B9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CE 13 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 79 00 00 35 04 06 00 D9 75 C6 ED DE 07 A5 30 7A C8 81 9C 2B 92 [21:06:21]written 0, free lines is 4095 [21:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 23 3B 47 00 50 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 79 00 00 F4 03 04 00 4A BE 17 67 B6 04 01 00 00 6D 12 89 6B A9 56 2B 3C [21:06:21]CommunicateWithHost err = 0 [21:06:21]CheckOFDResponse [21:06:21]1017 (14) - 77093643461234 [21:06:21]1041 (16) - 0000000002094219 [21:06:21]1040 (4) - 31042 [21:06:21]1012 (4) - 22.10.2024 15:01 [21:06:21]1206 (1) - 0 [21:06:21]OFD Sender: Remove packet 31042 [21:06:21]ProducePacketName [21:06:21]name=ofd_packets/00031042 [21:06:21]NVStorageDeleteData [21:06:22]Write to MH i2c: 01 00 00 C8 28 F0 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: 01 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: 01 07 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: 01 07 00 C8 28 00 00 00 00 00 F5 0C F8 [21:06:22]RasterBufferAndPrint [21:06:22]line [21:06:22]line [21:06:22]line [21:06:22]line [21:06:22]line [21:06:22]written 0, free lines is 3328 [21:06:22]MH_Cut [21:06:22]Write to MH i2c: D1 01 00 CF 28 01 C9 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: D1 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: D1 01 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: D1 01 00 CF 28 00 C8 [21:06:22]Write to MH i2c: 01 00 00 D0 28 F8 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]OFD Sender: No OFD packet to send [21:06:22]*** Cut start [21:06:22]*** Partial cut [21:06:22]*** CUTSNS_PIN = 1 [21:06:22]*** CUTSNS_PIN = 0 [21:06:23]*** Brake cut motor [21:06:23]Read from MH i2c: 01 [21:06:23]MH_I2C_Read... [21:06:23]*** Stop cut motor [21:06:23]*** Cut end [21:06:23]Read from MH i2c: 01 07 00 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: 01 07 00 D0 28 00 00 00 00 00 FF 0F 0D [21:06:23]process_action close_receipt done [21:06:23]requested_data is exist [21:06:23]produce_requested_data [21:06:23]requested_item fm.sn is exist - process it [21:06:23]wFMCommunicate request_size=4 [21:06:23]MH_SAM_APDU [21:06:23]CAPDU: 80 11 00 00 [21:06:23]Write to MH i2c: E2 08 00 D1 28 80 11 00 00 00 00 00 00 73 [21:06:23]Write i2c OK [21:06:23]MH_I2C_Read... [21:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:23]Read from MH i2c: E2 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 17 00 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 17 00 D1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [21:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:06:23]wFMCommunicate OK [21:06:23]requested_item fd.num is exist - process it [21:06:23]SAM_PROTO_GetFieldsCounters [21:06:23]wFMCommunicate request_size=4 [21:06:23]MH_SAM_APDU [21:06:23]CAPDU: 80 13 00 00 [21:06:23]Write to MH i2c: E2 08 00 D2 28 80 13 00 00 00 00 00 00 76 [21:06:23]Write i2c OK [21:06:23]MH_I2C_Read... [21:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:23]Read from MH i2c: E2 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 62 00 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 62 00 D2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [21:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:23]wFMCommunicate OK [21:06:23]SAM_PROTO_GetFieldsCounters done [21:06:23]requested_item shift.num is exist - process it [21:06:23]requested_item shift.opened is exist - process it [21:06:23]req_shift_opened [21:06:23]FM_GetShiftState [21:06:23]SAM_PROTO_GetShiftState [21:06:23]wFMCommunicate request_size=4 [21:06:23]MH_SAM_APDU [21:06:23]CAPDU: 80 13 01 00 [21:06:23]Write to MH i2c: E2 08 00 D3 28 80 13 01 00 00 00 00 00 78 [21:06:23]Write i2c OK [21:06:23]MH_I2C_Read... [21:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:23]Read from MH i2c: E2 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 0E 00 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: E2 0E 00 D3 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 52 [21:06:23]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:06:23]wFMCommunicate OK [21:06:23]SAM_PROTO_GetShiftState done [21:06:23]FM_GetShiftState done [21:06:23]req_shift_opened done [21:06:23]requested_item shift.open_date is exist - process it [21:06:23]req_shift_open_date [21:06:23]req_shift_open_date done [21:06:23]produce_requested_data done [21:06:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31042,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [21:06:23]process_action_free close_receipt [21:06:23]json_value_free [21:06:23]json_value_free done [21:06:23]process_json_proto returns [21:06:23]Send response to host [21:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31042,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [21:06:23]free response buf [21:06:23]execute_script done [21:06:23]execute_script returns [21:06:23]free content buf [21:06:23]Sock 10.Close socket [21:06:23]Sock 10.Thread stoped [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:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:40]accept exits with 9 [21:19:40]New connection [21:19:40]New thread 3067043172 created [21:19:40]Thread 3066899812 joined [21:19:40]Waiting for new connection... [21:19:40] Sock 9.Parse request [21:19:40]Sock 9.Check first char [21:19:40]Sock 9.First char is OK [21:19:40]request: POST /json_proto HTTP/1.0 [21:19:40]Method: POST [21:19:40]URL: /json_proto [21:19:40]Method is POST - this is cgi request [21:19:40]url: /json_proto [21:19:40]query_string will be loaded in cgi processing [21:19:40]execute_cgi json_proto POST (null) [21:19:40]execute_cgi path=json_proto method=POST [21:19:40]POST find Content-Length [21:19:40]Host: 172.17.51.3:8080 [21:19:40]Content-Length: 677 [21:19:40]Content-Type: application/json [21:19:40] [21:19:40]POST finish read [21:19:40]Found Content-Length = 677 [21:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:40]execute_script... [21:19: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)343483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:40]POST & json_proto [21:19:40]process_json_proto [21:19:40]json parsed OK: [21:19:40]protocol is kg_v1.0 [21:19:40]action value=close_receipt [21:19:40]process_action close_receipt [21:19:40]cmd_close_receipt [21:19:40]MH_GetDate [21:19:40]Write to MH i2c: F0 00 00 D4 28 EB [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 09 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 09 00 D4 28 00 EE 16 18 67 04 C1 95 66 37 [21:19:40]GetLastDocTimeStamp 1729631182 [21:19:40]current date 1729631982 [21:19:40]FM_GetShiftState [21:19:40]SAM_PROTO_GetShiftState [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 13 01 00 [21:19:40]Write to MH i2c: E2 08 00 D5 28 80 13 01 00 00 00 00 00 7A [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 D5 28 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 54 [21:19:40]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetShiftState done [21:19:40]FM_GetShiftState done [21:19:40]opened in 1729557342 [21:19:40]opened+sec_in_day 1729643742 [21:19:40]quantity*price = 40006 [21:19:40]sum+1 = 40007 [21:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 276 22.10.2024 21:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31043 ФПД: 190335834583848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31043&fm=190335834583848&tin=02508201610067®Number=0000000000186857&sum=40000 [21:19:41]StoreToDocumentArchive [21:19:41]shift 116 fd 31043 [21:19:41]save to /storage/0116/doc_00031043 [21:19:41]save last doc name /storage/0116/doc_00031043 to /storage/kkm_last_doc_name [21:19:41]save OK [21:19:41]Clear old archive folders... [21:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:41]tlvbuf is 00D4D200 [21:19:41]SAM_PROTO_ClearQueue [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 09 00 00 [21:19:41]Write to MH i2c: E2 08 00 E2 28 80 09 00 00 00 00 00 00 7C [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_ClearQueue done [21:19:41]KKMCreateOFDPacket [21:19:41]OFDProtocolAddRootSTLVToBuf [21:19:41]FM_MakeSignedData [21:19:41]FM_MakeSignedData [21:19:41]SAM_PROTO_SignData [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 01 02 [21:19:41]Write to MH i2c: E2 08 00 E3 28 80 0D 01 02 00 00 00 00 84 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=255 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 EE 16 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 79 00 00 35 04 06 00 AD [21:19:41]Write to MH i2c: E2 02 01 E4 28 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 EE 16 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 79 00 00 35 04 06 00 AD 00 00 59 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=10 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 02 02 05 1C 03 CE F3 28 [21:19:41]Write to MH i2c: E2 0D 00 E5 28 80 0D 02 02 05 00 1C 03 CE F3 28 00 00 99 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 03 02 [21:19:41]Write to MH i2c: E2 08 00 E6 28 80 0D 03 02 00 00 00 00 89 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 E6 28 00 10 8E 50 F9 7D 34 F4 5E 90 00 74 [21:19:41]RAPDU: 10 8E 50 F9 7D 34 F4 5E 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_SignData done [21:19:41]FM_MakeSignedData done [21:19:41]CreateOFDProtocolMessage [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 11 00 00 [21:19:41]Write to MH i2c: E2 08 00 E7 28 80 11 00 00 00 00 00 00 89 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:42]Read from MH i2c: E2 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 17 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 17 00 E7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [21:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:19:42]wFMCommunicate OK [21:19:42]CreateOFDProtocolMessage done [21:19:42]OFDSenderStorePacket 31043 [21:19:42]StoreOFDPacket docnum=31043 [21:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 0B 07 01 AC 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 EE 16 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 79 00 00 35 04 06 00 AD 1C 03 CE F3 28 10 8E 50 F9 7D 34 F4 5E [21:19:42]CheckFolder [21:19:42]dirname=/storage/ofd_packets [21:19:42]CheckFolder done [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00031043 [21:19:42]NVStorageSaveData ofd_packets/00031043 [21:19:42]File name is /storage/ofd_packets/00031043 [21:19:42]Write 301 bytes [21:19:42]NVStorageSaveData done [21:19:42]OFDSenderStorePacket done [21:19:42]KKMCreateOFDPacket done [21:19:42]NVStorageSaveData kkm_last_timestamp [21:19:42]File name is /storage/kkm_last_timestamp [21:19:42]Write 4 bytes [21:19:42]NVStorageSaveData done [21:19:42]ExternCall_PrintAddStr [21:19:42]wPrintStart [21:19:42]Write to MH i2c: 01 00 00 E8 28 10 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 E8 28 00 00 00 00 00 FF 0F 25 [21:19:42]RasterBufferAndPrint [21:19:42]line Счет N : (1)343483 [21:19:42]line ИНН: 02508201610067 [21:19:42]line Контрольно-Кассовый Чек [21:19:42]line ПРОДАЖА [21:19:42]line ТРК (МРК, ГНК) : 53 [21:19:42]line Товар: 2710124130 [21:19:42]line Аи-92-К-2 [21:19:42]line 5.980 * 66.90 [21:19:42]line = 400.06 [21:19:42]line НДС 12% НСП 1% [21:19:42]line > о реализуемом товаре [21:19:42]line ОКРУГЛЕНИЕ: -0.06 [21:19:42]line ИТОГО: 400.00 [21:19:42]line Внесено: 400.00 [21:19:42]line СДАЧА: 0.00 [21:19:42]line НСП 1% : 3.54 [21:19:42]line НДС 12% : 42.48 [21:19:42]line Наличными: 400.00 [21:19:42]line Безнал.: 0.00 [21:19:42]line Место: АЗС № 78 "Партнер Нефть" [21:19:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:19:42]line СНО: Общий режим [21:19:42]line Чек 276 22.10.2024 21:19 [21:19:42]line Смена: 116 ФФД: 1.0 [21:19:42]line ЗНМ: 0300000137 [21:19:42]line РНМ: 0000000000186857 [21:19:42]line Версия ККМ: v1.0 [21:19:42]line ФМ: 0000000002094219 [21:19:42]line ФД: 31043 [21:19:42]line ФПД: 190335834583848 [21:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31043&fm=190335834583848&tin=02508201610067®Number=0000000000186857&sum=40000 [21:19:42]OFD Sender: Processing packet 31043 [packets to send 11, broken 10] [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00031043 [21:19:42]OFD Sender: To server: pG, [21:19:42]CommunicateWithHost lk.salyk.kg:30040 [21:19:42]ConnectInit lk.salyk.kg [21:19:42]written 0, free lines is 4095 [21:19:42]Connected sock=10 [21:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 0B 07 01 AC 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 EE 16 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 79 00 00 35 04 06 00 AD 1C 03 CE F3 28 10 8E 50 F9 7D 34 F4 5E [21:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 25 F8 47 00 5C B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 79 00 00 F4 03 04 00 6B C1 17 67 B6 04 01 00 00 5D BC D6 22 6F A5 F4 FA [21:19:42]CommunicateWithHost err = 0 [21:19:42]CheckOFDResponse [21:19:42]1017 (14) - 77093643461234 [21:19:42]1041 (16) - 0000000002094219 [21:19:42]1040 (4) - 31043 [21:19:42]1012 (4) - 22.10.2024 15:14 [21:19:42]1206 (1) - 0 [21:19:42]OFD Sender: Remove packet 31043 [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00031043 [21:19:42]NVStorageDeleteData [21:19:42]Write to MH i2c: 01 00 00 13 29 3C [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 13 29 00 00 00 00 00 F7 0C 46 [21:19:42]RasterBufferAndPrint [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]written 0, free lines is 3326 [21:19:42]MH_Cut [21:19:42]Write to MH i2c: D1 01 00 1A 29 01 15 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 1A 29 00 14 [21:19:42]Write to MH i2c: 01 00 00 1B 29 44 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:43]OFD Sender: No OFD packet to send [21:19:43]*** Cut start [21:19:43]*** Partial cut [21:19:43]*** CUTSNS_PIN = 1 [21:19:43]*** CUTSNS_PIN = 0 [21:19:43]*** Brake cut motor [21:19:44]Read from MH i2c: 01 [21:19:44]MH_I2C_Read... [21:19:44]*** Stop cut motor [21:19:44]*** Cut end [21:19:44]Read from MH i2c: 01 07 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: 01 07 00 1B 29 00 00 00 00 00 FF 0F 59 [21:19:44]process_action close_receipt done [21:19:44]requested_data is exist [21:19:44]produce_requested_data [21:19:44]requested_item fm.sn is exist - process it [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 11 00 00 [21:19:44]Write to MH i2c: E2 08 00 1C 29 80 11 00 00 00 00 00 00 BF [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 17 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 17 00 1C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [21:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:19:44]wFMCommunicate OK [21:19:44]requested_item fd.num is exist - process it [21:19:44]SAM_PROTO_GetFieldsCounters [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 13 00 00 [21:19:44]Write to MH i2c: E2 08 00 1D 29 80 13 00 00 00 00 00 00 C2 [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 62 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 62 00 1D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [21:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:44]wFMCommunicate OK [21:19:44]SAM_PROTO_GetFieldsCounters done [21:19:44]requested_item shift.num is exist - process it [21:19:44]requested_item shift.opened is exist - process it [21:19:44]req_shift_opened [21:19:44]FM_GetShiftState [21:19:44]SAM_PROTO_GetShiftState [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 13 01 00 [21:19:44]Write to MH i2c: E2 08 00 1E 29 80 13 01 00 00 00 00 00 C4 [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 1E 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 9E [21:19:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:19:44]wFMCommunicate OK [21:19:44]SAM_PROTO_GetShiftState done [21:19:44]FM_GetShiftState done [21:19:44]req_shift_opened done [21:19:44]requested_item shift.open_date is exist - process it [21:19:44]req_shift_open_date [21:19:44]req_shift_open_date done [21:19:44]produce_requested_data done [21:19:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31043,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [21:19:44]process_action_free close_receipt [21:19:44]json_value_free [21:19:44]json_value_free done [21:19:44]process_json_proto returns [21:19:44]Send response to host [21:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31043,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [21:19:44]free response buf [21:19:44]execute_script done [21:19:44]execute_script returns [21:19:44]free content buf [21:19:44]Sock 9.Close socket [21:19:44]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:52]accept exits with 7 [21:31:52]New connection [21:31:52]New thread 3066899812 created [21:31:52]Thread 3067043172 joined [21:31:52]Waiting for new connection... [21:31:52] Sock 7.Parse request [21:31:52]Sock 7.Check first char [21:31:52]Sock 7.First char is OK [21:31:52]request: POST /json_proto HTTP/1.0 [21:31:52]Method: POST [21:31:52]URL: /json_proto [21:31:52]Method is POST - this is cgi request [21:31:52]url: /json_proto [21:31:52]query_string will be loaded in cgi processing [21:31:52]execute_cgi json_proto POST (null) [21:31:52]execute_cgi path=json_proto method=POST [21:31:52]POST find Content-Length [21:31:52]Host: 172.17.51.3:8080 [21:31:52]Content-Length: 679 [21:31:52]Content-Type: application/json [21:31:52] [21:31:52]POST finish read [21:31:52]Found Content-Length = 679 [21:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:52]execute_script... [21: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)343484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:52]POST & json_proto [21:31:52]process_json_proto [21:31:52]json parsed OK: [21:31:52]protocol is kg_v1.0 [21:31:52]action value=close_receipt [21:31:52]process_action close_receipt [21:31:52]cmd_close_receipt [21:31:52]MH_GetDate [21:31:52]Write to MH i2c: F0 00 00 1F 29 37 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 09 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 09 00 1F 29 00 CB 19 18 67 04 C1 95 66 63 [21:31:52]GetLastDocTimeStamp 1729631982 [21:31:52]current date 1729632715 [21:31:52]FM_GetShiftState [21:31:52]SAM_PROTO_GetShiftState [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 13 01 00 [21:31:52]Write to MH i2c: E2 08 00 20 29 80 13 01 00 00 00 00 00 C6 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 20 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A0 [21:31:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:31:52]wFMCommunicate OK [21:31:52]SAM_PROTO_GetShiftState done [21:31:52]FM_GetShiftState done [21:31:52]opened in 1729557342 [21:31:52]opened+sec_in_day 1729643742 [21:31:53]quantity*price = 100050 [21:31:53]sum+1 = 100052 [21:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 277 22.10.2024 21:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31044 ФПД: 209183124441283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213155&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31044&fm=209183124441283&tin=02508201610067®Number=0000000000186857&sum=100000 [21:31:54]StoreToDocumentArchive [21:31:54]shift 116 fd 31044 [21:31:54]save to /storage/0116/doc_00031044 [21:31:54]save last doc name /storage/0116/doc_00031044 to /storage/kkm_last_doc_name [21:31:54]save OK [21:31:54]Clear old archive folders... [21:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:54]tlvbuf is B6EF07C0 [21:31:54]SAM_PROTO_ClearQueue [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 09 00 00 [21:31:54]Write to MH i2c: E2 08 00 2D 29 80 09 00 00 00 00 00 00 C8 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_ClearQueue done [21:31:54]KKMCreateOFDPacket [21:31:54]OFDProtocolAddRootSTLVToBuf [21:31:54]FM_MakeSignedData [21:31:54]FM_MakeSignedData [21:31:54]SAM_PROTO_SignData [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 0D 01 02 [21:31:54]Write to MH i2c: E2 08 00 2E 29 80 0D 01 02 00 00 00 00 D0 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]wFMCommunicate request_size=255 [21:31:54]MH_SAM_APDU [21:31: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CB 19 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 79 00 00 35 04 06 00 BE 40 3D D3 [21:31:54]Write to MH i2c: E2 02 01 2F 29 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CB 19 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 79 00 00 35 04 06 00 BE 40 3D D3 00 00 0F [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]wFMCommunicate request_size=7 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 0D 02 02 02 48 C3 [21:31:54]Write to MH i2c: E2 0A 00 30 29 80 0D 02 02 02 00 48 C3 00 00 E2 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 0D 03 02 [21:31:54]Write to MH i2c: E2 08 00 31 29 80 0D 03 02 00 00 00 00 D5 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0B 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0B 00 31 29 00 58 87 F3 75 22 C1 94 74 90 00 08 [21:31:54]RAPDU: 58 87 F3 75 22 C1 94 74 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_SignData done [21:31:54]FM_MakeSignedData done [21:31:54]CreateOFDProtocolMessage [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 11 00 00 [21:31:54]Write to MH i2c: E2 08 00 32 29 80 11 00 00 00 00 00 00 D5 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 32 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [21:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:31:54]wFMCommunicate OK [21:31:54]CreateOFDProtocolMessage done [21:31:54]OFDSenderStorePacket 31044 [21:31:54]StoreOFDPacket docnum=31044 [21:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CB B0 04 01 63 EF 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CB 19 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 79 00 00 35 04 06 00 BE 40 3D D3 48 C3 58 87 F3 75 22 C1 94 74 [21:31:54]CheckFolder [21:31:54]dirname=/storage/ofd_packets [21:31:54]CheckFolder done [21:31:54]ProducePacketName [21:31:54]name=ofd_packets/00031044 [21:31:54]NVStorageSaveData ofd_packets/00031044 [21:31:54]File name is /storage/ofd_packets/00031044 [21:31:54]Write 298 bytes [21:31:54]NVStorageSaveData done [21:31:54]OFDSenderStorePacket done [21:31:54]KKMCreateOFDPacket done [21:31:54]NVStorageSaveData kkm_last_timestamp [21:31:54]File name is /storage/kkm_last_timestamp [21:31:54]Write 4 bytes [21:31:54]NVStorageSaveData done [21:31:54]ExternCall_PrintAddStr [21:31:54]wPrintStart [21:31:54]Write to MH i2c: 01 00 00 33 29 5C [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 07 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 07 00 33 29 00 00 00 00 00 FF 0F 71 [21:31:54]RasterBufferAndPrint [21:31:54]line Счет N : (1)343484 [21:31:54]line ИНН: 02508201610067 [21:31:54]line Контрольно-Кассовый Чек [21:31:54]line ПРОДАЖА [21:31:54]line ТРК (МРК, ГНК) : 44 [21:31:54]line Товар: 2710194210 [21:31:54]line ДТ-К-2 [21:31:54]line 13.130 * 76.20 [21:31:54]line = 1000.51 [21:31:54]line НДС 12% НСП 1% [21:31:54]line > о реализуемом товаре [21:31:54]line ОКРУГЛЕНИЕ: -0.51 [21:31:54]line ИТОГО: 1000.00 [21:31:54]line Внесено: 1000.00 [21:31:54]line СДАЧА: 0.00 [21:31:54]line НСП 1% : 8.85 [21:31:54]line НДС 12% : 106.25 [21:31:54]line Наличными: 1000.00 [21:31:54]line Безнал.: 0.00 [21:31:54]line Место: АЗС № 78 "Партнер Нефть" [21:31:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:31:54]line СНО: Общий режим [21:31:54]line Чек 277 22.10.2024 21:31 [21:31:54]line Смена: 116 ФФД: 1.0 [21:31:54]line ЗНМ: 0300000137 [21:31:54]line РНМ: 0000000000186857 [21:31:54]line Версия ККМ: v1.0 [21:31:54]line ФМ: 0000000002094219 [21:31:54]line ФД: 31044 [21:31:54]line ФПД: 209183124441283 [21:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213155&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31044&fm=209183124441283&tin=02508201610067®Number=0000000000186857&sum=100000 [21:31:54]OFD Sender: Processing packet 31044 [packets to send 11, broken 10] [21:31:54]ProducePacketName [21:31:54]name=ofd_packets/00031044 [21:31:54]OFD Sender: To server: pG, [21:31:54]CommunicateWithHost lk.salyk.kg:30040 [21:31:54]ConnectInit lk.salyk.kg [21:31:54]written 0, free lines is 4095 [21:31:55]Connected sock=10 [21:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CB B0 04 01 63 EF 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 CB 19 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 79 00 00 35 04 06 00 BE 40 3D D3 48 C3 58 87 F3 75 22 C1 94 74 [21:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 19 29 47 00 77 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 32 30 39 34 32 31 39 10 04 04 00 44 79 00 00 F4 03 04 00 47 C4 17 67 B6 04 01 00 00 98 90 72 65 B4 8E 6A 52 [21:31:55]CommunicateWithHost err = 0 [21:31:55]CheckOFDResponse [21:31:55]1017 (14) - 77093643461234 [21:31:55]1041 (16) - 0000000002094219 [21:31:55]1040 (4) - 31044 [21:31:55]1012 (4) - 22.10.2024 15:27 [21:31:55]1206 (1) - 0 [21:31:55]OFD Sender: Remove packet 31044 [21:31:55]ProducePacketName [21:31:55]name=ofd_packets/00031044 [21:31:55]NVStorageDeleteData [21:31:55]Write to MH i2c: 01 00 00 5E 29 87 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 5E 29 00 00 00 00 00 E6 0C 80 [21:31:55]RasterBufferAndPrint [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]written 0, free lines is 3309 [21:31:55]MH_Cut [21:31:55]Write to MH i2c: D1 01 00 65 29 01 60 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 01 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 01 00 65 29 00 5F [21:31:55]Write to MH i2c: 01 00 00 66 29 8F [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]OFD Sender: No OFD packet to send [21:31:56]*** Cut start [21:31:56]*** Partial cut [21:31:56]*** CUTSNS_PIN = 1 [21:31:56]*** CUTSNS_PIN = 0 [21:31:56]*** Brake cut motor [21:31:56]Read from MH i2c: 01 [21:31:56]MH_I2C_Read... [21:31:56]*** Stop cut motor [21:31:56]*** Cut end [21:31:56]Read from MH i2c: 01 07 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 FF 0F A4 [21:31:56]process_action close_receipt done [21:31:56]requested_data is exist [21:31:56]produce_requested_data [21:31:56]requested_item fm.sn is exist - process it [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 11 00 00 [21:31:56]Write to MH i2c: E2 08 00 67 29 80 11 00 00 00 00 00 00 0A [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 17 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 17 00 67 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [21:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:31:56]wFMCommunicate OK [21:31:56]requested_item fd.num is exist - process it [21:31:56]SAM_PROTO_GetFieldsCounters [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 13 00 00 [21:31:56]Write to MH i2c: E2 08 00 68 29 80 13 00 00 00 00 00 00 0D [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 62 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 62 00 68 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [21:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:56]wFMCommunicate OK [21:31:56]SAM_PROTO_GetFieldsCounters done [21:31:56]requested_item shift.num is exist - process it [21:31:56]requested_item shift.opened is exist - process it [21:31:56]req_shift_opened [21:31:56]FM_GetShiftState [21:31:56]SAM_PROTO_GetShiftState [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 13 01 00 [21:31:56]Write to MH i2c: E2 08 00 69 29 80 13 01 00 00 00 00 00 0F [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 0E 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 0E 00 69 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 E9 [21:31:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:31:56]wFMCommunicate OK [21:31:56]SAM_PROTO_GetShiftState done [21:31:56]FM_GetShiftState done [21:31:56]req_shift_opened done [21:31:56]requested_item shift.open_date is exist - process it [21:31:56]req_shift_open_date [21:31:56]req_shift_open_date done [21:31:56]produce_requested_data done [21:31:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31044,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [21:31:56]process_action_free close_receipt [21:31:56]json_value_free [21:31:56]json_value_free done [21:31:56]process_json_proto returns [21:31:56]Send response to host [21:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31044,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [21:31:56]free response buf [21:31:56]execute_script done [21:31:56]execute_script returns [21:31:56]free content buf [21:31:56]Sock 7.Close socket [21:31:56]Sock 7.Thread stoped [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:50]accept exits with 9 [21:47:50]New connection [21:47:50]New thread 3067043172 created [21:47:50]Thread 3066899812 joined [21:47:50]Waiting for new connection... [21:47:50] Sock 9.Parse request [21:47:50]Sock 9.Check first char [21:47:50]Sock 9.First char is OK [21:47:50]request: POST /json_proto HTTP/1.0 [21:47:50]Method: POST [21:47:50]URL: /json_proto [21:47:50]Method is POST - this is cgi request [21:47:50]url: /json_proto [21:47:50]query_string will be loaded in cgi processing [21:47:50]execute_cgi json_proto POST (null) [21:47:50]execute_cgi path=json_proto method=POST [21:47:50]POST find Content-Length [21:47:50]Host: 172.17.51.3:8080 [21:47:50]Content-Length: 674 [21:47:50]Content-Type: application/json [21:47:50] [21:47:50]POST finish read [21:47:50]Found Content-Length = 674 [21:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:50]execute_script... [21:47: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)343485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:50]POST & json_proto [21:47:50]process_json_proto [21:47:50]json parsed OK: [21:47:50]protocol is kg_v1.0 [21:47:50]action value=close_receipt [21:47:50]process_action close_receipt [21:47:50]cmd_close_receipt [21:47:50]MH_GetDate [21:47:50]Write to MH i2c: F0 00 00 6A 29 82 [21:47:50]Write i2c OK [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: F0 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: F0 09 00 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: F0 09 00 6A 29 00 89 1D 18 67 04 C1 95 66 70 [21:47:50]GetLastDocTimeStamp 1729632715 [21:47:50]current date 1729633673 [21:47:50]FM_GetShiftState [21:47:50]SAM_PROTO_GetShiftState [21:47:50]wFMCommunicate request_size=4 [21:47:50]MH_SAM_APDU [21:47:50]CAPDU: 80 13 01 00 [21:47:50]Write to MH i2c: E2 08 00 6B 29 80 13 01 00 00 00 00 00 11 [21:47:50]Write i2c OK [21:47:50]MH_I2C_Read... [21:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:50]Read from MH i2c: E2 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: E2 0E 00 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: E2 0E 00 6B 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 EB [21:47:50]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:47:50]wFMCommunicate OK [21:47:50]SAM_PROTO_GetShiftState done [21:47:50]FM_GetShiftState done [21:47:50]opened in 1729557342 [21:47:50]opened+sec_in_day 1729643742 [21:47:50]quantity*price = 50063 [21:47:50]sum+1 = 50064 [21:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 278 22.10.2024 21:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31045 ФПД: 175148224890685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214753&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31045&fm=175148224890685&tin=02508201610067®Number=0000000000186857&sum=50000 [21:47:52]StoreToDocumentArchive [21:47:52]shift 116 fd 31045 [21:47:52]save to /storage/0116/doc_00031045 [21:47:52]save last doc name /storage/0116/doc_00031045 to /storage/kkm_last_doc_name [21:47:52]save OK [21:47:52]Clear old archive folders... [21:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:47:52]tlvbuf is 00CD4180 [21:47:52]SAM_PROTO_ClearQueue [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 09 00 00 [21:47:52]Write to MH i2c: E2 08 00 78 29 80 09 00 00 00 00 00 00 13 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [21:47:52]RAPDU: 90 00 [21:47:52]wFMCommunicate OK [21:47:52]SAM_PROTO_ClearQueue done [21:47:52]KKMCreateOFDPacket [21:47:52]OFDProtocolAddRootSTLVToBuf [21:47:52]FM_MakeSignedData [21:47:52]FM_MakeSignedData [21:47:52]SAM_PROTO_SignData [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 0D 01 02 [21:47:52]Write to MH i2c: E2 08 00 79 29 80 0D 01 02 00 00 00 00 1B [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [21:47:52]RAPDU: 90 00 [21:47:52]wFMCommunicate OK [21:47:52]wFMCommunicate request_size=255 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 1D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 79 00 00 35 04 06 00 9F 4B DF BA [21:47:52]Write to MH i2c: E2 02 01 7A 29 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 1D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 79 00 00 35 04 06 00 9F 4B DF BA 00 00 1B [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [21:47:52]RAPDU: 90 00 [21:47:52]wFMCommunicate OK [21:47:52]wFMCommunicate request_size=7 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 0D 02 02 02 47 3D [21:47:52]Write to MH i2c: E2 0A 00 7B 29 80 0D 02 02 02 00 47 3D 00 00 A6 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [21:47:52]RAPDU: 90 00 [21:47:52]wFMCommunicate OK [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 0D 03 02 [21:47:52]Write to MH i2c: E2 08 00 7C 29 80 0D 03 02 00 00 00 00 20 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 0B 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 0B 00 7C 29 00 23 71 BC AD 50 08 B0 64 90 00 8A [21:47:52]RAPDU: 23 71 BC AD 50 08 B0 64 90 00 [21:47:52]wFMCommunicate OK [21:47:52]SAM_PROTO_SignData done [21:47:52]FM_MakeSignedData done [21:47:52]CreateOFDProtocolMessage [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 11 00 00 [21:47:52]Write to MH i2c: E2 08 00 7D 29 80 11 00 00 00 00 00 00 20 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 17 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 17 00 7D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [21:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:47:52]wFMCommunicate OK [21:47:52]CreateOFDProtocolMessage done [21:47:52]OFDSenderStorePacket 31045 [21:47:52]StoreOFDPacket docnum=31045 [21:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F5 1D 04 01 20 1B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 1D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 79 00 00 35 04 06 00 9F 4B DF BA 47 3D 23 71 BC AD 50 08 B0 64 [21:47:52]CheckFolder [21:47:52]dirname=/storage/ofd_packets [21:47:52]CheckFolder done [21:47:52]ProducePacketName [21:47:52]name=ofd_packets/00031045 [21:47:52]NVStorageSaveData ofd_packets/00031045 [21:47:52]File name is /storage/ofd_packets/00031045 [21:47:52]Write 298 bytes [21:47:52]NVStorageSaveData done [21:47:52]OFDSenderStorePacket done [21:47:52]KKMCreateOFDPacket done [21:47:52]NVStorageSaveData kkm_last_timestamp [21:47:52]File name is /storage/kkm_last_timestamp [21:47:52]Write 4 bytes [21:47:52]NVStorageSaveData done [21:47:52]ExternCall_PrintAddStr [21:47:52]wPrintStart [21:47:52]Write to MH i2c: 01 00 00 7E 29 A7 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: 01 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: 01 07 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [21:47:52]RasterBufferAndPrint [21:47:52]line Счет N : (1)343485 [21:47:52]line ИНН: 02508201610067 [21:47:52]line Контрольно-Кассовый Чек [21:47:52]line ПРОДАЖА [21:47:52]line ТРК (МРК, ГНК) : 64 [21:47:52]line Товар: 2710194210 [21:47:52]line ДТ-К-2 [21:47:52]line 6.570 * 76.20 [21:47:52]line = 500.63 [21:47:52]line НДС 12% НСП 1% [21:47:52]line > о реализуемом товаре [21:47:52]line ОКРУГЛЕНИЕ: -0.63 [21:47:52]line ИТОГО: 500.00 [21:47:52]line Внесено: 500.00 [21:47:52]line СДАЧА: 0.00 [21:47:52]line НСП 1% : 4.43 [21:47:52]line НДС 12% : 53.16 [21:47:52]line Наличными: 500.00 [21:47:52]line Безнал.: 0.00 [21:47:52]line Место: АЗС № 78 "Партнер Нефть" [21:47:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:47:52]line СНО: Общий режим [21:47:52]line Чек 278 22.10.2024 21:47 [21:47:52]line Смена: 116 ФФД: 1.0 [21:47:52]line ЗНМ: 0300000137 [21:47:52]line РНМ: 0000000000186857 [21:47:52]line Версия ККМ: v1.0 [21:47:52]line ФМ: 0000000002094219 [21:47:52]line ФД: 31045 [21:47:52]line ФПД: 175148224890685 [21:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214753&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31045&fm=175148224890685&tin=02508201610067®Number=0000000000186857&sum=50000 [21:47:52]OFD Sender: Processing packet 31045 [packets to send 11, broken 10] [21:47:52]ProducePacketName [21:47:52]name=ofd_packets/00031045 [21:47:52]OFD Sender: To server: pG, [21:47:52]CommunicateWithHost lk.salyk.kg:30040 [21:47:52]ConnectInit lk.salyk.kg [21:47:52]written 0, free lines is 4095 [21:47:53]Connected sock=10 [21:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F5 1D 04 01 20 1B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 1D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 79 00 00 35 04 06 00 9F 4B DF BA 47 3D 23 71 BC AD 50 08 B0 64 [21:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C4 4F 47 00 5C 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 32 30 39 34 32 31 39 10 04 04 00 45 79 00 00 F4 03 04 00 05 C8 17 67 B6 04 01 00 00 83 90 8D 73 9C 46 FC 13 [21:47:53]CommunicateWithHost err = 0 [21:47:53]CheckOFDResponse [21:47:53]1017 (14) - 77093643461234 [21:47:53]1041 (16) - 0000000002094219 [21:47:53]1040 (4) - 31045 [21:47:53]1012 (4) - 22.10.2024 15:43 [21:47:53]1206 (1) - 0 [21:47:53]OFD Sender: Remove packet 31045 [21:47:53]ProducePacketName [21:47:53]name=ofd_packets/00031045 [21:47:53]NVStorageDeleteData [21:47:53]Write to MH i2c: 01 00 00 A9 29 D2 [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 E1 0C C6 [21:47:53]RasterBufferAndPrint [21:47:53]line [21:47:53]line [21:47:53]line [21:47:53]line [21:47:53]line [21:47:53]written 0, free lines is 3303 [21:47:53]MH_Cut [21:47:53]Write to MH i2c: D1 01 00 B0 29 01 AB [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D1 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D1 01 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D1 01 00 B0 29 00 AA [21:47:53]Write to MH i2c: 01 00 00 B1 29 DA [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]OFD Sender: No OFD packet to send [21:47:54]*** Cut start [21:47:54]*** Partial cut [21:47:54]*** CUTSNS_PIN = 1 [21:47:54]*** CUTSNS_PIN = 0 [21:47:54]*** Brake cut motor [21:47:54]Read from MH i2c: 01 [21:47:54]MH_I2C_Read... [21:47:54]*** Stop cut motor [21:47:54]*** Cut end [21:47:54]Read from MH i2c: 01 07 00 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 FF 0F EF [21:47:54]process_action close_receipt done [21:47:54]requested_data is exist [21:47:54]produce_requested_data [21:47:54]requested_item fm.sn is exist - process it [21:47:54]wFMCommunicate request_size=4 [21:47:54]MH_SAM_APDU [21:47:54]CAPDU: 80 11 00 00 [21:47:54]Write to MH i2c: E2 08 00 B2 29 80 11 00 00 00 00 00 00 55 [21:47:54]Write i2c OK [21:47:54]MH_I2C_Read... [21:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:54]Read from MH i2c: E2 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 17 00 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 17 00 B2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [21:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:47:54]wFMCommunicate OK [21:47:54]requested_item fd.num is exist - process it [21:47:54]SAM_PROTO_GetFieldsCounters [21:47:54]wFMCommunicate request_size=4 [21:47:54]MH_SAM_APDU [21:47:54]CAPDU: 80 13 00 00 [21:47:54]Write to MH i2c: E2 08 00 B3 29 80 13 00 00 00 00 00 00 58 [21:47:54]Write i2c OK [21:47:54]MH_I2C_Read... [21:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:54]Read from MH i2c: E2 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 62 00 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 62 00 B3 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [21:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:54]wFMCommunicate OK [21:47:54]SAM_PROTO_GetFieldsCounters done [21:47:54]requested_item shift.num is exist - process it [21:47:54]requested_item shift.opened is exist - process it [21:47:54]req_shift_opened [21:47:54]FM_GetShiftState [21:47:54]SAM_PROTO_GetShiftState [21:47:54]wFMCommunicate request_size=4 [21:47:54]MH_SAM_APDU [21:47:54]CAPDU: 80 13 01 00 [21:47:54]Write to MH i2c: E2 08 00 B4 29 80 13 01 00 00 00 00 00 5A [21:47:54]Write i2c OK [21:47:54]MH_I2C_Read... [21:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:54]Read from MH i2c: E2 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 0E 00 [21:47:54]MH_I2C_Read... [21:47:54]Read from MH i2c: E2 0E 00 B4 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 34 [21:47:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [21:47:54]wFMCommunicate OK [21:47:54]SAM_PROTO_GetShiftState done [21:47:54]FM_GetShiftState done [21:47:54]req_shift_opened done [21:47:54]requested_item shift.open_date is exist - process it [21:47:54]req_shift_open_date [21:47:54]req_shift_open_date done [21:47:54]produce_requested_data done [21:47:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31045,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [21:47:54]process_action_free close_receipt [21:47:54]json_value_free [21:47:54]json_value_free done [21:47:54]process_json_proto returns [21:47:54]Send response to host [21:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31045,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [21:47:54]free response buf [21:47:54]execute_script done [21:47:54]execute_script returns [21:47:54]free content buf [21:47:54]Sock 9.Close socket [21:47:54]Sock 9.Thread stoped [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:43]accept exits with 7 [22:22:43]New connection [22:22:43]New thread 3066899812 created [22:22:43]Thread 3067043172 joined [22:22:43]Waiting for new connection... [22:22:43] Sock 7.Parse request [22:22:43]Sock 7.Check first char [22:22:43]Sock 7.First char is OK [22:22:43]request: POST /json_proto HTTP/1.0 [22:22:43]Method: POST [22:22:43]URL: /json_proto [22:22:43]Method is POST - this is cgi request [22:22:43]url: /json_proto [22:22:43]query_string will be loaded in cgi processing [22:22:43]execute_cgi json_proto POST (null) [22:22:43]execute_cgi path=json_proto method=POST [22:22:43]POST find Content-Length [22:22:43]Host: 172.17.51.3:8080 [22:22:43]Content-Length: 677 [22:22:43]Content-Type: application/json [22:22:43] [22:22:43]POST finish read [22:22:43]Found Content-Length = 677 [22:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:43]execute_script... [22:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:43]POST & json_proto [22:22:43]process_json_proto [22:22:43]json parsed OK: [22:22:43]protocol is kg_v1.0 [22:22:43]action value=close_receipt [22:22:43]process_action close_receipt [22:22:43]cmd_close_receipt [22:22:43]MH_GetDate [22:22:43]Write to MH i2c: F0 00 00 B5 29 CD [22:22:43]Write i2c OK [22:22:43]MH_I2C_Read... [22:22:43]Read from MH i2c: F0 [22:22:43]MH_I2C_Read... [22:22:43]Read from MH i2c: F0 09 00 [22:22:43]MH_I2C_Read... [22:22:43]Read from MH i2c: F0 09 00 B5 29 00 B6 25 18 67 04 C1 95 66 F0 [22:22:43]GetLastDocTimeStamp 1729633673 [22:22:43]current date 1729635766 [22:22:43]FM_GetShiftState [22:22:43]SAM_PROTO_GetShiftState [22:22:43]wFMCommunicate request_size=4 [22:22:43]MH_SAM_APDU [22:22:43]CAPDU: 80 13 01 00 [22:22:43]Write to MH i2c: E2 08 00 B6 29 80 13 01 00 00 00 00 00 5C [22:22:43]Write i2c OK [22:22:43]MH_I2C_Read... [22:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:43]Read from MH i2c: E2 [22:22:43]MH_I2C_Read... [22:22:43]Read from MH i2c: E2 0E 00 [22:22:43]MH_I2C_Read... [22:22:43]Read from MH i2c: E2 0E 00 B6 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 36 [22:22:43]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:22:43]wFMCommunicate OK [22:22:43]SAM_PROTO_GetShiftState done [22:22:43]FM_GetShiftState done [22:22:43]opened in 1729557342 [22:22:43]opened+sec_in_day 1729643742 [22:22:43]quantity*price = 40006 [22:22:43]sum+1 = 40007 [22:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 279 22.10.2024 22:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31046 ФПД: 109435005934008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222246&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31046&fm=109435005934008&tin=02508201610067®Number=0000000000186857&sum=40000 [22:22:44]StoreToDocumentArchive [22:22:44]shift 116 fd 31046 [22:22:44]save to /storage/0116/doc_00031046 [22:22:44]save last doc name /storage/0116/doc_00031046 to /storage/kkm_last_doc_name [22:22:44]save OK [22:22:44]Clear old archive folders... [22:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:44]tlvbuf is 00CD40A0 [22:22:44]SAM_PROTO_ClearQueue [22:22:44]wFMCommunicate request_size=4 [22:22:44]MH_SAM_APDU [22:22:44]CAPDU: 80 09 00 00 [22:22:44]Write to MH i2c: E2 08 00 C3 29 80 09 00 00 00 00 00 00 5E [22:22:44]Write i2c OK [22:22:44]MH_I2C_Read... [22:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:44]Read from MH i2c: E2 [22:22:44]MH_I2C_Read... [22:22:44]Read from MH i2c: E2 03 00 [22:22:44]MH_I2C_Read... [22:22:44]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [22:22:44]RAPDU: 90 00 [22:22:44]wFMCommunicate OK [22:22:44]SAM_PROTO_ClearQueue done [22:22:44]KKMCreateOFDPacket [22:22:44]OFDProtocolAddRootSTLVToBuf [22:22:44]FM_MakeSignedData [22:22:44]FM_MakeSignedData [22:22:44]SAM_PROTO_SignData [22:22:44]wFMCommunicate request_size=4 [22:22:44]MH_SAM_APDU [22:22:44]CAPDU: 80 0D 01 02 [22:22:44]Write to MH i2c: E2 08 00 C4 29 80 0D 01 02 00 00 00 00 66 [22:22:44]Write i2c OK [22:22:44]MH_I2C_Read... [22:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:44]Read from MH i2c: E2 [22:22:44]MH_I2C_Read... [22:22:44]Read from MH i2c: E2 03 00 [22:22:44]MH_I2C_Read... [22:22:44]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [22:22:44]RAPDU: 90 00 [22:22:44]wFMCommunicate OK [22:22:44]wFMCommunicate request_size=255 [22:22:44]MH_SAM_APDU [22:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B6 25 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 79 00 00 35 04 06 00 63 [22:22:44]Write to MH i2c: E2 02 01 C5 29 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B6 25 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 79 00 00 35 04 06 00 63 00 00 CE [22:22:44]Write i2c OK [22:22:44]MH_I2C_Read... [22:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:45]Read from MH i2c: E2 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 03 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [22:22:45]RAPDU: 90 00 [22:22:45]wFMCommunicate OK [22:22:45]wFMCommunicate request_size=10 [22:22:45]MH_SAM_APDU [22:22:45]CAPDU: 80 0D 02 02 05 87 D2 A7 99 B8 [22:22:45]Write to MH i2c: E2 0D 00 C6 29 80 0D 02 02 05 00 87 D2 A7 99 B8 00 00 C4 [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:45]Read from MH i2c: E2 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 03 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [22:22:45]RAPDU: 90 00 [22:22:45]wFMCommunicate OK [22:22:45]wFMCommunicate request_size=4 [22:22:45]MH_SAM_APDU [22:22:45]CAPDU: 80 0D 03 02 [22:22:45]Write to MH i2c: E2 08 00 C7 29 80 0D 03 02 00 00 00 00 6B [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:45]Read from MH i2c: E2 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 0B 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 0B 00 C7 29 00 34 5A 40 99 D8 7C 5C C5 90 00 48 [22:22:45]RAPDU: 34 5A 40 99 D8 7C 5C C5 90 00 [22:22:45]wFMCommunicate OK [22:22:45]SAM_PROTO_SignData done [22:22:45]FM_MakeSignedData done [22:22:45]CreateOFDProtocolMessage [22:22:45]wFMCommunicate request_size=4 [22:22:45]MH_SAM_APDU [22:22:45]CAPDU: 80 11 00 00 [22:22:45]Write to MH i2c: E2 08 00 C8 29 80 11 00 00 00 00 00 00 6B [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:45]Read from MH i2c: E2 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 17 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: E2 17 00 C8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B9 [22:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:22:45]wFMCommunicate OK [22:22:45]CreateOFDProtocolMessage done [22:22:45]OFDSenderStorePacket 31046 [22:22:45]StoreOFDPacket docnum=31046 [22:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AF 99 07 01 2C FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B6 25 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 79 00 00 35 04 06 00 63 87 D2 A7 99 B8 34 5A 40 99 D8 7C 5C C5 [22:22:45]CheckFolder [22:22:45]dirname=/storage/ofd_packets [22:22:45]CheckFolder done [22:22:45]ProducePacketName [22:22:45]name=ofd_packets/00031046 [22:22:45]NVStorageSaveData ofd_packets/00031046 [22:22:45]File name is /storage/ofd_packets/00031046 [22:22:45]Write 301 bytes [22:22:45]NVStorageSaveData done [22:22:45]OFDSenderStorePacket done [22:22:45]KKMCreateOFDPacket done [22:22:45]NVStorageSaveData kkm_last_timestamp [22:22:45]File name is /storage/kkm_last_timestamp [22:22:45]Write 4 bytes [22:22:45]NVStorageSaveData done [22:22:45]ExternCall_PrintAddStr [22:22:45]wPrintStart [22:22:45]Write to MH i2c: 01 00 00 C9 29 F2 [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 07 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 07 00 C9 29 00 00 00 00 00 FF 0F 07 [22:22:45]RasterBufferAndPrint [22:22:45]line Счет N : (1)343486 [22:22:45]line ИНН: 02508201610067 [22:22:45]line Контрольно-Кассовый Чек [22:22:45]line ПРОДАЖА [22:22:45]line ТРК (МРК, ГНК) : 63 [22:22:45]line Товар: 2710124130 [22:22:45]line Аи-92-К-2 [22:22:45]line 5.980 * 66.90 [22:22:45]line = 400.06 [22:22:45]line НДС 12% НСП 1% [22:22:45]line > о реализуемом товаре [22:22:45]line ОКРУГЛЕНИЕ: -0.06 [22:22:45]line ИТОГО: 400.00 [22:22:45]line Внесено: 400.00 [22:22:45]line СДАЧА: 0.00 [22:22:45]line НСП 1% : 3.54 [22:22:45]line НДС 12% : 42.48 [22:22:45]line Наличными: 400.00 [22:22:45]line Безнал.: 0.00 [22:22:45]line Место: АЗС № 78 "Партнер Нефть" [22:22:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:22:45]line СНО: Общий режим [22:22:45]line Чек 279 22.10.2024 22:22 [22:22:45]line Смена: 116 ФФД: 1.0 [22:22:45]line ЗНМ: 0300000137 [22:22:45]line РНМ: 0000000000186857 [22:22:45]line Версия ККМ: v1.0 [22:22:45]line ФМ: 0000000002094219 [22:22:45]line ФД: 31046 [22:22:45]line ФПД: 109435005934008 [22:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222246&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31046&fm=109435005934008&tin=02508201610067®Number=0000000000186857&sum=40000 [22:22:45]OFD Sender: Processing packet 31046 [packets to send 11, broken 10] [22:22:45]ProducePacketName [22:22:45]name=ofd_packets/00031046 [22:22:45]OFD Sender: To server: pG, [22:22:45]CommunicateWithHost lk.salyk.kg:30040 [22:22:45]ConnectInit lk.salyk.kg [22:22:45]written 0, free lines is 4095 [22:22:45]Connected sock=9 [22:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AF 99 07 01 2C FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B6 25 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 79 00 00 35 04 06 00 63 87 D2 A7 99 B8 34 5A 40 99 D8 7C 5C C5 [22:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 29 23 47 00 F9 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 32 30 39 34 32 31 39 10 04 04 00 46 79 00 00 F4 03 04 00 32 D0 17 67 B6 04 01 00 00 1E 70 27 D9 E8 7A 46 7A [22:22:45]CommunicateWithHost err = 0 [22:22:45]CheckOFDResponse [22:22:45]1017 (14) - 77093643461234 [22:22:45]1041 (16) - 0000000002094219 [22:22:45]1040 (4) - 31046 [22:22:45]1012 (4) - 22.10.2024 16:17 [22:22:45]1206 (1) - 0 [22:22:45]OFD Sender: Remove packet 31046 [22:22:45]ProducePacketName [22:22:45]name=ofd_packets/00031046 [22:22:45]NVStorageDeleteData [22:22:45]Write to MH i2c: 01 00 00 F4 29 1D [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 07 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: 01 07 00 F4 29 00 00 00 00 00 FA 0C 2A [22:22:45]RasterBufferAndPrint [22:22:45]line [22:22:45]line [22:22:45]line [22:22:45]line [22:22:45]line [22:22:45]written 0, free lines is 3331 [22:22:45]MH_Cut [22:22:45]Write to MH i2c: D1 01 00 FB 29 01 F6 [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: D1 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: D1 01 00 [22:22:45]MH_I2C_Read... [22:22:45]Read from MH i2c: D1 01 00 FB 29 00 F5 [22:22:45]Write to MH i2c: 01 00 00 FC 29 25 [22:22:45]Write i2c OK [22:22:45]MH_I2C_Read... [22:22:46]OFD Sender: No OFD packet to send [22:22:46]*** Cut start [22:22:46]*** Partial cut [22:22:46]*** CUTSNS_PIN = 1 [22:22:46]*** CUTSNS_PIN = 0 [22:22:46]*** Brake cut motor [22:22:47]Read from MH i2c: 01 [22:22:47]MH_I2C_Read... [22:22:47]*** Stop cut motor [22:22:47]*** Cut end [22:22:47]Read from MH i2c: 01 07 00 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: 01 07 00 FC 29 00 00 00 00 00 FF 0F 3A [22:22:47]process_action close_receipt done [22:22:47]requested_data is exist [22:22:47]produce_requested_data [22:22:47]requested_item fm.sn is exist - process it [22:22:47]wFMCommunicate request_size=4 [22:22:47]MH_SAM_APDU [22:22:47]CAPDU: 80 11 00 00 [22:22:47]Write to MH i2c: E2 08 00 FD 29 80 11 00 00 00 00 00 00 A0 [22:22:47]Write i2c OK [22:22:47]MH_I2C_Read... [22:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:47]Read from MH i2c: E2 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 17 00 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 17 00 FD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [22:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:22:47]wFMCommunicate OK [22:22:47]requested_item fd.num is exist - process it [22:22:47]SAM_PROTO_GetFieldsCounters [22:22:47]wFMCommunicate request_size=4 [22:22:47]MH_SAM_APDU [22:22:47]CAPDU: 80 13 00 00 [22:22:47]Write to MH i2c: E2 08 00 FE 29 80 13 00 00 00 00 00 00 A3 [22:22:47]Write i2c OK [22:22:47]MH_I2C_Read... [22:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:47]Read from MH i2c: E2 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 62 00 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 62 00 FE 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:47]wFMCommunicate OK [22:22:47]SAM_PROTO_GetFieldsCounters done [22:22:47]requested_item shift.num is exist - process it [22:22:47]requested_item shift.opened is exist - process it [22:22:47]req_shift_opened [22:22:47]FM_GetShiftState [22:22:47]SAM_PROTO_GetShiftState [22:22:47]wFMCommunicate request_size=4 [22:22:47]MH_SAM_APDU [22:22:47]CAPDU: 80 13 01 00 [22:22:47]Write to MH i2c: E2 08 00 FF 29 80 13 01 00 00 00 00 00 A5 [22:22:47]Write i2c OK [22:22:47]MH_I2C_Read... [22:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:47]Read from MH i2c: E2 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 0E 00 [22:22:47]MH_I2C_Read... [22:22:47]Read from MH i2c: E2 0E 00 FF 29 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 7F [22:22:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:22:47]wFMCommunicate OK [22:22:47]SAM_PROTO_GetShiftState done [22:22:47]FM_GetShiftState done [22:22:47]req_shift_opened done [22:22:47]requested_item shift.open_date is exist - process it [22:22:47]req_shift_open_date [22:22:47]req_shift_open_date done [22:22:47]produce_requested_data done [22:22:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31046,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [22:22:47]process_action_free close_receipt [22:22:47]json_value_free [22:22:47]json_value_free done [22:22:47]process_json_proto returns [22:22:47]Send response to host [22:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31046,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [22:22:47]free response buf [22:22:47]execute_script done [22:22:47]execute_script returns [22:22:47]free content buf [22:22:47]Sock 7.Close socket [22:22:47]Sock 7.Thread stoped [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:54]accept exits with 10 [22:27:54]New connection [22:27:54]New thread 3067043172 created [22:27:54]Thread 3066899812 joined [22:27:54]Waiting for new connection... [22:27:54] Sock 10.Parse request [22:27:54]Sock 10.Check first char [22:27:54]Sock 10.First char is OK [22:27:54]request: POST /json_proto HTTP/1.0 [22:27:54]Method: POST [22:27:54]URL: /json_proto [22:27:54]Method is POST - this is cgi request [22:27:54]url: /json_proto [22:27:54]query_string will be loaded in cgi processing [22:27:54]execute_cgi json_proto POST (null) [22:27:54]execute_cgi path=json_proto method=POST [22:27:54]POST find Content-Length [22:27:54]Host: 172.17.51.3:8080 [22:27:54]Content-Length: 682 [22:27:54]Content-Type: application/json [22:27:54] [22:27:54]POST finish read [22:27:54]Found Content-Length = 682 [22:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:54]execute_script... [22: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)343487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:54]POST & json_proto [22:27:54]process_json_proto [22:27:54]json parsed OK: [22:27:54]protocol is kg_v1.0 [22:27:54]action value=close_receipt [22:27:54]process_action close_receipt [22:27:54]cmd_close_receipt [22:27:54]MH_GetDate [22:27:54]Write to MH i2c: F0 00 00 00 2A 19 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: F0 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: F0 09 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: F0 09 00 00 2A 00 ED 26 18 67 04 C1 95 66 74 [22:27:54]GetLastDocTimeStamp 1729635766 [22:27:54]current date 1729636077 [22:27:54]FM_GetShiftState [22:27:54]SAM_PROTO_GetShiftState [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 13 01 00 [22:27:54]Write to MH i2c: E2 08 00 01 2A 80 13 01 00 00 00 00 00 A8 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 01 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 82 [22:27:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_GetShiftState done [22:27:54]FM_GetShiftState done [22:27:54]opened in 1729557342 [22:27:54]opened+sec_in_day 1729643742 [22:27:54]quantity*price = 100015 [22:27:54]sum+1 = 100017 [22:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 280 22.10.2024 22:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31047 ФПД: 198070906167505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31047&fm=198070906167505&tin=02508201610067®Number=0000000000186857&sum=100000 [22:27:55]StoreToDocumentArchive [22:27:55]shift 116 fd 31047 [22:27:55]save to /storage/0116/doc_00031047 [22:27:55]save last doc name /storage/0116/doc_00031047 to /storage/kkm_last_doc_name [22:27:55]save OK [22:27:55]Clear old archive folders... [22:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:55]tlvbuf is B6DBE980 [22:27:55]SAM_PROTO_ClearQueue [22:27:55]wFMCommunicate request_size=4 [22:27:55]MH_SAM_APDU [22:27:55]CAPDU: 80 09 00 00 [22:27:55]Write to MH i2c: E2 08 00 0E 2A 80 09 00 00 00 00 00 00 AA [22:27:55]Write i2c OK [22:27:55]MH_I2C_Read... [22:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:55]Read from MH i2c: E2 [22:27:55]MH_I2C_Read... [22:27:55]Read from MH i2c: E2 03 00 [22:27:55]MH_I2C_Read... [22:27:55]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [22:27:55]RAPDU: 90 00 [22:27:55]wFMCommunicate OK [22:27:55]SAM_PROTO_ClearQueue done [22:27:55]KKMCreateOFDPacket [22:27:55]OFDProtocolAddRootSTLVToBuf [22:27:55]FM_MakeSignedData [22:27:55]FM_MakeSignedData [22:27:55]SAM_PROTO_SignData [22:27:55]wFMCommunicate request_size=4 [22:27:55]MH_SAM_APDU [22:27:55]CAPDU: 80 0D 01 02 [22:27:55]Write to MH i2c: E2 08 00 0F 2A 80 0D 01 02 00 00 00 00 B2 [22:27:55]Write i2c OK [22:27:55]MH_I2C_Read... [22:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:55]Read from MH i2c: E2 [22:27:55]MH_I2C_Read... [22:27:55]Read from MH i2c: E2 03 00 [22:27:55]MH_I2C_Read... [22:27:55]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [22:27:55]RAPDU: 90 00 [22:27:55]wFMCommunicate OK [22:27:55]wFMCommunicate request_size=255 [22:27:55]MH_SAM_APDU [22: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 ED 26 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 79 00 00 35 04 06 00 B4 [22:27:55]Write to MH i2c: E2 02 01 10 2A 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 ED 26 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 79 00 00 35 04 06 00 B4 00 00 D0 [22:27:55]Write i2c OK [22:27:55]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 03 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [22:27:56]RAPDU: 90 00 [22:27:56]wFMCommunicate OK [22:27:56]wFMCommunicate request_size=10 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 0D 02 02 05 24 FA 00 A0 D1 [22:27:56]Write to MH i2c: E2 0D 00 11 2A 80 0D 02 02 05 00 24 FA 00 A0 D1 00 00 4E [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 03 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [22:27:56]RAPDU: 90 00 [22:27:56]wFMCommunicate OK [22:27:56]wFMCommunicate request_size=4 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 0D 03 02 [22:27:56]Write to MH i2c: E2 08 00 12 2A 80 0D 03 02 00 00 00 00 B7 [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 0B 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 0B 00 12 2A 00 67 5A BB 9D 56 89 92 19 90 00 5B [22:27:56]RAPDU: 67 5A BB 9D 56 89 92 19 90 00 [22:27:56]wFMCommunicate OK [22:27:56]SAM_PROTO_SignData done [22:27:56]FM_MakeSignedData done [22:27:56]CreateOFDProtocolMessage [22:27:56]wFMCommunicate request_size=4 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 11 00 00 [22:27:56]Write to MH i2c: E2 08 00 13 2A 80 11 00 00 00 00 00 00 B7 [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 17 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 17 00 13 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [22:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:27:56]wFMCommunicate OK [22:27:56]CreateOFDProtocolMessage done [22:27:56]OFDSenderStorePacket 31047 [22:27:56]StoreOFDPacket docnum=31047 [22:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AB FB 07 01 44 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 ED 26 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 79 00 00 35 04 06 00 B4 24 FA 00 A0 D1 67 5A BB 9D 56 89 92 19 [22:27:56]CheckFolder [22:27:56]dirname=/storage/ofd_packets [22:27:56]CheckFolder done [22:27:56]ProducePacketName [22:27:56]name=ofd_packets/00031047 [22:27:56]NVStorageSaveData ofd_packets/00031047 [22:27:56]File name is /storage/ofd_packets/00031047 [22:27:56]Write 301 bytes [22:27:56]NVStorageSaveData done [22:27:56]OFDSenderStorePacket done [22:27:56]KKMCreateOFDPacket done [22:27:56]NVStorageSaveData kkm_last_timestamp [22:27:56]File name is /storage/kkm_last_timestamp [22:27:56]Write 4 bytes [22:27:56]NVStorageSaveData done [22:27:56]ExternCall_PrintAddStr [22:27:56]wPrintStart [22:27:56]Write to MH i2c: 01 00 00 14 2A 3E [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 07 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 FF 0F 53 [22:27:56]RasterBufferAndPrint [22:27:56]line Счет N : (1)343487 [22:27:56]line ИНН: 02508201610067 [22:27:56]line Контрольно-Кассовый Чек [22:27:56]line ПРОДАЖА [22:27:56]line ТРК (МРК, ГНК) : 53 [22:27:56]line Товар: 2710124130 [22:27:56]line Аи-92-К-2 [22:27:56]line 14.950 * 66.90 [22:27:56]line = 1000.16 [22:27:56]line НДС 12% НСП 1% [22:27:56]line > о реализуемом товаре [22:27:56]line ОКРУГЛЕНИЕ: -0.16 [22:27:56]line ИТОГО: 1000.00 [22:27:56]line Внесено: 1000.00 [22:27:56]line СДАЧА: 0.00 [22:27:56]line НСП 1% : 8.85 [22:27:56]line НДС 12% : 106.21 [22:27:56]line Наличными: 1000.00 [22:27:56]line Безнал.: 0.00 [22:27:56]line Место: АЗС № 78 "Партнер Нефть" [22:27:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:27:56]line СНО: Общий режим [22:27:56]line Чек 280 22.10.2024 22:27 [22:27:56]line Смена: 116 ФФД: 1.0 [22:27:56]line ЗНМ: 0300000137 [22:27:56]line РНМ: 0000000000186857 [22:27:56]line Версия ККМ: v1.0 [22:27:56]line ФМ: 0000000002094219 [22:27:56]line ФД: 31047 [22:27:56]line ФПД: 198070906167505 [22:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31047&fm=198070906167505&tin=02508201610067®Number=0000000000186857&sum=100000 [22:27:56]OFD Sender: Processing packet 31047 [packets to send 11, broken 10] [22:27:56]ProducePacketName [22:27:56]name=ofd_packets/00031047 [22:27:56]OFD Sender: To server: pG, [22:27:56]CommunicateWithHost lk.salyk.kg:30040 [22:27:56]ConnectInit lk.salyk.kg [22:27:56]written 0, free lines is 4095 [22:27:56]Connected sock=9 [22:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AB FB 07 01 44 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 ED 26 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 79 00 00 35 04 06 00 B4 24 FA 00 A0 D1 67 5A BB 9D 56 89 92 19 [22:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 23 EA 47 00 97 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 79 00 00 F4 03 04 00 69 D1 17 67 B6 04 01 00 00 8A F0 54 B2 EB 51 43 FF [22:27:56]CommunicateWithHost err = 0 [22:27:56]CheckOFDResponse [22:27:56]1017 (14) - 77093643461234 [22:27:56]1041 (16) - 0000000002094219 [22:27:56]1040 (4) - 31047 [22:27:56]1012 (4) - 22.10.2024 16:23 [22:27:56]1206 (1) - 0 [22:27:56]OFD Sender: Remove packet 31047 [22:27:56]ProducePacketName [22:27:56]name=ofd_packets/00031047 [22:27:56]NVStorageDeleteData [22:27:56]Write to MH i2c: 01 00 00 3F 2A 69 [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 07 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 07 00 3F 2A 00 00 00 00 00 F4 0C 70 [22:27:56]RasterBufferAndPrint [22:27:56]line [22:27:56]line [22:27:56]line [22:27:56]line [22:27:56]line [22:27:56]written 0, free lines is 3322 [22:27:57]MH_Cut [22:27:57]Write to MH i2c: D1 01 00 46 2A 01 42 [22:27:57]Write i2c OK [22:27:57]MH_I2C_Read... [22:27:57]Read from MH i2c: D1 [22:27:57]MH_I2C_Read... [22:27:57]Read from MH i2c: D1 01 00 [22:27:57]MH_I2C_Read... [22:27:57]Read from MH i2c: D1 01 00 46 2A 00 41 [22:27:57]Write to MH i2c: 01 00 00 47 2A 71 [22:27:57]Write i2c OK [22:27:57]MH_I2C_Read... [22:27:57]OFD Sender: No OFD packet to send [22:27:57]*** Cut start [22:27:57]*** Partial cut [22:27:57]*** CUTSNS_PIN = 1 [22:27:57]*** CUTSNS_PIN = 0 [22:27:57]*** Brake cut motor [22:27:58]Read from MH i2c: 01 [22:27:58]MH_I2C_Read... [22:27:58]*** Stop cut motor [22:27:58]*** Cut end [22:27:58]Read from MH i2c: 01 07 00 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 FF 0F 86 [22:27:58]process_action close_receipt done [22:27:58]requested_data is exist [22:27:58]produce_requested_data [22:27:58]requested_item fm.sn is exist - process it [22:27:58]wFMCommunicate request_size=4 [22:27:58]MH_SAM_APDU [22:27:58]CAPDU: 80 11 00 00 [22:27:58]Write to MH i2c: E2 08 00 48 2A 80 11 00 00 00 00 00 00 EC [22:27:58]Write i2c OK [22:27:58]MH_I2C_Read... [22:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:58]Read from MH i2c: E2 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 17 00 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 17 00 48 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [22:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:27:58]wFMCommunicate OK [22:27:58]requested_item fd.num is exist - process it [22:27:58]SAM_PROTO_GetFieldsCounters [22:27:58]wFMCommunicate request_size=4 [22:27:58]MH_SAM_APDU [22:27:58]CAPDU: 80 13 00 00 [22:27:58]Write to MH i2c: E2 08 00 49 2A 80 13 00 00 00 00 00 00 EF [22:27:58]Write i2c OK [22:27:58]MH_I2C_Read... [22:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:58]Read from MH i2c: E2 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 62 00 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 62 00 49 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [22:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:58]wFMCommunicate OK [22:27:58]SAM_PROTO_GetFieldsCounters done [22:27:58]requested_item shift.num is exist - process it [22:27:58]requested_item shift.opened is exist - process it [22:27:58]req_shift_opened [22:27:58]FM_GetShiftState [22:27:58]SAM_PROTO_GetShiftState [22:27:58]wFMCommunicate request_size=4 [22:27:58]MH_SAM_APDU [22:27:58]CAPDU: 80 13 01 00 [22:27:58]Write to MH i2c: E2 08 00 4A 2A 80 13 01 00 00 00 00 00 F1 [22:27:58]Write i2c OK [22:27:58]MH_I2C_Read... [22:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:58]Read from MH i2c: E2 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 0E 00 [22:27:58]MH_I2C_Read... [22:27:58]Read from MH i2c: E2 0E 00 4A 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CB [22:27:58]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:27:58]wFMCommunicate OK [22:27:58]SAM_PROTO_GetShiftState done [22:27:58]FM_GetShiftState done [22:27:58]req_shift_opened done [22:27:58]requested_item shift.open_date is exist - process it [22:27:58]req_shift_open_date [22:27:58]req_shift_open_date done [22:27:58]produce_requested_data done [22:27:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31047,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [22:27:58]process_action_free close_receipt [22:27:58]json_value_free [22:27:58]json_value_free done [22:27:58]process_json_proto returns [22:27:58]Send response to host [22:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31047,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [22:27:58]free response buf [22:27:58]execute_script done [22:27:58]execute_script returns [22:27:58]free content buf [22:27:58]Sock 10.Close socket [22:27:58]Sock 10.Thread stoped [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]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:16]accept exits with 7 [22:49:16]New connection [22:49:16]New thread 3066899812 created [22:49:16]Thread 3067043172 joined [22:49:16]Waiting for new connection... [22:49:16] Sock 7.Parse request [22:49:16]Sock 7.Check first char [22:49:16]Sock 7.First char is OK [22:49:16]request: POST /json_proto HTTP/1.0 [22:49:16]Method: POST [22:49:16]URL: /json_proto [22:49:16]Method is POST - this is cgi request [22:49:16]url: /json_proto [22:49:16]query_string will be loaded in cgi processing [22:49:16]execute_cgi json_proto POST (null) [22:49:16]execute_cgi path=json_proto method=POST [22:49:16]POST find Content-Length [22:49:16]Host: 172.17.51.3:8080 [22:49:16]Content-Length: 688 [22:49:16]Content-Type: application/json [22:49:16] [22:49:16]POST finish read [22:49:16]Found Content-Length = 688 [22:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [22:49:16]execute_script... [22:49: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)343488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [22:49:16]POST & json_proto [22:49:16]process_json_proto [22:49:16]json parsed OK: [22:49:16]protocol is kg_v1.0 [22:49:16]action value=close_receipt [22:49:16]process_action close_receipt [22:49:16]cmd_close_receipt [22:49:16]MH_GetDate [22:49:16]Write to MH i2c: F0 00 00 4B 2A 64 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: F0 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: F0 09 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: F0 09 00 4B 2A 00 EF 2B 18 67 04 C1 95 66 C6 [22:49:16]GetLastDocTimeStamp 1729636077 [22:49:16]current date 1729637359 [22:49:16]FM_GetShiftState [22:49:16]SAM_PROTO_GetShiftState [22:49:16]wFMCommunicate request_size=4 [22:49:16]MH_SAM_APDU [22:49:16]CAPDU: 80 13 01 00 [22:49:16]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:16]Read from MH i2c: E2 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 0E 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 CD [22:49:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:49:16]wFMCommunicate OK [22:49:16]SAM_PROTO_GetShiftState done [22:49:16]FM_GetShiftState done [22:49:16]opened in 1729557342 [22:49:16]opened+sec_in_day 1729643742 [22:49:16]quantity*price = 150076 [22:49:16]sum+1 = 150078 [22:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 281 22.10.2024 22:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31048 ФПД: 60371783995861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224919&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31048&fm=60371783995861&tin=02508201610067®Number=0000000000186857&sum=150000 [22:49:17]StoreToDocumentArchive [22:49:17]shift 116 fd 31048 [22:49:17]save to /storage/0116/doc_00031048 [22:49:17]save last doc name /storage/0116/doc_00031048 to /storage/kkm_last_doc_name [22:49:17]save OK [22:49:17]Clear old archive folders... [22:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:49:17]tlvbuf is B6EF04E0 [22:49:17]SAM_PROTO_ClearQueue [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 09 00 00 [22:49:17]Write to MH i2c: E2 08 00 59 2A 80 09 00 00 00 00 00 00 F5 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [22:49:17]RAPDU: 90 00 [22:49:17]wFMCommunicate OK [22:49:17]SAM_PROTO_ClearQueue done [22:49:17]KKMCreateOFDPacket [22:49:17]OFDProtocolAddRootSTLVToBuf [22:49:17]FM_MakeSignedData [22:49:17]FM_MakeSignedData [22:49:17]SAM_PROTO_SignData [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 0D 01 02 [22:49:17]Write to MH i2c: E2 08 00 5A 2A 80 0D 01 02 00 00 00 00 FD [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [22:49:17]RAPDU: 90 00 [22:49:17]wFMCommunicate OK [22:49:17]wFMCommunicate request_size=255 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 19 01 00 00 F4 03 04 00 EF 2B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 79 00 [22:49:17]Write to MH i2c: E2 02 01 5B 2A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 19 01 00 00 F4 03 04 00 EF 2B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 79 00 00 00 91 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [22:49:17]RAPDU: 90 00 [22:49:17]wFMCommunicate OK [22:49:17]wFMCommunicate request_size=16 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 36 E8 66 BD 51 D5 [22:49:17]Write to MH i2c: E2 13 00 5C 2A 80 0D 02 02 0B 00 00 35 04 06 00 36 E8 66 BD 51 D5 00 00 BC [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [22:49:17]RAPDU: 90 00 [22:49:17]wFMCommunicate OK [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 0D 03 02 [22:49:17]Write to MH i2c: E2 08 00 5D 2A 80 0D 03 02 00 00 00 00 02 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 0B 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 0B 00 5D 2A 00 9C 29 8A 01 5F A4 28 04 90 00 82 [22:49:17]RAPDU: 9C 29 8A 01 5F A4 28 04 90 00 [22:49:17]wFMCommunicate OK [22:49:17]SAM_PROTO_SignData done [22:49:17]FM_MakeSignedData done [22:49:17]CreateOFDProtocolMessage [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 11 00 00 [22:49:17]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 17 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 50 [22:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:49:17]wFMCommunicate OK [22:49:17]CreateOFDProtocolMessage done [22:49:17]OFDSenderStorePacket 31048 [22:49:17]StoreOFDPacket docnum=31048 [22:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 2D 4F 0D 01 C4 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 19 01 00 00 F4 03 04 00 EF 2B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 79 00 00 35 04 06 00 36 E8 66 BD 51 D5 9C 29 8A 01 5F A4 28 04 [22:49:17]CheckFolder [22:49:17]dirname=/storage/ofd_packets [22:49:17]CheckFolder done [22:49:17]ProducePacketName [22:49:17]name=ofd_packets/00031048 [22:49:17]NVStorageSaveData ofd_packets/00031048 [22:49:17]File name is /storage/ofd_packets/00031048 [22:49:17]Write 307 bytes [22:49:17]NVStorageSaveData done [22:49:17]OFDSenderStorePacket done [22:49:17]KKMCreateOFDPacket done [22:49:17]NVStorageSaveData kkm_last_timestamp [22:49:17]File name is /storage/kkm_last_timestamp [22:49:17]Write 4 bytes [22:49:17]NVStorageSaveData done [22:49:17]ExternCall_PrintAddStr [22:49:17]wPrintStart [22:49:17]Write to MH i2c: 01 00 00 5F 2A 89 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 07 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [22:49:17]RasterBufferAndPrint [22:49:17]line Счет N : (1)343488 [22:49:17]line ИНН: 02508201610067 [22:49:17]line Контрольно-Кассовый Чек [22:49:17]line ПРОДАЖА [22:49:17]line ТРК (МРК, ГНК) : 51 [22:49:17]line Товар: 2710194210 [22:49:17]line D-ENERGY Дт-К-2 [22:49:17]line 19.440 * 77.20 [22:49:17]line = 1500.77 [22:49:17]line НДС 12% НСП 1% [22:49:17]line > о реализуемом товаре [22:49:17]line ОКРУГЛЕНИЕ: -0.77 [22:49:17]line ИТОГО: 1500.00 [22:49:17]line Внесено: 1500.00 [22:49:17]line СДАЧА: 0.00 [22:49:17]line НСП 1% : 13.28 [22:49:17]line НДС 12% : 159.37 [22:49:17]line Наличными: 1500.00 [22:49:17]line Безнал.: 0.00 [22:49:17]line Место: АЗС № 78 "Партнер Нефть" [22:49:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:49:17]line СНО: Общий режим [22:49:17]line Чек 281 22.10.2024 22:49 [22:49:17]line Смена: 116 ФФД: 1.0 [22:49:17]line ЗНМ: 0300000137 [22:49:17]line РНМ: 0000000000186857 [22:49:17]line Версия ККМ: v1.0 [22:49:17]line ФМ: 0000000002094219 [22:49:17]line ФД: 31048 [22:49:17]line ФПД: 60371783995861 [22:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224919&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31048&fm=60371783995861&tin=02508201610067®Number=0000000000186857&sum=150000 [22:49:18]OFD Sender: Processing packet 31048 [packets to send 11, broken 10] [22:49:18]ProducePacketName [22:49:18]name=ofd_packets/00031048 [22:49:18]OFD Sender: To server: pG, [22:49:18]CommunicateWithHost lk.salyk.kg:30040 [22:49:18]ConnectInit lk.salyk.kg [22:49:18]written 0, free lines is 4095 [22:49:18]Connected sock=10 [22:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 2D 4F 0D 01 C4 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 19 01 00 00 F4 03 04 00 EF 2B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 79 00 00 35 04 06 00 36 E8 66 BD 51 D5 9C 29 8A 01 5F A4 28 04 [22:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F7 B3 47 00 27 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 79 00 00 F4 03 04 00 6B D6 17 67 B6 04 01 00 00 01 5E 8C 78 A7 23 DC 4A [22:49:18]CommunicateWithHost err = 0 [22:49:18]CheckOFDResponse [22:49:18]1017 (14) - 77093643461234 [22:49:18]1041 (16) - 0000000002094219 [22:49:18]1040 (4) - 31048 [22:49:18]1012 (4) - 22.10.2024 16:44 [22:49:18]1206 (1) - 0 [22:49:18]OFD Sender: Remove packet 31048 [22:49:18]ProducePacketName [22:49:18]name=ofd_packets/00031048 [22:49:18]NVStorageDeleteData [22:49:18]Write to MH i2c: 01 00 00 8A 2A B4 [22:49:18]Write i2c OK [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: 01 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: 01 07 00 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 F7 0C BE [22:49:18]RasterBufferAndPrint [22:49:18]line [22:49:18]line [22:49:18]line [22:49:18]line [22:49:18]line [22:49:18]written 0, free lines is 3326 [22:49:18]MH_Cut [22:49:18]Write to MH i2c: D1 01 00 91 2A 01 8D [22:49:18]Write i2c OK [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: D1 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: D1 01 00 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: D1 01 00 91 2A 00 8C [22:49:18]Write to MH i2c: 01 00 00 92 2A BC [22:49:18]Write i2c OK [22:49:18]MH_I2C_Read... [22:49:19]OFD Sender: No OFD packet to send [22:49:19]*** Cut start [22:49:19]*** Partial cut [22:49:19]*** CUTSNS_PIN = 1 [22:49:19]*** CUTSNS_PIN = 0 [22:49:19]*** Brake cut motor [22:49:19]Read from MH i2c: 01 [22:49:20]MH_I2C_Read... [22:49:20]*** Stop cut motor [22:49:20]*** Cut end [22:49:20]Read from MH i2c: 01 07 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 FF 0F D1 [22:49:20]process_action close_receipt done [22:49:20]requested_data is exist [22:49:20]produce_requested_data [22:49:20]requested_item fm.sn is exist - process it [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 11 00 00 [22:49:20]Write to MH i2c: E2 08 00 93 2A 80 11 00 00 00 00 00 00 37 [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 17 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 17 00 93 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [22:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:49:20]wFMCommunicate OK [22:49:20]requested_item fd.num is exist - process it [22:49:20]SAM_PROTO_GetFieldsCounters [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 13 00 00 [22:49:20]Write to MH i2c: E2 08 00 94 2A 80 13 00 00 00 00 00 00 3A [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 62 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 62 00 94 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_GetFieldsCounters done [22:49:20]requested_item shift.num is exist - process it [22:49:20]requested_item shift.opened is exist - process it [22:49:20]req_shift_opened [22:49:20]FM_GetShiftState [22:49:20]SAM_PROTO_GetShiftState [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 13 01 00 [22:49:20]Write to MH i2c: E2 08 00 95 2A 80 13 01 00 00 00 00 00 3C [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0E 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0E 00 95 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 16 [22:49:20]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_GetShiftState done [22:49:20]FM_GetShiftState done [22:49:20]req_shift_opened done [22:49:20]requested_item shift.open_date is exist - process it [22:49:20]req_shift_open_date [22:49:20]req_shift_open_date done [22:49:20]produce_requested_data done [22:49:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31048,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [22:49:20]process_action_free close_receipt [22:49:20]json_value_free [22:49:20]json_value_free done [22:49:20]process_json_proto returns [22:49:20]Send response to host [22:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31048,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [22:49:20]free response buf [22:49:20]execute_script done [22:49:20]execute_script returns [22:49:20]free content buf [22:49:20]Sock 7.Close socket [22:49:20]Sock 7.Thread stoped [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:29]accept exits with 9 [22:57:29]New connection [22:57:29]New thread 3067043172 created [22:57:29]Thread 3066899812 joined [22:57:29]Waiting for new connection... [22:57:29] Sock 9.Parse request [22:57:29]Sock 9.Check first char [22:57:29]Sock 9.First char is OK [22:57:29]request: POST /json_proto HTTP/1.0 [22:57:29]Method: POST [22:57:29]URL: /json_proto [22:57:29]Method is POST - this is cgi request [22:57:29]url: /json_proto [22:57:29]query_string will be loaded in cgi processing [22:57:29]execute_cgi json_proto POST (null) [22:57:29]execute_cgi path=json_proto method=POST [22:57:29]POST find Content-Length [22:57:29]Host: 172.17.51.3:8080 [22:57:29]Content-Length: 677 [22:57:29]Content-Type: application/json [22:57:29] [22:57:29]POST finish read [22:57:29]Found Content-Length = 677 [22:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:29]execute_script... [22:57: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)343489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:29]POST & json_proto [22:57:29]process_json_proto [22:57:29]json parsed OK: [22:57:29]protocol is kg_v1.0 [22:57:29]action value=close_receipt [22:57:29]process_action close_receipt [22:57:29]cmd_close_receipt [22:57:29]MH_GetDate [22:57:29]Write to MH i2c: F0 00 00 96 2A AF [22:57:29]Write i2c OK [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: F0 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: F0 09 00 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: F0 09 00 96 2A 00 DC 2D 18 67 04 C1 95 66 00 [22:57:29]GetLastDocTimeStamp 1729637359 [22:57:29]current date 1729637852 [22:57:29]FM_GetShiftState [22:57:29]SAM_PROTO_GetShiftState [22:57:29]wFMCommunicate request_size=4 [22:57:29]MH_SAM_APDU [22:57:29]CAPDU: 80 13 01 00 [22:57:29]Write to MH i2c: E2 08 00 97 2A 80 13 01 00 00 00 00 00 3E [22:57:29]Write i2c OK [22:57:29]MH_I2C_Read... [22:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:29]Read from MH i2c: E2 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: E2 0E 00 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: E2 0E 00 97 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 18 [22:57:29]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:57:29]wFMCommunicate OK [22:57:29]SAM_PROTO_GetShiftState done [22:57:29]FM_GetShiftState done [22:57:29]opened in 1729557342 [22:57:29]opened+sec_in_day 1729643742 [22:57:29]quantity*price = 20003 [22:57:29]sum+1 = 20004 [22:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 282 22.10.2024 22:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31049 ФПД: 122567086472446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225732&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31049&fm=122567086472446&tin=02508201610067®Number=0000000000186857&sum=20000 [22:57:30]StoreToDocumentArchive [22:57:30]shift 116 fd 31049 [22:57:30]save to /storage/0116/doc_00031049 [22:57:30]save last doc name /storage/0116/doc_00031049 to /storage/kkm_last_doc_name [22:57:30]save OK [22:57:30]Clear old archive folders... [22:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:30]tlvbuf is B6EF0510 [22:57:30]SAM_PROTO_ClearQueue [22:57:30]wFMCommunicate request_size=4 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 09 00 00 [22:57:30]Write to MH i2c: E2 08 00 A4 2A 80 09 00 00 00 00 00 00 40 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [22:57:30]RAPDU: 90 00 [22:57:30]wFMCommunicate OK [22:57:30]SAM_PROTO_ClearQueue done [22:57:30]KKMCreateOFDPacket [22:57:30]OFDProtocolAddRootSTLVToBuf [22:57:30]FM_MakeSignedData [22:57:30]FM_MakeSignedData [22:57:30]SAM_PROTO_SignData [22:57:30]wFMCommunicate request_size=4 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 0D 01 02 [22:57:30]Write to MH i2c: E2 08 00 A5 2A 80 0D 01 02 00 00 00 00 48 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [22:57:30]RAPDU: 90 00 [22:57:30]wFMCommunicate OK [22:57:30]wFMCommunicate request_size=255 [22:57:30]MH_SAM_APDU [22:57: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 DC 2D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 79 00 00 35 04 06 00 6F [22:57:30]Write to MH i2c: E2 02 01 A6 2A 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 DC 2D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 79 00 00 35 04 06 00 6F 00 00 E3 [22:57:31]Write i2c OK [22:57:31]MH_I2C_Read... [22:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:31]Read from MH i2c: E2 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 03 00 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [22:57:31]RAPDU: 90 00 [22:57:31]wFMCommunicate OK [22:57:31]wFMCommunicate request_size=10 [22:57:31]MH_SAM_APDU [22:57:31]CAPDU: 80 0D 02 02 05 79 5F A6 7C FE [22:57:31]Write to MH i2c: E2 0D 00 A7 2A 80 0D 02 02 05 00 79 5F A6 7C FE 00 00 4D [22:57:31]Write i2c OK [22:57:31]MH_I2C_Read... [22:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:31]Read from MH i2c: E2 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 03 00 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [22:57:31]RAPDU: 90 00 [22:57:31]wFMCommunicate OK [22:57:31]wFMCommunicate request_size=4 [22:57:31]MH_SAM_APDU [22:57:31]CAPDU: 80 0D 03 02 [22:57:31]Write to MH i2c: E2 08 00 A8 2A 80 0D 03 02 00 00 00 00 4D [22:57:31]Write i2c OK [22:57:31]MH_I2C_Read... [22:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:31]Read from MH i2c: E2 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 0B 00 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 0B 00 A8 2A 00 AA AA 76 2C 3A 17 F0 10 90 00 95 [22:57:31]RAPDU: AA AA 76 2C 3A 17 F0 10 90 00 [22:57:31]wFMCommunicate OK [22:57:31]SAM_PROTO_SignData done [22:57:31]FM_MakeSignedData done [22:57:31]CreateOFDProtocolMessage [22:57:31]wFMCommunicate request_size=4 [22:57:31]MH_SAM_APDU [22:57:31]CAPDU: 80 11 00 00 [22:57:31]Write to MH i2c: E2 08 00 A9 2A 80 11 00 00 00 00 00 00 4D [22:57:31]Write i2c OK [22:57:31]MH_I2C_Read... [22:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:31]Read from MH i2c: E2 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 17 00 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: E2 17 00 A9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9B [22:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:57:31]wFMCommunicate OK [22:57:31]CreateOFDProtocolMessage done [22:57:31]OFDSenderStorePacket 31049 [22:57:31]StoreOFDPacket docnum=31049 [22:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A 04 07 01 55 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 DC 2D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 79 00 00 35 04 06 00 6F 79 5F A6 7C FE AA AA 76 2C 3A 17 F0 10 [22:57:31]CheckFolder [22:57:31]dirname=/storage/ofd_packets [22:57:31]CheckFolder done [22:57:31]ProducePacketName [22:57:31]name=ofd_packets/00031049 [22:57:31]NVStorageSaveData ofd_packets/00031049 [22:57:31]File name is /storage/ofd_packets/00031049 [22:57:31]Write 301 bytes [22:57:31]NVStorageSaveData done [22:57:31]OFDSenderStorePacket done [22:57:31]KKMCreateOFDPacket done [22:57:31]NVStorageSaveData kkm_last_timestamp [22:57:31]File name is /storage/kkm_last_timestamp [22:57:31]Write 4 bytes [22:57:31]NVStorageSaveData done [22:57:31]ExternCall_PrintAddStr [22:57:31]wPrintStart [22:57:31]Write to MH i2c: 01 00 00 AA 2A D4 [22:57:31]Write i2c OK [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: 01 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: 01 07 00 [22:57:31]MH_I2C_Read... [22:57:31]Read from MH i2c: 01 07 00 AA 2A 00 00 00 00 00 FF 0F E9 [22:57:31]RasterBufferAndPrint [22:57:31]line Счет N : (1)343489 [22:57:31]line ИНН: 02508201610067 [22:57:31]line Контрольно-Кассовый Чек [22:57:31]line ПРОДАЖА [22:57:31]line ТРК (МРК, ГНК) : 63 [22:57:31]line Товар: 2710124130 [22:57:31]line Аи-92-К-2 [22:57:31]line 2.990 * 66.90 [22:57:31]line = 200.03 [22:57:31]line НДС 12% НСП 1% [22:57:31]line > о реализуемом товаре [22:57:31]line ОКРУГЛЕНИЕ: -0.03 [22:57:31]line ИТОГО: 200.00 [22:57:31]line Внесено: 200.00 [22:57:31]line СДАЧА: 0.00 [22:57:31]line НСП 1% : 1.77 [22:57:31]line НДС 12% : 21.24 [22:57:31]line Наличными: 200.00 [22:57:31]line Безнал.: 0.00 [22:57:31]line Место: АЗС № 78 "Партнер Нефть" [22:57:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:57:31]line СНО: Общий режим [22:57:31]line Чек 282 22.10.2024 22:57 [22:57:31]line Смена: 116 ФФД: 1.0 [22:57:31]line ЗНМ: 0300000137 [22:57:31]line РНМ: 0000000000186857 [22:57:31]line Версия ККМ: v1.0 [22:57:31]line ФМ: 0000000002094219 [22:57:31]line ФД: 31049 [22:57:31]line ФПД: 122567086472446 [22:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225732&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31049&fm=122567086472446&tin=02508201610067®Number=0000000000186857&sum=20000 [22:57:31]OFD Sender: Processing packet 31049 [packets to send 11, broken 10] [22:57:31]ProducePacketName [22:57:31]name=ofd_packets/00031049 [22:57:31]OFD Sender: To server: pG, [22:57:31]CommunicateWithHost lk.salyk.kg:30040 [22:57:31]ConnectInit lk.salyk.kg [22:57:31]written 0, free lines is 4095 [22:57:31]Connected sock=10 [22:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A 04 07 01 55 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 DC 2D 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 79 00 00 35 04 06 00 6F 79 5F A6 7C FE AA AA 76 2C 3A 17 F0 10 [22:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 2F 47 00 79 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 32 30 39 34 32 31 39 10 04 04 00 49 79 00 00 F4 03 04 00 58 D8 17 67 B6 04 01 00 00 13 8C F3 84 63 8E 8F BD [22:57:32]CommunicateWithHost err = 0 [22:57:32]CheckOFDResponse [22:57:32]1017 (14) - 77093643461234 [22:57:32]1041 (16) - 0000000002094219 [22:57:32]1040 (4) - 31049 [22:57:32]1012 (4) - 22.10.2024 16:52 [22:57:32]1206 (1) - 0 [22:57:32]OFD Sender: Remove packet 31049 [22:57:32]ProducePacketName [22:57:32]name=ofd_packets/00031049 [22:57:32]NVStorageDeleteData [22:57:32]Write to MH i2c: 01 00 00 D5 2A FF [22:57:32]Write i2c OK [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: 01 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: 01 07 00 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: 01 07 00 D5 2A 00 00 00 00 00 F5 0C 07 [22:57:32]RasterBufferAndPrint [22:57:32]line [22:57:32]line [22:57:32]line [22:57:32]line [22:57:32]line [22:57:32]written 0, free lines is 3323 [22:57:32]MH_Cut [22:57:32]Write to MH i2c: D1 01 00 DC 2A 01 D8 [22:57:32]Write i2c OK [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: D1 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: D1 01 00 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: D1 01 00 DC 2A 00 D7 [22:57:32]Write to MH i2c: 01 00 00 DD 2A 07 [22:57:32]Write i2c OK [22:57:32]MH_I2C_Read... [22:57:32]OFD Sender: No OFD packet to send [22:57:32]*** Cut start [22:57:32]*** Partial cut [22:57:32]*** CUTSNS_PIN = 1 [22:57:32]*** CUTSNS_PIN = 0 [22:57:33]*** Brake cut motor [22:57:33]Read from MH i2c: 01 [22:57:33]MH_I2C_Read... [22:57:33]*** Stop cut motor [22:57:33]*** Cut end [22:57:33]Read from MH i2c: 01 07 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 FF 0F 1C [22:57:33]process_action close_receipt done [22:57:33]requested_data is exist [22:57:33]produce_requested_data [22:57:33]requested_item fm.sn is exist - process it [22:57:33]wFMCommunicate request_size=4 [22:57:33]MH_SAM_APDU [22:57:33]CAPDU: 80 11 00 00 [22:57:33]Write to MH i2c: E2 08 00 DE 2A 80 11 00 00 00 00 00 00 82 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 17 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 17 00 DE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [22:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:57:33]wFMCommunicate OK [22:57:33]requested_item fd.num is exist - process it [22:57:33]SAM_PROTO_GetFieldsCounters [22:57:33]wFMCommunicate request_size=4 [22:57:33]MH_SAM_APDU [22:57:33]CAPDU: 80 13 00 00 [22:57:33]Write to MH i2c: E2 08 00 DF 2A 80 13 00 00 00 00 00 00 85 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 62 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 62 00 DF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [22:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:33]wFMCommunicate OK [22:57:33]SAM_PROTO_GetFieldsCounters done [22:57:33]requested_item shift.num is exist - process it [22:57:33]requested_item shift.opened is exist - process it [22:57:33]req_shift_opened [22:57:33]FM_GetShiftState [22:57:33]SAM_PROTO_GetShiftState [22:57:33]wFMCommunicate request_size=4 [22:57:33]MH_SAM_APDU [22:57:33]CAPDU: 80 13 01 00 [22:57:33]Write to MH i2c: E2 08 00 E0 2A 80 13 01 00 00 00 00 00 87 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 E0 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 61 [22:57:33]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [22:57:33]wFMCommunicate OK [22:57:33]SAM_PROTO_GetShiftState done [22:57:33]FM_GetShiftState done [22:57:33]req_shift_opened done [22:57:33]requested_item shift.open_date is exist - process it [22:57:33]req_shift_open_date [22:57:33]req_shift_open_date done [22:57:33]produce_requested_data done [22:57:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31049,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [22:57:33]process_action_free close_receipt [22:57:33]json_value_free [22:57:33]json_value_free done [22:57:33]process_json_proto returns [22:57:33]Send response to host [22:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31049,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [22:57:33]free response buf [22:57:33]execute_script done [22:57:33]execute_script returns [22:57:33]free content buf [22:57:33]Sock 9.Close socket [22:57:33]Sock 9.Thread stoped [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:09]accept exits with 7 [23:13:09]New connection [23:13:09]New thread 3066899812 created [23:13:09]Thread 3067043172 joined [23:13:09]Waiting for new connection... [23:13:09] Sock 7.Parse request [23:13:09]Sock 7.Check first char [23:13:09]Sock 7.First char is OK [23:13:09]request: POST /json_proto HTTP/1.0 [23:13:09]Method: POST [23:13:09]URL: /json_proto [23:13:09]Method is POST - this is cgi request [23:13:09]url: /json_proto [23:13:09]query_string will be loaded in cgi processing [23:13:09]execute_cgi json_proto POST (null) [23:13:09]execute_cgi path=json_proto method=POST [23:13:09]POST find Content-Length [23:13:09]Host: 172.17.51.3:8080 [23:13:09]Content-Length: 840 [23:13:09]Content-Type: application/json [23:13:09] [23:13:09]POST finish read [23:13:09]Found Content-Length = 840 [23:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:09]execute_script... [23:13: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)343490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:09]POST & json_proto [23:13:09]process_json_proto [23:13:09]json parsed OK: [23:13:09]protocol is kg_v1.0 [23:13:09]action value=close_receipt [23:13:09]process_action close_receipt [23:13:09]cmd_close_receipt [23:13:09]MH_GetDate [23:13:09]Write to MH i2c: F0 00 00 E1 2A FA [23:13:09]Write i2c OK [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: F0 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: F0 09 00 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: F0 09 00 E1 2A 00 88 31 18 67 04 C1 95 66 FB [23:13:09]GetLastDocTimeStamp 1729637852 [23:13:09]current date 1729638792 [23:13:09]FM_GetShiftState [23:13:09]SAM_PROTO_GetShiftState [23:13:09]wFMCommunicate request_size=4 [23:13:09]MH_SAM_APDU [23:13:09]CAPDU: 80 13 01 00 [23:13:09]Write to MH i2c: E2 08 00 E2 2A 80 13 01 00 00 00 00 00 89 [23:13:09]Write i2c OK [23:13:09]MH_I2C_Read... [23:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:09]Read from MH i2c: E2 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: E2 0E 00 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: E2 0E 00 E2 2A 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 63 [23:13:09]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:13:09]wFMCommunicate OK [23:13:09]SAM_PROTO_GetShiftState done [23:13:09]FM_GetShiftState done [23:13:09]opened in 1729557342 [23:13:09]opened+sec_in_day 1729643742 [23:13:09]quantity*price = 50041 [23:13:09]sum+1 = 50042 [23:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 283 22.10.2024 23:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31050 ФПД: 152674920989494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31050&fm=152674920989494&tin=02508201610067®Number=0000000000186857&sum=50041 [23:13:10]StoreToDocumentArchive [23:13:10]shift 116 fd 31050 [23:13:10]save to /storage/0116/doc_00031050 [23:13:10]save last doc name /storage/0116/doc_00031050 to /storage/kkm_last_doc_name [23:13:10]save OK [23:13:10]Clear old archive folders... [23:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:10]tlvbuf is 00D67CC0 [23:13:10]SAM_PROTO_ClearQueue [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 09 00 00 [23:13:10]Write to MH i2c: E2 08 00 EF 2A 80 09 00 00 00 00 00 00 8B [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [23:13:10]RAPDU: 90 00 [23:13:10]wFMCommunicate OK [23:13:10]SAM_PROTO_ClearQueue done [23:13:10]KKMCreateOFDPacket [23:13:10]OFDProtocolAddRootSTLVToBuf [23:13:10]FM_MakeSignedData [23:13:10]FM_MakeSignedData [23:13:10]SAM_PROTO_SignData [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 0D 01 02 [23:13:10]Write to MH i2c: E2 08 00 F0 2A 80 0D 01 02 00 00 00 00 93 [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [23:13:10]RAPDU: 90 00 [23:13:10]wFMCommunicate OK [23:13:10]wFMCommunicate request_size=255 [23:13:10]MH_SAM_APDU [23:13: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 88 31 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 79 00 00 35 04 06 00 8A [23:13:10]Write to MH i2c: E2 02 01 F1 2A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 88 31 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 79 00 00 35 04 06 00 8A 00 00 8B [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [23:13:10]RAPDU: 90 00 [23:13:10]wFMCommunicate OK [23:13:10]wFMCommunicate request_size=10 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 0D 02 02 05 DB 66 6E 83 36 [23:13:10]Write to MH i2c: E2 0D 00 F2 2A 80 0D 02 02 05 00 DB 66 6E 83 36 00 00 08 [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [23:13:10]RAPDU: 90 00 [23:13:10]wFMCommunicate OK [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 0D 03 02 [23:13:10]Write to MH i2c: E2 08 00 F3 2A 80 0D 03 02 00 00 00 00 98 [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 0B 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 0B 00 F3 2A 00 80 51 64 03 BD F1 1F 8F 90 00 2D [23:13:10]RAPDU: 80 51 64 03 BD F1 1F 8F 90 00 [23:13:10]wFMCommunicate OK [23:13:10]SAM_PROTO_SignData done [23:13:10]FM_MakeSignedData done [23:13:10]CreateOFDProtocolMessage [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 11 00 00 [23:13:10]Write to MH i2c: E2 08 00 F4 2A 80 11 00 00 00 00 00 00 98 [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 17 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 17 00 F4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E6 [23:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:13:10]wFMCommunicate OK [23:13:10]CreateOFDProtocolMessage done [23:13:10]OFDSenderStorePacket 31050 [23:13:10]StoreOFDPacket docnum=31050 [23:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 02 37 07 01 A3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 88 31 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 79 00 00 35 04 06 00 8A DB 66 6E 83 36 80 51 64 03 BD F1 1F 8F [23:13:10]CheckFolder [23:13:10]dirname=/storage/ofd_packets [23:13:10]CheckFolder done [23:13:10]ProducePacketName [23:13:10]name=ofd_packets/00031050 [23:13:10]NVStorageSaveData ofd_packets/00031050 [23:13:10]File name is /storage/ofd_packets/00031050 [23:13:10]Write 301 bytes [23:13:10]NVStorageSaveData done [23:13:10]OFDSenderStorePacket done [23:13:10]KKMCreateOFDPacket done [23:13:10]NVStorageSaveData kkm_last_timestamp [23:13:10]File name is /storage/kkm_last_timestamp [23:13:10]Write 4 bytes [23:13:10]NVStorageSaveData done [23:13:10]ExternCall_PrintAddStr [23:13:10]wPrintStart [23:13:10]Write to MH i2c: 01 00 00 F5 2A 1F [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: 01 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: 01 07 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: 01 07 00 F5 2A 00 00 00 00 00 FF 0F 34 [23:13:10]RasterBufferAndPrint [23:13:10]line Счет N : (1)343490 [23:13:10]line ИНН: 02508201610067 [23:13:10]line Контрольно-Кассовый Чек [23:13:10]line ПРОДАЖА [23:13:10]line ТРК (МРК, ГНК) : 33 [23:13:10]line Товар: 2710124130 [23:13:10]line Аи-92-К-2 [23:13:10]line 7.480 * 66.90 [23:13:10]line = 500.41 [23:13:10]line НДС 12% НСП 1% [23:13:10]line > о реализуемом товаре [23:13:10]line ИТОГО: 500.41 [23:13:10]line НСП 1% : 4.43 [23:13:10]line НДС 12% : 53.14 [23:13:10]line Наличными: 0.00 [23:13:10]line Безнал.: 500.41 [23:13:10]line Место: АЗС № 78 "Партнер Нефть" [23:13:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:13:10]line СНО: Общий режим [23:13:10]line Чек 283 22.10.2024 23:13 [23:13:10]line Смена: 116 ФФД: 1.0 [23:13:10]line ЗНМ: 0300000137 [23:13:10]line РНМ: 0000000000186857 [23:13:10]line Версия ККМ: v1.0 [23:13:10]line Платежная система: АКБ Кыргызстан [23:13:10]line ФМ: 0000000002094219 [23:13:10]line ФД: 31050 [23:13:10]line ФПД: 152674920989494 [23:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31050&fm=152674920989494&tin=02508201610067®Number=0000000000186857&sum=50041 [23:13:11]OFD Sender: Processing packet 31050 [packets to send 11, broken 10] [23:13:11]ProducePacketName [23:13:11]name=ofd_packets/00031050 [23:13:11]OFD Sender: To server: pG, [23:13:11]CommunicateWithHost lk.salyk.kg:30040 [23:13:11]ConnectInit lk.salyk.kg [23:13:11]written 0, free lines is 4095 [23:13:11]Connected sock=10 [23:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 02 37 07 01 A3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 88 31 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 79 00 00 35 04 06 00 8A DB 66 6E 83 36 80 51 64 03 BD F1 1F 8F [23:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3D 61 47 00 B6 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 32 30 39 34 32 31 39 10 04 04 00 4A 79 00 00 F4 03 04 00 04 DC 17 67 B6 04 01 00 00 46 F9 CB 9B F7 44 C3 EC [23:13:11]CommunicateWithHost err = 0 [23:13:11]CheckOFDResponse [23:13:11]1017 (14) - 77093643461234 [23:13:11]1041 (16) - 0000000002094219 [23:13:11]1040 (4) - 31050 [23:13:11]1012 (4) - 22.10.2024 17:08 [23:13:11]1206 (1) - 0 [23:13:11]OFD Sender: Remove packet 31050 [23:13:11]ProducePacketName [23:13:11]name=ofd_packets/00031050 [23:13:11]NVStorageDeleteData [23:13:11]Write to MH i2c: 01 00 00 1F 2B 4A [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: 01 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: 01 07 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 05 0D 63 [23:13:11]RasterBufferAndPrint [23:13:11]line [23:13:11]line [23:13:11]line [23:13:11]line [23:13:11]line [23:13:11]written 0, free lines is 3339 [23:13:11]MH_Cut [23:13:11]Write to MH i2c: D1 01 00 26 2B 01 23 [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: D1 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: D1 01 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: D1 01 00 26 2B 00 22 [23:13:11]Write to MH i2c: 01 00 00 27 2B 52 [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:12]OFD Sender: No OFD packet to send [23:13:12]*** Cut start [23:13:12]*** Partial cut [23:13:12]*** CUTSNS_PIN = 1 [23:13:12]*** CUTSNS_PIN = 0 [23:13:12]*** Brake cut motor [23:13:12]Read from MH i2c: 01 [23:13:12]MH_I2C_Read... [23:13:12]*** Stop cut motor [23:13:12]*** Cut end [23:13:12]Read from MH i2c: 01 07 00 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: 01 07 00 27 2B 00 00 00 00 00 FF 0F 67 [23:13:12]process_action close_receipt done [23:13:12]requested_data is exist [23:13:12]produce_requested_data [23:13:12]requested_item fm.sn is exist - process it [23:13:12]wFMCommunicate request_size=4 [23:13:12]MH_SAM_APDU [23:13:12]CAPDU: 80 11 00 00 [23:13:12]Write to MH i2c: E2 08 00 28 2B 80 11 00 00 00 00 00 00 CD [23:13:12]Write i2c OK [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: E2 [23:13:12]MH_I2C_Read... [23:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:12]Read from MH i2c: E2 17 00 [23:13:12]MH_I2C_Read... [23:13:12]Read from MH i2c: E2 17 00 28 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [23:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:13:12]wFMCommunicate OK [23:13:12]requested_item fd.num is exist - process it [23:13:12]SAM_PROTO_GetFieldsCounters [23:13:12]wFMCommunicate request_size=4 [23:13:12]MH_SAM_APDU [23:13:12]CAPDU: 80 13 00 00 [23:13:12]Write to MH i2c: E2 08 00 29 2B 80 13 00 00 00 00 00 00 D0 [23:13:12]Write i2c OK [23:13:12]MH_I2C_Read... [23:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:13]Read from MH i2c: E2 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 62 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 62 00 29 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [23:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:13]wFMCommunicate OK [23:13:13]SAM_PROTO_GetFieldsCounters done [23:13:13]requested_item shift.num is exist - process it [23:13:13]requested_item shift.opened is exist - process it [23:13:13]req_shift_opened [23:13:13]FM_GetShiftState [23:13:13]SAM_PROTO_GetShiftState [23:13:13]wFMCommunicate request_size=4 [23:13:13]MH_SAM_APDU [23:13:13]CAPDU: 80 13 01 00 [23:13:13]Write to MH i2c: E2 08 00 2A 2B 80 13 01 00 00 00 00 00 D2 [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:13]Read from MH i2c: E2 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 0E 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: E2 0E 00 2A 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AC [23:13:13]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:13:13]wFMCommunicate OK [23:13:13]SAM_PROTO_GetShiftState done [23:13:13]FM_GetShiftState done [23:13:13]req_shift_opened done [23:13:13]requested_item shift.open_date is exist - process it [23:13:13]req_shift_open_date [23:13:13]req_shift_open_date done [23:13:13]produce_requested_data done [23:13:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31050,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [23:13:13]process_action_free close_receipt [23:13:13]json_value_free [23:13:13]json_value_free done [23:13:13]process_json_proto returns [23:13:13]Send response to host [23:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31050,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [23:13:13]free response buf [23:13:13]execute_script done [23:13:13]execute_script returns [23:13:13]free content buf [23:13:13]Sock 7.Close socket [23:13:13]Sock 7.Thread stoped [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:14]accept exits with 9 [23:15:14]New connection [23:15:14]New thread 3067043172 created [23:15:14]Thread 3066899812 joined [23:15:14]Waiting for new connection... [23:15:14] Sock 9.Parse request [23:15:14]Sock 9.Check first char [23:15:14]Sock 9.First char is OK [23:15:14]request: POST /json_proto HTTP/1.0 [23:15:14]Method: POST [23:15:14]URL: /json_proto [23:15:14]Method is POST - this is cgi request [23:15:14]url: /json_proto [23:15:14]query_string will be loaded in cgi processing [23:15:14]execute_cgi json_proto POST (null) [23:15:14]execute_cgi path=json_proto method=POST [23:15:14]POST find Content-Length [23:15:14]Host: 172.17.51.3:8080 [23:15:14]Content-Length: 682 [23:15:14]Content-Type: application/json [23:15:14] [23:15:14]POST finish read [23:15:14]Found Content-Length = 682 [23:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [23:15:14]execute_script... [23:15:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [23:15:14]POST & json_proto [23:15:14]process_json_proto [23:15:14]json parsed OK: [23:15:14]protocol is kg_v1.0 [23:15:14]action value=close_receipt [23:15:14]process_action close_receipt [23:15:14]cmd_close_receipt [23:15:14]MH_GetDate [23:15:14]Write to MH i2c: F0 00 00 2B 2B 45 [23:15:14]Write i2c OK [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 09 00 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 09 00 2B 2B 00 05 32 18 67 04 C1 95 66 C4 [23:15:14]GetLastDocTimeStamp 1729638792 [23:15:14]current date 1729638917 [23:15:14]FM_GetShiftState [23:15:14]SAM_PROTO_GetShiftState [23:15:14]wFMCommunicate request_size=4 [23:15:14]MH_SAM_APDU [23:15:14]CAPDU: 80 13 01 00 [23:15:14]Write to MH i2c: E2 08 00 2C 2B 80 13 01 00 00 00 00 00 D4 [23:15:14]Write i2c OK [23:15:14]MH_I2C_Read... [23:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:15]Read from MH i2c: E2 [23:15:15]MH_I2C_Read... [23:15:15]Read from MH i2c: E2 0E 00 [23:15:15]MH_I2C_Read... [23:15:15]Read from MH i2c: E2 0E 00 2C 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 AE [23:15:15]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:15:15]wFMCommunicate OK [23:15:15]SAM_PROTO_GetShiftState done [23:15:15]FM_GetShiftState done [23:15:15]opened in 1729557342 [23:15:15]opened+sec_in_day 1729643742 [23:15:15]quantity*price = 200043 [23:15:15]sum+1 = 200044 [23:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 284 22.10.2024 23:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31051 ФПД: 11882096589664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31051&fm=11882096589664&tin=02508201610067®Number=0000000000186857&sum=200000 [23:15:16]StoreToDocumentArchive [23:15:16]shift 116 fd 31051 [23:15:16]save to /storage/0116/doc_00031051 [23:15:16]save last doc name /storage/0116/doc_00031051 to /storage/kkm_last_doc_name [23:15:16]save OK [23:15:16]Clear old archive folders... [23:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:16]tlvbuf is 00DA1840 [23:15:16]SAM_PROTO_ClearQueue [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 09 00 00 [23:15:16]Write to MH i2c: E2 08 00 39 2B 80 09 00 00 00 00 00 00 D6 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]SAM_PROTO_ClearQueue done [23:15:16]KKMCreateOFDPacket [23:15:16]OFDProtocolAddRootSTLVToBuf [23:15:16]FM_MakeSignedData [23:15:16]FM_MakeSignedData [23:15:16]SAM_PROTO_SignData [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 01 02 [23:15:16]Write to MH i2c: E2 08 00 3A 2B 80 0D 01 02 00 00 00 00 DE [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=255 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 1C 01 00 00 F4 03 04 00 06 32 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 79 00 00 35 04 06 00 0A [23:15:16]Write to MH i2c: E2 02 01 3B 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 1C 01 00 00 F4 03 04 00 06 32 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 79 00 00 35 04 06 00 0A 00 00 2E [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=10 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 02 02 05 CE 84 25 7B 60 [23:15:16]Write to MH i2c: E2 0D 00 3C 2B 80 0D 02 02 05 00 CE 84 25 7B 60 00 00 3D [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 03 02 [23:15:16]Write to MH i2c: E2 08 00 3D 2B 80 0D 03 02 00 00 00 00 E3 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 0B 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 0B 00 3D 2B 00 6D BC 36 0D 92 D0 A3 B8 90 00 0D [23:15:16]RAPDU: 6D BC 36 0D 92 D0 A3 B8 90 00 [23:15:16]wFMCommunicate OK [23:15:16]SAM_PROTO_SignData done [23:15:16]FM_MakeSignedData done [23:15:16]CreateOFDProtocolMessage [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 11 00 00 [23:15:16]Write to MH i2c: E2 08 00 3E 2B 80 11 00 00 00 00 00 00 E3 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 17 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 17 00 3E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [23:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:15:16]wFMCommunicate OK [23:15:16]CreateOFDProtocolMessage done [23:15:16]OFDSenderStorePacket 31051 [23:15:16]StoreOFDPacket docnum=31051 [23:15:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A C5 07 01 80 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 1C 01 00 00 F4 03 04 00 06 32 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 79 00 00 35 04 06 00 0A CE 84 25 7B 60 6D BC 36 0D 92 D0 A3 B8 [23:15:16]CheckFolder [23:15:16]dirname=/storage/ofd_packets [23:15:16]CheckFolder done [23:15:16]ProducePacketName [23:15:16]name=ofd_packets/00031051 [23:15:16]NVStorageSaveData ofd_packets/00031051 [23:15:16]File name is /storage/ofd_packets/00031051 [23:15:16]Write 301 bytes [23:15:16]NVStorageSaveData done [23:15:16]OFDSenderStorePacket done [23:15:16]KKMCreateOFDPacket done [23:15:16]NVStorageSaveData kkm_last_timestamp [23:15:16]File name is /storage/kkm_last_timestamp [23:15:16]Write 4 bytes [23:15:16]NVStorageSaveData done [23:15:16]ExternCall_PrintAddStr [23:15:16]wPrintStart [23:15:16]Write to MH i2c: 01 00 00 3F 2B 6A [23:15:16]OFD Sender: Processing packet 31051 [packets to send 11, broken 10] [23:15:16]ProducePacketName [23:15:16]name=ofd_packets/00031051 [23:15:16]OFD Sender: To server: pG, [23:15:16]CommunicateWithHost lk.salyk.kg:30040 [23:15:16]ConnectInit lk.salyk.kg [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 07 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 FF 0F 7F [23:15:16]RasterBufferAndPrint [23:15:16]line Счет N : (1)343491 [23:15:16]line ИНН: 02508201610067 [23:15:16]line Контрольно-Кассовый Чек [23:15:16]line ПРОДАЖА [23:15:16]line ТРК (МРК, ГНК) : 52 [23:15:16]line Товар: 2710124500 [23:15:16]line Аи-95-К-3 [23:15:16]line 26.960 * 74.20 [23:15:16]line = 2000.43 [23:15:16]line НДС 12% НСП 1% [23:15:16]line > о реализуемом товаре [23:15:16]line ОКРУГЛЕНИЕ: -0.43 [23:15:16]line ИТОГО: 2000.00 [23:15:16]line Внесено: 2000.00 [23:15:16]line СДАЧА: 0.00 [23:15:16]line НСП 1% : 17.70 [23:15:16]line НДС 12% : 212.43 [23:15:16]line Наличными: 2000.00 [23:15:16]line Безнал.: 0.00 [23:15:16]line Место: АЗС № 78 "Партнер Нефть" [23:15:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:15:16]line СНО: Общий режим [23:15:16]line Чек 284 22.10.2024 23:15 [23:15:16]line Смена: 116 ФФД: 1.0 [23:15:16]line ЗНМ: 0300000137 [23:15:16]line РНМ: 0000000000186857 [23:15:16]line Версия ККМ: v1.0 [23:15:16]line ФМ: 0000000002094219 [23:15:16]line ФД: 31051 [23:15:16]line ФПД: 11882096589664 [23:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31051&fm=11882096589664&tin=02508201610067®Number=0000000000186857&sum=200000 [23:15:17]Connected sock=10 [23:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A C5 07 01 80 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 1C 01 00 00 F4 03 04 00 06 32 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 79 00 00 35 04 06 00 0A CE 84 25 7B 60 6D BC 36 0D 92 D0 A3 B8 [23:15:17]written 0, free lines is 4095 [23:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 48 48 47 00 19 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 79 00 00 F4 03 04 00 82 DC 17 67 B6 04 01 00 00 68 84 5B FC C8 74 65 18 [23:15:17]CommunicateWithHost err = 0 [23:15:17]CheckOFDResponse [23:15:17]1017 (14) - 77093643461234 [23:15:17]1041 (16) - 0000000002094219 [23:15:17]1040 (4) - 31051 [23:15:17]1012 (4) - 22.10.2024 17:10 [23:15:17]1206 (1) - 0 [23:15:17]OFD Sender: Remove packet 31051 [23:15:17]ProducePacketName [23:15:17]name=ofd_packets/00031051 [23:15:17]NVStorageDeleteData [23:15:17]Write to MH i2c: 01 00 00 6A 2B 95 [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 07 00 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 F9 0C A1 [23:15:17]RasterBufferAndPrint [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]written 0, free lines is 3328 [23:15:17]MH_Cut [23:15:17]Write to MH i2c: D1 01 00 71 2B 01 6E [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 01 00 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 01 00 71 2B 00 6D [23:15:17]Write to MH i2c: 01 00 00 72 2B 9D [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]OFD Sender: No OFD packet to send [23:15:18]*** Cut start [23:15:18]*** Partial cut [23:15:18]*** CUTSNS_PIN = 1 [23:15:18]*** CUTSNS_PIN = 0 [23:15:18]*** Brake cut motor [23:15:18]Read from MH i2c: 01 [23:15:18]MH_I2C_Read... [23:15:18]*** Stop cut motor [23:15:18]*** Cut end [23:15:18]Read from MH i2c: 01 07 00 [23:15:18]MH_I2C_Read... [23:15:18]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [23:15:18]process_action close_receipt done [23:15:18]requested_data is exist [23:15:18]produce_requested_data [23:15:18]requested_item fm.sn is exist - process it [23:15:18]wFMCommunicate request_size=4 [23:15:18]MH_SAM_APDU [23:15:18]CAPDU: 80 11 00 00 [23:15:18]Write to MH i2c: E2 08 00 73 2B 80 11 00 00 00 00 00 00 18 [23:15:18]Write i2c OK [23:15:18]MH_I2C_Read... [23:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:18]Read from MH i2c: E2 [23:15:18]MH_I2C_Read... [23:15:18]Read from MH i2c: E2 17 00 [23:15:18]MH_I2C_Read... [23:15:18]Read from MH i2c: E2 17 00 73 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 66 [23:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:15:18]wFMCommunicate OK [23:15:18]requested_item fd.num is exist - process it [23:15:18]SAM_PROTO_GetFieldsCounters [23:15:18]wFMCommunicate request_size=4 [23:15:18]MH_SAM_APDU [23:15:18]CAPDU: 80 13 00 00 [23:15:18]Write to MH i2c: E2 08 00 74 2B 80 13 00 00 00 00 00 00 1B [23:15:18]Write i2c OK [23:15:18]MH_I2C_Read... [23:15:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:18]Read from MH i2c: E2 [23:15:18]MH_I2C_Read... [23:15:18]Read from MH i2c: E2 62 00 [23:15:18]MH_I2C_Read... [23:15:18]Read from MH i2c: E2 62 00 74 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [23:15:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:18]wFMCommunicate OK [23:15:18]SAM_PROTO_GetFieldsCounters done [23:15:18]requested_item shift.num is exist - process it [23:15:18]requested_item shift.opened is exist - process it [23:15:18]req_shift_opened [23:15:18]FM_GetShiftState [23:15:18]SAM_PROTO_GetShiftState [23:15:18]wFMCommunicate request_size=4 [23:15:18]MH_SAM_APDU [23:15:18]CAPDU: 80 13 01 00 [23:15:18]Write to MH i2c: E2 08 00 75 2B 80 13 01 00 00 00 00 00 1D [23:15:18]Write i2c OK [23:15:18]MH_I2C_Read... [23:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:19]Read from MH i2c: E2 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 75 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F7 [23:15:19]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:15:19]wFMCommunicate OK [23:15:19]SAM_PROTO_GetShiftState done [23:15:19]FM_GetShiftState done [23:15:19]req_shift_opened done [23:15:19]requested_item shift.open_date is exist - process it [23:15:19]req_shift_open_date [23:15:19]req_shift_open_date done [23:15:19]produce_requested_data done [23:15:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31051,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [23:15:19]process_action_free close_receipt [23:15:19]json_value_free [23:15:19]json_value_free done [23:15:19]process_json_proto returns [23:15:19]Send response to host [23:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31051,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [23:15:19]free response buf [23:15:19]execute_script done [23:15:19]execute_script returns [23:15:19]free content buf [23:15:19]Sock 9.Close socket [23:15:19]Sock 9.Thread stoped [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:51]accept exits with 7 [23:36:51]New connection [23:36:51]New thread 3066899812 created [23:36:51]Thread 3067043172 joined [23:36:51]Waiting for new connection... [23:36:51] Sock 7.Parse request [23:36:51]Sock 7.Check first char [23:36:51]Sock 7.First char is OK [23:36:51]request: POST /json_proto HTTP/1.0 [23:36:51]Method: POST [23:36:51]URL: /json_proto [23:36:51]Method is POST - this is cgi request [23:36:51]url: /json_proto [23:36:51]query_string will be loaded in cgi processing [23:36:51]execute_cgi json_proto POST (null) [23:36:51]execute_cgi path=json_proto method=POST [23:36:51]POST find Content-Length [23:36:51]Host: 172.17.51.3:8080 [23:36:51]Content-Length: 800 [23:36:51]Content-Type: application/json [23:36:51] [23:36:51]POST finish read [23:36:51]Found Content-Length = 800 [23:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949827", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:51]execute_script... [23:36: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)343492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949827", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:51]POST & json_proto [23:36:51]process_json_proto [23:36:51]json parsed OK: [23:36:51]protocol is kg_v1.0 [23:36:51]action value=close_receipt [23:36:51]process_action close_receipt [23:36:51]cmd_close_receipt [23:36:51]MH_GetDate [23:36:51]Write to MH i2c: F0 00 00 76 2B 90 [23:36:51]Write i2c OK [23:36:51]MH_I2C_Read... [23:36:51]Read from MH i2c: F0 [23:36:51]MH_I2C_Read... [23:36:51]Read from MH i2c: F0 09 00 [23:36:51]MH_I2C_Read... [23:36:51]Read from MH i2c: F0 09 00 76 2B 00 16 37 18 67 04 C1 95 66 25 [23:36:51]GetLastDocTimeStamp 1729638918 [23:36:51]current date 1729640214 [23:36:51]FM_GetShiftState [23:36:51]SAM_PROTO_GetShiftState [23:36:51]wFMCommunicate request_size=4 [23:36:51]MH_SAM_APDU [23:36:51]CAPDU: 80 13 01 00 [23:36:51]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [23:36:51]Write i2c OK [23:36:51]MH_I2C_Read... [23:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:51]Read from MH i2c: E2 [23:36:51]MH_I2C_Read... [23:36:51]Read from MH i2c: E2 0E 00 [23:36:51]MH_I2C_Read... [23:36:51]Read from MH i2c: E2 0E 00 77 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F9 [23:36:51]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:36:51]wFMCommunicate OK [23:36:51]SAM_PROTO_GetShiftState done [23:36:51]FM_GetShiftState done [23:36:51]opened in 1729557342 [23:36:51]opened+sec_in_day 1729643742 [23:36:51]quantity*price = 0 [23:36:51]sum+1 = 1 [23:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 285 22.10.2024 23:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949827 ФМ: 0000000002094219 ФД: 31052 ФПД: 30747213109048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233654&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31052&fm=30747213109048&tin=02508201610067®Number=0000000000186857&sum=0 [23:36:52]StoreToDocumentArchive [23:36:52]shift 116 fd 31052 [23:36:52]save to /storage/0116/doc_00031052 [23:36:52]save last doc name /storage/0116/doc_00031052 to /storage/kkm_last_doc_name [23:36:52]save OK [23:36:52]Clear old archive folders... [23:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:36:52]tlvbuf is 00CC5150 [23:36:52]SAM_PROTO_ClearQueue [23:36:52]wFMCommunicate request_size=4 [23:36:52]MH_SAM_APDU [23:36:52]CAPDU: 80 09 00 00 [23:36:52]Write to MH i2c: E2 08 00 84 2B 80 09 00 00 00 00 00 00 21 [23:36:52]Write i2c OK [23:36:52]MH_I2C_Read... [23:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:52]Read from MH i2c: E2 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [23:36:52]RAPDU: 90 00 [23:36:52]wFMCommunicate OK [23:36:52]SAM_PROTO_ClearQueue done [23:36:52]KKMCreateOFDPacket [23:36:52]OFDProtocolAddRootSTLVToBuf [23:36:52]FM_MakeSignedData [23:36:52]FM_MakeSignedData [23:36:52]SAM_PROTO_SignData [23:36:52]wFMCommunicate request_size=4 [23:36:52]MH_SAM_APDU [23:36:52]CAPDU: 80 0D 01 02 [23:36:52]Write to MH i2c: E2 08 00 85 2B 80 0D 01 02 00 00 00 00 29 [23:36:52]Write i2c OK [23:36:52]MH_I2C_Read... [23:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:52]Read from MH i2c: E2 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 85 2B 00 90 00 24 [23:36:52]RAPDU: 90 00 [23:36:52]wFMCommunicate OK [23:36:52]wFMCommunicate request_size=255 [23:36:52]MH_SAM_APDU [23:36: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 79 00 00 35 04 06 00 1B [23:36:52]Write to MH i2c: E2 02 01 86 2B 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 79 00 00 35 04 06 00 1B 00 00 E1 [23:36:52]Write i2c OK [23:36:52]MH_I2C_Read... [23:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:52]Read from MH i2c: E2 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 [23:36:52]MH_I2C_Read... [23:36:52]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [23:36:52]RAPDU: 90 00 [23:36:52]wFMCommunicate OK [23:36:52]wFMCommunicate request_size=10 [23:36:52]MH_SAM_APDU [23:36:52]CAPDU: 80 0D 02 02 05 F6 E4 B7 17 38 [23:36:52]Write to MH i2c: E2 0D 00 87 2B 80 0D 02 02 05 00 F6 E4 B7 17 38 00 00 16 [23:36:52]Write i2c OK [23:36:52]MH_I2C_Read... [23:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:53]Read from MH i2c: E2 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 03 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [23:36:53]RAPDU: 90 00 [23:36:53]wFMCommunicate OK [23:36:53]wFMCommunicate request_size=4 [23:36:53]MH_SAM_APDU [23:36:53]CAPDU: 80 0D 03 02 [23:36:53]Write to MH i2c: E2 08 00 88 2B 80 0D 03 02 00 00 00 00 2E [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:53]Read from MH i2c: E2 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 0B 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 0B 00 88 2B 00 5B 9E BC C4 FD 93 B6 CC 90 00 BA [23:36:53]RAPDU: 5B 9E BC C4 FD 93 B6 CC 90 00 [23:36:53]wFMCommunicate OK [23:36:53]SAM_PROTO_SignData done [23:36:53]FM_MakeSignedData done [23:36:53]CreateOFDProtocolMessage [23:36:53]wFMCommunicate request_size=4 [23:36:53]MH_SAM_APDU [23:36:53]CAPDU: 80 11 00 00 [23:36:53]Write to MH i2c: E2 08 00 89 2B 80 11 00 00 00 00 00 00 2E [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:53]Read from MH i2c: E2 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 17 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: E2 17 00 89 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [23:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:36:53]wFMCommunicate OK [23:36:53]CreateOFDProtocolMessage done [23:36:53]OFDSenderStorePacket 31052 [23:36:53]StoreOFDPacket docnum=31052 [23:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB EE 07 01 E5 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 79 00 00 35 04 06 00 1B F6 E4 B7 17 38 5B 9E BC C4 FD 93 B6 CC [23:36:53]CheckFolder [23:36:53]dirname=/storage/ofd_packets [23:36:53]CheckFolder done [23:36:53]ProducePacketName [23:36:53]name=ofd_packets/00031052 [23:36:53]NVStorageSaveData ofd_packets/00031052 [23:36:53]File name is /storage/ofd_packets/00031052 [23:36:53]Write 301 bytes [23:36:53]NVStorageSaveData done [23:36:53]OFDSenderStorePacket done [23:36:53]KKMCreateOFDPacket done [23:36:53]NVStorageSaveData kkm_last_timestamp [23:36:53]File name is /storage/kkm_last_timestamp [23:36:53]Write 4 bytes [23:36:53]NVStorageSaveData done [23:36:53]ExternCall_PrintAddStr [23:36:53]wPrintStart [23:36:53]Write to MH i2c: 01 00 00 8A 2B B5 [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 07 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 07 00 8A 2B 00 00 00 00 00 FF 0F CA [23:36:53]RasterBufferAndPrint [23:36:53]line Счет N : (1)343492 [23:36:53]line ИНН: 02508201610067 [23:36:53]line Контрольно-Кассовый Чек [23:36:53]line ПРОДАЖА [23:36:53]line ТРК (МРК, ГНК) : 53 [23:36:53]line Товар: 2710124130 [23:36:53]line Аи-92-К-2 [23:36:53]line 20.000 * 0.00 [23:36:53]line = 0.00 [23:36:53]line НДС 12% НСП 1% [23:36:53]line > о реализуемом товаре [23:36:53]line ИТОГО: 0.00 [23:36:53]line НСП 1% : 0.00 [23:36:53]line НДС 12% : 0.00 [23:36:53]line Наличными: 0.00 [23:36:53]line Безнал.: 0.00 [23:36:53]line Место: АЗС № 78 "Партнер Нефть" [23:36:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:36:53]line СНО: Общий режим [23:36:53]line Чек 285 22.10.2024 23:36 [23:36:53]line Смена: 116 ФФД: 1.0 [23:36:53]line ЗНМ: 0300000137 [23:36:53]line РНМ: 0000000000186857 [23:36:53]line Версия ККМ: v1.0 [23:36:53]line Талоны: Топливные Талоны [23:36:53]line 3949827 [23:36:53]line ФМ: 0000000002094219 [23:36:53]line ФД: 31052 [23:36:53]line ФПД: 30747213109048 [23:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233654&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31052&fm=30747213109048&tin=02508201610067®Number=0000000000186857&sum=0 [23:36:53]OFD Sender: Processing packet 31052 [packets to send 11, broken 10] [23:36:53]ProducePacketName [23:36:53]name=ofd_packets/00031052 [23:36:53]OFD Sender: To server: pG, [23:36:53]CommunicateWithHost lk.salyk.kg:30040 [23:36:53]ConnectInit lk.salyk.kg [23:36:53]written 0, free lines is 4095 [23:36:53]Connected sock=10 [23:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB EE 07 01 E5 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 79 00 00 35 04 06 00 1B F6 E4 B7 17 38 5B 9E BC C4 FD 93 B6 CC [23:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5A A9 47 00 C4 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 79 00 00 F4 03 04 00 92 E1 17 67 B6 04 01 00 00 E7 59 A8 AD A4 5B 15 9A [23:36:53]CommunicateWithHost err = 0 [23:36:53]CheckOFDResponse [23:36:53]1017 (14) - 77093643461234 [23:36:53]1041 (16) - 0000000002094219 [23:36:53]1040 (4) - 31052 [23:36:53]1012 (4) - 22.10.2024 17:32 [23:36:53]1206 (1) - 0 [23:36:53]OFD Sender: Remove packet 31052 [23:36:53]ProducePacketName [23:36:53]name=ofd_packets/00031052 [23:36:53]NVStorageDeleteData [23:36:53]Write to MH i2c: 01 00 00 B4 2B DF [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 07 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 F6 0C E8 [23:36:53]RasterBufferAndPrint [23:36:53]line [23:36:53]line [23:36:53]line [23:36:53]line [23:36:53]line [23:36:53]written 0, free lines is 3324 [23:36:53]MH_Cut [23:36:53]Write to MH i2c: D1 01 00 BB 2B 01 B8 [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: D1 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: D1 01 00 [23:36:53]MH_I2C_Read... [23:36:53]Read from MH i2c: D1 01 00 BB 2B 00 B7 [23:36:53]Write to MH i2c: 01 00 00 BC 2B E7 [23:36:53]Write i2c OK [23:36:53]MH_I2C_Read... [23:36:54]OFD Sender: No OFD packet to send [23:36:54]*** Cut start [23:36:54]*** Partial cut [23:36:54]*** CUTSNS_PIN = 1 [23:36:54]*** CUTSNS_PIN = 0 [23:36:54]*** Brake cut motor [23:36:55]Read from MH i2c: 01 [23:36:55]MH_I2C_Read... [23:36:55]*** Stop cut motor [23:36:55]*** Cut end [23:36:55]Read from MH i2c: 01 07 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 FF 0F FC [23:36:55]process_action close_receipt done [23:36:55]requested_data is exist [23:36:55]produce_requested_data [23:36:55]requested_item fm.sn is exist - process it [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 11 00 00 [23:36:55]Write to MH i2c: E2 08 00 BD 2B 80 11 00 00 00 00 00 00 62 [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 17 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 17 00 BD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [23:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:36:55]wFMCommunicate OK [23:36:55]requested_item fd.num is exist - process it [23:36:55]SAM_PROTO_GetFieldsCounters [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 13 00 00 [23:36:55]Write to MH i2c: E2 08 00 BE 2B 80 13 00 00 00 00 00 00 65 [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 62 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 62 00 BE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [23:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:55]wFMCommunicate OK [23:36:55]SAM_PROTO_GetFieldsCounters done [23:36:55]requested_item shift.num is exist - process it [23:36:55]requested_item shift.opened is exist - process it [23:36:55]req_shift_opened [23:36:55]FM_GetShiftState [23:36:55]SAM_PROTO_GetShiftState [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 13 01 00 [23:36:55]Write to MH i2c: E2 08 00 BF 2B 80 13 01 00 00 00 00 00 67 [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 0E 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 0E 00 BF 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 41 [23:36:55]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:36:55]wFMCommunicate OK [23:36:55]SAM_PROTO_GetShiftState done [23:36:55]FM_GetShiftState done [23:36:55]req_shift_opened done [23:36:55]requested_item shift.open_date is exist - process it [23:36:55]req_shift_open_date [23:36:55]req_shift_open_date done [23:36:55]produce_requested_data done [23:36:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31052,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [23:36:55]process_action_free close_receipt [23:36:55]json_value_free [23:36:55]json_value_free done [23:36:55]process_json_proto returns [23:36:55]Send response to host [23:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31052,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [23:36:55]free response buf [23:36:55]execute_script done [23:36:55]execute_script returns [23:36:55]free content buf [23:36:55]Sock 7.Close socket [23:36:55]Sock 7.Thread stoped [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:52]accept exits with 9 [23:37:52]New connection [23:37:52]New thread 3067043172 created [23:37:52]Thread 3066899812 joined [23:37:52]Waiting for new connection... [23:37:52] Sock 9.Parse request [23:37:52]Sock 9.Check first char [23:37:52]Sock 9.First char is OK [23:37:52]request: POST /json_proto HTTP/1.0 [23:37:52]Method: POST [23:37:52]URL: /json_proto [23:37:52]Method is POST - this is cgi request [23:37:52]url: /json_proto [23:37:52]query_string will be loaded in cgi processing [23:37:52]execute_cgi json_proto POST (null) [23:37:52]execute_cgi path=json_proto method=POST [23:37:52]POST find Content-Length [23:37:52]Host: 172.17.51.3:8080 [23:37:52]Content-Length: 677 [23:37:52]Content-Type: application/json [23:37:52] [23:37:52]POST finish read [23:37:52]Found Content-Length = 677 [23:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:52]execute_script... [23:37: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)343493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:52]POST & json_proto [23:37:52]process_json_proto [23:37:52]json parsed OK: [23:37:52]protocol is kg_v1.0 [23:37:52]action value=close_receipt [23:37:52]process_action close_receipt [23:37:52]cmd_close_receipt [23:37:52]MH_GetDate [23:37:52]Write to MH i2c: F0 00 00 C0 2B DA [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: F0 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: F0 09 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: F0 09 00 C0 2B 00 53 37 18 67 04 C1 95 66 AC [23:37:52]GetLastDocTimeStamp 1729640214 [23:37:52]current date 1729640275 [23:37:52]FM_GetShiftState [23:37:52]SAM_PROTO_GetShiftState [23:37:52]wFMCommunicate request_size=4 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 13 01 00 [23:37:52]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:52]Read from MH i2c: E2 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 0E 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 43 [23:37:52]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:37:52]wFMCommunicate OK [23:37:52]SAM_PROTO_GetShiftState done [23:37:52]FM_GetShiftState done [23:37:52]opened in 1729557342 [23:37:52]opened+sec_in_day 1729643742 [23:37:52]quantity*price = 50041 [23:37:52]sum+1 = 50042 [23:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 286 22.10.2024 23:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31053 ФПД: 112747762202974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233755&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31053&fm=112747762202974&tin=02508201610067®Number=0000000000186857&sum=50000 [23:37:53]StoreToDocumentArchive [23:37:53]shift 116 fd 31053 [23:37:53]save to /storage/0116/doc_00031053 [23:37:53]save last doc name /storage/0116/doc_00031053 to /storage/kkm_last_doc_name [23:37:53]save OK [23:37:53]Clear old archive folders... [23:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:53]tlvbuf is B6DBE100 [23:37:53]SAM_PROTO_ClearQueue [23:37:53]wFMCommunicate request_size=4 [23:37:53]MH_SAM_APDU [23:37:53]CAPDU: 80 09 00 00 [23:37:53]Write to MH i2c: E2 08 00 CE 2B 80 09 00 00 00 00 00 00 6B [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:53]Read from MH i2c: E2 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 03 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [23:37:53]RAPDU: 90 00 [23:37:53]wFMCommunicate OK [23:37:53]SAM_PROTO_ClearQueue done [23:37:53]KKMCreateOFDPacket [23:37:53]OFDProtocolAddRootSTLVToBuf [23:37:53]FM_MakeSignedData [23:37:53]FM_MakeSignedData [23:37:53]SAM_PROTO_SignData [23:37:53]wFMCommunicate request_size=4 [23:37:53]MH_SAM_APDU [23:37:53]CAPDU: 80 0D 01 02 [23:37:53]Write to MH i2c: E2 08 00 CF 2B 80 0D 01 02 00 00 00 00 73 [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=255 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 53 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 79 00 00 35 04 06 00 66 [23:37:54]Write to MH i2c: E2 02 01 D0 2B 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 53 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 79 00 00 35 04 06 00 66 00 00 CC [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=10 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 02 02 05 8B 22 50 B9 5E [23:37:54]Write to MH i2c: E2 0D 00 D1 2B 80 0D 02 02 05 00 8B 22 50 B9 5E 00 00 94 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 03 02 [23:37:54]Write to MH i2c: E2 08 00 D2 2B 80 0D 03 02 00 00 00 00 78 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:54]OFD Sender: No OFD packet to send [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 0B 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 0B 00 D2 2B 00 CC D8 FB 12 AE 9E 24 32 90 00 CC [23:37:54]RAPDU: CC D8 FB 12 AE 9E 24 32 90 00 [23:37:54]wFMCommunicate OK [23:37:54]SAM_PROTO_SignData done [23:37:54]FM_MakeSignedData done [23:37:54]CreateOFDProtocolMessage [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 11 00 00 [23:37:54]Write to MH i2c: E2 08 00 D3 2B 80 11 00 00 00 00 00 00 78 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 D3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [23:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:37:54]wFMCommunicate OK [23:37:54]CreateOFDProtocolMessage done [23:37:54]OFDSenderStorePacket 31053 [23:37:54]StoreOFDPacket docnum=31053 [23:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D2 84 07 01 7E 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 53 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 79 00 00 35 04 06 00 66 8B 22 50 B9 5E CC D8 FB 12 AE 9E 24 32 [23:37:54]CheckFolder [23:37:54]dirname=/storage/ofd_packets [23:37:54]CheckFolder done [23:37:54]ProducePacketName [23:37:54]name=ofd_packets/00031053 [23:37:54]NVStorageSaveData ofd_packets/00031053 [23:37:54]File name is /storage/ofd_packets/00031053 [23:37:54]Write 301 bytes [23:37:54]NVStorageSaveData done [23:37:54]OFDSenderStorePacket done [23:37:54]KKMCreateOFDPacket done [23:37:54]NVStorageSaveData kkm_last_timestamp [23:37:54]File name is /storage/kkm_last_timestamp [23:37:54]Write 4 bytes [23:37:54]NVStorageSaveData done [23:37:54]ExternCall_PrintAddStr [23:37:54]wPrintStart [23:37:54]Write to MH i2c: 01 00 00 D4 2B FF [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 07 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 07 00 D4 2B 00 00 00 00 00 FF 0F 14 [23:37:54]RasterBufferAndPrint [23:37:54]line Счет N : (1)343493 [23:37:54]line ИНН: 02508201610067 [23:37:54]line Контрольно-Кассовый Чек [23:37:54]line ПРОДАЖА [23:37:54]line ТРК (МРК, ГНК) : 63 [23:37:54]line Товар: 2710124130 [23:37:54]line Аи-92-К-2 [23:37:54]line 7.480 * 66.90 [23:37:54]line = 500.41 [23:37:54]line НДС 12% НСП 1% [23:37:54]line > о реализуемом товаре [23:37:54]line ОКРУГЛЕНИЕ: -0.41 [23:37:54]line ИТОГО: 500.00 [23:37:54]line Внесено: 500.00 [23:37:54]line СДАЧА: 0.00 [23:37:54]line НСП 1% : 4.43 [23:37:54]line НДС 12% : 53.14 [23:37:54]line Наличными: 500.00 [23:37:54]line Безнал.: 0.00 [23:37:54]line Место: АЗС № 78 "Партнер Нефть" [23:37:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:37:54]line СНО: Общий режим [23:37:54]line Чек 286 22.10.2024 23:37 [23:37:54]line Смена: 116 ФФД: 1.0 [23:37:54]line ЗНМ: 0300000137 [23:37:54]line РНМ: 0000000000186857 [23:37:54]line Версия ККМ: v1.0 [23:37:54]line ФМ: 0000000002094219 [23:37:54]line ФД: 31053 [23:37:54]line ФПД: 112747762202974 [23:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233755&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31053&fm=112747762202974&tin=02508201610067®Number=0000000000186857&sum=50000 [23:37:54]OFD Sender: Processing packet 31053 [packets to send 11, broken 10] [23:37:54]ProducePacketName [23:37:54]name=ofd_packets/00031053 [23:37:54]OFD Sender: To server: pG, [23:37:54]CommunicateWithHost lk.salyk.kg:30040 [23:37:54]ConnectInit lk.salyk.kg [23:37:54]written 0, free lines is 4095 [23:37:54]Connected sock=11 [23:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D2 84 07 01 7E 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 53 37 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 79 00 00 35 04 06 00 66 8B 22 50 B9 5E CC D8 FB 12 AE 9E 24 32 [23:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 47 C0 47 00 58 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 32 30 39 34 32 31 39 10 04 04 00 4D 79 00 00 F4 03 04 00 D0 E1 17 67 B6 04 01 00 00 3D 97 A7 46 03 3B 5A 85 [23:37:55]CommunicateWithHost err = 0 [23:37:55]CheckOFDResponse [23:37:55]1017 (14) - 77093643461234 [23:37:55]1041 (16) - 0000000002094219 [23:37:55]1040 (4) - 31053 [23:37:55]1012 (4) - 22.10.2024 17:33 [23:37:55]1206 (1) - 0 [23:37:55]OFD Sender: Remove packet 31053 [23:37:55]ProducePacketName [23:37:55]name=ofd_packets/00031053 [23:37:55]NVStorageDeleteData [23:37:55]Write to MH i2c: 01 00 00 FF 2B 2A [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 07 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 07 00 FF 2B 00 00 00 00 00 F3 0C 30 [23:37:55]RasterBufferAndPrint [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]written 0, free lines is 3321 [23:37:55]MH_Cut [23:37:55]Write to MH i2c: D1 01 00 06 2C 01 04 [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 01 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 01 00 06 2C 00 03 [23:37:55]Write to MH i2c: 01 00 00 07 2C 33 [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]OFD Sender: No OFD packet to send [23:37:55]*** Cut start [23:37:55]*** Partial cut [23:37:55]*** CUTSNS_PIN = 1 [23:37:55]*** CUTSNS_PIN = 0 [23:37:56]*** Brake cut motor [23:37:56]Read from MH i2c: 01 [23:37:56]MH_I2C_Read... [23:37:56]*** Stop cut motor [23:37:56]*** Cut end [23:37:56]Read from MH i2c: 01 07 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: 01 07 00 07 2C 00 00 00 00 00 FF 0F 48 [23:37:56]process_action close_receipt done [23:37:56]requested_data is exist [23:37:56]produce_requested_data [23:37:56]requested_item fm.sn is exist - process it [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 11 00 00 [23:37:56]Write to MH i2c: E2 08 00 08 2C 80 11 00 00 00 00 00 00 AE [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 17 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 17 00 08 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [23:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:37:56]wFMCommunicate OK [23:37:56]requested_item fd.num is exist - process it [23:37:56]SAM_PROTO_GetFieldsCounters [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 13 00 00 [23:37:56]Write to MH i2c: E2 08 00 09 2C 80 13 00 00 00 00 00 00 B1 [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 62 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 62 00 09 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [23:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:56]wFMCommunicate OK [23:37:56]SAM_PROTO_GetFieldsCounters done [23:37:56]requested_item shift.num is exist - process it [23:37:56]requested_item shift.opened is exist - process it [23:37:56]req_shift_opened [23:37:56]FM_GetShiftState [23:37:56]SAM_PROTO_GetShiftState [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 13 01 00 [23:37:56]Write to MH i2c: E2 08 00 0A 2C 80 13 01 00 00 00 00 00 B3 [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 0E 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 0E 00 0A 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8D [23:37:56]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:37:56]wFMCommunicate OK [23:37:56]SAM_PROTO_GetShiftState done [23:37:56]FM_GetShiftState done [23:37:56]req_shift_opened done [23:37:56]requested_item shift.open_date is exist - process it [23:37:56]req_shift_open_date [23:37:56]req_shift_open_date done [23:37:56]produce_requested_data done [23:37:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31053,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [23:37:56]process_action_free close_receipt [23:37:56]json_value_free [23:37:56]json_value_free done [23:37:56]process_json_proto returns [23:37:56]Send response to host [23:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31053,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [23:37:56]free response buf [23:37:56]execute_script done [23:37:56]execute_script returns [23:37:56]free content buf [23:37:56]Sock 9.Close socket [23:37:56]Sock 9.Thread stoped [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:28]accept exits with 7 [23:56:28]New connection [23:56:28]New thread 3066899812 created [23:56:28]Thread 3067043172 joined [23:56:28]Waiting for new connection... [23:56:28] Sock 7.Parse request [23:56:28]Sock 7.Check first char [23:56:28]Sock 7.First char is OK [23:56:28]request: POST /json_proto HTTP/1.0 [23:56:28]Method: POST [23:56:28]URL: /json_proto [23:56:28]Method is POST - this is cgi request [23:56:28]url: /json_proto [23:56:28]query_string will be loaded in cgi processing [23:56:28]execute_cgi json_proto POST (null) [23:56:28]execute_cgi path=json_proto method=POST [23:56:28]POST find Content-Length [23:56:28]Host: 172.17.51.3:8080 [23:56:28]Content-Length: 677 [23:56:28]Content-Type: application/json [23:56:28] [23:56:28]POST finish read [23:56:28]Found Content-Length = 677 [23:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [23:56:28]execute_script... [23: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)343494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [23:56:28]POST & json_proto [23:56:28]process_json_proto [23:56:28]json parsed OK: [23:56:28]protocol is kg_v1.0 [23:56:28]action value=close_receipt [23:56:28]process_action close_receipt [23:56:28]cmd_close_receipt [23:56:28]MH_GetDate [23:56:28]Write to MH i2c: F0 00 00 0B 2C 26 [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: F0 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: F0 09 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: F0 09 00 0B 2C 00 AF 3B 18 67 04 C1 95 66 58 [23:56:28]GetLastDocTimeStamp 1729640275 [23:56:28]current date 1729641391 [23:56:28]FM_GetShiftState [23:56:28]SAM_PROTO_GetShiftState [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 13 01 00 [23:56:28]Write to MH i2c: E2 08 00 0C 2C 80 13 01 00 00 00 00 00 B5 [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 0E 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 0E 00 0C 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 8F [23:56:28]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:56:28]wFMCommunicate OK [23:56:28]SAM_PROTO_GetShiftState done [23:56:28]FM_GetShiftState done [23:56:28]opened in 1729557342 [23:56:28]opened+sec_in_day 1729643742 [23:56:28]quantity*price = 25020 [23:56:28]sum+1 = 25022 [23:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 287 22.10.2024 23:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31054 ФПД: 88332323133933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31054&fm=88332323133933&tin=02508201610067®Number=0000000000186857&sum=25000 [23:56:29]StoreToDocumentArchive [23:56:29]shift 116 fd 31054 [23:56:29]save to /storage/0116/doc_00031054 [23:56:29]save last doc name /storage/0116/doc_00031054 to /storage/kkm_last_doc_name [23:56:29]save OK [23:56:29]Clear old archive folders... [23:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:56:29]tlvbuf is 00D5E4D0 [23:56:29]SAM_PROTO_ClearQueue [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 09 00 00 [23:56:29]Write to MH i2c: E2 08 00 19 2C 80 09 00 00 00 00 00 00 B7 [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [23:56:29]RAPDU: 90 00 [23:56:29]wFMCommunicate OK [23:56:29]SAM_PROTO_ClearQueue done [23:56:29]KKMCreateOFDPacket [23:56:29]OFDProtocolAddRootSTLVToBuf [23:56:29]FM_MakeSignedData [23:56:29]FM_MakeSignedData [23:56:29]SAM_PROTO_SignData [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 0D 01 02 [23:56:29]Write to MH i2c: E2 08 00 1A 2C 80 0D 01 02 00 00 00 00 BF [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [23:56:29]RAPDU: 90 00 [23:56:29]wFMCommunicate OK [23:56:29]wFMCommunicate request_size=255 [23:56:29]MH_SAM_APDU [23:56: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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 1F 01 00 00 F4 03 04 00 AF 3B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 79 00 00 35 04 06 00 50 [23:56:29]Write to MH i2c: E2 02 01 1B 2C 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 1F 01 00 00 F4 03 04 00 AF 3B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 79 00 00 35 04 06 00 50 00 00 3D [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [23:56:29]RAPDU: 90 00 [23:56:29]wFMCommunicate OK [23:56:29]wFMCommunicate request_size=10 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 0D 02 02 05 56 78 BE 19 ED [23:56:29]Write to MH i2c: E2 0D 00 1C 2C 80 0D 02 02 05 00 56 78 BE 19 ED 00 00 5E [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [23:56:29]RAPDU: 90 00 [23:56:29]wFMCommunicate OK [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 0D 03 02 [23:56:29]Write to MH i2c: E2 08 00 1D 2C 80 0D 03 02 00 00 00 00 C4 [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 0B 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 0B 00 1D 2C 00 BC 2B 4D D0 2E 1A 2C 44 90 00 81 [23:56:29]RAPDU: BC 2B 4D D0 2E 1A 2C 44 90 00 [23:56:29]wFMCommunicate OK [23:56:29]SAM_PROTO_SignData done [23:56:29]FM_MakeSignedData done [23:56:29]CreateOFDProtocolMessage [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 11 00 00 [23:56:29]Write to MH i2c: E2 08 00 1E 2C 80 11 00 00 00 00 00 00 C4 [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 17 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 17 00 1E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [23:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:56:29]wFMCommunicate OK [23:56:29]CreateOFDProtocolMessage done [23:56:29]OFDSenderStorePacket 31054 [23:56:29]StoreOFDPacket docnum=31054 [23:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 92 07 01 8F 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 1F 01 00 00 F4 03 04 00 AF 3B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 79 00 00 35 04 06 00 50 56 78 BE 19 ED BC 2B 4D D0 2E 1A 2C 44 [23:56:29]CheckFolder [23:56:29]dirname=/storage/ofd_packets [23:56:29]CheckFolder done [23:56:29]ProducePacketName [23:56:29]name=ofd_packets/00031054 [23:56:29]NVStorageSaveData ofd_packets/00031054 [23:56:29]File name is /storage/ofd_packets/00031054 [23:56:29]Write 301 bytes [23:56:29]NVStorageSaveData done [23:56:29]OFDSenderStorePacket done [23:56:29]KKMCreateOFDPacket done [23:56:29]NVStorageSaveData kkm_last_timestamp [23:56:29]File name is /storage/kkm_last_timestamp [23:56:29]Write 4 bytes [23:56:29]NVStorageSaveData done [23:56:29]ExternCall_PrintAddStr [23:56:29]wPrintStart [23:56:29]Write to MH i2c: 01 00 00 1F 2C 4B [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: 01 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: 01 07 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: 01 07 00 1F 2C 00 00 00 00 00 FF 0F 60 [23:56:29]RasterBufferAndPrint [23:56:29]line Счет N : (1)343494 [23:56:29]line ИНН: 02508201610067 [23:56:29]line Контрольно-Кассовый Чек [23:56:29]line ПРОДАЖА [23:56:29]line ТРК (МРК, ГНК) : 63 [23:56:29]line Товар: 2710124130 [23:56:29]line Аи-92-К-2 [23:56:29]line 3.740 * 66.90 [23:56:29]line = 250.21 [23:56:29]line НДС 12% НСП 1% [23:56:29]line > о реализуемом товаре [23:56:29]line ОКРУГЛЕНИЕ: -0.21 [23:56:29]line ИТОГО: 250.00 [23:56:29]line Внесено: 250.00 [23:56:29]line СДАЧА: 0.00 [23:56:29]line НСП 1% : 2.21 [23:56:29]line НДС 12% : 26.57 [23:56:29]line Наличными: 250.00 [23:56:29]line Безнал.: 0.00 [23:56:29]line Место: АЗС № 78 "Партнер Нефть" [23:56:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:56:29]line СНО: Общий режим [23:56:29]line Чек 287 22.10.2024 23:56 [23:56:29]line Смена: 116 ФФД: 1.0 [23:56:29]line ЗНМ: 0300000137 [23:56:29]line РНМ: 0000000000186857 [23:56:29]line Версия ККМ: v1.0 [23:56:29]line ФМ: 0000000002094219 [23:56:29]line ФД: 31054 [23:56:29]line ФПД: 88332323133933 [23:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31054&fm=88332323133933&tin=02508201610067®Number=0000000000186857&sum=25000 [23:56:30]OFD Sender: Processing packet 31054 [packets to send 11, broken 10] [23:56:30]ProducePacketName [23:56:30]name=ofd_packets/00031054 [23:56:30]OFD Sender: To server: pG, [23:56:30]CommunicateWithHost lk.salyk.kg:30040 [23:56:30]ConnectInit lk.salyk.kg [23:56:30]written 0, free lines is 4095 [23:56:30]Connected sock=10 [23:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 92 07 01 8F 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 1F 01 00 00 F4 03 04 00 AF 3B 18 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 79 00 00 35 04 06 00 50 56 78 BE 19 ED BC 2B 4D D0 2E 1A 2C 44 [23:56:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B1 FC 47 00 27 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 32 30 39 34 32 31 39 10 04 04 00 4E 79 00 00 F4 03 04 00 2B E6 17 67 B6 04 01 00 00 13 AF 0E 07 15 13 64 67 [23:56:30]CommunicateWithHost err = 0 [23:56:30]CheckOFDResponse [23:56:30]1017 (14) - 77093643461234 [23:56:30]1041 (16) - 0000000002094219 [23:56:30]1040 (4) - 31054 [23:56:30]1012 (4) - 22.10.2024 17:51 [23:56:30]1206 (1) - 0 [23:56:30]OFD Sender: Remove packet 31054 [23:56:30]ProducePacketName [23:56:30]name=ofd_packets/00031054 [23:56:30]NVStorageDeleteData [23:56:30]Write to MH i2c: 01 00 00 4A 2C 76 [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: 01 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: 01 07 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 E6 0C 6F [23:56:30]RasterBufferAndPrint [23:56:30]line [23:56:30]line [23:56:30]line [23:56:30]line [23:56:30]line [23:56:30]written 0, free lines is 3308 [23:56:30]MH_Cut [23:56:30]Write to MH i2c: D1 01 00 51 2C 01 4F [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: D1 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: D1 01 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: D1 01 00 51 2C 00 4E [23:56:30]Write to MH i2c: 01 00 00 52 2C 7E [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:31]OFD Sender: No OFD packet to send [23:56:31]*** Cut start [23:56:31]*** Partial cut [23:56:31]*** CUTSNS_PIN = 1 [23:56:31]*** CUTSNS_PIN = 0 [23:56:31]*** Brake cut motor [23:56:31]Read from MH i2c: 01 [23:56:31]MH_I2C_Read... [23:56:31]*** Stop cut motor [23:56:31]*** Cut end [23:56:31]Read from MH i2c: 01 07 00 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 FF 0F 93 [23:56:31]process_action close_receipt done [23:56:31]requested_data is exist [23:56:31]produce_requested_data [23:56:31]requested_item fm.sn is exist - process it [23:56:31]wFMCommunicate request_size=4 [23:56:31]MH_SAM_APDU [23:56:31]CAPDU: 80 11 00 00 [23:56:31]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [23:56:31]Write i2c OK [23:56:31]MH_I2C_Read... [23:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:31]Read from MH i2c: E2 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: E2 17 00 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [23:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:56:31]wFMCommunicate OK [23:56:31]requested_item fd.num is exist - process it [23:56:31]SAM_PROTO_GetFieldsCounters [23:56:31]wFMCommunicate request_size=4 [23:56:31]MH_SAM_APDU [23:56:31]CAPDU: 80 13 00 00 [23:56:31]Write to MH i2c: E2 08 00 54 2C 80 13 00 00 00 00 00 00 FC [23:56:31]Write i2c OK [23:56:31]MH_I2C_Read... [23:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:32]Read from MH i2c: E2 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 62 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 62 00 54 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [23:56:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:32]wFMCommunicate OK [23:56:32]SAM_PROTO_GetFieldsCounters done [23:56:32]requested_item shift.num is exist - process it [23:56:32]requested_item shift.opened is exist - process it [23:56:32]req_shift_opened [23:56:32]FM_GetShiftState [23:56:32]SAM_PROTO_GetShiftState [23:56:32]wFMCommunicate request_size=4 [23:56:32]MH_SAM_APDU [23:56:32]CAPDU: 80 13 01 00 [23:56:32]Write to MH i2c: E2 08 00 55 2C 80 13 01 00 00 00 00 00 FE [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:32]Read from MH i2c: E2 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 0E 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 0E 00 55 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 D8 [23:56:32]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [23:56:32]wFMCommunicate OK [23:56:32]SAM_PROTO_GetShiftState done [23:56:32]FM_GetShiftState done [23:56:32]req_shift_opened done [23:56:32]requested_item shift.open_date is exist - process it [23:56:32]req_shift_open_date [23:56:32]req_shift_open_date done [23:56:32]produce_requested_data done [23:56:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [23:56:32]process_action_free close_receipt [23:56:32]json_value_free [23:56:32]json_value_free done [23:56:32]process_json_proto returns [23:56:32]Send response to host [23:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [23:56:32]free response buf [23:56:32]execute_script done [23:56:32]execute_script returns [23:56:32]free content buf [23:56:32]Sock 7.Close socket [23:56:32]Sock 7.Thread stoped [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [00:21:46]New connection [00:21:46]New thread 3067043172 created [00:21:46]Thread 3066899812 joined [00:21:46]Waiting for new connection... [00:21:46] Sock 9.Parse request [00:21:46]Sock 9.Check first char [00:21:46]Sock 9.First char is OK [00:21:46]request: POST /json_proto HTTP/1.0 [00:21:46]Method: POST [00:21:46]URL: /json_proto [00:21:46]Method is POST - this is cgi request [00:21:46]url: /json_proto [00:21:46]query_string will be loaded in cgi processing [00:21:46]execute_cgi json_proto POST (null) [00:21:46]execute_cgi path=json_proto method=POST [00:21:46]POST find Content-Length [00:21:46]Host: 172.17.51.3:8080 [00:21:46]Content-Length: 215 [00:21:46]Content-Type: application/json [00:21:46] [00:21:46]POST finish read [00:21:46]Found Content-Length = 215 [00:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:46]execute_script... [00:21:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:46]POST & json_proto [00:21:46]process_json_proto [00:21:46]json parsed OK: [00:21:46]protocol is kg_v1.0 [00:21:46]action value=get_value [00:21:46]process_action get_value [00:21:46]cmd_get_value [00:21:46]process_action get_value done [00:21:46]requested_data is exist [00:21:46]produce_requested_data [00:21:46]requested_item kkm.sn is exist - process it [00:21:46]requested_item kkm.ver is exist - process it [00:21:46]requested_item fm.sn is exist - process it [00:21:46]wFMCommunicate request_size=4 [00:21:46]MH_SAM_APDU [00:21:46]CAPDU: 80 11 00 00 [00:21:46]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [00:21:46]Write i2c OK [00:21:46]MH_I2C_Read... [00:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:46]Read from MH i2c: E2 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 17 00 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [00:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:21:46]wFMCommunicate OK [00:21:46]requested_item fd.num is exist - process it [00:21:46]SAM_PROTO_GetFieldsCounters [00:21:46]wFMCommunicate request_size=4 [00:21:46]MH_SAM_APDU [00:21:46]CAPDU: 80 13 00 00 [00:21:46]Write to MH i2c: E2 08 00 57 2C 80 13 00 00 00 00 00 00 FF [00:21:46]Write i2c OK [00:21:46]MH_I2C_Read... [00:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:46]Read from MH i2c: E2 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 62 00 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 62 00 57 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [00:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:46]wFMCommunicate OK [00:21:46]SAM_PROTO_GetFieldsCounters done [00:21:46]requested_item shift.num is exist - process it [00:21:46]requested_item shift.opened is exist - process it [00:21:46]req_shift_opened [00:21:46]FM_GetShiftState [00:21:46]SAM_PROTO_GetShiftState [00:21:46]wFMCommunicate request_size=4 [00:21:46]MH_SAM_APDU [00:21:46]CAPDU: 80 13 01 00 [00:21:46]Write to MH i2c: E2 08 00 58 2C 80 13 01 00 00 00 00 00 01 [00:21:46]Write i2c OK [00:21:46]MH_I2C_Read... [00:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:46]Read from MH i2c: E2 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 0E 00 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 0E 00 58 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DB [00:21:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:21:46]wFMCommunicate OK [00:21:46]SAM_PROTO_GetShiftState done [00:21:46]FM_GetShiftState done [00:21:46]req_shift_opened done [00:21:46]requested_item shift.open_date is exist - process it [00:21:46]req_shift_open_date [00:21:46]req_shift_open_date done [00:21:46]produce_requested_data done [00:21:46]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:21:46]process_action_free get_value [00:21:46]json_value_free [00:21:46]json_value_free done [00:21:46]process_json_proto returns [00:21:46]Send response to host [00:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:21:46]free response buf [00:21:46]execute_script done [00:21:46]execute_script returns [00:21:46]free content buf [00:21:46]Sock 9.Close socket [00:21:46]Sock 9.Thread stoped [00:21:46]accept exits with 7 [00:21:46]New connection [00:21:46]New thread 3066899812 created [00:21:46]Thread 3067043172 joined [00:21:46]Waiting for new connection... [00:21:46] Sock 7.Parse request [00:21:46]Sock 7.Check first char [00:21:46]Sock 7.First char is OK [00:21:46]request: POST /json_proto HTTP/1.0 [00:21:46]Method: POST [00:21:46]URL: /json_proto [00:21:46]Method is POST - this is cgi request [00:21:46]url: /json_proto [00:21:46]query_string will be loaded in cgi processing [00:21:46]execute_cgi json_proto POST (null) [00:21:46]execute_cgi path=json_proto method=POST [00:21:46]POST find Content-Length [00:21:46]Host: 172.17.51.3:8080 [00:21:46]Content-Length: 331 [00:21:46]Content-Type: application/json [00:21:46] [00:21:46]POST finish read [00:21:46]Found Content-Length = 331 [00:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:46]execute_script... [00:21:46]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:21:46]POST & json_proto [00:21:46]process_json_proto [00:21:46]json parsed OK: [00:21:46]protocol is kg_v1.0 [00:21:46]action value=get_value [00:21:47]process_action get_value [00:21:47]cmd_get_value [00:21:47]process_action get_value done [00:21:47]requested_data is exist [00:21:47]produce_requested_data [00:21:47]requested_item fm.sale.total is exist - process it [00:21:47]SAM_PROTO_GetFMData [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 13 03 00 [00:21:47]Write to MH i2c: E2 08 00 59 2C 80 13 03 00 00 00 00 00 04 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]OFD Sender: No OFD packet to send [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:47]Read from MH i2c: E2 FD 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 FD 00 59 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 9F [00:21:47]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:21:47]wFMCommunicate OK [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 17 00 00 [00:21:47]Write to MH i2c: E2 08 00 5A 2C 80 17 00 00 00 00 00 00 06 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 FD 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 FD 00 5A 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [00:21:47]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:47]wFMCommunicate OK [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 17 00 00 [00:21:47]Write to MH i2c: E2 08 00 5B 2C 80 17 00 00 00 00 00 00 07 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:48]Read from MH i2c: E2 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 FD 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 FD 00 5B 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AB [00:21:48]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:21:48]wFMCommunicate OK [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 17 00 00 [00:21:48]Write to MH i2c: E2 08 00 5C 2C 80 17 00 00 00 00 00 00 08 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:48]Read from MH i2c: E2 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 FD 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 FD 00 5C 2C 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 82 [00:21:48]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:21:48]wFMCommunicate OK [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 17 00 00 [00:21:48]Write to MH i2c: E2 08 00 5D 2C 80 17 00 00 00 00 00 00 09 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:21:48]Read from MH i2c: E2 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 DC 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 DC 00 5D 2C 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 ED [00:21:48]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:21:48]wFMCommunicate OK [00:21:48]SAM_PROTO_GetFMData done [00:21:48]requested_item fm.sale_refund.total is exist - process it [00:21:48]requested_item fm.buy.total is exist - process it [00:21:48]requested_item shift.sale.total is exist - process it [00:21:48]SAM_PROTO_GetShiftData [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 13 02 00 [00:21:48]Write to MH i2c: E2 08 00 5E 2C 80 13 02 00 00 00 00 00 08 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 5E 2C 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [00:21:49]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:49]wFMCommunicate OK [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 17 00 00 [00:21:49]Write to MH i2c: E2 08 00 5F 2C 80 17 00 00 00 00 00 00 0B [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 5F 2C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:21:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:49]wFMCommunicate OK [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 17 00 00 [00:21:49]Write to MH i2c: E2 08 00 60 2C 80 17 00 00 00 00 00 00 0C [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 FD 00 60 2C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:21:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:49]wFMCommunicate OK [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 17 00 00 [00:21:49]Write to MH i2c: E2 08 00 61 2C 80 17 00 00 00 00 00 00 0D [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 61 2C 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 90 00 85 [00:21:50]RAPDU: 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 90 00 [00:21:50]wFMCommunicate OK [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 17 00 00 [00:21:50]Write to MH i2c: E2 08 00 62 2C 80 17 00 00 00 00 00 00 0E [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 CE 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 CE 00 62 2C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [00:21:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:50]wFMCommunicate OK [00:21:50]SAM_PROTO_GetShiftData done [00:21:50]requested_item shift.sale.total_cash is exist - process it [00:21:50]requested_item shift.sale_refund.total is exist - process it [00:21:50]requested_item shift.sale_refund.total_cash is exist - process it [00:21:50]requested_item shift.buy.total is exist - process it [00:21:50]requested_item shift.buy.total_cash is exist - process it [00:21:50]produce_requested_data done [00:21:50]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:21:50]process_action_free get_value [00:21:50]json_value_free [00:21:50]json_value_free done [00:21:50]process_json_proto returns [00:21:50]Send response to host [00:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:21:50]free response buf [00:21:50]execute_script done [00:21:50]execute_script returns [00:21:50]free content buf [00:21:50]Sock 7.Close socket [00:21:50]Sock 7.Thread stoped [00:21:50]accept exits with 9 [00:21:50]New connection [00:21:50]New thread 3067043172 created [00:21:50]Thread 3066899812 joined [00:21:50]Waiting for new connection... [00:21:50] Sock 9.Parse request [00:21:50]Sock 9.Check first char [00:21:50]Sock 9.First char is OK [00:21:50]request: POST /json_proto HTTP/1.0 [00:21:50]Method: POST [00:21:50]URL: /json_proto [00:21:50]Method is POST - this is cgi request [00:21:50]url: /json_proto [00:21:50]query_string will be loaded in cgi processing [00:21:50]execute_cgi json_proto POST (null) [00:21:50]execute_cgi path=json_proto method=POST [00:21:50]POST find Content-Length [00:21:50]Host: 172.17.51.3:8080 [00:21:50]Content-Length: 331 [00:21:50]Content-Type: application/json [00:21:50] [00:21:50]POST finish read [00:21:50]Found Content-Length = 331 [00:21:50]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:21:50]execute_script... [00:21:50]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:21:50]POST & json_proto [00:21:50]process_json_proto [00:21:50]json parsed OK: [00:21:50]protocol is kg_v1.0 [00:21:50]action value=get_value [00:21:50]process_action get_value [00:21:50]cmd_get_value [00:21:50]process_action get_value done [00:21:50]requested_data is exist [00:21:50]produce_requested_data [00:21:50]requested_item fm.sale.total is exist - process it [00:21:50]SAM_PROTO_GetFMData [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 13 03 00 [00:21:50]Write to MH i2c: E2 08 00 63 2C 80 13 03 00 00 00 00 00 0E [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 63 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 A9 [00:21:51]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:21:51]wFMCommunicate OK [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 17 00 00 [00:21:51]Write to MH i2c: E2 08 00 64 2C 80 17 00 00 00 00 00 00 10 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 64 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E1 [00:21:51]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:51]wFMCommunicate OK [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 17 00 00 [00:21:51]Write to MH i2c: E2 08 00 65 2C 80 17 00 00 00 00 00 00 11 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 65 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [00:21: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 [00:21:51]wFMCommunicate OK [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 17 00 00 [00:21:51]Write to MH i2c: E2 08 00 66 2C 80 17 00 00 00 00 00 00 12 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 [00:21:52]MH_I2C_Read... [00:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:52]Read from MH i2c: E2 FD 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 66 2C 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 8C [00:21: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 [00:21:52]wFMCommunicate OK [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 17 00 00 [00:21:52]Write to MH i2c: E2 08 00 67 2C 80 17 00 00 00 00 00 00 13 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:52]OFD Sender: No OFD packet to send [00:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:21:52]Read from MH i2c: E2 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 DC 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 DC 00 67 2C 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 F7 [00:21:52]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:21:52]wFMCommunicate OK [00:21:52]SAM_PROTO_GetFMData done [00:21:52]requested_item fm.sale_refund.total is exist - process it [00:21:52]requested_item fm.buy.total is exist - process it [00:21:52]requested_item shift.sale.total is exist - process it [00:21:52]SAM_PROTO_GetShiftData [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 13 02 00 [00:21:52]Write to MH i2c: E2 08 00 68 2C 80 13 02 00 00 00 00 00 12 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 68 2C 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:21:53]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=4 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 17 00 00 [00:21:53]Write to MH i2c: E2 08 00 69 2C 80 17 00 00 00 00 00 00 15 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 69 2C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:21:53]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=4 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 17 00 00 [00:21:53]Write to MH i2c: E2 08 00 6A 2C 80 17 00 00 00 00 00 00 16 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 FD 00 6A 2C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [00:21:53]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:54]wFMCommunicate OK [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 17 00 00 [00:21:54]Write to MH i2c: E2 08 00 6B 2C 80 17 00 00 00 00 00 00 17 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:54]Read from MH i2c: E2 FD 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 FD 00 6B 2C 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 90 00 8F [00:21:54]RAPDU: 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 90 00 [00:21:54]wFMCommunicate OK [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 17 00 00 [00:21:54]Write to MH i2c: E2 08 00 6C 2C 80 17 00 00 00 00 00 00 18 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 CE 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 CE 00 6C 2C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [00:21:54]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:54]wFMCommunicate OK [00:21:54]SAM_PROTO_GetShiftData done [00:21:54]requested_item shift.sale.total_cash is exist - process it [00:21:54]requested_item shift.sale_refund.total is exist - process it [00:21:54]requested_item shift.sale_refund.total_cash is exist - process it [00:21:54]requested_item shift.buy.total is exist - process it [00:21:54]requested_item shift.buy.total_cash is exist - process it [00:21:54]produce_requested_data done [00:21:54]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:21:54]process_action_free get_value [00:21:54]json_value_free [00:21:54]json_value_free done [00:21:54]process_json_proto returns [00:21:54]Send response to host [00:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:21:54]free response buf [00:21:54]execute_script done [00:21:54]execute_script returns [00:21:54]free content buf [00:21:54]Sock 9.Close socket [00:21:54]Sock 9.Thread stoped [00:21:54]accept exits with 7 [00:21:54]New connection [00:21:54]New thread 3066899812 created [00:21:54]Thread 3067043172 joined [00:21:54]Waiting for new connection... [00:21:54] Sock 7.Parse request [00:21:54]Sock 7.Check first char [00:21:54]Sock 7.First char is OK [00:21:54]request: POST /json_proto HTTP/1.0 [00:21:54]Method: POST [00:21:54]URL: /json_proto [00:21:54]Method is POST - this is cgi request [00:21:54]url: /json_proto [00:21:54]query_string will be loaded in cgi processing [00:21:54]execute_cgi json_proto POST (null) [00:21:54]execute_cgi path=json_proto method=POST [00:21:54]POST find Content-Length [00:21:54]Host: 172.17.51.3:8080 [00:21:54]Content-Length: 288 [00:21:54]Content-Type: application/json [00:21:54] [00:21:54]POST finish read [00:21:54]Found Content-Length = 288 [00:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:54]execute_script... [00:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:54]POST & json_proto [00:21:54]process_json_proto [00:21:54]json parsed OK: [00:21:54]protocol is kg_v1.0 [00:21:54]action value=x_report [00:21:54]process_action x_report [00:21:54]cmd_x_report [00:21:54]MH_GetDate [00:21:54]Write to MH i2c: F0 00 00 6D 2C 88 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 6D 2C 00 A6 41 18 67 04 C1 95 66 B7 [00:21:54]GetLastDocTimeStamp 1729641391 [00:21:54]current date 1729642918 [00:21:54]FM_GetShiftState [00:21:54]SAM_PROTO_GetShiftState [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 13 01 00 [00:21:54]Write to MH i2c: E2 08 00 6E 2C 80 13 01 00 00 00 00 00 17 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 0E 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 0E 00 6E 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 F1 [00:21:54]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:21:54]wFMCommunicate OK [00:21:54]SAM_PROTO_GetShiftState done [00:21:54]FM_GetShiftState done [00:21:54]KKMCreateXReportDocument [00:21:54]Load OK [00:21:54]Malloc new data [00:21:54]MH_GetDate [00:21:54]Write to MH i2c: F0 00 00 6F 2C 8A [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 6F 2C 00 A6 41 18 67 04 C1 95 66 B9 [00:21:54]Malloc new data [00:21:54]Malloc new data [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 11 00 00 [00:21:54]Write to MH i2c: E2 08 00 70 2C 80 11 00 00 00 00 00 00 16 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 17 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 17 00 70 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [00:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:21:55]wFMCommunicate OK [00:21:55]SAM_PROTO_GetFieldsCounters [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 13 00 00 [00:21:55]Write to MH i2c: E2 08 00 71 2C 80 13 00 00 00 00 00 00 19 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 62 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 62 00 71 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:55]wFMCommunicate OK [00:21:55]SAM_PROTO_GetFieldsCounters done [00:21:55]Malloc new data [00:21:55]Malloc new data [00:21:55]Malloc new data [00:21:55]KKMCreateXReportDocument OK [00:21:55]KKMSetXReportData OK [00:21:55]KKMPrepareXReportFMData [00:21:55]SAM_PROTO_GetShiftData [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 13 02 00 [00:21:55]Write to MH i2c: E2 08 00 72 2C 80 13 02 00 00 00 00 00 1C [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 FD 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 FD 00 72 2C 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:21:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:55]wFMCommunicate OK [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 17 00 00 [00:21:55]Write to MH i2c: E2 08 00 73 2C 80 17 00 00 00 00 00 00 1F [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 FD 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 FD 00 73 2C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:21:56]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:56]wFMCommunicate OK [00:21:56]wFMCommunicate request_size=4 [00:21:56]MH_SAM_APDU [00:21:56]CAPDU: 80 17 00 00 [00:21:56]Write to MH i2c: E2 08 00 74 2C 80 17 00 00 00 00 00 00 20 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 FD 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 FD 00 74 2C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:21:56]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:56]wFMCommunicate OK [00:21:56]wFMCommunicate request_size=4 [00:21:56]MH_SAM_APDU [00:21:56]CAPDU: 80 17 00 00 [00:21:56]Write to MH i2c: E2 08 00 75 2C 80 17 00 00 00 00 00 00 21 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:57]Read from MH i2c: E2 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 FD 00 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 FD 00 75 2C 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 90 00 99 [00:21:57]RAPDU: 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 90 00 [00:21:57]wFMCommunicate OK [00:21:57]wFMCommunicate request_size=4 [00:21:57]MH_SAM_APDU [00:21:57]CAPDU: 80 17 00 00 [00:21:57]Write to MH i2c: E2 08 00 76 2C 80 17 00 00 00 00 00 00 22 [00:21:57]Write i2c OK [00:21:57]MH_I2C_Read... [00:21:57]OFD Sender: No OFD packet to send [00:21:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:21:57]Read from MH i2c: E2 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 CE 00 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 CE 00 76 2C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [00:21:57]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:57]wFMCommunicate OK [00:21:57]SAM_PROTO_GetShiftData done [00:21:57]1194 (1197) - счетчики итогов смены [00:21:57] 1134 (4) - 287 - количество чеков со всеми признаками расчетов [00:21:57] 1129 (158) - счетчики операций «приход» [00:21:57] 1135 (4) - 287 - количество чеков по признаку расчетов [00:21:57] 1201 (4) - 273892.61 - общая итоговая сумма в чеках [00:21:57] 1136 (4) - 237223.00 - итоговая сумма в чеках наличными [00:21:57] 1138 (3) - 36669.61 - итоговая сумма в чеках безналичными [00:21:57] 1024 (123) - суммы налогов [00:21:57] 1006 (9) - суммы НДС [00:21:57] 1010 (1) - 0% - код ставки НДС [00:21:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:57] 1006 (12) - суммы НДС [00:21:57] 1010 (1) - 12% - код ставки НДС [00:21:57] 1011 (3) - 29094.00 - сумма НДС по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (12) - суммы НСП [00:21:57] 1014 (1) - 1% - код ставки НСП [00:21:57] 1015 (3) - 2424.40 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 2% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 3% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 5% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 1,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1130 (141) - счетчики операций «возврат прихода» [00:21:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:57] 1024 (117) - суммы налогов [00:21:57] 1006 (9) - суммы НДС [00:21:57] 1010 (1) - 0% - код ставки НДС [00:21:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:57] 1006 (9) - суммы НДС [00:21:57] 1010 (1) - 12% - код ставки НДС [00:21:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 1% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 2% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 3% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 5% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 1,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1131 (141) - счетчики операций «расход» [00:21:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:57] 1024 (117) - суммы налогов [00:21:57] 1006 (9) - суммы НДС [00:21:57] 1010 (1) - 0% - код ставки НДС [00:21:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:57] 1006 (9) - суммы НДС [00:21:57] 1010 (1) - 12% - код ставки НДС [00:21:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 1% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 2% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 3% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 5% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 0,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1007 (9) - суммы НСП [00:21:57] 1014 (1) - 1,50% - код ставки НСП [00:21:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:57] 1132 (141) - счетчики операций «возврат расхода» [00:21:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:58] 1024 (117) - суммы налогов [00:21:58] 1006 (9) - суммы НДС [00:21:58] 1010 (1) - 0% - код ставки НДС [00:21:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:58] 1006 (9) - суммы НДС [00:21:58] 1010 (1) - 12% - код ставки НДС [00:21:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 0% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 1% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 2% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 3% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 5% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 0,50% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1007 (9) - суммы НСП [00:21:58] 1014 (1) - 1,50% - код ставки НСП [00:21:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:58] 1133 (588) - - счетчики коррекции - не используются [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1194 (04AA) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1134 (046E) [00:21:58]Malloc new data [00:21:58]Processing tag 1129 (0469) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1135 (046F) [00:21:58]Malloc new data [00:21:58]Processing tag 1201 (04B1) [00:21:58]Malloc new data [00:21:58]Processing tag 1136 (0470) [00:21:58]Malloc new data [00:21:58]Processing tag 1138 (0472) [00:21:58]Malloc new data [00:21:58]Processing tag 1024 (0400) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1130 (046A) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1135 (046F) [00:21:58]Malloc new data [00:21:58]Processing tag 1201 (04B1) [00:21:58]Malloc new data [00:21:58]Processing tag 1136 (0470) [00:21:58]Malloc new data [00:21:58]Processing tag 1138 (0472) [00:21:58]Malloc new data [00:21:58]Processing tag 1024 (0400) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1131 (046B) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1135 (046F) [00:21:58]Malloc new data [00:21:58]Processing tag 1201 (04B1) [00:21:58]Malloc new data [00:21:58]Processing tag 1136 (0470) [00:21:58]Malloc new data [00:21:58]Processing tag 1138 (0472) [00:21:58]Malloc new data [00:21:58]Processing tag 1024 (0400) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1132 (046C) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1135 (046F) [00:21:58]Malloc new data [00:21:58]Processing tag 1201 (04B1) [00:21:58]Malloc new data [00:21:58]Processing tag 1136 (0470) [00:21:58]Malloc new data [00:21:58]Processing tag 1138 (0472) [00:21:58]Malloc new data [00:21:58]Processing tag 1024 (0400) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1006 (03EE) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1010 (03F2) [00:21:58]Malloc new data [00:21:58]Processing tag 1011 (03F3) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1007 (03EF) [00:21:58]Load OK [00:21:58]SetTLVBufToDocument [00:21:58]Processing tag 1014 (03F6) [00:21:58]Malloc new data [00:21:58]Processing tag 1015 (03F7) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Processing tag 1133 (046D) [00:21:58]Malloc new data [00:21:58]SetTLVBufToDocument err=0 [00:21:58]SetTLVBufToDocument err=0 [00:21:58]Malloc new data [00:21:58]SAM_PROTO_GetFMData [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 13 03 00 [00:21:58]Write to MH i2c: E2 08 00 77 2C 80 13 03 00 00 00 00 00 22 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:59]Read from MH i2c: E2 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 77 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 BD [00:21:59]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:21:59]wFMCommunicate OK [00:21:59]wFMCommunicate request_size=4 [00:21:59]MH_SAM_APDU [00:21:59]CAPDU: 80 17 00 00 [00:21:59]Write to MH i2c: E2 08 00 78 2C 80 17 00 00 00 00 00 00 24 [00:21:59]Write i2c OK [00:21:59]MH_I2C_Read... [00:21:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:59]Read from MH i2c: E2 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 78 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [00:21:59]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:00]wFMCommunicate OK [00:22:00]wFMCommunicate request_size=4 [00:22:00]MH_SAM_APDU [00:22:00]CAPDU: 80 17 00 00 [00:22:00]Write to MH i2c: E2 08 00 79 2C 80 17 00 00 00 00 00 00 25 [00:22:00]Write i2c OK [00:22:00]MH_I2C_Read... [00:22:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:00]Read from MH i2c: E2 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 79 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C9 [00:22:00]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:22:00]wFMCommunicate OK [00:22:00]wFMCommunicate request_size=4 [00:22:00]MH_SAM_APDU [00:22:00]CAPDU: 80 17 00 00 [00:22:00]Write to MH i2c: E2 08 00 7A 2C 80 17 00 00 00 00 00 00 26 [00:22:00]Write i2c OK [00:22:00]MH_I2C_Read... [00:22:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:00]Read from MH i2c: E2 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 7A 2C 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 A0 [00:22:01]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:22:01]wFMCommunicate OK [00:22:01]wFMCommunicate request_size=4 [00:22:01]MH_SAM_APDU [00:22:01]CAPDU: 80 17 00 00 [00:22:01]Write to MH i2c: E2 08 00 7B 2C 80 17 00 00 00 00 00 00 27 [00:22:01]Write i2c OK [00:22:01]MH_I2C_Read... [00:22:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:22:01]Read from MH i2c: E2 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 DC 00 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 DC 00 7B 2C 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 0B [00:22:01]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:22:01]wFMCommunicate OK [00:22:01]SAM_PROTO_GetFMData done [00:22:01]FM_GetFMData:85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:22:02]oper:6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 [00:22:02]total:F8 4D AB A6 [00:22:02]Malloc new data [00:22:02]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 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 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:02]total:88 7F 52 OFD Sender: No OFD packet to send [00:22:02] [00:22:02]Malloc new data [00:22:02]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 [00:22:02]total: [00:22:02]Malloc new data [00:22:02]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 [00:22:02]total: [00:22:02]Malloc new data [00:22:02]KKMPrepareXReportFMData err=0 [00:22:02]Х отчет ИНН: 02508201610067 Кассир: Таалайбек кызы А. 23.10.2024 00:21 Смена: 10 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Всего чеков: 287 ИТОГИ ПРИХОД Чеков: 287 Общий итог: 273892.61 Итого наличными: 237223.00 Итого безнал.: 36669.61 НДС 0% : 0.00 НДС 12% : 29094.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2424.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 237223.00 НС Приход: 27962444.72 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094219 [00:22:02]StoreToDocumentArchive [00:22:02]MH_GetDate [00:22:02]Write to MH i2c: F0 00 00 7C 2C 97 [00:22:02]Write i2c OK [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: F0 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: F0 09 00 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: F0 09 00 7C 2C 00 AE 41 18 67 04 C1 95 66 CE [00:22:02]shift 10 fd 1729642926 [00:22:02]Create dir for shift 0010 [00:22:02]save to /storage/0010/doc_1729642926 [00:22:02]save last doc name /storage/0010/doc_1729642926 to /storage/kkm_last_doc_name [00:22:02]save OK [00:22:02]Clear old archive folders... [00:22:02]NVStorageSaveData kkm_last_timestamp [00:22:02]File name is /storage/kkm_last_timestamp [00:22:02]Write 4 bytes [00:22:02]NVStorageSaveData done [00:22:02]ExternCall_PrintAddStr [00:22:02]wPrintStart [00:22:02]Write to MH i2c: 01 00 00 7D 2C A9 [00:22:02]Write i2c OK [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: 01 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: 01 07 00 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: 01 07 00 7D 2C 00 00 00 00 00 FF 0F BE [00:22:02]RasterBufferAndPrint [00:22:02]line Х отчет [00:22:03]line ИНН: 02508201610067 [00:22:03]line Кассир: Таалайбек кызы А. [00:22:03]line 23.10.2024 00:21 [00:22:03]line Смена: 10 [00:22:03]line РНМ: 0000000000186857 [00:22:03]line ЗНМ: 0300000137 [00:22:03]line СНО: Общий режим [00:22:03]line Всего чеков: 287 [00:22:03]line ИТОГИ ПРИХОД [00:22:03]line Чеков: 287 [00:22:03]line Общий итог: 273892.61 [00:22:03]line Итого наличными: 237223.00 [00:22:03]line Итого безнал.: 36669.61 [00:22:03]line НДС 0% : 0.00 [00:22:03]line НДС 12% : 29094.00 [00:22:03]line НСП 0% : 0.00 [00:22:03]line НСП 1,50% : 0.00 [00:22:03]line НСП 0,50% : 0.00 [00:22:03]line НСП 5% : 0.00 [00:22:03]line НСП 3% : 0.00 [00:22:03]line НСП 2% : 0.00 [00:22:03]line НСП 1% : 2424.40 [00:22:03]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:22:03]line Чеков: 0 [00:22:03]line Общий итог: 0.00 [00:22:03]line Итого наличными: 0.00 [00:22:03]line Итого безнал.: 0.00 [00:22:03]line НДС 0% : 0.00 [00:22:03]line НДС 12% : 0.00 [00:22:03]line НСП 0% : 0.00 [00:22:03]line НСП 1,50% : 0.00 [00:22:03]line НСП 0,50% : 0.00 [00:22:03]line НСП 5% : 0.00 [00:22:03]line НСП 3% : 0.00 [00:22:03]line НСП 2% : 0.00 [00:22:03]line НСП 1% : 0.00 [00:22:03]line ИТОГИ РАСХОД [00:22:03]line Чеков: 0 [00:22:03]line Общий итог: 0.00 [00:22:03]line Итого наличными: 0.00 [00:22:03]line Итого безнал.: 0.00 [00:22:03]line НДС 0% : 0.00 [00:22:03]line НДС 12% : 0.00 [00:22:03]line НСП 0% : 0.00 [00:22:03]line НСП 1,50% : 0.00 [00:22:03]line НСП 0,50% : 0.00 [00:22:03]line НСП 5% : 0.00 [00:22:03]line НСП 3% : 0.00 [00:22:03]line НСП 2% : 0.00 [00:22:03]line НСП 1% : 0.00 [00:22:03]line ИТОГИ ВОЗВРАТ РАСХОДА [00:22:03]line Чеков: 0 [00:22:03]line Общий итог: 0.00 [00:22:03]line Итого наличными: 0.00 [00:22:03]line Итого безнал.: 0.00 [00:22:03]line НДС 0% : 0.00 [00:22:03]line НДС 12% : 0.00 [00:22:03]line НСП 0% : 0.00 [00:22:03]line НСП 1,50% : 0.00 [00:22:03]line НСП 0,50% : 0.00 [00:22:03]line НСП 5% : 0.00 [00:22:03]line НСП 3% : 0.00 [00:22:03]line НСП 2% : 0.00 [00:22:03]line НСП 1% : 0.00 [00:22:03]line Сумма внесений: 0.00 [00:22:03]line Сумма выплат: 0.00 [00:22:03]line Нал. в кассе: 237223.00 [00:22:03]line НС Приход: 27962444.72 [00:22:03]line НС Возвр.Прихода: 54066.00 [00:22:03]line НС Расход: 0.00 [00:22:03]line НС Возвр.Расхода: 0.00 [00:22:03]line ФМ: 0000000002094219 [00:22:03]written 0, free lines is 4095 [00:22:03]Write to MH i2c: 01 00 00 C8 2C F4 [00:22:03]Write i2c OK [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: 01 [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: 01 07 00 [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: 01 07 00 C8 2C 00 00 00 00 00 0F 0B 15 [00:22:03]RasterBufferAndPrint [00:22:03]line [00:22:03]line [00:22:03]line [00:22:03]line [00:22:03]line [00:22:03]written 0, free lines is 2867 [00:22:03]MH_Cut [00:22:03]Write to MH i2c: D1 01 00 CF 2C 01 CD [00:22:03]Write i2c OK [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: D1 [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: D1 01 00 [00:22:03]MH_I2C_Read... [00:22:03]Read from MH i2c: D1 01 00 CF 2C 00 CC [00:22:03]Write to MH i2c: 01 00 00 D0 2C FC [00:22:03]Write i2c OK [00:22:03]MH_I2C_Read... [00:22:04]*** Cut start [00:22:04]*** Partial cut [00:22:04]*** CUTSNS_PIN = 1 [00:22:04]*** CUTSNS_PIN = 0 [00:22:05]*** Brake cut motor [00:22:05]Read from MH i2c: 01 [00:22:05]MH_I2C_Read... [00:22:05]*** Stop cut motor [00:22:05]*** Cut end [00:22:05]Read from MH i2c: 01 07 00 [00:22:05]MH_I2C_Read... [00:22:05]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 FF 0F 11 [00:22:05]process_action x_report done [00:22:05]requested_data is exist [00:22:05]produce_requested_data [00:22:05]requested_item fd.num is exist - process it [00:22:05]SAM_PROTO_GetFieldsCounters [00:22:05]wFMCommunicate request_size=4 [00:22:05]MH_SAM_APDU [00:22:05]CAPDU: 80 13 00 00 [00:22:05]Write to MH i2c: E2 08 00 D1 2C 80 13 00 00 00 00 00 00 79 [00:22:05]Write i2c OK [00:22:05]MH_I2C_Read... [00:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:05]Read from MH i2c: E2 [00:22:05]MH_I2C_Read... [00:22:05]Read from MH i2c: E2 62 00 [00:22:05]MH_I2C_Read... [00:22:05]Read from MH i2c: E2 62 00 D1 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [00:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:05]wFMCommunicate OK [00:22:05]SAM_PROTO_GetFieldsCounters done [00:22:05]requested_item shift.num is exist - process it [00:22:05]requested_item shift.opened is exist - process it [00:22:05]req_shift_opened [00:22:05]FM_GetShiftState [00:22:05]SAM_PROTO_GetShiftState [00:22:05]wFMCommunicate request_size=4 [00:22:05]MH_SAM_APDU [00:22:05]CAPDU: 80 13 01 00 [00:22:05]Write to MH i2c: E2 08 00 D2 2C 80 13 01 00 00 00 00 00 7B [00:22:05]Write i2c OK [00:22:05]MH_I2C_Read... [00:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:05]Read from MH i2c: E2 [00:22:05]MH_I2C_Read... [00:22:05]Read from MH i2c: E2 0E 00 [00:22:05]MH_I2C_Read... [00:22:05]Read from MH i2c: E2 0E 00 D2 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 55 [00:22:05]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:22:05]wFMCommunicate OK [00:22:05]SAM_PROTO_GetShiftState done [00:22:05]FM_GetShiftState done [00:22:05]req_shift_opened done [00:22:05]requested_item shift.open_date is exist - process it [00:22:05]req_shift_open_date [00:22:05]req_shift_open_date done [00:22:05]produce_requested_data done [00:22:05]produce_requested_data return {"fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:22:05]process_action_free x_report [00:22:05]json_value_free [00:22:05]json_value_free done [00:22:05]process_json_proto returns [00:22:05]Send response to host [00:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:22:05]free response buf [00:22:05]execute_script done [00:22:05]execute_script returns [00:22:05]free content buf [00:22:05]Sock 7.Close socket [00:22:05]Sock 7.Thread stoped [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:36]accept exits with 9 [00:22:36]New connection [00:22:36]New thread 3067043172 created [00:22:36]Thread 3066899812 joined [00:22:36]Waiting for new connection... [00:22:36] Sock 9.Parse request [00:22:36]Sock 9.Check first char [00:22:36]Sock 9.First char is OK [00:22:36]request: POST /json_proto HTTP/1.0 [00:22:36]Method: POST [00:22:36]URL: /json_proto [00:22:36]Method is POST - this is cgi request [00:22:36]url: /json_proto [00:22:36]query_string will be loaded in cgi processing [00:22:36]execute_cgi json_proto POST (null) [00:22:36]execute_cgi path=json_proto method=POST [00:22:36]POST find Content-Length [00:22:36]Host: 172.17.51.3:8080 [00:22:36]Content-Length: 215 [00:22:36]Content-Type: application/json [00:22:36] [00:22:36]POST finish read [00:22:36]Found Content-Length = 215 [00:22:36]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:22:36]execute_script... [00:22:36]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:22:36]POST & json_proto [00:22:36]process_json_proto [00:22:36]json parsed OK: [00:22:36]protocol is kg_v1.0 [00:22:36]action value=get_value [00:22:36]process_action get_value [00:22:36]cmd_get_value [00:22:36]process_action get_value done [00:22:36]requested_data is exist [00:22:36]produce_requested_data [00:22:36]requested_item kkm.sn is exist - process it [00:22:36]requested_item kkm.ver is exist - process it [00:22:36]requested_item fm.sn is exist - process it [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 11 00 00 [00:22:36]Write to MH i2c: E2 08 00 D3 2C 80 11 00 00 00 00 00 00 79 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 D3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [00:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:22:36]wFMCommunicate OK [00:22:36]requested_item fd.num is exist - process it [00:22:36]SAM_PROTO_GetFieldsCounters [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 13 00 00 [00:22:36]Write to MH i2c: E2 08 00 D4 2C 80 13 00 00 00 00 00 00 7C [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 62 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 62 00 D4 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [00:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:37]wFMCommunicate OK [00:22:37]SAM_PROTO_GetFieldsCounters done [00:22:37]requested_item shift.num is exist - process it [00:22:37]requested_item shift.opened is exist - process it [00:22:37]req_shift_opened [00:22:37]FM_GetShiftState [00:22:37]SAM_PROTO_GetShiftState [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 13 01 00 [00:22:37]Write to MH i2c: E2 08 00 D5 2C 80 13 01 00 00 00 00 00 7E [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 0E 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 0E 00 D5 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 58 [00:22:37]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:22:37]wFMCommunicate OK [00:22:37]SAM_PROTO_GetShiftState done [00:22:37]FM_GetShiftState done [00:22:37]req_shift_opened done [00:22:37]requested_item shift.open_date is exist - process it [00:22:37]req_shift_open_date [00:22:37]req_shift_open_date done [00:22:37]produce_requested_data done [00:22:37]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:22:37]process_action_free get_value [00:22:37]json_value_free [00:22:37]json_value_free done [00:22:37]process_json_proto returns [00:22:37]Send response to host [00:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31054,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:22:37]free response buf [00:22:37]execute_script done [00:22:37]execute_script returns [00:22:37]free content buf [00:22:37]Sock 9.Close socket [00:22:37]Sock 9.Thread stoped [00:22:37]accept exits with 7 [00:22:37]New connection [00:22:37]New thread 3066899812 created [00:22:37]Thread 3067043172 joined [00:22:37]Waiting for new connection... [00:22:37] Sock 7.Parse request [00:22:37]Sock 7.Check first char [00:22:37]Sock 7.First char is OK [00:22:37]request: POST /json_proto HTTP/1.0 [00:22:37]Method: POST [00:22:37]URL: /json_proto [00:22:37]Method is POST - this is cgi request [00:22:37]url: /json_proto [00:22:37]query_string will be loaded in cgi processing [00:22:37]execute_cgi json_proto POST (null) [00:22:37]execute_cgi path=json_proto method=POST [00:22:37]POST find Content-Length [00:22:37]Host: 172.17.51.3:8080 [00:22:37]Content-Length: 331 [00:22:37]Content-Type: application/json [00:22:37] [00:22:37]POST finish read [00:22:37]Found Content-Length = 331 [00:22:37]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:22:37]execute_script... [00:22:37]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:22:37]POST & json_proto [00:22:37]process_json_proto [00:22:37]json parsed OK: [00:22:37]protocol is kg_v1.0 [00:22:37]action value=get_value [00:22:37]process_action get_value [00:22:37]cmd_get_value [00:22:37]process_action get_value done [00:22:37]requested_data is exist [00:22:37]produce_requested_data [00:22:37]requested_item fm.sale.total is exist - process it [00:22:37]SAM_PROTO_GetFMData [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 13 03 00 [00:22:37]Write to MH i2c: E2 08 00 D6 2C 80 13 03 00 00 00 00 00 81 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 FD 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 FD 00 D6 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 1C [00:22:37]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:22:37]wFMCommunicate OK [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 17 00 00 [00:22:37]Write to MH i2c: E2 08 00 D7 2C 80 17 00 00 00 00 00 00 83 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]OFD Sender: No OFD packet to send [00:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 FD 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 FD 00 D7 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [00:22:37]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:37]wFMCommunicate OK [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 17 00 00 [00:22:37]Write to MH i2c: E2 08 00 D8 2C 80 17 00 00 00 00 00 00 84 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:38]Read from MH i2c: E2 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 FD 00 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 FD 00 D8 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 28 [00:22: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 [00:22:38]wFMCommunicate OK [00:22:38]wFMCommunicate request_size=4 [00:22:38]MH_SAM_APDU [00:22:38]CAPDU: 80 17 00 00 [00:22:38]Write to MH i2c: E2 08 00 D9 2C 80 17 00 00 00 00 00 00 85 [00:22:38]Write i2c OK [00:22:38]MH_I2C_Read... [00:22:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:38]Read from MH i2c: E2 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 FD 00 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 FD 00 D9 2C 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 FF [00:22:38]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:22:38]wFMCommunicate OK [00:22:38]wFMCommunicate request_size=4 [00:22:38]MH_SAM_APDU [00:22:38]CAPDU: 80 17 00 00 [00:22:38]Write to MH i2c: E2 08 00 DA 2C 80 17 00 00 00 00 00 00 86 [00:22:38]Write i2c OK [00:22:38]MH_I2C_Read... [00:22:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:22:38]Read from MH i2c: E2 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 DC 00 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 DC 00 DA 2C 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 6A [00:22:38]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:22:39]wFMCommunicate OK [00:22:39]SAM_PROTO_GetFMData done [00:22:39]requested_item fm.sale_refund.total is exist - process it [00:22:39]requested_item fm.buy.total is exist - process it [00:22:39]requested_item shift.sale.total is exist - process it [00:22:39]SAM_PROTO_GetShiftData [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 13 02 00 [00:22:39]Write to MH i2c: E2 08 00 DB 2C 80 13 02 00 00 00 00 00 85 [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 DB 2C 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:22:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:39]wFMCommunicate OK [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 17 00 00 [00:22:39]Write to MH i2c: E2 08 00 DC 2C 80 17 00 00 00 00 00 00 88 [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 DC 2C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [00:22:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 DD 2C 80 17 00 00 00 00 00 00 89 [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 DD 2C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:22:40]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 DE 2C 80 17 00 00 00 00 00 00 8A [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 DE 2C 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 90 00 02 [00:22:40]RAPDU: 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 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 DF 2C 80 17 00 00 00 00 00 00 8B [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 CE 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 CE 00 DF 2C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [00:22:41]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:41]wFMCommunicate OK [00:22:41]SAM_PROTO_GetShiftData done [00:22:41]requested_item shift.sale.total_cash is exist - process it [00:22:41]requested_item shift.sale_refund.total is exist - process it [00:22:41]requested_item shift.sale_refund.total_cash is exist - process it [00:22:41]requested_item shift.buy.total is exist - process it [00:22:41]requested_item shift.buy.total_cash is exist - process it [00:22:41]produce_requested_data done [00:22:41]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:22:41]process_action_free get_value [00:22:41]json_value_free [00:22:41]json_value_free done [00:22:41]process_json_proto returns [00:22:41]Send response to host [00:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:22:41]free response buf [00:22:41]execute_script done [00:22:41]execute_script returns [00:22:41]free content buf [00:22:41]Sock 7.Close socket [00:22:41]Sock 7.Thread stoped [00:22:41]accept exits with 9 [00:22:41]New connection [00:22:41]New thread 3067043172 created [00:22:41]Thread 3066899812 joined [00:22:41]Waiting for new connection... [00:22:41] Sock 9.Parse request [00:22:41]Sock 9.Check first char [00:22:41]Sock 9.First char is OK [00:22:41]request: POST /json_proto HTTP/1.0 [00:22:41]Method: POST [00:22:41]URL: /json_proto [00:22:41]Method is POST - this is cgi request [00:22:41]url: /json_proto [00:22:41]query_string will be loaded in cgi processing [00:22:41]execute_cgi json_proto POST (null) [00:22:41]execute_cgi path=json_proto method=POST [00:22:41]POST find Content-Length [00:22:41]Host: 172.17.51.3:8080 [00:22:41]Content-Length: 331 [00:22:41]Content-Type: application/json [00:22:41] [00:22:41]POST finish read [00:22:41]Found Content-Length = 331 [00:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:41]execute_script... [00:22:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:41]POST & json_proto [00:22:41]process_json_proto [00:22:41]json parsed OK: [00:22:41]protocol is kg_v1.0 [00:22:41]action value=get_value [00:22:41]process_action get_value [00:22:41]cmd_get_value [00:22:41]process_action get_value done [00:22:41]requested_data is exist [00:22:41]produce_requested_data [00:22:41]requested_item fm.sale.total is exist - process it [00:22:41]SAM_PROTO_GetFMData [00:22:41]wFMCommunicate request_size=4 [00:22:41]MH_SAM_APDU [00:22:41]CAPDU: 80 13 03 00 [00:22:41]Write to MH i2c: E2 08 00 E0 2C 80 13 03 00 00 00 00 00 8B [00:22:41]Write i2c OK [00:22:41]MH_I2C_Read... [00:22:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:41]Read from MH i2c: E2 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 E0 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 26 [00:22:41]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:22:41]wFMCommunicate OK [00:22:41]wFMCommunicate request_size=4 [00:22:41]MH_SAM_APDU [00:22:41]CAPDU: 80 17 00 00 [00:22:41]Write to MH i2c: E2 08 00 E1 2C 80 17 00 00 00 00 00 00 8D [00:22:41]Write i2c OK [00:22:41]MH_I2C_Read... [00:22:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 E1 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5E [00:22:42]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:42]wFMCommunicate OK [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 17 00 00 [00:22:42]Write to MH i2c: E2 08 00 E2 2C 80 17 00 00 00 00 00 00 8E [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 E2 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:22:42]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:22:42]wFMCommunicate OK [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 17 00 00 [00:22:42]Write to MH i2c: E2 08 00 E3 2C 80 17 00 00 00 00 00 00 8F [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]OFD Sender: No OFD packet to send [00:22:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 E3 2C 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 09 [00:22:43]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:22:43]wFMCommunicate OK [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 17 00 00 [00:22:43]Write to MH i2c: E2 08 00 E4 2C 80 17 00 00 00 00 00 00 90 [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 DC 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 DC 00 E4 2C 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 74 [00:22:43]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:43]wFMCommunicate OK [00:22:43]SAM_PROTO_GetFMData done [00:22:43]requested_item fm.sale_refund.total is exist - process it [00:22:43]requested_item fm.buy.total is exist - process it [00:22:43]requested_item shift.sale.total is exist - process it [00:22:43]SAM_PROTO_GetShiftData [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 13 02 00 [00:22:43]Write to MH i2c: E2 08 00 E5 2C 80 13 02 00 00 00 00 00 8F [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 E5 2C 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:22:44]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 17 00 00 [00:22:44]Write to MH i2c: E2 08 00 E6 2C 80 17 00 00 00 00 00 00 92 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 E6 2C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:22:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 17 00 00 [00:22:44]Write to MH i2c: E2 08 00 E7 2C 80 17 00 00 00 00 00 00 93 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 E7 2C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:22:45]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:45]wFMCommunicate OK [00:22:45]wFMCommunicate request_size=4 [00:22:45]MH_SAM_APDU [00:22:45]CAPDU: 80 17 00 00 [00:22:45]Write to MH i2c: E2 08 00 E8 2C 80 17 00 00 00 00 00 00 94 [00:22:45]Write i2c OK [00:22:45]MH_I2C_Read... [00:22:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:45]Read from MH i2c: E2 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 E8 2C 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 90 00 0C [00:22:45]RAPDU: 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 90 00 [00:22:45]wFMCommunicate OK [00:22:45]wFMCommunicate request_size=4 [00:22:45]MH_SAM_APDU [00:22:45]CAPDU: 80 17 00 00 [00:22:45]Write to MH i2c: E2 08 00 E9 2C 80 17 00 00 00 00 00 00 95 [00:22:45]Write i2c OK [00:22:45]MH_I2C_Read... [00:22:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:22:45]Read from MH i2c: E2 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 CE 00 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 CE 00 E9 2C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:22:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftData done [00:22:46]requested_item shift.sale.total_cash is exist - process it [00:22:46]requested_item shift.sale_refund.total is exist - process it [00:22:46]requested_item shift.sale_refund.total_cash is exist - process it [00:22:46]requested_item shift.buy.total is exist - process it [00:22:46]requested_item shift.buy.total_cash is exist - process it [00:22:46]produce_requested_data done [00:22:46]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:22:46]process_action_free get_value [00:22:46]json_value_free [00:22:46]json_value_free done [00:22:46]process_json_proto returns [00:22:46]Send response to host [00:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:22:46]free response buf [00:22:46]execute_script done [00:22:46]execute_script returns [00:22:46]free content buf [00:22:46]Sock 9.Close socket [00:22:46]Sock 9.Thread stoped [00:22:46]accept exits with 7 [00:22:46]New connection [00:22:46]New thread 3066899812 created [00:22:46]Thread 3067043172 joined [00:22:46]Waiting for new connection... [00:22:46] Sock 7.Parse request [00:22:46]Sock 7.Check first char [00:22:46]Sock 7.First char is OK [00:22:46]request: POST /json_proto HTTP/1.0 [00:22:46]Method: POST [00:22:46]URL: /json_proto [00:22:46]Method is POST - this is cgi request [00:22:46]url: /json_proto [00:22:46]query_string will be loaded in cgi processing [00:22:46]execute_cgi json_proto POST (null) [00:22:46]execute_cgi path=json_proto method=POST [00:22:46]POST find Content-Length [00:22:46]Host: 172.17.51.3:8080 [00:22:46]Content-Length: 291 [00:22:46]Content-Type: application/json [00:22:46] [00:22:46]POST finish read [00:22:46]Found Content-Length = 291 [00:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]execute_script... [00:22:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]POST & json_proto [00:22:46]process_json_proto [00:22:46]json parsed OK: [00:22:46]protocol is kg_v1.0 [00:22:46]action value=close_shift [00:22:46]process_action close_shift [00:22:46]cmd_close_shift [00:22:46]MH_GetDate [00:22:46]Write to MH i2c: F0 00 00 EA 2C 05 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 EA 2C 00 D9 41 18 67 04 C1 95 66 67 [00:22:46]GetLastDocTimeStamp 1729642918 [00:22:46]current date 1729642969 [00:22:46]FM_GetShiftState [00:22:46]SAM_PROTO_GetShiftState [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 01 00 [00:22:46]Write to MH i2c: E2 08 00 EB 2C 80 13 01 00 00 00 00 00 94 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 EB 2C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 6E [00:22:46]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftState done [00:22:46]FM_GetShiftState done [00:22:46]KKMCreateCloseShiftDocument [00:22:46]Load OK [00:22:46]Malloc new data [00:22:46]MH_GetDate [00:22:46]Write to MH i2c: F0 00 00 EC 2C 07 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 EC 2C 00 D9 41 18 67 04 C1 95 66 69 [00:22:46]Malloc new data [00:22:46]Malloc new data [00:22:46]Malloc new data [00:22:46]Malloc new data [00:22:46]KKMCreateCloseShiftDocument OK [00:22:46]KKMSetCloseShiftData OK [00:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=82 [00:22:46]tlvbuf is 00EFFA70 [00:22:46]KKMLoadAndSignCloseShiftData [00:22:46]SAM_PROTO_ProcessDocument [00:22:46]wFMCommunicate request_size=9 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 15 01 00 04 05 00 52 00 [00:22:46]Write to MH i2c: E2 0C 00 ED 2C 80 15 01 00 04 00 05 00 52 00 00 00 F7 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [00:22:46]RAPDU: 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=23 [00:22:46]MH_SAM_APDU [00:22:46]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:22:46]Write to MH i2c: E2 1A 00 EE 2C 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 8F [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [00:22:46]RAPDU: 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=41 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 15 02 00 24 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 [00:22:46]Write to MH i2c: E2 2C 00 EF 2C 80 15 02 00 24 00 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 00 00 50 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 EF 2C 00 90 00 8F [00:22:46]RAPDU: 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=13 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 15 02 00 08 F4 03 04 00 D9 41 18 67 [00:22:46]Write to MH i2c: E2 10 00 F0 2C 80 15 02 00 08 00 F4 03 04 00 D9 41 18 67 00 00 40 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 F0 2C 00 90 00 90 [00:22:46]RAPDU: 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=25 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 [00:22:46]Write to MH i2c: E2 1C 00 F1 2C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 00 00 09 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 03 00 F1 2C 00 90 00 91 [00:22:46]RAPDU: 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 15 03 00 [00:22:46]Write to MH i2c: E2 08 00 F2 2C 80 15 03 00 00 00 00 00 9F [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:47]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:22:47]Read from MH i2c: E2 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 F2 2C 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:22:47]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:47]wFMCommunicate OK [00:22:47]SAM_PROTO_ProcessDocument answer len = 1268 [00:22:47]SAM_PROTO_ProcessDocument remain to read = 1020 [00:22:47]wFMCommunicate request_size=4 [00:22:47]MH_SAM_APDU [00:22:47]CAPDU: 80 17 00 00 [00:22:47]Write to MH i2c: E2 08 00 F3 2C 80 17 00 00 00 00 00 00 9F [00:22:47]Write i2c OK [00:22:47]MH_I2C_Read... [00:22:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:47]Read from MH i2c: E2 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 F3 2C 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [00:22:48]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 OFD Sender: No OFD packet to send [00:22:48]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:48]wFMCommunicate OK [00:22:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:22:48]SAM_PROTO_ProcessDocument remain to read = 770 [00:22:48]wFMCommunicate request_size=4 [00:22:48]MH_SAM_APDU [00:22:48]CAPDU: 80 17 00 00 [00:22:48]Write to MH i2c: E2 08 00 F4 2C 80 17 00 00 00 00 00 00 A0 [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:48]Read from MH i2c: E2 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 F4 2C 00 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 90 00 02 [00:22:48]RAPDU: 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 90 00 [00:22:48]wFMCommunicate OK [00:22:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:22:48]SAM_PROTO_ProcessDocument remain to read = 520 [00:22:48]wFMCommunicate request_size=4 [00:22:48]MH_SAM_APDU [00:22:48]CAPDU: 80 17 00 00 [00:22:48]Write to MH i2c: E2 08 00 F5 2C 80 17 00 00 00 00 00 00 A1 [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 F5 2C 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:22:49]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:49]wFMCommunicate OK [00:22:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:22:49]SAM_PROTO_ProcessDocument remain to read = 270 [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 17 00 00 [00:22:49]Write to MH i2c: E2 08 00 F6 2C 80 17 00 00 00 00 00 00 A2 [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 F6 2C 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 6C [00:22:49]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:22:49]wFMCommunicate OK [00:22:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:22:49]SAM_PROTO_ProcessDocument remain to read = 20 [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 17 00 00 [00:22:49]Write to MH i2c: E2 08 00 F7 2C 80 17 00 00 00 00 00 00 A3 [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:22:50]Read from MH i2c: E2 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 17 00 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 17 00 F7 2C 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 5C D2 05 1A 6E F9 90 00 98 [00:22:50]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 5C D2 05 1A 6E F9 90 00 [00:22:50]wFMCommunicate OK [00:22:50]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:22:50]SAM_PROTO_ProcessDocument done [00:22:50]1209 (1) - 1.0 - номер версии ФФД [00:22:50]1041 (16) - 0000000002094219 - номер ФМ [00:22:50]1040 (4) - 31055 - номер ФД [00:22:50]1038 (4) - 116 - номер смены [00:22:50]1118 (4) - 287 - количество кассовых чеков за смену [00:22:50]1111 (4) - 289 - общее количество ФД за смену [00:22:50]1194 (1197) - счетчики итогов смены [00:22:50] 1134 (4) - 287 - количество чеков со всеми признаками расчетов [00:22:50] 1129 (158) - счетчики операций «приход» [00:22:50] 1135 (4) - 287 - количество чеков по признаку расчетов [00:22:50] 1201 (4) - 273892.61 - общая итоговая сумма в чеках [00:22:50] 1136 (4) - 237223.00 - итоговая сумма в чеках наличными [00:22:50] 1138 (3) - 36669.61 - итоговая сумма в чеках безналичными [00:22:50] 1024 (123) - суммы налогов [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 0% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1006 (12) - суммы НДС [00:22:50] 1010 (1) - 12% - код ставки НДС [00:22:50] 1011 (3) - 29094.00 - сумма НДС по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (12) - суммы НСП [00:22:50] 1014 (1) - 1% - код ставки НСП [00:22:50] 1015 (3) - 2424.40 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 2% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 3% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 5% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1130 (141) - счетчики операций «возврат прихода» [00:22:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:50] 1024 (117) - суммы налогов [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 0% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 12% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 2% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 3% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 5% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1131 (141) - счетчики операций «расход» [00:22:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:50] 1024 (117) - суммы налогов [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 0% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 12% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 2% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 3% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 5% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1132 (141) - счетчики операций «возврат расхода» [00:22:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:50] 1024 (117) - суммы налогов [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 0% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1006 (9) - суммы НДС [00:22:50] 1010 (1) - 12% - код ставки НДС [00:22:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 2% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 3% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 5% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1133 (588) - - счетчики коррекции - не используются [00:22:50]1077 (6) - 102057098505977 - ФПД [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1209 (04B9) [00:22:50]Malloc new data [00:22:50]Processing tag 1041 (0411) [00:22:50]Processing tag 1040 (0410) [00:22:50]Malloc new data [00:22:50]Processing tag 1038 (040E) [00:22:50]Malloc new data [00:22:50]Processing tag 1118 (045E) [00:22:50]Malloc new data [00:22:50]Processing tag 1111 (0457) [00:22:50]Malloc new data [00:22:50]Processing tag 1194 (04AA) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1134 (046E) [00:22:50]Malloc new data [00:22:50]Processing tag 1129 (0469) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1130 (046A) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1131 (046B) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]SetTLVBufToDocument err=0 [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1132 (046C) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1135 (046F) [00:22:51]Malloc new data [00:22:51]Processing tag 1201 (04B1) [00:22:51]Malloc new data [00:22:51]Processing tag 1136 (0470) [00:22:51]Malloc new data [00:22:51]Processing tag 1138 (0472) [00:22:51]Malloc new data [00:22:51]Processing tag 1024 (0400) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1006 (03EE) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1010 (03F2) [00:22:51]Malloc new data [00:22:51]Processing tag 1011 (03F3) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1006 (03EE) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1010 (03F2) [00:22:51]Malloc new data [00:22:51]Processing tag 1011 (03F3) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1007 (03EF) [00:22:51]Load OK [00:22:51]SetTLVBufToDocument [00:22:51]Processing tag 1014 (03F6) [00:22:51]Malloc new data [00:22:51]Processing tag 1015 (03F7) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]SetTLVBufToDocument err=0 [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1133 (046D) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Processing tag 1077 (0435) [00:22:51]Malloc new data [00:22:51]SetTLVBufToDocument err=0 [00:22:51]Malloc new data [00:22:51]SAM_PROTO_GetFMData [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 13 03 00 [00:22:51]Write to MH i2c: E2 08 00 F8 2C 80 13 03 00 00 00 00 00 A3 [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 F8 2C 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 3E [00:22:51]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:22:51]wFMCommunicate OK [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 17 00 00 [00:22:51]Write to MH i2c: E2 08 00 F9 2C 80 17 00 00 00 00 00 00 A5 [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 F9 2C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [00:22:52]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22:52]wFMCommunicate OK [00:22:52]wFMCommunicate request_size=4 [00:22:52]MH_SAM_APDU [00:22:52]CAPDU: 80 17 00 00 [00:22:52]Write to MH i2c: E2 08 00 FA 2C 80 17 00 00 00 00 00 00 A6 [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 FA 2C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4A [00:22:52]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:22:53]wFMCommunicate OK [00:22:53]wFMCommunicate request_size=4 [00:22:53]MH_SAM_APDU [00:22:53]CAPDU: 80 17 00 00 [00:22:53]Write to MH i2c: E2 08 00 FB 2C 80 17 00 00 00 00 00 00 A7 [00:22:53]Write i2c OK [00:22:53]MH_I2C_Read... [00:22:53]OFD Sender: No OFD packet to send [00:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:53]Read from MH i2c: E2 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 FD 00 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 FD 00 FB 2C 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 21 [00:22:53]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:22:53]wFMCommunicate OK [00:22:53]wFMCommunicate request_size=4 [00:22:53]MH_SAM_APDU [00:22:53]CAPDU: 80 17 00 00 [00:22:53]Write to MH i2c: E2 08 00 FC 2C 80 17 00 00 00 00 00 00 A8 [00:22:53]Write i2c OK [00:22:53]MH_I2C_Read... [00:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:22:53]Read from MH i2c: E2 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 DC 00 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 DC 00 FC 2C 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 8C [00:22:54]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:22:54]wFMCommunicate OK [00:22:54]SAM_PROTO_GetFMData done [00:22:54]Malloc new data [00:22:54]Malloc new data [00:22:54]Malloc new data [00:22:54]Malloc new data [00:22:54]KKMLoadAndSignCloseShiftData err=0 [00:22:54]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таалайбек кызы А. 23.10.2024 00:22 Смена: 116 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Чеков за смену: 287 ФД за смену: 289 Всего чеков: 287 ИТОГИ ПРИХОД Чеков: 287 Общий итог: 273892.61 Итого наличными: 237223.00 Итого безнал.: 36669.61 НДС 0% : 0.00 НДС 12% : 29094.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2424.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 237223.00 НС Приход: 27962444.72 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 31055 ФМ: 0000000002094219 ФПД: 102057098505977 [00:22:54]StoreToDocumentArchive [00:22:54]shift 116 fd 31055 [00:22:54]save to /storage/0116/doc_00031055 [00:22:54]save last doc name /storage/0116/doc_00031055 to /storage/kkm_last_doc_name [00:22:54]save OK [00:22:54]Clear old archive folders... [00:22:54]Remove dir /storage/0010 [00:22:54]opendir ok [00:22:54]file . [00:22:54]file .. [00:22:54]file doc_1729642926 [00:22:54]remove file /storage/0010/doc_1729642926 [00:22:54]remove dir /storage/0010 [00:22:54]NVStorageSaveData kkm_registers [00:22:54]File name is /storage/kkm_registers [00:22:54]Write 24 bytes [00:22:54]NVStorageSaveData done [00:22:54]NVStorageSaveData kkm_registers [00:22:54]File name is /storage/kkm_registers [00:22:54]Write 24 bytes [00:22:54]NVStorageSaveData done [00:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [00:22:54]tlvbuf is 00EC57B0 [00:22:54]SAM_PROTO_ClearQueue [00:22:54]wFMCommunicate request_size=4 [00:22:54]MH_SAM_APDU [00:22:54]CAPDU: 80 09 00 00 [00:22:54]Write to MH i2c: E2 08 00 FD 2C 80 09 00 00 00 00 00 00 9B [00:22:54]Write i2c OK [00:22:54]MH_I2C_Read... [00:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:54]Read from MH i2c: E2 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: E2 03 00 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: E2 03 00 FD 2C 00 90 00 9D [00:22:54]RAPDU: 90 00 [00:22:54]wFMCommunicate OK [00:22:54]SAM_PROTO_ClearQueue done [00:22:54]KKMCreateOFDPacket [00:22:54]OFDProtocolAddRootSTLVToBuf [00:22:54]FM_MakeSignedData [00:22:54]FM_MakeSignedData [00:22:54]SAM_PROTO_SignData [00:22:54]wFMCommunicate request_size=4 [00:22:54]MH_SAM_APDU [00:22:54]CAPDU: 80 0D 01 02 [00:22:54]Write to MH i2c: E2 08 00 FE 2C 80 0D 01 02 00 00 00 00 A3 [00:22:54]Write i2c OK [00:22:54]MH_I2C_Read... [00:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:54]Read from MH i2c: E2 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: E2 03 00 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: E2 03 00 FE 2C 00 90 00 9E [00:22:54]RAPDU: 90 00 [00:22:54]wFMCommunicate OK [00:22:54]wFMCommunicate request_size=255 [00:22:54]MH_SAM_APDU [00:22:54]CAPDU: 80 0D 02 02 FA 05 00 71 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 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F4 03 04 00 D9 41 18 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 D8 04 6E 04 04 00 1F 01 00 00 69 04 A5 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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:22:54]Write to MH i2c: E2 02 01 FF 2C 80 0D 02 02 FA 00 05 00 71 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 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F4 03 04 00 D9 41 18 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 D8 04 6E 04 04 00 1F 01 00 00 69 04 A5 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 3B [00:22:54]Write i2c OK [00:22:54]MH_I2C_Read... [00:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:55]Read from MH i2c: E2 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 03 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 03 00 FF 2C 00 90 00 9F [00:22:55]RAPDU: 90 00 [00:22:55]wFMCommunicate OK [00:22:55]wFMCommunicate request_size=255 [00:22:55]MH_SAM_APDU [00:22:55]CAPDU: 80 0D 02 02 FA 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 08 B3 03 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 [00:22:55]Write to MH i2c: E2 02 01 00 2D 80 0D 02 02 FA 00 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 08 B3 03 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 00 00 D2 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:55]Read from MH i2c: E2 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 03 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 03 00 00 2D 00 90 00 A1 [00:22:55]RAPDU: 90 00 [00:22:55]wFMCommunicate OK [00:22:55]wFMCommunicate request_size=255 [00:22:55]MH_SAM_APDU [00:22:55]CAPDU: 80 0D 02 02 FA 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 [00:22:56]Write to MH i2c: E2 02 01 01 2D 80 0D 02 02 FA 00 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 00 00 6F [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:56]Read from MH i2c: E2 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 01 2D 00 90 00 A2 [00:22:56]RAPDU: 90 00 [00:22:56]wFMCommunicate OK [00:22:56]wFMCommunicate request_size=255 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 0D 02 02 FA 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 [00:22:56]Write to MH i2c: E2 02 01 02 2D 80 0D 02 02 FA 00 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 00 00 76 [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 02 2D 00 90 00 A3 [00:22:57]RAPDU: 90 00 [00:22:57]wFMCommunicate OK [00:22:57]wFMCommunicate request_size=255 [00:22:57]MH_SAM_APDU [00:22:57]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [00:22:57]Write to MH i2c: E2 02 01 03 2D 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 3E [00:22:57]Write i2c OK [00:22:57]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [00:22:57]RAPDU: 90 00 [00:22:57]wFMCommunicate OK [00:22:57]wFMCommunicate request_size=152 [00:22:57]MH_SAM_APDU [00:22:57]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 5C D2 05 1A 6E F9 [00:22:58]Write to MH i2c: E2 9B 00 04 2D 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 5C D2 05 1A 6E F9 00 00 5F [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]OFD Sender: No OFD packet to send [00:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:58]Read from MH i2c: E2 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 03 00 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [00:22:58]RAPDU: 90 00 [00:22:58]wFMCommunicate OK [00:22:58]wFMCommunicate request_size=4 [00:22:58]MH_SAM_APDU [00:22:58]CAPDU: 80 0D 03 02 [00:22:58]Write to MH i2c: E2 08 00 05 2D 80 0D 03 02 00 00 00 00 AD [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:58]Read from MH i2c: E2 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 0B 00 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 0B 00 05 2D 00 2E 16 C6 AE D9 DB FB 1D 90 00 32 [00:22:58]RAPDU: 2E 16 C6 AE D9 DB FB 1D 90 00 [00:22:58]wFMCommunicate OK [00:22:58]SAM_PROTO_SignData done [00:22:58]FM_MakeSignedData done [00:22:58]CreateOFDProtocolMessage [00:22:58]wFMCommunicate request_size=4 [00:22:58]MH_SAM_APDU [00:22:58]CAPDU: 80 11 00 00 [00:22:58]Write to MH i2c: E2 08 00 06 2D 80 11 00 00 00 00 00 00 AD [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 [00:22:58]MH_I2C_Read... [00:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:58]Read from MH i2c: E2 17 00 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: E2 17 00 06 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [00:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:22:58]wFMCommunicate OK [00:22:58]CreateOFDProtocolMessage done [00:22:58]OFDSenderStorePacket 31055 [00:22:58]StoreOFDPacket docnum=31055 [00:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 85 05 00 00 20 B6 7D 05 EE 23 5A 05 01 00 05 00 71 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 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F4 03 04 00 D9 41 18 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 D8 04 6E 04 04 00 1F 01 00 00 69 04 A5 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 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 4F 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 5C D2 05 1A 6E F9 2E 16 C6 AE D9 DB FB 1D [00:22:58]CheckFolder [00:22:58]dirname=/storage/ofd_packets [00:22:58]CheckFolder done [00:22:58]ProducePacketName [00:22:58]name=ofd_packets/00031055 [00:22:58]NVStorageSaveData ofd_packets/00031055 [00:22:58]File name is /storage/ofd_packets/00031055 [00:22:58]Write 1443 bytes [00:22:58]NVStorageSaveData done [00:22:58]OFDSenderStorePacket done [00:22:58]KKMCreateOFDPacket done [00:22:58]NVStorageSaveData kkm_last_timestamp [00:22:58]File name is /storage/kkm_last_timestamp [00:22:58]Write 4 bytes [00:22:58]NVStorageSaveData done [00:22:58]ExternCall_PrintAddStr [00:22:58]wPrintStart [00:22:58]Write to MH i2c: 01 00 00 07 2D 34 [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: 01 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: 01 07 00 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: 01 07 00 07 2D 00 00 00 00 00 FF 0F 49 [00:22:58]RasterBufferAndPrint [00:22:58]line Отчет о закрытии смены [00:22:58]line ФФД: 1.0 [00:22:58]line ИНН: 02508201610067 [00:22:58]line Кассир: Таалайбек кызы А. [00:22:58]line 23.10.2024 00:22 [00:22:58]line Смена: 116 [00:22:58]line РНМ: 0000000000186857 [00:22:58]line ЗНМ: 0300000137 [00:22:58]line СНО: Общий режим [00:22:58]line Чеков за смену: 287 [00:22:58]line ФД за смену: 289 [00:22:58]line Всего чеков: 287 [00:22:58]line ИТОГИ ПРИХОД [00:22:58]line Чеков: 287 [00:22:58]line Общий итог: 273892.61 [00:22:58]line Итого наличными: 237223.00 [00:22:58]line Итого безнал.: 36669.61 [00:22:58]line НДС 0% : 0.00 [00:22:58]line НДС 12% : 29094.00 [00:22:58]line НСП 0% : 0.00 [00:22:58]line НСП 1,50% : 0.00 [00:22:58]line НСП 0,50% : 0.00 [00:22:58]line НСП 5% : 0.00 [00:22:58]line НСП 3% : 0.00 [00:22:58]line НСП 2% : 0.00 [00:22:58]line НСП 1% : 2424.40 [00:22:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:22:58]line Чеков: 0 [00:22:58]line Общий итог: 0.00 [00:22:58]line Итого наличными: 0.00 [00:22:58]line Итого безнал.: 0.00 [00:22:58]line НДС 0% : 0.00 [00:22:58]line НДС 12% : 0.00 [00:22:58]line НСП 0% : 0.00 [00:22:58]line НСП 1,50% : 0.00 [00:22:58]line НСП 0,50% : 0.00 [00:22:58]line НСП 5% : 0.00 [00:22:58]line НСП 3% : 0.00 [00:22:58]line НСП 2% : 0.00 [00:22:58]line НСП 1% : 0.00 [00:22:59]line ИТОГИ РАСХОД [00:22:59]line Чеков: 0 [00:22:59]line Общий итог: 0.00 [00:22:59]line Итого наличными: 0.00 [00:22:59]line Итого безнал.: 0.00 [00:22:59]line НДС 0% : 0.00 [00:22:59]line НДС 12% : 0.00 [00:22:59]line НСП 0% : 0.00 [00:22:59]line НСП 1,50% : 0.00 [00:22:59]line НСП 0,50% : 0.00 [00:22:59]line НСП 5% : 0.00 [00:22:59]line НСП 3% : 0.00 [00:22:59]line НСП 2% : 0.00 [00:22:59]line НСП 1% : 0.00 [00:22:59]line ИТОГИ ВОЗВРАТ РАСХОДА [00:22:59]line Чеков: 0 [00:22:59]line Общий итог: 0.00 [00:22:59]line Итого наличными: 0.00 [00:22:59]line Итого безнал.: 0.00 [00:22:59]line НДС 0% : 0.00 [00:22:59]line НДС 12% : 0.00 [00:22:59]line НСП 0% : 0.00 [00:22:59]line НСП 1,50% : 0.00 [00:22:59]OFD Sender: Processing packet 31055 [packets to send 11, broken 10] [00:22:59]line НСП 0,50% : 0.00 [00:22:59]ProducePacketName [00:22:59]line НСП 5% : 0.00 [00:22:59]name=ofd_packets/00031055 [00:22:59]line НСП 3% : 0.00 [00:22:59]OFD Sender: To server: pG, [00:22:59]line НСП 2% : 0.00 [00:22:59]CommunicateWithHost lk.salyk.kg:30040 [00:22:59]line НСП 1% : 0.00 [00:22:59]ConnectInit lk.salyk.kg [00:22:59]line Сумма внесений: 0.00 [00:22:59]line Сумма выплат: 0.00 [00:22:59]line Нал. в кассе: 237223.00 [00:22:59]line НС Приход: 27962444.72 [00:22:59]line НС Возвр.Прихода: 54066.00 [00:22:59]line НС Расход: 0.00 [00:22:59]line НС Возвр.Расхода: 0.00 [00:22:59]line ФД: 31055 [00:22:59]line ФМ: 0000000002094219 [00:22:59]line ФПД: 102057098505977 [00:22:59]written 0, free lines is 4095 [00:22:59]Connected sock=10 [00:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 85 05 00 00 20 B6 7D 05 EE 23 5A 05 01 00 05 00 71 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 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F4 03 04 00 D9 41 18 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 AA 04 D8 04 6E 04 04 00 1F 01 00 00 69 04 A5 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 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 Write to MH i2c: 03 01 01 00 00 00 05 57 F7 2D 03 84 00 [00:22:59]00 EF Write i2c OK [00:22:59]03 MH_I2C_Read... [00:22:59]09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 Read from MH i2c: 04 01 00 [00:22:59]MH_I2C_Read... [00:22:59]00 Read from MH i2c: 00 01 00 07 00 00 B1 [00:22:59]04 MH_I2C_Read... [00:22:59]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 Read from MH i2c: 03 01 01 07 00 00 00 57 F3 2D 03 00 00 00 00 00 EE 00 03 00 09 0A 00 0B F2 A0 03 [00:23:00]01 RasterBufferAndPrint [00:23:00]00 line [00:23:00]01 line [00:23:00]F3 line [00:23:00]03 line [00:23:00]00 line [00:23:00]00 EF 03 09 00 F6 03 01 00 written 0, free lines is 2992 [00:23:00]00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 MH_Cut [00:23:00]00 Write to MH i2c: 00 D1 EF 01 03 00 09 5E 00 2D F6 01 03 5D 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 [00:23:00]00 03 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:23:00]03 MH_I2C_Read... [00:23:00]01 Read from MH i2c: 00 D1 04 [00:23:00]F7 MH_I2C_Read... [00:23:00]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 Read from MH i2c: 03 D1 00 01 00 00 EF [00:23:00]03 MH_I2C_Read... [00:23:00]09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D Read from MH i2c: 00 D1 6F 01 04 00 04 5E 2D 00 00 00 5C 00 [00:23:00]00 Write to MH i2c: 00 01 B1 00 04 00 5F 2D 8C [00:23:00]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:23:00]01 MH_I2C_Read... [00:23:00]00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 5C D2 05 1A 6E F9 2E 16 C6 AE D9 DB FB 1D [00:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5B 98 47 00 BB E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 79 00 00 F4 03 04 00 61 EC 17 67 B6 04 01 00 00 D0 D8 C3 47 76 A2 EF 6A [00:23:00]CommunicateWithHost err = 0 [00:23:00]CheckOFDResponse [00:23:00]1017 (14) - 77093643461234 [00:23:00]1041 (16) - 0000000002094219 [00:23:00]1040 (4) - 31055 [00:23:00]1012 (4) - 22.10.2024 18:18 [00:23:00]1206 (1) - 0 [00:23:00]OFD Sender: Remove packet 31055 [00:23:00]ProducePacketName [00:23:00]name=ofd_packets/00031055 [00:23:00]NVStorageDeleteData [00:23:00]*** Cut start [00:23:00]*** Partial cut [00:23:00]*** CUTSNS_PIN = 1 [00:23:00]*** CUTSNS_PIN = 0 [00:23:01]*** Brake cut motor [00:23:01]OFD Sender: No OFD packet to send [00:23:01]Read from MH i2c: 01 [00:23:01]MH_I2C_Read... [00:23:01]*** Stop cut motor [00:23:01]*** Cut end [00:23:01]Read from MH i2c: 01 07 00 [00:23:01]MH_I2C_Read... [00:23:01]Read from MH i2c: 01 07 00 5F 2D 00 00 00 00 00 FF 0F A1 [00:23:01]process_action close_shift done [00:23:01]requested_data is exist [00:23:01]produce_requested_data [00:23:01]requested_item fd.num is exist - process it [00:23:01]SAM_PROTO_GetFieldsCounters [00:23:01]wFMCommunicate request_size=4 [00:23:01]MH_SAM_APDU [00:23:01]CAPDU: 80 13 00 00 [00:23:01]Write to MH i2c: E2 08 00 60 2D 80 13 00 00 00 00 00 00 09 [00:23:01]Write i2c OK [00:23:01]MH_I2C_Read... [00:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:01]Read from MH i2c: E2 [00:23:01]MH_I2C_Read... [00:23:01]Read from MH i2c: E2 62 00 [00:23:01]MH_I2C_Read... [00:23:01]Read from MH i2c: E2 62 00 60 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [00:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:01]wFMCommunicate OK [00:23:01]SAM_PROTO_GetFieldsCounters done [00:23:01]requested_item shift.num is exist - process it [00:23:01]requested_item shift.opened is exist - process it [00:23:01]req_shift_opened [00:23:01]FM_GetShiftState [00:23:01]SAM_PROTO_GetShiftState [00:23:01]wFMCommunicate request_size=4 [00:23:01]MH_SAM_APDU [00:23:01]CAPDU: 80 13 01 00 [00:23:01]Write to MH i2c: E2 08 00 61 2D 80 13 01 00 00 00 00 00 0B [00:23:01]Write i2c OK [00:23:01]MH_I2C_Read... [00:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:01]Read from MH i2c: E2 [00:23:01]MH_I2C_Read... [00:23:01]Read from MH i2c: E2 0E 00 [00:23:01]MH_I2C_Read... [00:23:01]Read from MH i2c: E2 0E 00 61 2D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 16 [00:23:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:01]wFMCommunicate OK [00:23:01]SAM_PROTO_GetShiftState done [00:23:01]FM_GetShiftState done [00:23:01]req_shift_opened done [00:23:01]requested_item shift.open_date is exist - process it [00:23:01]req_shift_open_date [00:23:01]FM_GetShiftState [00:23:01]SAM_PROTO_GetShiftState [00:23:01]wFMCommunicate request_size=4 [00:23:01]MH_SAM_APDU [00:23:01]CAPDU: 80 13 01 00 [00:23:01]Write to MH i2c: E2 08 00 62 2D 80 13 01 00 00 00 00 00 0C [00:23:01]Write i2c OK [00:23:01]MH_I2C_Read... [00:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:02]Read from MH i2c: E2 [00:23:02]MH_I2C_Read... [00:23:02]Read from MH i2c: E2 0E 00 [00:23:02]MH_I2C_Read... [00:23:02]Read from MH i2c: E2 0E 00 62 2D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 17 [00:23:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:02]wFMCommunicate OK [00:23:02]SAM_PROTO_GetShiftState done [00:23:02]FM_GetShiftState done [00:23:02]req_shift_open_date done [00:23:02]produce_requested_data done [00:23:02]produce_requested_data return {"fd.num":31055,"shift.num":116,"shift.opened":0,"shift.open_date":0} [00:23:02]process_action_free close_shift [00:23:02]json_value_free [00:23:02]json_value_free done [00:23:02]process_json_proto returns [00:23:02]Send response to host [00:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31055,"shift.num":116,"shift.opened":0,"shift.open_date":0}}} [00:23:02]free response buf [00:23:02]execute_script done [00:23:02]execute_script returns [00:23:02]free content buf [00:23:02]Sock 7.Close socket [00:23:02]Sock 7.Thread stoped [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:48]accept exits with 9 [00:35:48]New connection [00:35:48]New thread 3067043172 created [00:35:48]Thread 3066899812 joined [00:35:48]Waiting for new connection... [00:35:48] Sock 9.Parse request [00:35:48]Sock 9.Check first char [00:35:48]Sock 9.First char is OK [00:35:48]request: POST /json_proto HTTP/1.0 [00:35:48]Method: POST [00:35:48]URL: /json_proto [00:35:48]Method is POST - this is cgi request [00:35:48]url: /json_proto [00:35:48]query_string will be loaded in cgi processing [00:35:48]execute_cgi json_proto POST (null) [00:35:48]execute_cgi path=json_proto method=POST [00:35:48]POST find Content-Length [00:35:48]Host: 172.17.51.3:8080 [00:35:48]Content-Length: 215 [00:35:48]Content-Type: application/json [00:35:48] [00:35:48]POST finish read [00:35:48]Found Content-Length = 215 [00:35:48]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:35:48]execute_script... [00:35:48]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:35:48]POST & json_proto [00:35:48]process_json_proto [00:35:48]json parsed OK: [00:35:48]protocol is kg_v1.0 [00:35:48]action value=get_value [00:35:48]process_action get_value [00:35:48]cmd_get_value [00:35:48]process_action get_value done [00:35:48]requested_data is exist [00:35:48]produce_requested_data [00:35:48]requested_item kkm.sn is exist - process it [00:35:48]requested_item kkm.ver is exist - process it [00:35:48]requested_item fm.sn is exist - process it [00:35:48]wFMCommunicate request_size=4 [00:35:48]MH_SAM_APDU [00:35:48]CAPDU: 80 11 00 00 [00:35:48]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [00:35:48]Write i2c OK [00:35:48]MH_I2C_Read... [00:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:48]Read from MH i2c: E2 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 17 00 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [00:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:35:48]wFMCommunicate OK [00:35:48]requested_item fd.num is exist - process it [00:35:48]SAM_PROTO_GetFieldsCounters [00:35:48]wFMCommunicate request_size=4 [00:35:48]MH_SAM_APDU [00:35:48]CAPDU: 80 13 00 00 [00:35:48]Write to MH i2c: E2 08 00 64 2D 80 13 00 00 00 00 00 00 0D [00:35:48]Write i2c OK [00:35:48]MH_I2C_Read... [00:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:48]Read from MH i2c: E2 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 62 00 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 62 00 64 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [00:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 79 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:48]wFMCommunicate OK [00:35:48]SAM_PROTO_GetFieldsCounters done [00:35:48]requested_item shift.num is exist - process it [00:35:48]requested_item shift.opened is exist - process it [00:35:48]req_shift_opened [00:35:48]FM_GetShiftState [00:35:48]SAM_PROTO_GetShiftState [00:35:48]wFMCommunicate request_size=4 [00:35:48]MH_SAM_APDU [00:35:48]CAPDU: 80 13 01 00 [00:35:48]Write to MH i2c: E2 08 00 65 2D 80 13 01 00 00 00 00 00 0F [00:35:48]Write i2c OK [00:35:48]MH_I2C_Read... [00:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:49]Read from MH i2c: E2 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 0E 00 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 0E 00 65 2D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1A [00:35:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:49]wFMCommunicate OK [00:35:49]SAM_PROTO_GetShiftState done [00:35:49]FM_GetShiftState done [00:35:49]req_shift_opened done [00:35:49]requested_item shift.open_date is exist - process it [00:35:49]req_shift_open_date [00:35:49]FM_GetShiftState [00:35:49]SAM_PROTO_GetShiftState [00:35:49]wFMCommunicate request_size=4 [00:35:49]MH_SAM_APDU [00:35:49]CAPDU: 80 13 01 00 [00:35:49]Write to MH i2c: E2 08 00 66 2D 80 13 01 00 00 00 00 00 10 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:49]Read from MH i2c: E2 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 0E 00 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 0E 00 66 2D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1B [00:35:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:49]wFMCommunicate OK [00:35:49]SAM_PROTO_GetShiftState done [00:35:49]FM_GetShiftState done [00:35:49]req_shift_open_date done [00:35:49]produce_requested_data done [00:35:49]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31055,"shift.num":116,"shift.opened":0,"shift.open_date":0} [00:35:49]process_action_free get_value [00:35:49]json_value_free [00:35:49]json_value_free done [00:35:49]process_json_proto returns [00:35:49]Send response to host [00:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31055,"shift.num":116,"shift.opened":0,"shift.open_date":0}}} [00:35:49]free response buf [00:35:49]execute_script done [00:35:49]execute_script returns [00:35:49]free content buf [00:35:49]Sock 9.Close socket [00:35:49]Sock 9.Thread stoped [00:35:49]accept exits with 7 [00:35:49]New connection [00:35:49]New thread 3066899812 created [00:35:49]Thread 3067043172 joined [00:35:49]Waiting for new connection... [00:35:49] Sock 7.Parse request [00:35:49]Sock 7.Check first char [00:35:49]Sock 7.First char is OK [00:35:49]request: POST /json_proto HTTP/1.0 [00:35:49]Method: POST [00:35:49]URL: /json_proto [00:35:49]Method is POST - this is cgi request [00:35:49]url: /json_proto [00:35:49]query_string will be loaded in cgi processing [00:35:49]execute_cgi json_proto POST (null) [00:35:49]execute_cgi path=json_proto method=POST [00:35:49]POST find Content-Length [00:35:49]Host: 172.17.51.3:8080 [00:35:49]Content-Length: 331 [00:35:49]Content-Type: application/json [00:35:49] [00:35:49]POST finish read [00:35:49]Found Content-Length = 331 [00:35:49]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:35:49]execute_script... [00:35:49]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:35:49]POST & json_proto [00:35:49]process_json_proto [00:35:49]json parsed OK: [00:35:49]protocol is kg_v1.0 [00:35:49]action value=get_value [00:35:49]process_action get_value [00:35:49]cmd_get_value [00:35:49]process_action get_value done [00:35:49]requested_data is exist [00:35:49]produce_requested_data [00:35:49]requested_item fm.sale.total is exist - process it [00:35:49]SAM_PROTO_GetFMData [00:35:49]wFMCommunicate request_size=4 [00:35:49]MH_SAM_APDU [00:35:49]CAPDU: 80 13 03 00 [00:35:49]Write to MH i2c: E2 08 00 67 2D 80 13 03 00 00 00 00 00 13 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:49]Read from MH i2c: E2 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 FD 00 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 FD 00 67 2D 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 AE [00:35:49]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:35:49]wFMCommunicate OK [00:35:49]wFMCommunicate request_size=4 [00:35:49]MH_SAM_APDU [00:35:49]CAPDU: 80 17 00 00 [00:35:49]Write to MH i2c: E2 08 00 68 2D 80 17 00 00 00 00 00 00 15 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 68 2D 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E6 [00:35:50]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:50]wFMCommunicate OK [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 17 00 00 [00:35:50]Write to MH i2c: E2 08 00 69 2D 80 17 00 00 00 00 00 00 16 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 69 2D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BA [00:35:50]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:35:50]wFMCommunicate OK [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 17 00 00 [00:35:50]Write to MH i2c: E2 08 00 6A 2D 80 17 00 00 00 00 00 00 17 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 FD 00 6A 2D 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 91 [00:35:50]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:35:50]wFMCommunicate OK [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 17 00 00 [00:35:50]Write to MH i2c: E2 08 00 6B 2D 80 17 00 00 00 00 00 00 18 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 DC 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 DC 00 6B 2D 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 FC [00:35:50]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:35:50]wFMCommunicate OK [00:35:50]SAM_PROTO_GetFMData done [00:35:50]requested_item fm.sale_refund.total is exist - process it [00:35:50]requested_item fm.buy.total is exist - process it [00:35:50]requested_item shift.sale.total is exist - process it [00:35:50]SAM_PROTO_GetShiftData [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 13 02 00 [00:35:50]Write to MH i2c: E2 08 00 6C 2D 80 13 02 00 00 00 00 00 17 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:51]Read from MH i2c: E2 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 6C 2D 00 B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [00:35:51]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1F 01 00 00 69 04 9E 00 6F 04 04 00 1F 01 00 00 B1 04 04 00 4D ED A1 01 70 04 04 00 3C F9 69 01 72 04 03 00 11 F4 37 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 D8 64 2C 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 08 B3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:51]wFMCommunicate OK [00:35:51]wFMCommunicate request_size=4 [00:35:51]MH_SAM_APDU [00:35:51]CAPDU: 80 17 00 00 [00:35:51]Write to MH i2c: E2 08 00 6D 2D 80 17 00 00 00 00 00 00 1A [00:35:51]Write i2c OK [00:35:51]MH_I2C_Read... [00:35:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:51]Read from MH i2c: E2 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 6D 2D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:35:51]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:51]wFMCommunicate OK [00:35:51]wFMCommunicate request_size=4 [00:35:51]MH_SAM_APDU [00:35:51]CAPDU: 80 17 00 00 [00:35:51]Write to MH i2c: E2 08 00 6E 2D 80 17 00 00 00 00 00 00 1B [00:35:51]Write i2c OK [00:35:51]MH_I2C_Read... [00:35:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:51]Read from MH i2c: E2 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 [00:35:51]MH_I2C_Read... [00:35:51]Read from MH i2c: E2 FD 00 6E 2D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:35:51]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:51]wFMCommunicate OK [00:35:51]wFMCommunicate request_size=4 [00:35:51]MH_SAM_APDU [00:35:51]CAPDU: 80 17 00 00 [00:35:51]Write to MH i2c: E2 08 00 6F 2D 80 17 00 00 00 00 00 00 1C [00:35:51]Write i2c OK [00:35:51]MH_I2C_Read... [00:35:52]OFD Sender: No OFD packet to send [00:35:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 FD 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 FD 00 6F 2D 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 90 00 94 [00:35:52]RAPDU: 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 90 00 [00:35:52]wFMCommunicate OK [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 17 00 00 [00:35:52]Write to MH i2c: E2 08 00 70 2D 80 17 00 00 00 00 00 00 1D [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 CE 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 CE 00 70 2D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:35:52]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:52]wFMCommunicate OK [00:35:52]SAM_PROTO_GetShiftData done [00:35:52]requested_item shift.sale.total_cash is exist - process it [00:35:52]requested_item shift.sale_refund.total is exist - process it [00:35:52]requested_item shift.sale_refund.total_cash is exist - process it [00:35:52]requested_item shift.buy.total is exist - process it [00:35:52]requested_item shift.buy.total_cash is exist - process it [00:35:52]produce_requested_data done [00:35:52]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:35:52]process_action_free get_value [00:35:52]json_value_free [00:35:52]json_value_free done [00:35:52]process_json_proto returns [00:35:52]Send response to host [00:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":273892.61,"shift.sale.total_cash":237223.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:35:52]free response buf [00:35:52]execute_script done [00:35:52]execute_script returns [00:35:52]free content buf [00:35:52]Sock 7.Close socket [00:35:52]Sock 7.Thread stoped [00:35:52]accept exits with 9 [00:35:52]New connection [00:35:52]New thread 3067043172 created [00:35:52]Thread 3066899812 joined [00:35:52]Waiting for new connection... [00:35:52] Sock 9.Parse request [00:35:52]Sock 9.Check first char [00:35:52]Sock 9.First char is OK [00:35:52]request: POST /json_proto HTTP/1.0 [00:35:52]Method: POST [00:35:52]URL: /json_proto [00:35:52]Method is POST - this is cgi request [00:35:52]url: /json_proto [00:35:52]query_string will be loaded in cgi processing [00:35:52]execute_cgi json_proto POST (null) [00:35:52]execute_cgi path=json_proto method=POST [00:35:52]POST find Content-Length [00:35:52]Host: 172.17.51.3:8080 [00:35:52]Content-Length: 271 [00:35:52]Content-Type: application/json [00:35:52] [00:35:52]POST finish read [00:35:52]Found Content-Length = 271 [00:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:52]execute_script... [00:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:52]POST & json_proto [00:35:52]process_json_proto [00:35:52]json parsed OK: [00:35:52]protocol is kg_v1.0 [00:35:52]action value=open_shift [00:35:52]process_action open_shift [00:35:52]cmd_open_shift [00:35:52]MH_GetDate [00:35:52]Write to MH i2c: F0 00 00 71 2D 8D [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 09 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 09 00 71 2D 00 EB 44 18 67 04 C1 95 66 04 [00:35:52]GetLastDocTimeStamp 1729642969 [00:35:52]current date 1729643755 [00:35:52]FM_GetShiftState [00:35:52]SAM_PROTO_GetShiftState [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 13 01 00 [00:35:52]Write to MH i2c: E2 08 00 72 2D 80 13 01 00 00 00 00 00 1C [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 0E 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 0E 00 72 2D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 27 [00:35:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:52]wFMCommunicate OK [00:35:52]SAM_PROTO_GetShiftState done [00:35:52]FM_GetShiftState done [00:35:52]KKMCreateOpenShiftDocument [00:35:52]Load OK [00:35:52]Malloc new data [00:35:52]MH_GetDate [00:35:52]Write to MH i2c: F0 00 00 73 2D 8F [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 09 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: F0 09 00 73 2D 00 EB 44 18 67 04 C1 95 66 06 [00:35:52]Malloc new data [00:35:52]KKMCreateOpenShiftDocument OK [00:35:52]KKMSetOpenShiftData OK [00:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=206 [00:35:52]tlvbuf is 00E8B5F0 [00:35:52]KKMLoadAndSignOpenShiftData [00:35:52]SAM_PROTO_ProcessDocument [00:35:52]wFMCommunicate request_size=9 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 15 01 00 04 02 00 CE 00 [00:35:52]Write to MH i2c: E2 0C 00 74 2D 80 15 01 00 04 00 02 00 CE 00 00 00 F8 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 74 2D 00 90 00 15 [00:35:52]RAPDU: 90 00 [00:35:52]wFMCommunicate OK [00:35:52]wFMCommunicate request_size=23 [00:35:52]MH_SAM_APDU [00:35:52]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:35:52]Write to MH i2c: E2 1A 00 75 2D 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 17 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 75 2D 00 90 00 16 [00:35:52]RAPDU: 90 00 [00:35:52]wFMCommunicate OK [00:35:52]wFMCommunicate request_size=34 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 [00:35:52]Write to MH i2c: E2 25 00 76 2D 80 15 02 00 1D 00 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 00 00 32 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [00:35:52]RAPDU: 90 00 [00:35:52]wFMCommunicate OK [00:35:52]wFMCommunicate request_size=91 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 [00:35:52]Write to MH i2c: E2 5E 00 77 2D 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 00 00 04 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [00:35:53]RAPDU: 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=50 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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:35:53]Write to MH i2c: E2 35 00 78 2D 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 A3 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [00:35:53]RAPDU: 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=13 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 15 02 00 08 F4 03 04 00 EB 44 18 67 [00:35:53]Write to MH i2c: E2 10 00 79 2D 80 15 02 00 08 00 F4 03 04 00 EB 44 18 67 00 00 DF [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [00:35:53]RAPDU: 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=25 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 [00:35:53]Write to MH i2c: E2 1C 00 7A 2D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 00 00 93 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [00:35:53]RAPDU: 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 15 03 00 [00:35:53]Write to MH i2c: E2 08 00 7B 2D 80 15 03 00 00 00 00 00 29 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 38 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 38 00 7B 2D 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 79 00 00 0E 04 04 00 75 00 00 00 35 04 06 00 E5 81 10 EB 32 FE 90 00 BF [00:35:53]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 79 00 00 0E 04 04 00 75 00 00 00 35 04 06 00 E5 81 10 EB 32 FE 90 00 [00:35:53]wFMCommunicate OK [00:35:53]SAM_PROTO_ProcessDocument answer len = 51 [00:35:53]SAM_PROTO_ProcessDocument done [00:35:53]SetTLVBufToDocument [00:35:53]Processing tag 1209 (04B9) [00:35:53]Malloc new data [00:35:53]Processing tag 1041 (0411) [00:35:53]Processing tag 1040 (0410) [00:35:53]Malloc new data [00:35:53]Processing tag 1038 (040E) [00:35:53]Malloc new data [00:35:53]Processing tag 1077 (0435) [00:35:53]Malloc new data [00:35:53]SetTLVBufToDocument err=0 [00:35:53]KKMLoadAndSignOpenShiftData store KKM data [00:35:53]KKMLoadAndSignOpenShiftData err=0 [00:35:53]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таирбекова Г. Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 Место: АЗС № 78 "Партнер Нефть" 23.10.2024 00:35 Смена: 117 РНМ: 0000000000186857 ЗНМ: 0300000137 ФД: 31056 ФМ: 0000000002094219 ФПД: 252342497391358 [00:35:53]StoreToDocumentArchive [00:35:53]shift 117 fd 31056 [00:35:53]Create dir for shift 0117 [00:35:53]save to /storage/0117/doc_00031056 [00:35:53]save last doc name /storage/0117/doc_00031056 to /storage/kkm_last_doc_name [00:35:53]save OK [00:35:53]Clear old archive folders... [00:35:53]Remove dir /storage/0116 [00:35:53]opendir ok [00:35:53]file . [00:35:53]file .. [00:35:53]file doc_00030767 [00:35:53]remove file /storage/0116/doc_00030767 [00:35:53]file doc_00030768 [00:35:53]remove file /storage/0116/doc_00030768 [00:35:53]file doc_00030769 [00:35:53]remove file /storage/0116/doc_00030769 [00:35:53]file doc_00030770 [00:35:53]remove file /storage/0116/doc_00030770 [00:35:53]file doc_00030771 [00:35:53]remove file /storage/0116/doc_00030771 [00:35:53]file doc_00030772 [00:35:53]remove file /storage/0116/doc_00030772 [00:35:53]file doc_00030773 [00:35:53]remove file /storage/0116/doc_00030773 [00:35:53]file doc_00030774 [00:35:53]remove file /storage/0116/doc_00030774 [00:35:53]file doc_00030775 [00:35:53]remove file /storage/0116/doc_00030775 [00:35:53]file doc_00030776 [00:35:53]remove file /storage/0116/doc_00030776 [00:35:53]file doc_00030777 [00:35:53]remove file /storage/0116/doc_00030777 [00:35:53]file doc_00030778 [00:35:53]remove file /storage/0116/doc_00030778 [00:35:53]file doc_00030779 [00:35:53]remove file /storage/0116/doc_00030779 [00:35:53]file doc_00030780 [00:35:53]remove file /storage/0116/doc_00030780 [00:35:53]file doc_00030781 [00:35:53]remove file /storage/0116/doc_00030781 [00:35:53]file doc_00030782 [00:35:53]remove file /storage/0116/doc_00030782 [00:35:53]file doc_00030783 [00:35:53]remove file /storage/0116/doc_00030783 [00:35:53]file doc_00030784 [00:35:53]remove file /storage/0116/doc_00030784 [00:35:53]file doc_00030785 [00:35:53]remove file /storage/0116/doc_00030785 [00:35:53]file doc_00030786 [00:35:53]remove file /storage/0116/doc_00030786 [00:35:53]file doc_00030787 [00:35:53]remove file /storage/0116/doc_00030787 [00:35:53]file doc_00030788 [00:35:53]remove file /storage/0116/doc_00030788 [00:35:53]file doc_00030789 [00:35:53]remove file /storage/0116/doc_00030789 [00:35:53]file doc_00030790 [00:35:53]remove file /storage/0116/doc_00030790 [00:35:53]file doc_00030791 [00:35:53]remove file /storage/0116/doc_00030791 [00:35:53]file doc_00030792 [00:35:53]remove file /storage/0116/doc_00030792 [00:35:53]file doc_00030793 [00:35:53]remove file /storage/0116/doc_00030793 [00:35:53]file doc_00030794 [00:35:53]remove file /storage/0116/doc_00030794 [00:35:53]file doc_00030795 [00:35:53]remove file /storage/0116/doc_00030795 [00:35:53]file doc_00030796 [00:35:53]remove file /storage/0116/doc_00030796 [00:35:53]file doc_00030797 [00:35:53]remove file /storage/0116/doc_00030797 [00:35:53]file doc_00030798 [00:35:53]remove file /storage/0116/doc_00030798 [00:35:53]file doc_00030799 [00:35:53]remove file /storage/0116/doc_00030799 [00:35:53]file doc_00030800 [00:35:53]remove file /storage/0116/doc_00030800 [00:35:53]file doc_00030801 [00:35:53]remove file /storage/0116/doc_00030801 [00:35:53]file doc_00030802 [00:35:53]remove file /storage/0116/doc_00030802 [00:35:53]file doc_00030803 [00:35:53]remove file /storage/0116/doc_00030803 [00:35:53]file doc_00030804 [00:35:53]remove file /storage/0116/doc_00030804 [00:35:53]file doc_00030805 [00:35:53]remove file /storage/0116/doc_00030805 [00:35:53]file doc_00030806 [00:35:53]remove file /storage/0116/doc_00030806 [00:35:53]file doc_00030807 [00:35:53]remove file /storage/0116/doc_00030807 [00:35:53]file doc_00030808 [00:35:53]remove file /storage/0116/doc_00030808 [00:35:53]file doc_00030809 [00:35:53]remove file /storage/0116/doc_00030809 [00:35:53]file doc_00030810 [00:35:53]remove file /storage/0116/doc_00030810 [00:35:53]file doc_00030811 [00:35:53]remove file /storage/0116/doc_00030811 [00:35:53]file doc_00030812 [00:35:53]remove file /storage/0116/doc_00030812 [00:35:53]file doc_00030813 [00:35:53]remove file /storage/0116/doc_00030813 [00:35:53]file doc_00030814 [00:35:53]remove file /storage/0116/doc_00030814 [00:35:53]file doc_00030815 [00:35:53]remove file /storage/0116/doc_00030815 [00:35:53]file doc_00030816 [00:35:53]remove file /storage/0116/doc_00030816 [00:35:53]file doc_00030817 [00:35:53]remove file /storage/0116/doc_00030817 [00:35:53]file doc_00030818 [00:35:53]remove file /storage/0116/doc_00030818 [00:35:53]file doc_00030819 [00:35:53]remove file /storage/0116/doc_00030819 [00:35:53]file doc_00030820 [00:35:53]remove file /storage/0116/doc_00030820 [00:35:53]file doc_00030821 [00:35:53]remove file /storage/0116/doc_00030821 [00:35:53]file doc_00030822 [00:35:53]remove file /storage/0116/doc_00030822 [00:35:53]file doc_00030823 [00:35:53]remove file /storage/0116/doc_00030823 [00:35:53]file doc_00030824 [00:35:53]remove file /storage/0116/doc_00030824 [00:35:53]file doc_00030825 [00:35:53]remove file /storage/0116/doc_00030825 [00:35:53]file doc_00030826 [00:35:53]remove file /storage/0116/doc_00030826 [00:35:53]file doc_00030827 [00:35:53]remove file /storage/0116/doc_00030827 [00:35:53]file doc_00030828 [00:35:53]remove file /storage/0116/doc_00030828 [00:35:53]file doc_00030829 [00:35:53]remove file /storage/0116/doc_00030829 [00:35:53]file doc_00030830 [00:35:53]remove file /storage/0116/doc_00030830 [00:35:53]file doc_00030831 [00:35:53]remove file /storage/0116/doc_00030831 [00:35:53]file doc_00030832 [00:35:53]remove file /storage/0116/doc_00030832 [00:35:53]file doc_00030833 [00:35:53]remove file /storage/0116/doc_00030833 [00:35:53]file doc_00030834 [00:35:53]remove file /storage/0116/doc_00030834 [00:35:53]file doc_00030835 [00:35:53]remove file /storage/0116/doc_00030835 [00:35:53]file doc_00030836 [00:35:53]remove file /storage/0116/doc_00030836 [00:35:53]file doc_00030837 [00:35:53]remove file /storage/0116/doc_00030837 [00:35:53]file doc_00030838 [00:35:53]remove file /storage/0116/doc_00030838 [00:35:53]file doc_00030839 [00:35:53]remove file /storage/0116/doc_00030839 [00:35:53]file doc_00030840 [00:35:53]remove file /storage/0116/doc_00030840 [00:35:53]file doc_00030841 [00:35:53]remove file /storage/0116/doc_00030841 [00:35:53]file doc_00030842 [00:35:53]remove file /storage/0116/doc_00030842 [00:35:53]file doc_00030843 [00:35:53]remove file /storage/0116/doc_00030843 [00:35:53]file doc_00030844 [00:35:53]remove file /storage/0116/doc_00030844 [00:35:53]file doc_00030845 [00:35:53]remove file /storage/0116/doc_00030845 [00:35:53]file doc_00030846 [00:35:54]remove file /storage/0116/doc_00030846 [00:35:54]file doc_00030847 [00:35:54]remove file /storage/0116/doc_00030847 [00:35:54]file doc_00030848 [00:35:54]remove file /storage/0116/doc_00030848 [00:35:54]file doc_00030849 [00:35:54]remove file /storage/0116/doc_00030849 [00:35:54]file doc_00030850 [00:35:54]remove file /storage/0116/doc_00030850 [00:35:54]file doc_00030851 [00:35:54]remove file /storage/0116/doc_00030851 [00:35:54]file doc_00030852 [00:35:54]remove file /storage/0116/doc_00030852 [00:35:54]file doc_00030853 [00:35:54]remove file /storage/0116/doc_00030853 [00:35:54]file doc_00030854 [00:35:54]remove file /storage/0116/doc_00030854 [00:35:54]file doc_00030855 [00:35:54]remove file /storage/0116/doc_00030855 [00:35:54]file doc_00030856 [00:35:54]remove file /storage/0116/doc_00030856 [00:35:54]file doc_00030857 [00:35:54]remove file /storage/0116/doc_00030857 [00:35:54]file doc_00030858 [00:35:54]remove file /storage/0116/doc_00030858 [00:35:54]file doc_00030859 [00:35:54]remove file /storage/0116/doc_00030859 [00:35:54]file doc_00030860 [00:35:54]remove file /storage/0116/doc_00030860 [00:35:54]file doc_00030861 [00:35:54]remove file /storage/0116/doc_00030861 [00:35:54]file doc_00030862 [00:35:54]remove file /storage/0116/doc_00030862 [00:35:54]file doc_00030863 [00:35:54]remove file /storage/0116/doc_00030863 [00:35:54]file doc_00030864 [00:35:54]remove file /storage/0116/doc_00030864 [00:35:54]file doc_00030865 [00:35:54]remove file /storage/0116/doc_00030865 [00:35:54]file doc_00030866 [00:35:54]remove file /storage/0116/doc_00030866 [00:35:54]file doc_00030867 [00:35:54]remove file /storage/0116/doc_00030867 [00:35:54]file doc_00030868 [00:35:54]remove file /storage/0116/doc_00030868 [00:35:54]file doc_00030869 [00:35:54]remove file /storage/0116/doc_00030869 [00:35:54]file doc_00030870 [00:35:54]remove file /storage/0116/doc_00030870 [00:35:54]file doc_00030871 [00:35:54]remove file /storage/0116/doc_00030871 [00:35:54]file doc_00030872 [00:35:54]remove file /storage/0116/doc_00030872 [00:35:54]file doc_00030873 [00:35:54]remove file /storage/0116/doc_00030873 [00:35:54]file doc_00030874 [00:35:54]remove file /storage/0116/doc_00030874 [00:35:54]file doc_00030875 [00:35:54]remove file /storage/0116/doc_00030875 [00:35:54]file doc_00030876 [00:35:54]remove file /storage/0116/doc_00030876 [00:35:54]file doc_00030877 [00:35:54]remove file /storage/0116/doc_00030877 [00:35:54]file doc_00030878 [00:35:54]remove file /storage/0116/doc_00030878 [00:35:54]file doc_00030879 [00:35:54]remove file /storage/0116/doc_00030879 [00:35:54]file doc_00030880 [00:35:54]remove file /storage/0116/doc_00030880 [00:35:54]file doc_00030881 [00:35:54]remove file /storage/0116/doc_00030881 [00:35:54]file doc_00030882 [00:35:54]remove file /storage/0116/doc_00030882 [00:35:54]file doc_00030883 [00:35:54]remove file /storage/0116/doc_00030883 [00:35:54]file doc_00030884 [00:35:54]remove file /storage/0116/doc_00030884 [00:35:54]file doc_00030885 [00:35:54]remove file /storage/0116/doc_00030885 [00:35:54]file doc_00030886 [00:35:54]remove file /storage/0116/doc_00030886 [00:35:54]file doc_00030887 [00:35:54]remove file /storage/0116/doc_00030887 [00:35:54]file doc_00030888 [00:35:54]remove file /storage/0116/doc_00030888 [00:35:54]file doc_00030889 [00:35:54]remove file /storage/0116/doc_00030889 [00:35:54]file doc_00030890 [00:35:54]remove file /storage/0116/doc_00030890 [00:35:54]file doc_00030891 [00:35:54]remove file /storage/0116/doc_00030891 [00:35:54]file doc_00030892 [00:35:54]remove file /storage/0116/doc_00030892 [00:35:54]file doc_00030893 [00:35:54]remove file /storage/0116/doc_00030893 [00:35:54]file doc_00030894 [00:35:54]remove file /storage/0116/doc_00030894 [00:35:54]file doc_00030895 [00:35:54]remove file /storage/0116/doc_00030895 [00:35:54]file doc_00030896 [00:35:54]remove file /storage/0116/doc_00030896 [00:35:54]file doc_00030897 [00:35:54]remove file /storage/0116/doc_00030897 [00:35:54]file doc_00030898 [00:35:54]remove file /storage/0116/doc_00030898 [00:35:54]file doc_00030899 [00:35:54]remove file /storage/0116/doc_00030899 [00:35:54]file doc_00030900 [00:35:54]remove file /storage/0116/doc_00030900 [00:35:54]file doc_00030901 [00:35:54]remove file /storage/0116/doc_00030901 [00:35:54]file doc_00030902 [00:35:54]remove file /storage/0116/doc_00030902 [00:35:54]file doc_00030903 [00:35:54]remove file /storage/0116/doc_00030903 [00:35:54]file doc_00030904 [00:35:54]remove file /storage/0116/doc_00030904 [00:35:54]file doc_00030905 [00:35:54]remove file /storage/0116/doc_00030905 [00:35:54]file doc_00030906 [00:35:54]remove file /storage/0116/doc_00030906 [00:35:54]file doc_00030907 [00:35:54]remove file /storage/0116/doc_00030907 [00:35:54]file doc_00030908 [00:35:54]remove file /storage/0116/doc_00030908 [00:35:54]file doc_00030909 [00:35:54]remove file /storage/0116/doc_00030909 [00:35:54]file doc_00030910 [00:35:54]remove file /storage/0116/doc_00030910 [00:35:54]file doc_00030911 [00:35:54]remove file /storage/0116/doc_00030911 [00:35:54]file doc_00030912 [00:35:54]remove file /storage/0116/doc_00030912 [00:35:54]file doc_00030913 [00:35:54]remove file /storage/0116/doc_00030913 [00:35:54]file doc_00030914 [00:35:54]remove file /storage/0116/doc_00030914 [00:35:54]file doc_00030915 [00:35:54]remove file /storage/0116/doc_00030915 [00:35:54]file doc_00030916 [00:35:54]remove file /storage/0116/doc_00030916 [00:35:54]file doc_00030917 [00:35:54]remove file /storage/0116/doc_00030917 [00:35:54]file doc_00030918 [00:35:54]remove file /storage/0116/doc_00030918 [00:35:54]file doc_00030919 [00:35:54]remove file /storage/0116/doc_00030919 [00:35:54]file doc_00030920 [00:35:54]remove file /storage/0116/doc_00030920 [00:35:54]file doc_00030921 [00:35:54]remove file /storage/0116/doc_00030921 [00:35:54]file doc_00030922 [00:35:54]remove file /storage/0116/doc_00030922 [00:35:54]file doc_00030923 [00:35:54]remove file /storage/0116/doc_00030923 [00:35:54]file doc_00030924 [00:35:54]remove file /storage/0116/doc_00030924 [00:35:54]file doc_00030925 [00:35:54]remove file /storage/0116/doc_00030925 [00:35:54]file doc_00030926 [00:35:54]remove file /storage/0116/doc_00030926 [00:35:54]file doc_00030927 [00:35:54]remove file /storage/0116/doc_00030927 [00:35:54]file doc_00030928 [00:35:54]remove file /storage/0116/doc_00030928 [00:35:54]file doc_00030929 [00:35:54]remove file /storage/0116/doc_00030929 [00:35:54]file doc_00030930 [00:35:54]remove file /storage/0116/doc_00030930 [00:35:54]file doc_00030931 [00:35:54]remove file /storage/0116/doc_00030931 [00:35:54]file doc_00030932 [00:35:54]remove file /storage/0116/doc_00030932 [00:35:54]file doc_00030933 [00:35:54]remove file /storage/0116/doc_00030933 [00:35:54]file doc_00030934 [00:35:54]remove file /storage/0116/doc_00030934 [00:35:54]file doc_00030935 [00:35:54]remove file /storage/0116/doc_00030935 [00:35:54]file doc_00030936 [00:35:54]remove file /storage/0116/doc_00030936 [00:35:54]file doc_00030937 [00:35:54]remove file /storage/0116/doc_00030937 [00:35:54]file doc_00030938 [00:35:54]remove file /storage/0116/doc_00030938 [00:35:54]file doc_00030939 [00:35:54]remove file /storage/0116/doc_00030939 [00:35:54]file doc_00030940 [00:35:54]remove file /storage/0116/doc_00030940 [00:35:54]file doc_00030941 [00:35:54]remove file /storage/0116/doc_00030941 [00:35:54]file doc_00030942 [00:35:54]remove file /storage/0116/doc_00030942 [00:35:54]file doc_00030943 [00:35:54]remove file /storage/0116/doc_00030943 [00:35:54]file doc_00030944 [00:35:54]remove file /storage/0116/doc_00030944 [00:35:54]file doc_00030945 [00:35:54]remove file /storage/0116/doc_00030945 [00:35:54]file doc_00030946 [00:35:54]remove file /storage/0116/doc_00030946 [00:35:54]file doc_00030947 [00:35:54]remove file /storage/0116/doc_00030947 [00:35:54]file doc_00030948 [00:35:54]remove file /storage/0116/doc_00030948 [00:35:54]file doc_00030949 [00:35:54]remove file /storage/0116/doc_00030949 [00:35:54]file doc_00030950 [00:35:54]remove file /storage/0116/doc_00030950 [00:35:54]file doc_00030951 [00:35:54]remove file /storage/0116/doc_00030951 [00:35:54]file doc_00030952 [00:35:54]remove file /storage/0116/doc_00030952 [00:35:54]file doc_00030953 [00:35:54]remove file /storage/0116/doc_00030953 [00:35:54]file doc_00030954 [00:35:54]remove file /storage/0116/doc_00030954 [00:35:54]file doc_00030955 [00:35:54]remove file /storage/0116/doc_00030955 [00:35:54]file doc_00030956 [00:35:54]remove file /storage/0116/doc_00030956 [00:35:54]file doc_00030957 [00:35:54]remove file /storage/0116/doc_00030957 [00:35:54]file doc_00030958 [00:35:54]remove file /storage/0116/doc_00030958 [00:35:54]file doc_00030959 [00:35:54]remove file /storage/0116/doc_00030959 [00:35:54]file doc_00030960 [00:35:54]remove file /storage/0116/doc_00030960 [00:35:54]file doc_00030961 [00:35:54]remove file /storage/0116/doc_00030961 [00:35:54]file doc_00030962 [00:35:54]remove file /storage/0116/doc_00030962 [00:35:54]file doc_00030963 [00:35:54]remove file /storage/0116/doc_00030963 [00:35:54]file doc_00030964 [00:35:54]remove file /storage/0116/doc_00030964 [00:35:54]file doc_00030965 [00:35:54]remove file /storage/0116/doc_00030965 [00:35:54]file doc_00030966 [00:35:54]remove file /storage/0116/doc_00030966 [00:35:54]file doc_00030967 [00:35:54]remove file /storage/0116/doc_00030967 [00:35:54]file doc_00030968 [00:35:54]remove file /storage/0116/doc_00030968 [00:35:54]file doc_00030969 [00:35:54]remove file /storage/0116/doc_00030969 [00:35:54]file doc_00030970 [00:35:54]remove file /storage/0116/doc_00030970 [00:35:54]file doc_00030971 [00:35:54]remove file /storage/0116/doc_00030971 [00:35:54]file doc_00030972 [00:35:54]remove file /storage/0116/doc_00030972 [00:35:54]file doc_00030973 [00:35:54]remove file /storage/0116/doc_00030973 [00:35:54]file doc_00030974 [00:35:54]remove file /storage/0116/doc_00030974 [00:35:54]file doc_00030975 [00:35:54]remove file /storage/0116/doc_00030975 [00:35:54]file doc_00030976 [00:35:54]remove file /storage/0116/doc_00030976 [00:35:54]file doc_00030977 [00:35:54]remove file /storage/0116/doc_00030977 [00:35:54]file doc_00030978 [00:35:54]remove file /storage/0116/doc_00030978 [00:35:54]file doc_00030979 [00:35:54]remove file /storage/0116/doc_00030979 [00:35:54]file doc_00030980 [00:35:54]remove file /storage/0116/doc_00030980 [00:35:54]file doc_00030981 [00:35:54]remove file /storage/0116/doc_00030981 [00:35:54]file doc_00030982 [00:35:54]remove file /storage/0116/doc_00030982 [00:35:54]file doc_00030983 [00:35:54]remove file /storage/0116/doc_00030983 [00:35:54]file doc_00030984 [00:35:54]remove file /storage/0116/doc_00030984 [00:35:54]file doc_00030985 [00:35:54]remove file /storage/0116/doc_00030985 [00:35:54]file doc_00030986 [00:35:54]remove file /storage/0116/doc_00030986 [00:35:54]file doc_00030987 [00:35:54]remove file /storage/0116/doc_00030987 [00:35:54]file doc_00030988 [00:35:54]remove file /storage/0116/doc_00030988 [00:35:54]file doc_00030989 [00:35:54]remove file /storage/0116/doc_00030989 [00:35:54]file doc_00030990 [00:35:55]remove file /storage/0116/doc_00030990 [00:35:55]file doc_00030991 [00:35:55]remove file /storage/0116/doc_00030991 [00:35:55]file doc_00030992 [00:35:55]remove file /storage/0116/doc_00030992 [00:35:55]file doc_00030993 [00:35:55]remove file /storage/0116/doc_00030993 [00:35:55]file doc_00030994 [00:35:55]remove file /storage/0116/doc_00030994 [00:35:55]file doc_00030995 [00:35:55]remove file /storage/0116/doc_00030995 [00:35:55]file doc_00030996 [00:35:55]remove file /storage/0116/doc_00030996 [00:35:55]file doc_00030997 [00:35:55]remove file /storage/0116/doc_00030997 [00:35:55]file doc_00030998 [00:35:55]remove file /storage/0116/doc_00030998 [00:35:55]file doc_00030999 [00:35:55]remove file /storage/0116/doc_00030999 [00:35:55]file doc_00031000 [00:35:55]remove file /storage/0116/doc_00031000 [00:35:55]file doc_00031001 [00:35:55]remove file /storage/0116/doc_00031001 [00:35:55]file doc_00031002 [00:35:55]remove file /storage/0116/doc_00031002 [00:35:55]file doc_00031003 [00:35:55]remove file /storage/0116/doc_00031003 [00:35:55]file doc_00031004 [00:35:55]remove file /storage/0116/doc_00031004 [00:35:55]file doc_00031005 [00:35:55]remove file /storage/0116/doc_00031005 [00:35:55]file doc_00031006 [00:35:55]remove file /storage/0116/doc_00031006 [00:35:55]file doc_00031007 [00:35:55]remove file /storage/0116/doc_00031007 [00:35:55]file doc_00031008 [00:35:55]remove file /storage/0116/doc_00031008 [00:35:55]file doc_00031009 [00:35:55]remove file /storage/0116/doc_00031009 [00:35:55]file doc_00031010 [00:35:55]remove file /storage/0116/doc_00031010 [00:35:55]file doc_00031011 [00:35:55]remove file /storage/0116/doc_00031011 [00:35:55]file doc_00031012 [00:35:55]remove file /storage/0116/doc_00031012 [00:35:55]file doc_00031013 [00:35:55]remove file /storage/0116/doc_00031013 [00:35:55]file doc_00031014 [00:35:55]remove file /storage/0116/doc_00031014 [00:35:55]file doc_00031015 [00:35:55]remove file /storage/0116/doc_00031015 [00:35:55]file doc_00031016 [00:35:55]remove file /storage/0116/doc_00031016 [00:35:55]file doc_00031017 [00:35:55]remove file /storage/0116/doc_00031017 [00:35:55]file doc_00031018 [00:35:55]remove file /storage/0116/doc_00031018 [00:35:55]file doc_00031019 [00:35:55]remove file /storage/0116/doc_00031019 [00:35:55]file doc_00031020 [00:35:55]remove file /storage/0116/doc_00031020 [00:35:55]file doc_00031021 [00:35:55]remove file /storage/0116/doc_00031021 [00:35:55]file doc_00031022 [00:35:55]remove file /storage/0116/doc_00031022 [00:35:55]file doc_00031023 [00:35:55]remove file /storage/0116/doc_00031023 [00:35:55]file doc_00031024 [00:35:55]remove file /storage/0116/doc_00031024 [00:35:55]file doc_00031025 [00:35:55]remove file /storage/0116/doc_00031025 [00:35:55]file doc_00031026 [00:35:55]remove file /storage/0116/doc_00031026 [00:35:55]file doc_00031027 [00:35:55]remove file /storage/0116/doc_00031027 [00:35:55]file doc_00031028 [00:35:55]remove file /storage/0116/doc_00031028 [00:35:55]file doc_00031029 [00:35:55]remove file /storage/0116/doc_00031029 [00:35:55]file doc_00031030 [00:35:55]remove file /storage/0116/doc_00031030 [00:35:55]file doc_00031031 [00:35:55]remove file /storage/0116/doc_00031031 [00:35:55]file doc_00031032 [00:35:55]remove file /storage/0116/doc_00031032 [00:35:55]file doc_00031033 [00:35:55]remove file /storage/0116/doc_00031033 [00:35:55]file doc_00031034 [00:35:55]remove file /storage/0116/doc_00031034 [00:35:55]file doc_00031035 [00:35:55]remove file /storage/0116/doc_00031035 [00:35:55]file doc_00031036 [00:35:55]remove file /storage/0116/doc_00031036 [00:35:55]file doc_00031037 [00:35:55]remove file /storage/0116/doc_00031037 [00:35:55]file doc_00031038 [00:35:55]remove file /storage/0116/doc_00031038 [00:35:55]file doc_00031039 [00:35:55]remove file /storage/0116/doc_00031039 [00:35:55]file doc_00031040 [00:35:55]remove file /storage/0116/doc_00031040 [00:35:55]file doc_00031041 [00:35:55]remove file /storage/0116/doc_00031041 [00:35:55]file doc_00031042 [00:35:55]remove file /storage/0116/doc_00031042 [00:35:55]file doc_00031043 [00:35:55]remove file /storage/0116/doc_00031043 [00:35:55]file doc_00031044 [00:35:55]remove file /storage/0116/doc_00031044 [00:35:55]file doc_00031045 [00:35:55]remove file /storage/0116/doc_00031045 [00:35:55]file doc_00031046 [00:35:55]remove file /storage/0116/doc_00031046 [00:35:55]file doc_00031047 [00:35:55]remove file /storage/0116/doc_00031047 [00:35:55]file doc_00031048 [00:35:55]remove file /storage/0116/doc_00031048 [00:35:55]file doc_00031049 [00:35:55]remove file /storage/0116/doc_00031049 [00:35:55]file doc_00031050 [00:35:55]remove file /storage/0116/doc_00031050 [00:35:55]file doc_00031051 [00:35:55]remove file /storage/0116/doc_00031051 [00:35:55]file doc_00031052 [00:35:55]remove file /storage/0116/doc_00031052 [00:35:55]file doc_00031053 [00:35:55]remove file /storage/0116/doc_00031053 [00:35:55]file doc_00031054 [00:35:55]remove file /storage/0116/doc_00031054 [00:35:55]file doc_00031055 [00:35:55]remove file /storage/0116/doc_00031055 [00:35:55]remove dir /storage/0116 [00:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:35:55]tlvbuf is 00D3CE20 [00:35:55]SAM_PROTO_ClearQueue [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 09 00 00 [00:35:55]Write to MH i2c: E2 08 00 7C 2D 80 09 00 00 00 00 00 00 1B [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 7C 2D 00 90 00 1D [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]SAM_PROTO_ClearQueue done [00:35:55]KKMCreateOFDPacket [00:35:55]OFDProtocolAddRootSTLVToBuf [00:35:55]FM_MakeSignedData [00:35:55]FM_MakeSignedData [00:35:55]SAM_PROTO_SignData [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 0D 01 02 [00:35:55]Write to MH i2c: E2 08 00 7D 2D 80 0D 01 02 00 00 00 00 23 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 7D 2D 00 90 00 1E [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=255 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 0D 02 02 FA 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 EB 44 18 67 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 [00:35:55]Write to MH i2c: E2 02 01 7E 2D 80 0D 02 02 FA 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 EB 44 18 67 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 00 00 3B [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 7E 2D 00 90 00 1F [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=16 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 0D 02 02 0B 39 35 04 06 00 E5 81 10 EB 32 FE [00:35:55]Write to MH i2c: E2 13 00 7F 2D 80 0D 02 02 0B 00 39 35 04 06 00 E5 81 10 EB 32 FE 00 00 45 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 0D 03 02 [00:35:55]Write to MH i2c: E2 08 00 80 2D 80 0D 03 02 00 00 00 00 28 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 0B 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 0B 00 80 2D 00 2C DB 28 9A 90 D9 14 C1 90 00 30 [00:35:55]RAPDU: 2C DB 28 9A 90 D9 14 C1 90 00 [00:35:55]wFMCommunicate OK [00:35:55]SAM_PROTO_SignData done [00:35:55]FM_MakeSignedData done [00:35:55]CreateOFDProtocolMessage [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 11 00 00 [00:35:55]Write to MH i2c: E2 08 00 81 2D 80 11 00 00 00 00 00 00 28 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 17 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 17 00 81 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [00:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:35:56]wFMCommunicate OK [00:35:56]CreateOFDProtocolMessage done [00:35:56]OFDSenderStorePacket 31056 [00:35:56]StoreOFDPacket docnum=31056 [00:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8A 3F 0D 01 A9 2B 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 EB 44 18 67 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 E5 81 10 EB 32 FE 2C DB 28 9A 90 D9 14 C1 [00:35:56]CheckFolder [00:35:56]dirname=/storage/ofd_packets [00:35:56]CheckFolder done [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00031056 [00:35:56]NVStorageSaveData ofd_packets/00031056 [00:35:56]File name is /storage/ofd_packets/00031056 [00:35:56]Write 307 bytes [00:35:56]NVStorageSaveData done [00:35:56]OFDSenderStorePacket done [00:35:56]KKMCreateOFDPacket done [00:35:56]NVStorageSaveData kkm_last_timestamp [00:35:56]File name is /storage/kkm_last_timestamp [00:35:56]Write 4 bytes [00:35:56]NVStorageSaveData done [00:35:56]ExternCall_PrintAddStr [00:35:56]wPrintStart [00:35:56]Write to MH i2c: 01 00 00 82 2D AF [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 82 2D 00 00 00 00 00 FF 0F C4 [00:35:56]RasterBufferAndPrint [00:35:56]line Отчет об открытии смены [00:35:56]line ФФД: 1.0 [00:35:56]line ИНН: 02508201610067 [00:35:56]line Кассир: Таирбекова Г. [00:35:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:35:56]line Место: АЗС № 78 "Партнер Нефть" [00:35:56]line 23.10.2024 00:35 [00:35:56]line Смена: 117 [00:35:56]line РНМ: 0000000000186857 [00:35:56]line ЗНМ: 0300000137 [00:35:56]line ФД: 31056 [00:35:56]line ФМ: 0000000002094219 [00:35:56]line ФПД: 252342497391358 [00:35:56]written 0, free lines is 4095 [00:35:56]OFD Sender: Processing packet 31056 [packets to send 11, broken 10] [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00031056 [00:35:56]OFD Sender: To server: pG, [00:35:56]CommunicateWithHost lk.salyk.kg:30040 [00:35:56]ConnectInit lk.salyk.kg [00:35:56]Connected sock=10 [00:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8A 3F 0D 01 A9 2B 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 EB 44 18 67 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 E5 81 10 EB 32 FE 2C DB 28 9A 90 D9 14 C1 [00:35:56]Write to MH i2c: 01 00 00 94 2D C1 [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 94 2D 00 00 00 00 00 54 0E 2A [00:35:56]RasterBufferAndPrint [00:35:56]line [00:35:56]line [00:35:56]line [00:35:56]line [00:35:56]line [00:35:56]written 0, free lines is 3679 [00:35:56]MH_Cut [00:35:56]Write to MH i2c: D1 01 00 9B 2D 01 9A [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: D1 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: D1 01 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: D1 01 00 9B 2D 00 99 [00:35:56]Write to MH i2c: 01 00 00 9C 2D C9 [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9D 89 47 00 DC 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 32 30 39 34 32 31 39 10 04 04 00 50 79 00 00 F4 03 04 00 69 EF 17 67 B6 04 01 00 00 4C 8C C0 7B 04 B5 C4 F6 [00:35:56]CommunicateWithHost err = 0 [00:35:56]CheckOFDResponse [00:35:56]1017 (14) - 77093643461234 [00:35:56]1041 (16) - 0000000002094219 [00:35:56]1040 (4) - 31056 [00:35:56]1012 (4) - 22.10.2024 18:31 [00:35:56]1206 (1) - 0 [00:35:56]OFD Sender: Remove packet 31056 [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00031056 [00:35:56]NVStorageDeleteData [00:35:56]*** Cut start [00:35:56]*** Partial cut [00:35:56]*** CUTSNS_PIN = 1 [00:35:56]*** CUTSNS_PIN = 0 [00:35:56]OFD Sender: No OFD packet to send [00:35:56]*** Brake cut motor [00:35:57]Read from MH i2c: 01 [00:35:57]MH_I2C_Read... [00:35:57]*** Stop cut motor [00:35:57]*** Cut end [00:35:57]Read from MH i2c: 01 07 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: 01 07 00 9C 2D 00 00 00 00 00 FF 0F DE [00:35:57]process_action open_shift done [00:35:57]requested_data is exist [00:35:57]produce_requested_data [00:35:57]requested_item fd.num is exist - process it [00:35:57]SAM_PROTO_GetFieldsCounters [00:35:57]wFMCommunicate request_size=4 [00:35:57]MH_SAM_APDU [00:35:57]CAPDU: 80 13 00 00 [00:35:57]Write to MH i2c: E2 08 00 9D 2D 80 13 00 00 00 00 00 00 46 [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:57]Read from MH i2c: E2 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 62 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 62 00 9D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 0E 04 04 00 75 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 AA [00:35:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 79 00 00 0E 04 04 00 75 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:35:57]wFMCommunicate OK [00:35:57]SAM_PROTO_GetFieldsCounters done [00:35:57]requested_item shift.num is exist - process it [00:35:57]requested_item shift.opened is exist - process it [00:35:57]req_shift_opened [00:35:57]FM_GetShiftState [00:35:57]SAM_PROTO_GetShiftState [00:35:57]wFMCommunicate request_size=4 [00:35:57]MH_SAM_APDU [00:35:57]CAPDU: 80 13 01 00 [00:35:57]Write to MH i2c: E2 08 00 9E 2D 80 13 01 00 00 00 00 00 48 [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:57]Read from MH i2c: E2 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 0E 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 0E 00 9E 2D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 02 [00:35:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [00:35:57]wFMCommunicate OK [00:35:57]SAM_PROTO_GetShiftState done [00:35:57]FM_GetShiftState done [00:35:57]req_shift_opened done [00:35:57]requested_item shift.open_date is exist - process it [00:35:57]req_shift_open_date [00:35:57]req_shift_open_date done [00:35:57]produce_requested_data done [00:35:57]produce_requested_data return {"fd.num":31056,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [00:35:57]process_action_free open_shift [00:35:57]json_value_free [00:35:57]json_value_free done [00:35:57]process_json_proto returns [00:35:57]Send response to host [00:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31056,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [00:35:57]free response buf [00:35:57]execute_script done [00:35:57]execute_script returns [00:35:57]free content buf [00:35:57]Sock 9.Close socket [00:35:57]Sock 9.Thread stoped [00:35:57]accept exits with 7 [00:35:57]New connection [00:35:57]New thread 3066899812 created [00:35:57]Thread 3067043172 joined [00:35:57]Waiting for new connection... [00:35:57] Sock 7.Parse request [00:35:57]Sock 7.Check first char [00:35:57]Sock 7.First char is OK [00:35:57]request: POST /json_proto HTTP/1.0 [00:35:57]Method: POST [00:35:57]URL: /json_proto [00:35:57]Method is POST - this is cgi request [00:35:57]url: /json_proto [00:35:57]query_string will be loaded in cgi processing [00:35:57]execute_cgi json_proto POST (null) [00:35:57]execute_cgi path=json_proto method=POST [00:35:57]POST find Content-Length [00:35:57]Host: 172.17.51.3:8080 [00:35:57]Content-Length: 331 [00:35:57]Content-Type: application/json [00:35:57] [00:35:57]POST finish read [00:35:57]Found Content-Length = 331 [00:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:57]execute_script... [00:35:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:57]POST & json_proto [00:35:57]process_json_proto [00:35:57]json parsed OK: [00:35:57]protocol is kg_v1.0 [00:35:57]action value=get_value [00:35:57]process_action get_value [00:35:57]cmd_get_value [00:35:57]process_action get_value done [00:35:57]requested_data is exist [00:35:57]produce_requested_data [00:35:57]requested_item fm.sale.total is exist - process it [00:35:57]SAM_PROTO_GetFMData [00:35:57]wFMCommunicate request_size=4 [00:35:57]MH_SAM_APDU [00:35:57]CAPDU: 80 13 03 00 [00:35:57]Write to MH i2c: E2 08 00 9F 2D 80 13 03 00 00 00 00 00 4B [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 9F 2D 00 BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 E6 [00:35:58]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 78 00 00 69 04 A1 00 6F 04 04 00 57 78 00 00 B1 04 04 00 F8 4D AB A6 70 04 04 00 6C 59 B4 85 72 04 04 00 8C F4 F6 20 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 A5 50 B4 11 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 54 AF 79 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 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 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 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:35:58]wFMCommunicate OK [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 17 00 00 [00:35:58]Write to MH i2c: E2 08 00 A0 2D 80 17 00 00 00 00 00 00 4D [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 A0 2D 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 1E [00:35:58]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:58]wFMCommunicate OK [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 17 00 00 [00:35:58]Write to MH i2c: E2 08 00 A1 2D 80 17 00 00 00 00 00 00 4E [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 A1 2D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [00:35:58]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 17 00 00 [00:35:59]Write to MH i2c: E2 08 00 A2 2D 80 17 00 00 00 00 00 00 4F [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 FD 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 FD 00 A2 2D 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 C9 [00:35:59]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 17 00 00 [00:35:59]Write to MH i2c: E2 08 00 A3 2D 80 17 00 00 00 00 00 00 50 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 DC 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 DC 00 A3 2D 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 34 [00:35:59]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_GetFMData done [00:35:59]requested_item fm.sale_refund.total is exist - process it [00:35:59]requested_item fm.buy.total is exist - process it [00:35:59]requested_item shift.sale.total is exist - process it [00:35:59]SAM_PROTO_GetShiftData [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 13 02 00 [00:35:59]Write to MH i2c: E2 08 00 A4 2D 80 13 02 00 00 00 00 00 4F [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 A4 2D 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 C2 [00:36:00]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:36:00]wFMCommunicate OK [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 17 00 00 [00:36:00]Write to MH i2c: E2 08 00 A5 2D 80 17 00 00 00 00 00 00 52 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 A5 2D 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 5A [00:36:00]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:36:00]wFMCommunicate OK [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 17 00 00 [00:36:00]Write to MH i2c: E2 08 00 A6 2D 80 17 00 00 00 00 00 00 53 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 A6 2D 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 25 [00:36:01]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:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 A7 2D 80 17 00 00 00 00 00 00 54 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 A7 2D 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 C6 [00:36:01]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:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 A8 2D 80 17 00 00 00 00 00 00 55 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:02]OFD Sender: No OFD packet to send [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 BD 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 BD 00 A8 2D 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 3B [00:36:02]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:36:02]wFMCommunicate OK [00:36:02]SAM_PROTO_GetShiftData done [00:36:02]requested_item shift.sale.total_cash is exist - process it [00:36:02]requested_item shift.sale_refund.total is exist - process it [00:36:02]requested_item shift.sale_refund.total_cash is exist - process it [00:36:02]requested_item shift.buy.total is exist - process it [00:36:02]requested_item shift.buy.total_cash is exist - process it [00:36:02]produce_requested_data done [00:36:02]produce_requested_data return {"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.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:36:02]process_action_free get_value [00:36:02]json_value_free [00:36:02]json_value_free done [00:36:02]process_json_proto returns [00:36:02]Send response to host [00:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27962444.72,"fm.sale_refund.total":54066.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:36:02]free response buf [00:36:02]execute_script done [00:36:02]execute_script returns [00:36:02]free content buf [00:36:02]Sock 7.Close socket [00:36:02]Sock 7.Thread stoped [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:35]accept exits with 9 [01:26:35]New connection [01:26:35]New thread 3067043172 created [01:26:35]Thread 3066899812 joined [01:26:35]Waiting for new connection... [01:26:35] Sock 9.Parse request [01:26:35]Sock 9.Check first char [01:26:35]Sock 9.First char is OK [01:26:35]request: POST /json_proto HTTP/1.0 [01:26:35]Method: POST [01:26:35]URL: /json_proto [01:26:35]Method is POST - this is cgi request [01:26:35]url: /json_proto [01:26:35]query_string will be loaded in cgi processing [01:26:35]execute_cgi json_proto POST (null) [01:26:35]execute_cgi path=json_proto method=POST [01:26:35]POST find Content-Length [01:26:35]Host: 172.17.51.3:8080 [01:26:35]Content-Length: 840 [01:26:35]Content-Type: application/json [01:26:35] [01:26:35]POST finish read [01:26:35]Found Content-Length = 840 [01:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:35]execute_script... [01:26: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)343495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:35]POST & json_proto [01:26:35]process_json_proto [01:26:35]json parsed OK: [01:26:35]protocol is kg_v1.0 [01:26:35]action value=close_receipt [01:26:35]process_action close_receipt [01:26:35]cmd_close_receipt [01:26:35]MH_GetDate [01:26:35]Write to MH i2c: F0 00 00 A9 2D C5 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: F0 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: F0 09 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: F0 09 00 A9 2D 00 CF 50 18 67 04 C1 95 66 2C [01:26:35]GetLastDocTimeStamp 1729643755 [01:26:35]current date 1729646799 [01:26:35]FM_GetShiftState [01:26:35]SAM_PROTO_GetShiftState [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 13 01 00 [01:26:35]Write to MH i2c: E2 08 00 AA 2D 80 13 01 00 00 00 00 00 54 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 0E 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 0E 00 AA 2D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0E [01:26:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [01:26:35]wFMCommunicate OK [01:26:35]SAM_PROTO_GetShiftState done [01:26:35]FM_GetShiftState done [01:26:35]opened in 1729643755 [01:26:35]opened+sec_in_day 1729730155 [01:26:35]quantity*price = 50041 [01:26:35]sum+1 = 50042 [01:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 1 23.10.2024 01:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31057 ФПД: 234484070651903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31057&fm=234484070651903&tin=02508201610067®Number=0000000000186857&sum=50041 [01:26:36]StoreToDocumentArchive [01:26:36]shift 117 fd 31057 [01:26:36]save to /storage/0117/doc_00031057 [01:26:36]save last doc name /storage/0117/doc_00031057 to /storage/kkm_last_doc_name [01:26:36]save OK [01:26:36]Clear old archive folders... [01:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:36]tlvbuf is 00DCAAD0 [01:26:36]SAM_PROTO_ClearQueue [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 09 00 00 [01:26:36]Write to MH i2c: E2 08 00 B7 2D 80 09 00 00 00 00 00 00 56 [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 03 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [01:26:36]RAPDU: 90 00 [01:26:36]wFMCommunicate OK [01:26:36]SAM_PROTO_ClearQueue done [01:26:36]KKMCreateOFDPacket [01:26:36]OFDProtocolAddRootSTLVToBuf [01:26:36]FM_MakeSignedData [01:26:36]FM_MakeSignedData [01:26:36]SAM_PROTO_SignData [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 0D 01 02 [01:26:36]Write to MH i2c: E2 08 00 B8 2D 80 0D 01 02 00 00 00 00 5E [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [01:26:37]RAPDU: 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=255 [01:26:37]MH_SAM_APDU [01:26: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CF 50 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 79 00 00 35 04 06 00 D5 [01:26:37]Write to MH i2c: E2 02 01 B9 2D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CF 50 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 79 00 00 35 04 06 00 D5 00 00 F4 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [01:26:37]RAPDU: 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=10 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 0D 02 02 05 43 13 BC 97 FF [01:26:37]Write to MH i2c: E2 0D 00 BA 2D 80 0D 02 02 05 00 43 13 BC 97 FF 00 00 13 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [01:26:37]RAPDU: 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 0D 03 02 [01:26:37]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 0B 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 0B 00 BB 2D 00 33 87 CF 1C 73 74 C9 3F 90 00 F8 [01:26:37]RAPDU: 33 87 CF 1C 73 74 C9 3F 90 00 [01:26:37]wFMCommunicate OK [01:26:37]SAM_PROTO_SignData done [01:26:37]FM_MakeSignedData done [01:26:37]CreateOFDProtocolMessage [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 11 00 00 [01:26:37]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 17 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B1 [01:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:26:37]wFMCommunicate OK [01:26:37]CreateOFDProtocolMessage done [01:26:37]OFDSenderStorePacket 31057 [01:26:37]StoreOFDPacket docnum=31057 [01:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A D9 07 01 B8 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CF 50 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 79 00 00 35 04 06 00 D5 43 13 BC 97 FF 33 87 CF 1C 73 74 C9 3F [01:26:37]CheckFolder [01:26:37]dirname=/storage/ofd_packets [01:26:37]CheckFolder done [01:26:37]ProducePacketName [01:26:37]name=ofd_packets/00031057 [01:26:37]NVStorageSaveData ofd_packets/00031057 [01:26:37]File name is /storage/ofd_packets/00031057 [01:26:37]Write 301 bytes [01:26:37]NVStorageSaveData done [01:26:37]OFDSenderStorePacket done [01:26:37]KKMCreateOFDPacket done [01:26:37]NVStorageSaveData kkm_last_timestamp [01:26:37]File name is /storage/kkm_last_timestamp [01:26:37]Write 4 bytes [01:26:37]NVStorageSaveData done [01:26:37]ExternCall_PrintAddStr [01:26:37]wPrintStart [01:26:37]Write to MH i2c: 01 00 00 BD 2D EA [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: 01 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: 01 07 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [01:26:37]RasterBufferAndPrint [01:26:37]line Счет N : (1)343495 [01:26:37]line ИНН: 02508201610067 [01:26:37]line Контрольно-Кассовый Чек [01:26:37]line ПРОДАЖА [01:26:37]line ТРК (МРК, ГНК) : 63 [01:26:37]line Товар: 2710124130 [01:26:37]line Аи-92-К-2 [01:26:37]line 7.480 * 66.90 [01:26:37]line = 500.41 [01:26:37]line НДС 12% НСП 1% [01:26:37]line > о реализуемом товаре [01:26:37]line ИТОГО: 500.41 [01:26:37]line НСП 1% : 4.43 [01:26:37]line НДС 12% : 53.14 [01:26:37]line Наличными: 0.00 [01:26:37]line Безнал.: 500.41 [01:26:37]line Место: АЗС № 78 "Партнер Нефть" [01:26:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [01:26:37]line СНО: Общий режим [01:26:37]line Чек 1 23.10.2024 01:26 [01:26:37]line Смена: 117 ФФД: 1.0 [01:26:37]line ЗНМ: 0300000137 [01:26:37]line РНМ: 0000000000186857 [01:26:37]line Версия ККМ: v1.0 [01:26:37]line Платежная система: АКБ Кыргызстан [01:26:37]line ФМ: 0000000002094219 [01:26:37]line ФД: 31057 [01:26:37]line ФПД: 234484070651903 [01:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31057&fm=234484070651903&tin=02508201610067®Number=0000000000186857&sum=50041 [01:26:37]OFD Sender: Processing packet 31057 [packets to send 11, broken 10] [01:26:37]ProducePacketName [01:26:37]name=ofd_packets/00031057 [01:26:37]OFD Sender: To server: pG, [01:26:37]CommunicateWithHost lk.salyk.kg:30040 [01:26:37]ConnectInit lk.salyk.kg [01:26:37]written 0, free lines is 4095 [01:26:37]Connected sock=10 [01:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A D9 07 01 B8 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CF 50 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 79 00 00 35 04 06 00 D5 43 13 BC 97 FF 33 87 CF 1C 73 74 C9 3F [01:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB 6D 47 00 A5 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 32 30 39 34 32 31 39 10 04 04 00 51 79 00 00 F4 03 04 00 4B FB 17 67 B6 04 01 00 00 18 21 77 45 EE 9E 38 9E [01:26:38]CommunicateWithHost err = 0 [01:26:38]CheckOFDResponse [01:26:38]1017 (14) - 77093643461234 [01:26:38]1041 (16) - 0000000002094219 [01:26:38]1040 (4) - 31057 [01:26:38]1012 (4) - 22.10.2024 19:21 [01:26:38]1206 (1) - 0 [01:26:38]OFD Sender: Remove packet 31057 [01:26:38]ProducePacketName [01:26:38]name=ofd_packets/00031057 [01:26:38]NVStorageDeleteData [01:26:38]Write to MH i2c: 01 00 00 E7 2D 14 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 E7 2D 00 00 00 00 00 F7 0C 1E [01:26:38]RasterBufferAndPrint [01:26:38]line [01:26:38]line [01:26:38]line [01:26:38]line [01:26:38]line [01:26:38]written 0, free lines is 3327 [01:26:38]MH_Cut [01:26:38]Write to MH i2c: D1 01 00 EE 2D 01 ED [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: D1 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: D1 01 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: D1 01 00 EE 2D 00 EC [01:26:38]Write to MH i2c: 01 00 00 EF 2D 1C [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]OFD Sender: No OFD packet to send [01:26:38]*** Cut start [01:26:38]*** Partial cut [01:26:38]*** CUTSNS_PIN = 1 [01:26:38]*** CUTSNS_PIN = 0 [01:26:39]*** Brake cut motor [01:26:39]Read from MH i2c: 01 [01:26:39]MH_I2C_Read... [01:26:39]*** Stop cut motor [01:26:39]*** Cut end [01:26:39]Read from MH i2c: 01 07 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: 01 07 00 EF 2D 00 00 00 00 00 FF 0F 31 [01:26:39]process_action close_receipt done [01:26:39]requested_data is exist [01:26:39]produce_requested_data [01:26:39]requested_item fm.sn is exist - process it [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 11 00 00 [01:26:39]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 17 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [01:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:26:39]wFMCommunicate OK [01:26:39]requested_item fd.num is exist - process it [01:26:39]SAM_PROTO_GetFieldsCounters [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 13 00 00 [01:26:39]Write to MH i2c: E2 08 00 F1 2D 80 13 00 00 00 00 00 00 9A [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 62 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 62 00 F1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 79 00 00 0E 04 04 00 75 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 02 [01:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 79 00 00 0E 04 04 00 75 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 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetFieldsCounters done [01:26:39]requested_item shift.num is exist - process it [01:26:39]requested_item shift.opened is exist - process it [01:26:39]req_shift_opened [01:26:39]FM_GetShiftState [01:26:39]SAM_PROTO_GetShiftState [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 13 01 00 [01:26:39]Write to MH i2c: E2 08 00 F2 2D 80 13 01 00 00 00 00 00 9C [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 0E 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 0E 00 F2 2D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 56 [01:26:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetShiftState done [01:26:39]FM_GetShiftState done [01:26:39]req_shift_opened done [01:26:39]requested_item shift.open_date is exist - process it [01:26:39]req_shift_open_date [01:26:39]req_shift_open_date done [01:26:39]produce_requested_data done [01:26:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31057,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [01:26:39]process_action_free close_receipt [01:26:39]json_value_free [01:26:39]json_value_free done [01:26:39]process_json_proto returns [01:26:39]Send response to host [01:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31057,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [01:26:39]free response buf [01:26:39]execute_script done [01:26:39]execute_script returns [01:26:39]free content buf [01:26:39]Sock 9.Close socket [01:26:39]Sock 9.Thread stoped [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send